/* =========================================================
   MTIC HOMEPAGE - HIGHLIGHT SECTION
   File: assets/css/_highlight.css
   No section background. Use homepage background instead.
   ========================================================= */

.mtic-highlights {
    position: relative;
    overflow: visible;
    padding: var(--mtic-spacing-lg) 0 var(--mtic-spacing-lg);
    background: transparent;
}

.mtic-highlights::before,
.mtic-highlights::after {
    display: none;
    content: none;
}

.mtic-highlights__container {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 88px));
    margin: 0 auto;
}

/* Header */
.mtic-highlights__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 46px;
}

.mtic-highlights__heading {
    margin: 0;
    color: var(--mtic-teal);
    font-size: 2.375rem;
    font-weight: 620;
    line-height: 1;
    letter-spacing: -0.035em;
}

.mtic-highlights__arrows {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 10px;
}

.mtic-highlights__arrow {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(var(--mtic-teal-rgb), 0.42);
    padding: 0;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.mtic-highlights__arrow--next {
    background: var(--mtic-teal);
}

.mtic-highlights__arrow:hover,
.mtic-highlights__arrow:focus {
    background: var(--mtic-dark-green);
    transform: translateY(-1px);
    outline: none;
}

/* Layout */
.mtic-highlights__layout {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 583px);
    gap: 0 28px;
    align-items: start;
}

/* Featured */
.mtic-highlights__featured,
.mtic-highlights__featured-content,
.mtic-highlights__featured-body,
.mtic-highlights__featured-title,
.mtic-highlights__featured-excerpt {
    background: transparent !important;
}

.mtic-highlights__featured {
    min-width: 0;
}

.mtic-highlights__featured-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mtic-highlights__featured-image {
    display: block;
    width: 100%;
    height: 410px;
    overflow: hidden;
    background: transparent;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mtic-highlights__featured-image img:not(.mtic-highlights__placeholder-logo),
.mtic-highlights__featured-image .wp-post-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.mtic-highlights__featured:hover .mtic-highlights__featured-image,
.mtic-highlights__featured-image-link:hover .mtic-highlights__featured-image,
.mtic-highlights__featured-image-link:focus-visible .mtic-highlights__featured-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.mtic-highlights__featured:hover .mtic-highlights__featured-image img:not(.mtic-highlights__placeholder-logo),
.mtic-highlights__featured:hover .mtic-highlights__featured-image .wp-post-image,
.mtic-highlights__featured-image-link:hover .mtic-highlights__featured-image img:not(.mtic-highlights__placeholder-logo),
.mtic-highlights__featured-image-link:hover .mtic-highlights__featured-image .wp-post-image,
.mtic-highlights__featured-image-link:focus-visible .mtic-highlights__featured-image img:not(.mtic-highlights__placeholder-logo),
.mtic-highlights__featured-image-link:focus-visible .mtic-highlights__featured-image .wp-post-image {
    transform: scale(1.04);
}

.mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo {
    transition: transform 0.4s ease;
}

.mtic-highlights__featured:hover .mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo,
.mtic-highlights__featured-image-link:hover .mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo,
.mtic-highlights__featured-image-link:focus-visible .mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo {
    transform: scale(1.05);
}

.mtic-highlights__featured-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mtic-primary);
}

.mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo {
    display: block;
    width: 50%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}

.mtic-highlights__featured-content {
    padding-top: 16px;
    color: #000000;
}

.mtic-highlights__featured-title {
    margin: 0 0 8px;
    max-width: 650px;
    color: #000000;
    font-size: clamp(25px, 1.65vw, 30px);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.mtic-highlights__featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mtic-highlights__featured:hover .mtic-highlights__featured-title a,
.mtic-highlights__featured-title a:hover,
.mtic-highlights__featured-title a:focus {
    color: var(--mtic-dark-green);
}

.mtic-highlights__featured-excerpt {
    margin: 12px 0 0;
    max-width: 670px;
    color: #4c4c4c;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: justify;
}

/* Meta */
.mtic-highlights__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
}

.mtic-highlights__category {
    color: var(--mtic-teal);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1;
}

.mtic-highlights__category:hover,
.mtic-highlights__category:focus {
    color: var(--mtic-dark-green);
}

.mtic-highlights__date {
    color: #707070;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
}

.mtic-highlights__category + .mtic-highlights__date::before {
    content: " • ";
    color: #2e2e2e;
    font-weight: 600;
    margin: 0 4px;
}

/* Scrollable cards rail */
.mtic-highlights__scroll-list {
    display: grid;
    grid-template-rows: repeat(3, 170px);
    gap: 18px;
    min-width: 0;
}

.mtic-highlights__scroll-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(var(--mtic-teal-rgb), 0.08);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mtic-highlights__scroll-card:hover,
.mtic-highlights__scroll-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    outline: none;
}

