/* ===========================================================
   APAK3 — theme.css
   =========================================================== */

:root {
    --c-navy: #15466B;
    --c-navy-dark: #0F3552;
    --c-green: #318D61;
    --c-white: #FFFFFF;
    --c-ink: #1B2733;
    --c-muted: #5B6B7A;

    --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --header-height: 84px;
    --header-height-mobile: 68px;
    --wrap-width: 1200px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-ink);
    background: var(--c-white);
    padding-top: var(--header-height);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--c-navy);
    margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
    max-width: var(--wrap-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    height: var(--header-height);
    background: var(--c-white);
    box-shadow: 0 1px 0 rgba(21, 70, 107, 0.06);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, height 0.3s ease;
}

body.is-scrolled #site-header {
    height: 64px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(21, 70, 107, 0.10);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { position: relative; display: flex; align-items: center; }

.brand-logo {
    height: 68px;
    width: auto;
    transition: height 0.3s ease, opacity 0.2s ease;
}

body.is-scrolled #site-header .brand-logo { height: 56px; }

.brand-logo-white {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

/* has-hero: on pages that open with a full-bleed photo (Beranda, Media, Tentang
   Kami), the header starts transparent/overlaid on the photo (white logo +
   white nav text) and switches to its normal solid look as soon as the user
   scrolls a little. Desktop only — on mobile the header stays solid per the
   existing mobile nav design. */
@media (min-width: 881px) {
    body.has-hero { padding-top: 0; }

    body.has-hero:not(.is-scrolled) #site-header {
        background: transparent;
        box-shadow: none;
    }

    body.has-hero:not(.is-scrolled) .brand-logo-normal { opacity: 0; }
    body.has-hero:not(.is-scrolled) .brand-logo-white { opacity: 1; }

    body.has-hero:not(.is-scrolled) .main-nav a {
        color: var(--c-white);
    }

    /* The dropdown itself is always a solid white box, so its links must
       keep their normal navy color even while the header is transparent. */
    body.has-hero:not(.is-scrolled) .main-nav .submenu a {
        color: var(--c-navy);
    }

    body.has-hero:not(.is-scrolled) .btn-join {
        background: rgba(21, 70, 107, 0.35);
        border-color: var(--c-white);
    }
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-navy);
    padding: 8px 2px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--c-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav .caret {
    display: inline-block;
    font-size: 0.6rem;
    margin-left: 2px;
    transform: translateY(-1px);
}

.main-nav li.has-submenu {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.main-nav .submenu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    margin: 4px 0 0;
    padding: 8px;
    gap: 0;
    list-style: none;
    background: var(--c-white);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(21, 70, 107, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10;
}

.main-nav li.has-submenu:hover .submenu,
.main-nav li.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .submenu a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.main-nav .submenu a::after { content: none; }
.main-nav .submenu a:hover { background: rgba(21, 70, 107, 0.06); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-join {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--c-white);
    background: var(--c-navy);
    border: 1.5px solid transparent;
    padding: 9.5px 30.5px;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-join:hover { background: var(--c-navy-dark); }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
}

.menu-toggle:active { transform: scale(0.9); }

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--c-navy);
    border-radius: 1px;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                opacity 0.2s ease;
}

body.mobile-nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    transition-delay: 0.08s;
}
body.mobile-nav-open .menu-toggle span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
body.mobile-nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    transition-delay: 0.08s;
}

