.hero-section {
    min-height: min(100svh, 880px);
    padding: calc(var(--header-h) + 56px) 0 170px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--tni-navy-deep);
    z-index: 1;
    overflow: hidden;
}

.dynamic-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--hero-bg);
    z-index: 0;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.dynamic-hero-bg.is-fade {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 29, 58, 0.94) 0%, rgba(7, 29, 58, 0.78) 38%, rgba(7, 29, 58, 0.25) 72%, rgba(7, 29, 58, 0.1) 100%),
        linear-gradient(0deg, rgba(7, 29, 58, 0.7) 0%, rgba(7, 29, 58, 0) 35%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: block;
    margin-bottom: 18px;
    color: var(--tni-gold);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.9rem, 6.6vw, 5.6rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.5px;
    max-width: 10ch;
    margin-bottom: 26px;
}

.hero-motto {
    max-width: 44ch;
    padding-left: 16px;
    border-left: 3px solid var(--tni-gold);
    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.highlights-section {
    position: relative;
    z-index: 20;
    margin-top: -112px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.highlight-card {
    --org: var(--tni-blue);
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px 28px 28px;
    background: var(--org);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 28px 50px -30px rgba(7, 29, 58, 0.75);
    position: relative;
    overflow: hidden;
}

.highlight-card.card-pia {
    --org: var(--pia-blue);
}

.highlight-card.card-yasarini {
    --org: var(--yasarini-maroon);
}

.highlight-card.card-tk {
    --org: var(--tk-batik);
    background:
        linear-gradient(160deg, rgba(122, 44, 8, 0.86), rgba(92, 30, 6, 0.93)),
        url("../assets/batik-tk.webp") center / 420px auto;
}

.icon-box {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.icon-box img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    color: #fff;
}

.card-content p {
    font-size: 0.97rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 24px;
}

.highlight-card .btn-link,
.highlight-card .btn-link-tk {
    margin-top: auto;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.highlight-card .btn-link:hover,
.highlight-card .btn-link-tk:hover {
    background: #fff;
    border-color: #fff;
    color: var(--org);
}

.highlight-card.card-tk .btn-link-tk:hover {
    color: #7a2c08;
}

.intro-video-section {
    background: var(--light-grey);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.intro-video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--tni-navy-deep);
    box-shadow: 0 24px 50px -32px rgba(7, 29, 58, 0.6);
}

.intro-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.intro-grid:has(iframe[src=""]),
.intro-grid:has(iframe:not([src])) {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.intro-grid:has(iframe[src=""]) .intro-video-wrapper,
.intro-grid:has(iframe:not([src])) .intro-video-wrapper {
    display: none;
}

.intro-grid:has(iframe[src=""]) .btn-group,
.intro-grid:has(iframe:not([src])) .btn-group {
    justify-content: center;
}

.intro-grid:has(iframe[src=""]) .intro-text h2::after,
.intro-grid:has(iframe:not([src])) .intro-text h2::after {
    margin-left: auto;
    margin-right: auto;
}

.intro-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--tni-blue);
    margin-bottom: 22px;
}

.intro-text h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 18px;
    background: var(--tni-gold);
}

.intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3d4b60;
    text-align: justify;
}

.intro-text .btn-group {
    margin-top: 30px;
}

.latest-news-section {
    background: #fff;
}

.latest-news-section .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-loading,
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

.latest-news-section .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    overflow: hidden;
}

.latest-news-section .news-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e6ecf3;
}

.latest-news-section .news-thumb > .frame {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.latest-news-section .news-card:hover .frame-media {
    transform: scale(1.04);
}

.latest-news-section .news-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 22px;
}

.latest-news-section .news-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.latest-news-section .news-content h3 {
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-grey);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.latest-news-section .news-card:hover h3 {
    color: var(--tni-sky);
}

.latest-news-section .news-content p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #556378;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-section .news-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.latest-news-section .news-card:first-child .news-thumb {
    aspect-ratio: auto;
    flex: 1;
    min-height: 300px;
}

.latest-news-section .news-card:first-child .news-content {
    flex: 0 0 auto;
    padding: 24px 28px 28px;
}

.latest-news-section .news-card:first-child h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.latest-news-section .news-card:first-child p {
    font-size: 1rem;
}

.latest-news-section .news-card:only-child,
.latest-news-section .news-card:first-child:nth-last-child(2) {
    grid-row: auto;
}

@media (max-width: 992px) {
    .highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-card.card-tk {
        grid-column: 1 / -1;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .latest-news-section .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .latest-news-section .news-card:first-child {
        grid-row: auto;
    }

    .latest-news-section .news-card:first-child .news-thumb {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 82svh;
        padding: calc(var(--header-h) + 40px) 0 120px;
        align-items: flex-end;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(7, 29, 58, 0.95) 0%, rgba(7, 29, 58, 0.75) 45%, rgba(7, 29, 58, 0.35) 100%);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .hero-title {
        margin-bottom: 20px;
    }

    .hero-motto {
        font-size: 0.98rem;
    }

    .hero-actions {
        margin-top: 28px;
    }

    .hero-actions a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .highlights-section {
        margin-top: -72px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .highlight-card.card-tk {
        grid-column: auto;
    }

    .highlight-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 20px;
    }

    .icon-box {
        width: 58px;
        height: 58px;
    }

    .icon-box img {
        width: 42px;
        height: 42px;
    }

    .card-content h3 {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }

    .card-content p {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }

    .intro-text p {
        font-size: 0.98rem;
    }

    .latest-news-section .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .latest-news-section .news-card:first-child {
        grid-column: auto;
    }

    .latest-news-section .news-card:first-child h3 {
        font-size: 1.6rem;
    }

    .latest-news-section .news-card:not(:first-child) {
        flex-direction: row;
        height: auto;
    }

    .latest-news-section .news-card:not(:first-child) .news-thumb {
        width: 38%;
        flex-shrink: 0;
        aspect-ratio: auto;
        min-height: 112px;
    }

    .latest-news-section .news-card:not(:first-child) .news-content {
        padding: 12px 14px;
    }

    .latest-news-section .news-card:not(:first-child) .news-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .latest-news-section .news-card:not(:first-child) .news-content p {
        display: none;
    }

    .latest-news-section .news-card:not(:first-child) .category-badge {
        display: none;
    }
}