.mtic-highlights__scroll-media {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--mtic-teal);
}

.mtic-highlights__scroll-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 14px 0;
    min-width: 0;
}

.mtic-highlights__scroll-card:has(.mtic-highlights__thumb-placeholder) .mtic-highlights__scroll-media {
    background: var(--mtic-primary);
}

.mtic-highlights__scroll-media img:not(.mtic-highlights__thumb-placeholder-logo),
.mtic-highlights__scroll-media .wp-post-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.mtic-highlights__scroll-card:hover img:not(.mtic-highlights__thumb-placeholder-logo),
.mtic-highlights__scroll-card:hover .wp-post-image,
.mtic-highlights__scroll-card:focus-visible img:not(.mtic-highlights__thumb-placeholder-logo),
.mtic-highlights__scroll-card:focus-visible .wp-post-image {
    transform: scale(1.06);
}

.mtic-highlights__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--mtic-primary);
}

.mtic-highlights__scroll-card .mtic-highlights__thumb-placeholder-logo {
    display: block;
    width: 85%;
    max-width: 110px;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.mtic-highlights__scroll-card:hover .mtic-highlights__thumb-placeholder-logo,
.mtic-highlights__scroll-card:focus-visible .mtic-highlights__thumb-placeholder-logo {
    transform: scale(1.05);
    opacity: 1;
}

.mtic-highlights__side-title {
    margin: 0;
    max-width: none;
    color: #000000;
    font-size: clamp(20px, 1.15vw, 23px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mtic-highlights__side-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mtic-highlights__scroll-card:hover .mtic-highlights__side-title,
.mtic-highlights__scroll-card:focus-visible .mtic-highlights__side-title,
.mtic-highlights__scroll-card:hover .mtic-highlights__side-title a,
.mtic-highlights__side-title a:hover,
.mtic-highlights__side-title a:focus {
    color: var(--mtic-dark-green);
}

.mtic-highlights__side-excerpt {
    margin: 0;
    max-width: none;
    color: #555555;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hidden in reference, kept for accessibility/future use */
.mtic-highlights__view-all {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .mtic-highlights__featured-image,
    .mtic-highlights__featured-image img,
    .mtic-highlights__featured-image .wp-post-image,
    .mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo,
    .mtic-highlights__scroll-card,
    .mtic-highlights__scroll-media img,
    .mtic-highlights__scroll-media .wp-post-image,
    .mtic-highlights__scroll-card .mtic-highlights__thumb-placeholder-logo,
    .mtic-highlights__featured-title a,
    .mtic-highlights__side-title a {
        transition: none;
    }

    .mtic-highlights__featured:hover .mtic-highlights__featured-image,
    .mtic-highlights__featured-image-link:hover .mtic-highlights__featured-image,
    .mtic-highlights__scroll-card:hover,
    .mtic-highlights__scroll-card:focus-visible {
        transform: none;
    }

    .mtic-highlights__featured:hover .mtic-highlights__featured-image img:not(.mtic-highlights__placeholder-logo),
    .mtic-highlights__featured:hover .mtic-highlights__featured-image .wp-post-image,
    .mtic-highlights__featured-image-link:hover .mtic-highlights__featured-image img:not(.mtic-highlights__placeholder-logo),
    .mtic-highlights__scroll-card:hover img:not(.mtic-highlights__thumb-placeholder-logo),
    .mtic-highlights__scroll-card:hover .wp-post-image,
    .mtic-highlights__scroll-card:hover .mtic-highlights__thumb-placeholder-logo,
    .mtic-highlights__featured:hover .mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .mtic-highlights__container {
        width: min(1000px, calc(100% - 48px));
    }

    .mtic-highlights__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .mtic-highlights__featured-image {
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        box-shadow: 0 5px 8px rgba(0, 0, 0, 0.25);
    }

    .mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo,
    .mtic-highlights__scroll-card .mtic-highlights__thumb-placeholder-logo {
        width: 90%;
        max-width: 200px;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .mtic-highlights {
        padding: 50px 0 56px;
    }

    .mtic-highlights__container {
        width: min(100% - 32px, 640px);
    }

    .mtic-highlights__header {
        margin-bottom: 30px;
    }

    .mtic-highlights__featured-image--placeholder .mtic-highlights__placeholder-logo,
    .mtic-highlights__scroll-card .mtic-highlights__thumb-placeholder-logo {
        max-width: 220px;
    }

    .mtic-highlights__featured-title {
        font-size: 1.5625rem;
    }

    .mtic-highlights__side-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .mtic-highlights__header {
        align-items: flex-start;
    }

    .mtic-highlights__arrows {
        margin-right: 0;
    }

    .mtic-highlights__featured-title {
        font-size: 1.5rem;
    }

    .mtic-highlights__featured-excerpt {
        text-align: left;
    }
}