.mobile-nav,
.mobile-nav-backdrop {
    display: none;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 880px) {
    body { padding-top: var(--header-height-mobile); }
    #site-header,
    body.is-scrolled #site-header { height: var(--header-height-mobile); }
    .brand-logo,
    body.is-scrolled #site-header .brand-logo { height: 44px; }

    .main-nav,
    .header-actions .btn-join {
        display: none;
    }

    .header-inner { justify-content: flex-start; gap: 16px; }
    .header-actions { order: -1; }

    .menu-toggle { display: flex; }

    body.mobile-nav-open { overflow: hidden; }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 53, 82, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1090;
    }

    body.mobile-nav-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        bottom: 0;
        width: min(70vw, 260px);
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 12px 0 32px rgba(21, 70, 107, 0.18);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1100;
        overflow-y: auto;
    }

    body.mobile-nav-open .mobile-nav {
        transform: translateX(0);
    }

    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 8px 24px 24px;
        display: flex;
        flex-direction: column;
    }

    .mobile-nav a {
        display: block;
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--c-navy);
        padding: 18px 0;
        border-bottom: 1px solid rgba(21, 70, 107, 0.08);
    }

    .mobile-submenu {
        list-style: none;
        margin: 0 0 16px;
        padding: 0 0 0 16px;
        display: flex;
        flex-direction: column;
    }

    .mobile-submenu a {
        font-weight: 500;
        font-size: 0.9rem;
        color: var(--c-muted);
        padding: 12px 0;
        border-bottom: none;
    }

    .mobile-nav .btn-join {
        display: inline-block;
        margin-top: 12px;
        padding-left: 40px;
        padding-right: 40px;
        text-align: center;
        border-bottom: none;
        color: var(--c-white);
    }
}

/* ---------------------------------------------------------
   Hero (Beranda)
   --------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% center;
    display: block;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 53, 82, 0.90) 0%, rgba(15, 53, 82, 0.62) 45%, rgba(15, 53, 82, 0.25) 80%);
}

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

.hero-copy { max-width: 624px; }

.hero-copy h1 {
    color: var(--c-white);
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    line-height: 1.18;
    margin-bottom: 12px;
}

.hero-copy .accent { color: #8FE3B3; }

.hero-accent-line {
    display: block;
    width: 136px;
    height: 3px;
    border-radius: 2px;
    background: #8FE3B3;
    margin: 30px 0;
}

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 420px;
    margin: 0;
}

@media (max-width: 880px) {
    .hero { min-height: 460px; }

    .hero-inner { padding: 64px 24px; }

    .hero-scrim {
        background: linear-gradient(180deg, rgba(15, 53, 82, 0.55) 0%, rgba(15, 53, 82, 0.88) 70%);
    }

    .hero-lead { max-width: none; }
}

/* ---------------------------------------------------------
   Tentang Kami preview (Beranda)
   --------------------------------------------------------- */

.about-preview { padding: 90px 0; }

.about-preview h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin-bottom: 32px;
}

.about-preview-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.about-preview-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 8;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.about-preview-deco {
    position: absolute;
    inset: 0;
    width: 48%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    pointer-events: none;
}

.about-preview-watermark {
    position: absolute;
    left: 18px;
    bottom: 14px;
    width: 174px;
    height: auto;
    opacity: 0.16;
    pointer-events: none;
}

.about-preview-body h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.about-preview-body p {
    color: var(--c-muted);
    line-height: 1.75;
    margin: 0;
}

.about-preview-body a {
    color: var(--c-green);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .about-preview { padding: 56px 0; }
    .about-preview-photo { aspect-ratio: 4 / 3; }
    .about-preview-banner .about-preview-deco,
    .about-preview-banner .about-preview-watermark { display: none; }
}

/* ---------------------------------------------------------
   Brand yang Tergabung (Beranda)
   --------------------------------------------------------- */

.brands {
    padding: 90px 0 24px;
}

.brands h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin-bottom: 32px;
}

