﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "bitter", serif;
    font-weight: 400;
    color: #171717;
    background: #f3f3f5;
    line-height: 1.55;
}

a {
    color: var(--fadecs-dark-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 0 20px;
}

.section-gap {
    padding: 2.4rem 0;
}

.site-main {
    display: block;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 0.9rem;
}

.branding-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo-wrap img,
.custom-logo-link img {
    max-height: 74px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-title {
    font-size: clamp(2rem, 2.5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--fadecs-dark-blue);
}

.site-description {
    margin: 0;
    color: var(--fadecs-dark-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.header-reference-image {
    width: clamp(90px, 9vw, 138px);
    height: auto;
}

.social-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-links a {
    color: #4b5563;
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
}

.main-navigation {
    background: var(--fadecs-primary);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    position: relative;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.main-menu a {
    color: #ffffff;
    font-size: 0.94rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    display: block;
    padding: 0.95rem 0;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    text-decoration: none;
    color: #f4ecff;
}

.hero {
    min-height: clamp(250px, 35vw, 390px);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2));
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-featured-box {
    background: rgba(255, 255, 255, 0.95);
    max-width: min(90%, 640px);
    padding: 1.3rem 1.5rem;
    border-left: 8px solid var(--fadecs-primary);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.hero-kicker {
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    color: var(--fadecs-primary);
    letter-spacing: 0.04em;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.7vw, 2.6rem);
    line-height: 1.15;
}

.hero-title a {
    color: #191919;
}

.featured-split-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 1.3rem;
    align-items: stretch;
}

.featured-split-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 3px;
}

.featured-split-content {
    background: #ffffff;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.featured-split-content h2 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    line-height: 1.2;
}

.featured-split-content p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.04rem;
}

.button-link {
    display: inline-block;
    padding: 0.55rem 1.05rem;
    background: var(--fadecs-primary);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
}

.button-link:hover,
.button-link:focus {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(1.08);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-card {
    background: var(--fadecs-soft-lilac);
    border: 1px solid rgba(51, 0, 154, 0.12);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.home-card-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.home-card-content {
    padding: 1rem;
}

.home-card-content h3 {
    margin: 0 0 0.55rem;
    line-height: 1.2;
    font-size: 1.42rem;
}

.home-card-content p {
    margin: 0;
}

.chips {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip {
    font-size: 0.76rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
}

.publications {
    background: var(--fadecs-secondary);
    color: #ffffff;
}

.publications .section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 2.5vw, 2.7rem);
    color: #ffffff;
}

.carousel-wrap {
    position: relative;
}

.carousel {
    overflow: hidden;
    padding: 0.2rem 0;
    position: relative;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (1rem * 3)) / 4);
    gap: 1rem;
    transition: transform 0.35s ease;
    will-change: transform;
}

.carousel-item {
    min-width: 0;
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--fadecs-secondary);
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.carousel-btn.is-prev {
    left: -10px;
}

.carousel-btn.is-next {
    right: -10px;
}

.carousel-btn[disabled] {
    opacity: 0.45;
    cursor: default;
}

.productions {
    background: #ffffff;
}

.section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    color: #1f2937;
}

.section-title-blue {
    color: var(--fadecs-secondary);
}

.productions-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.production-main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 1fr;
    gap: 1rem;
}

.production-main-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.production-main-content h3,
.production-list-item h3 {
    margin: 0.15rem 0 0;
    line-height: 1.2;
    font-size: 1.95rem;
}

.production-main-content p {
    margin-bottom: 0;
}

.mini-label {
    color: #667085;
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.production-list {
    border-left: 1px solid rgba(0, 0, 0, 0.16);
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
}

.production-list-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    padding-bottom: 0.75rem;
}

.production-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.production-list-item h3 {
    font-size: 1.75rem;
}

.site-footer {
    margin-top: 1rem;
    background: var(--fadecs-footer-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 1rem;
    align-items: center;
    padding-top: 2.3rem;
    padding-bottom: 2.3rem;
}

.site-footer h2 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    font-size: 1.5rem;
}

.footer-credits p {
    margin: 0;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li + li {
    margin-top: 0.4rem;
}

.footer-menu a {
    text-transform: uppercase;
    font-size: 0.83rem;
    color: #1f2937;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem;
}

.footer-logo {
    max-height: 52px;
    width: auto;
}

.footer-bottom-line {
    height: 9px;
    background: var(--fadecs-primary);
}

.content-list,
.single-content,
.page-content {
    background: #ffffff;
}

.archive-header {
    margin-bottom: 1rem;
}

.archive-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 16px rgba(2, 6, 23, 0.08);
    background: #ffffff;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card-content {
    padding: 0.95rem;
}

.post-card-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    line-height: 1.2;
}

.narrow-content {
    width: min(100%, 860px);
}

.single-header h1,
.page-header h1 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}

.single-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.single-thumb {
    margin: 0 0 1rem;
}

.single-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.single-tags {
    margin-top: 1.25rem;
}

.single-tags .chip {
    margin-right: 0.35rem;
}

.pagination,
.nav-links {
    margin-top: 1.4rem;
}

.page-numbers {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.14);
    padding: 0.2rem 0.65rem;
    margin-right: 0.2rem;
    border-radius: 4px;
}

.page-numbers.current {
    background: var(--fadecs-primary);
    color: #ffffff;
    border-color: var(--fadecs-primary);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 1024px) {
    .carousel-track {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }

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

    .production-main-content h3,
    .production-list-item h3 {
        font-size: 1.65rem;
    }
}

@media (max-width: 900px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        align-items: flex-start;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-navigation .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--fadecs-primary);
        padding: 0.5rem 1rem 1rem;
        z-index: 10;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .main-navigation.is-open .main-menu {
        display: flex;
    }

    .featured-split-grid,
    .cards-grid,
    .productions-grid,
    .production-main,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .production-list {
        border-left: 0;
        padding-left: 0;
    }

    .footer-logos {
        justify-content: flex-start;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-description {
        font-size: 1rem;
    }

    .hero-featured-box {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .carousel-track {
        grid-auto-columns: 100%;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .carousel-btn.is-prev {
        left: 2px;
    }

    .carousel-btn.is-next {
        right: 2px;
    }
}
