/**
 * Media Mentions Slider — CSS
 *
 * Enqueue:
 *   wp_enqueue_style( 'media-mentions-style',
 *       get_stylesheet_directory_uri() . '/custom-addons/assets/css/media-mentions.css',
 *       [ 'slick-css' ], '1.0.0' );
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.mm-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    background: #ffffff;
    font-family: inherit;
}

/* ── Section Title ───────────────────────────────────────────────────────── */
.mm-section-title {
    font-size: 36px;
    font-weight: 800;
    color: #0d1b3e;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 48px;
}

/* ── Slick track ─────────────────────────────────────────────────────────── */
.mm-slider-track {
    opacity: 0;
    transition: opacity 0.25s;
}
.mm-slider-track.slick-initialized {
    opacity: 1;
}
.mm-slider-track .slick-list {
    overflow: hidden;
    margin: 0 -12px;
}
.mm-slider-track .slick-slide {
    padding: 0 12px;
    box-sizing: border-box;
    height: auto;
}
.mm-slider-track .slick-track {
    display: flex;
    align-items: stretch;
}
.mm-slider-track .slick-slide > div {
    height: 100%;
}

/* ── Slide ───────────────────────────────────────────────────────────────── */
.mm-slide {
    height: 100%;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.mm-card {
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 0;
    padding: 28px 24px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: box-shadow 0.22s ease;
    position: relative;
}

.mm-card:hover {
    box-shadow: 0 6px 24px rgba(13, 27, 62, 0.09);
}

/* ── Source header ───────────────────────────────────────────────────────── */
.mm-source-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* Logo circle */
.mm-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e8ecf2;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Fallback letter avatar */
.mm-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0d1b3e;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Source name + date */
.mm-source-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mm-source-name {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.2;
}

.mm-source-date {
    font-size: 12px;
    color: #8a9ab5;
    line-height: 1.2;
}

/* ── Article title ───────────────────────────────────────────────────────── */
.mm-article-title {
    font-size: 15px;
    font-weight: 700;
    color: #0d1b3e;
    text-transform: uppercase;
    line-height: 1.45;
    letter-spacing: 0.2px;
    margin: 0 0 16px;
}

/* ── Quote block ─────────────────────────────────────────────────────────── */
.mm-quote-wrap {
    position: relative;
    flex: 1;
    padding: 0 4px;
    margin-bottom: 20px;
}

/* Big decorative quotation marks */
.mm-quote-mark {
    font-family: Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    color: #0d1b3e;
    line-height: 0;
    display: block;
}

.mm-quote-mark--open {
    margin-bottom: 6px;
    margin-top: 10px;
}

.mm-quote-mark--close {
    text-align: right;
    margin-top: 6px;
}

.mm-quote {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    font-style: normal;
}

/* ── Read more ───────────────────────────────────────────────────────────── */
.mm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #0d1b3e;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.mm-read-more:hover {
    opacity: 0.7;
    gap: 8px;
}

.mm-read-more svg {
    transition: transform 0.2s ease;
}

.mm-read-more:hover svg {
    transform: translate(2px, -2px);
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.mm-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.mm-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #c5cdd8;
    background: #ffffff;
    color: #5a6a80;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    padding: 0;
}

.mm-nav-btn:hover:not(:disabled),
.mm-nav-btn:hover:not(.slick-disabled) {
    border-color: #0d1b3e;
    color: #0d1b3e;
    background: #f5f8fc;
}

.mm-nav-btn:disabled,
.mm-nav-btn.slick-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 1024px ) {
    .mm-section-title { font-size: 28px; }
    .mm-card { padding: 22px 18px 18px; }
}

@media ( max-width: 640px ) {
    .mm-section-title { font-size: 22px; margin-bottom: 28px; }
    .mm-card { padding: 18px 14px 16px; }
    .mm-article-title { font-size: 14px; }
}