.brands-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brands-nav {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(21, 70, 107, 0.15);
    background: var(--c-white);
    color: var(--c-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.brands-nav svg { width: 18px; height: 18px; }

.brands-nav:hover {
    background: rgba(21, 70, 107, 0.06);
    border-color: rgba(21, 70, 107, 0.3);
}

.brands-track-wrap {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.brands-track-wrap::-webkit-scrollbar {
    display: none;
}

.brands-track-wrap {
    cursor: grab;
}

.brands-track-wrap.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.brands-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 32px;
}

.brand-item {
    flex: 0 0 auto;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.brand-item img {
    max-width: 96px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-icon {
    width: 40px;
    height: 40px;
    fill: var(--c-muted);
}

/* ---------------------------------------------------------
   Founder (Beranda)
   --------------------------------------------------------- */

.founders {
    background: #F4F6F8;
    padding: 90px 0;
}

.founders h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin-bottom: 32px;
}

.founders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.founder-card {
    flex: 0 1 calc(25% - 18px);
    background: var(--c-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(21, 70, 107, 0.08);
}

.founder-photo {
    aspect-ratio: 1 / 1;
    background: rgba(21, 70, 107, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--c-navy);
    font-size: 0.95rem;
    padding: 16px 16px 4px;
}

.founder-company {
    color: var(--c-muted);
    font-size: 0.85rem;
    padding: 0 16px 18px;
}

@media (max-width: 880px) {
    .founder-card { flex-basis: calc(50% - 12px); }
}

@media (max-width: 720px) {
    .founders { padding: 56px 0; }
    .brands { padding: 56px 0 16px; }
}

/* ---------------------------------------------------------
   Testimoni (Beranda)
   --------------------------------------------------------- */

.testimonials { padding: 90px 0; }

.testimonials h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin-bottom: 32px;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.testimonial-card {
    flex: 0 1 calc(33.333% - 16px);
    background: var(--c-white);
    border: 1px solid rgba(21, 70, 107, 0.10);
    border-radius: 12px;
    padding: 28px;
}

.testimonial-quote {
    font-size: 1.02rem;
    color: var(--c-ink);
    line-height: 1.6;
    margin: 0 0 24px;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--c-navy);
    font-size: 0.92rem;
}

.testimonial-role {
    color: var(--c-muted);
    font-size: 0.82rem;
}

@media (max-width: 880px) {
    .testimonial-card { flex-basis: calc(50% - 12px); }
}

@media (max-width: 620px) {
    .testimonial-card { flex-basis: 100%; }
}

@media (max-width: 720px) {
    .testimonials { padding: 56px 0; }
}

/* ---------------------------------------------------------
   Artikel (Beranda)
   --------------------------------------------------------- */

.articles { padding: 90px 0 100px; }

.articles-heading {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    grid-area: heading;
    margin: 0;
}

.articles-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas:
        "heading image"
        "list    image";
    gap: 48px;
    align-items: start;
}

.articles-list { grid-area: list; }
.articles-image { grid-area: image; }

.articles-list {
    display: flex;
    flex-direction: column;
}

.articles-list-item {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid rgba(21, 70, 107, 0.10);
}

.articles-list-item:first-child { padding-top: 0; }
.articles-list-item:last-child { border-bottom: none; }

.article-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-green);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.articles-list-item h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0 0 8px;
    transition: color 0.2s ease;
}

.articles-list-item:hover h3 { color: var(--c-green); }

.articles-list-item p {
    color: var(--c-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.articles-image {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
}

.articles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

@media (max-width: 880px) {
    .articles-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "image"
            "list";
        gap: 28px;
    }
    .articles-heading { margin-bottom: 0; }
    .articles-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
    .articles { padding: 56px 0 64px; }
}

/* ---------------------------------------------------------
   Detail Artikel (item.html.twig)
   --------------------------------------------------------- */

.article-detail { padding: 56px 0 100px; }

.article-detail-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-back {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--c-muted);
    font-size: 0.9rem;
}

.article-back:hover { color: var(--c-navy); }

.article-detail time.article-date {
    display: block;
    color: var(--c-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.article-detail h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 28px;
}

.article-detail-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.article-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-detail-body {
    color: var(--c-ink);
    line-height: 1.8;
}

.article-detail-body p { margin: 0 0 20px; }

/* ---------------------------------------------------------
   Kegiatan detail — Instagram-style photo carousel
   (kegiatan-item.html.twig)
   --------------------------------------------------------- */

.kegiatan-detail { padding: 56px 0 100px; }

.kegiatan-detail-inner {
    max-width: 560px;
    margin: 0 auto;
}

.kegiatan-detail time.article-date {
    display: block;
    color: var(--c-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.kegiatan-detail h1 {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    margin-bottom: 24px;
}

.ig-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #F4F6F8;
    margin-bottom: 20px;
}

.ig-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ig-carousel-track::-webkit-scrollbar { display: none; }

.ig-slide {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
}

.ig-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ig-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 53, 82, 0.55);
    color: var(--c-white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.ig-nav:hover { background: rgba(15, 53, 82, 0.85); }
.ig-nav-prev { left: 12px; }
.ig-nav-next { right: 12px; }

.ig-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.ig-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ig-dot.active {
    background: var(--c-white);
    transform: scale(1.3);
}

.kegiatan-caption {
    color: var(--c-ink);
    line-height: 1.7;
}

.kegiatan-caption p { margin: 0 0 16px; }

@media (max-width: 620px) {
    .ig-nav { display: none; }
}

/* ---------------------------------------------------------
   Page hero banner (shared: partials/page-hero.html.twig)
   Used by: Media hub, Tentang Kami, and other inner pages.
   --------------------------------------------------------- */

.page-hero {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.page-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 53, 82, 0.80), rgba(15, 53, 82, 0.05) 65%);
}

.page-hero-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 36px;
}

.page-hero-inner h1 {
    color: var(--c-white);
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin: 10px 0 0;
}

@media (max-width: 720px) {
    .page-hero { height: 220px; }
}

/* ---------------------------------------------------------
   Media hub & kategori (media.html.twig, category.html.twig)
   --------------------------------------------------------- */

.category-listing { padding: 56px 0 100px; }

.category-listing h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 12px 0 32px;
}

.media-section { padding: 48px 0; }
.media-section:nth-child(even) { background: #F4F6F8; }

.media-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.media-section-head h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    margin: 0;
}

.media-see-all {
    color: var(--c-green);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.category-card {
    flex: 0 1 calc(33.333% - 16px);
    display: block;
    background: var(--c-white);
    border: 1px solid rgba(21, 70, 107, 0.10);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
    box-shadow: 0 12px 28px rgba(21, 70, 107, 0.12);
    transform: translateY(-2px);
}

.category-card-thumb {
    aspect-ratio: 4 / 3;
    background: rgba(21, 70, 107, 0.06);
}

.category-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card-body { padding: 20px; }

.category-card-body h3 {
    font-size: 1.02rem;
    line-height: 1.4;
    margin: 0 0 10px;
}

.category-card-body p {
    color: var(--c-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.category-empty {
    color: var(--c-muted);
    font-size: 0.95rem;
}

@media (max-width: 880px) {
    .category-card { flex-basis: calc(50% - 12px); }
}

@media (max-width: 620px) {
    .category-card { flex-basis: 100%; }
    .media-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------------------------------------------------------
   Tentang Kami (about.html.twig)
   --------------------------------------------------------- */

.about-header { padding: 56px 0 24px; }

.about-header h1 { margin-bottom: 10px; }

.about-subtitle {
    color: var(--c-muted);
    font-size: 1.05rem;
    margin: 0;
}

.about-banner { padding-bottom: 36px; }

.about-banner-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-banner-photo {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}

.about-banner-wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 800px;
    height: 600px;
    object-fit: cover;
    object-position: left center;
}

.about-banner-watermark {
    position: absolute;
    left: 16px;
    bottom: 62px;
    width: auto;
    height: 344px;
    pointer-events: none;
}

@media (max-width: 720px) {
    .about-banner-wave,
    .about-banner-watermark { display: none; }
}

.about-intro { padding: 0 0 70px; }

.about-intro p {
    color: var(--c-ink);
    line-height: 1.8;
    margin: 0 0 20px;
}

.about-intro p:last-child { margin-bottom: 0; }

.about-visimisi { padding-bottom: 100px; }

.visimisi-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: stretch;
}

.visi-card,
.misi-card {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.visi-card {
    background: var(--c-navy);
    color: var(--c-white);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.visi-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visi-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 53, 82, 0) 40%, rgba(15, 53, 82, 0.92) 78%);
}

.visi-card-body {
    position: relative;
    z-index: 1;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.misi-card {
    background: var(--c-white);
    border: 1px solid rgba(21, 70, 107, 0.10);
}

.misi-card-header {
    background: var(--c-navy);
    padding: 22px 32px;
}

.misi-card-body { padding: 32px; }

.visi-card h2,
.misi-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    margin: 0 0 14px;
}

.visi-card h2 { color: var(--c-white); }
.misi-card h2 { color: var(--c-white); margin-bottom: 0; }

.section-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.section-icon svg { width: 100%; height: 100%; }

.visi-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

.misi-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.misi-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.misi-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(49, 141, 97, 0.10);
    color: var(--c-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.misi-icon svg { width: 20px; height: 20px; }

.misi-list p {
    margin: 0;
    padding-top: 8px;
    color: var(--c-ink);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 880px) {
    .visimisi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .about-visimisi { padding-bottom: 64px; }
    .about-intro { padding-bottom: 48px; }
    .visi-card { min-height: 420px; }
    .visi-card-body { padding: 28px 24px; }
    .misi-card-header { padding: 20px 24px; }
    .misi-card-body { padding: 28px 24px; }
}

/* ---------------------------------------------------------
   Bergabung (join.html.twig) + Grav form plugin styling
   --------------------------------------------------------- */

.join-section { padding: 56px 0 100px; }

.join-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.join-form-col h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 28px;
}

.join-image {
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.join-image img {
    width: 100%;
    aspect-ratio: 497 / 600;
    object-fit: cover;
    display: block;
}

/* Grav form plugin fallback classes (no theme-level twig_vars override needed) */

#bergabung-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.form-field {
    flex-basis: 100%;
    margin-bottom: 18px;
}

/* No HP + E-mail side by side, Perusahaan + Jabatan side by side.
   These are the 2nd/3rd/4th/5th `.form-field` divs in the Bergabung
   form's field order (Nama, No HP, E-mail, Perusahaan, Jabatan, Pesan). */
#bergabung-form .form-field:nth-of-type(2),
#bergabung-form .form-field:nth-of-type(3),
#bergabung-form .form-field:nth-of-type(4),
#bergabung-form .form-field:nth-of-type(5) {
    flex-basis: calc(50% - 10px);
}

#bergabung-form .buttons { flex-basis: 100%; }

.form-label label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--c-navy);
    margin-bottom: 6px;
}

.form-label .required { color: #C0392B; margin-left: 2px; }

.form-input-wrapper input,
.form-input-wrapper textarea,
.form-input-wrapper select,
.form-textarea-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(21, 70, 107, 0.20);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-ink);
    background: var(--c-white);
    transition: border-color 0.2s ease;
}

.form-input-wrapper input:focus,
.form-input-wrapper textarea:focus,
.form-input-wrapper select:focus {
    outline: none;
    border-color: var(--c-navy);
}

.form-input-wrapper textarea,
.form-textarea-wrapper textarea { resize: vertical; min-height: 120px; }

.form-honeybear { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-errors {
    color: #C0392B;
    font-size: 0.82rem;
    margin-top: 6px;
}

.notices {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.notices p { margin: 0; }
.notices.success { background: rgba(49, 141, 97, 0.10); color: var(--c-green); }
.notices.error { background: rgba(192, 57, 43, 0.10); color: #C0392B; }
.notices.warning { background: rgba(176, 138, 62, 0.12); color: #8A6A1F; }

button[type="submit"] {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--c-white);
    background: var(--c-navy);
    border: none;
    padding: 12px 34px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover { background: var(--c-navy-dark); }

@media (max-width: 880px) {
    .join-grid { grid-template-columns: 1fr; }
    .join-image { position: static; order: -1; aspect-ratio: 4 / 3; }
    .join-image img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
    #bergabung-form .form-field:nth-of-type(2),
    #bergabung-form .form-field:nth-of-type(3),
    #bergabung-form .form-field:nth-of-type(4),
    #bergabung-form .form-field:nth-of-type(5) {
        flex-basis: 100%;
    }
}

/* ---------------------------------------------------------
   Anggota (anggota.html.twig)
   --------------------------------------------------------- */

.struktur-section { padding: 56px 0 90px; }

.struktur-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.struktur-image {
    border-radius: 16px;
    overflow: hidden;
}

.struktur-image img {
    width: 100%;
    aspect-ratio: 9 / 10;
    object-fit: cover;
    display: block;
}

.struktur-body h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 20px;
}

.struktur-body p {
    color: var(--c-ink);
    line-height: 1.8;
    margin: 0 0 16px;
}

.struktur-body p:last-child { margin-bottom: 0; }

.kepengurusan-section { padding: 0 0 100px; }

.kepengurusan-section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin-bottom: 32px;
}

.kepengurusan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.kepengurusan-card {
    flex: 0 1 calc(25% - 18px);
    background: var(--c-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(21, 70, 107, 0.08);
}

.kepengurusan-photo {
    aspect-ratio: 1 / 1;
    background: rgba(21, 70, 107, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
}

.kepengurusan-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kepengurusan-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--c-navy);
    font-size: 0.95rem;
    padding: 16px 16px 2px;
}

.kepengurusan-company {
    color: var(--c-muted);
    font-size: 0.85rem;
    padding: 0 16px 4px;
}

.kepengurusan-role {
    color: var(--c-green);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0 16px 16px;
}

@media (max-width: 880px) {
    .struktur-grid { grid-template-columns: 1fr; }
    .kepengurusan-card { flex-basis: calc(50% - 12px); }
}

@media (max-width: 620px) {
    .struktur-section { padding: 40px 0 56px; }
    .kepengurusan-section { padding-bottom: 64px; }
}

/* ---------------------------------------------------------
   Temporary page stub (dihapus setelah konten halaman dibuat)
   --------------------------------------------------------- */

.page-stub {
    padding: 80px 0;
    min-height: 40vh;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

#site-footer {
    background: var(--c-white);
    border-top: 1px solid rgba(21, 70, 107, 0.10);
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.4fr;
    gap: 48px;
    padding: 56px 24px 40px;
}

.footer-brand .brand-logo { height: 68px; margin-bottom: 20px; }

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--c-navy);
}

.footer-social svg { width: 24px; height: 24px; }

#site-footer h4 {
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu a,
.footer-contact-cols a {
    color: var(--c-muted);
    font-size: 0.92rem;
    white-space: nowrap;
}

.footer-menu a:hover,
.footer-contact-cols a:hover {
    color: var(--c-navy);
}

.footer-contact-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.footer-contact-cols .label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--c-navy);
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(21, 70, 107, 0.10);
    padding: 20px 24px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--c-muted);
}

@media (max-width: 720px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "menu contact";
        gap: 32px 20px;
        padding: 48px 24px 32px;
    }

    .footer-brand { grid-area: brand; }
    .footer-menu { grid-area: menu; }
    .footer-contact { grid-area: contact; }

    .footer-contact-cols { flex-direction: column; }
}

/* ---------------------------------------------------------
   Back to top
   --------------------------------------------------------- */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--c-navy);
    color: var(--c-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(21, 70, 107, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}

.back-to-top svg { width: 20px; height: 20px; }

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover { background: var(--c-navy-dark); }

@media (max-width: 720px) {
    .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}
