/* =========================================================
   STRUKTUR DESA KANDANG
========================================================= */

/* =========================================================
   REVEAL
========================================================= */

.struktur-reveal {
    opacity: 0;

    transform: translateY(35px);

    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.struktur-reveal.struktur-visible {
    opacity: 1;

    transform: translateY(0);
}

/* =========================================================
   HERO
========================================================= */

.struktur-hero {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #022c22;
}

.struktur-pattern {
    position: absolute;
    inset: 0;

    opacity: 0.1;

    background-image: linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.12) 25%,
            transparent 25%
        ),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%);

    background-size: 65px 65px;
}

.struktur-glow {
    position: absolute;

    width: 470px;
    height: 470px;

    border-radius: 50%;

    opacity: 0.12;

    filter: blur(8px);

    animation: strukturFloat 8s ease-in-out infinite;
}

.struktur-glow-one {
    top: -260px;
    right: -130px;

    background: #34d399;
}

.struktur-glow-two {
    bottom: -270px;
    left: -170px;

    background: #22c55e;

    animation-delay: -3s;
}

@keyframes strukturFloat {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.struktur-hero .container {
    position: relative;

    z-index: 2;
}

.struktur-hero-content {
    max-width: 780px;

    padding: 80px 0;
}

.struktur-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.05);

    color: #a7f3d0;

    font-size: 10px;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.struktur-hero h1 {
    margin: 0 0 18px;

    color: white;

    font-size: clamp(48px, 7vw, 75px);

    line-height: 1;

    letter-spacing: -3px;
}

.struktur-hero h1 span {
    color: #6ee7b7;
}

.struktur-hero p {
    max-width: 620px;

    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-size: 14px;

    line-height: 1.8;
}

.struktur-breadcrumb {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 27px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 12px;
}

.struktur-breadcrumb a {
    color: #86efac;

    text-decoration: none;
}

.struktur-breadcrumb strong {
    color: white;
}

/* =========================================================
   INTRO
========================================================= */

.struktur-intro {
    padding: 95px 0;

    background: white;
}

.struktur-intro-grid {
    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 90px;

    align-items: center;
}

.struktur-section-heading > span {
    color: #16a34a;

    font-size: 10px;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.struktur-section-heading h2 {
    max-width: 520px;

    margin: 10px 0 0;

    color: #0f172a;

    font-size: clamp(35px, 5vw, 53px);

    line-height: 1.08;

    letter-spacing: -2px;
}

.struktur-section-heading h2 strong {
    color: #16a34a;
}

.struktur-intro-text {
    border-left: 2px solid #dcfce7;

    padding-left: 30px;
}

.struktur-intro-text p {
    margin: 0 0 17px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.9;
}

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

/* =========================================================
   MAIN STRUCTURE
========================================================= */

.struktur-main {
    padding: 100px 0;

    background: #f8fafc;
}

.struktur-title {
    max-width: 650px;

    margin: 0 auto 55px;

    text-align: center;
}

.struktur-title > span {
    color: #16a34a;

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}

.struktur-title h2 {
    margin: 9px 0;

    color: #0f172a;

    font-size: clamp(35px, 5vw, 48px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.struktur-title p {
    margin: 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.7;
}

/* =========================================================
   TREE
========================================================= */

.structure-tree {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
}

.structure-level {
    width: 100%;

    display: flex;

    justify-content: center;
}

.tree-connector {
    position: relative;

    width: 2px;

    background: #bbf7d0;
}

.connector-main {
    height: 45px;
}

.connector-wide {
    height: 45px;
}

/* =========================================================
   OFFICIAL CARD
========================================================= */

.official-card {
    width: 330px;

    overflow: hidden;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    background: white;

    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.official-card:hover {
    transform: translateY(-7px);

    border-color: #bbf7d0;

    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.official-leader {
    width: 360px;

    border-color: #bbf7d0;

    box-shadow: 0 15px 45px rgba(21, 128, 61, 0.09);
}

.official-photo {
    position: relative;

    height: 220px;

    overflow: hidden;

    background: #dcfce7;
}

.official-leader .official-photo {
    height: 245px;
}

.official-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.official-card:hover .official-photo img {
    transform: scale(1.05);
}

.official-status {
    position: absolute;

    left: 15px;
    bottom: 15px;

    padding: 7px 11px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50px;

    background: rgba(2, 44, 34, 0.8);

    backdrop-filter: blur(8px);

    color: white;

    font-size: 9px;
    font-weight: 800;
}

.official-info {
    padding: 20px;
}

.official-info span {
    color: #16a34a;

    font-size: 8px;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.official-info h3 {
    margin: 5px 0;

    color: #0f172a;

    font-size: 16px;
}

.official-info p {
    margin: 0;

    color: #64748b;

    font-size: 10px;

    line-height: 1.6;
}

/* =========================================================
   OFFICIAL GRID
========================================================= */

.official-grid {
    position: relative;

    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.official-grid::before {
    content: "";

    position: absolute;

    top: -23px;
    left: 16.66%;
    right: 16.66%;

    height: 2px;

    background: #bbf7d0;
}

.official-grid .official-card {
    width: 100%;
}

/* =========================================================
   DUSUN
========================================================= */

.dusun-section {
    padding: 100px 0;

    background: white;
}

.dusun-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 17px;
}

.dusun-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 17px;

    padding: 22px;

    overflow: hidden;

    border: 1px solid #e2e8f0;

    border-radius: 17px;

    background: white;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.035);

    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.dusun-card:hover {
    transform: translateY(-5px);

    border-color: #bbf7d0;

    box-shadow: 0 17px 35px rgba(15, 23, 42, 0.08);
}

.dusun-number {
    position: absolute;

    right: 17px;
    top: 12px;

    color: #dcfce7;

    font-size: 34px;
    font-weight: 900;
}

.dusun-icon {
    position: relative;

    z-index: 2;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: #ecfdf5;

    color: #15803d;

    font-size: 22px;
}

.dusun-card span {
    color: #16a34a;

    font-size: 8px;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.dusun-card h3 {
    position: relative;

    z-index: 2;

    margin: 4px 0;

    color: #0f172a;

    font-size: 15px;
}

.dusun-card p {
    position: relative;

    z-index: 2;

    margin: 0;

    color: #64748b;

    font-size: 10px;
}

/* =========================================================
   LEMBAGA
========================================================= */

.lembaga-section {
    padding: 100px 0;

    background: #f8fafc;
}

.lembaga-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.lembaga-card {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 25px;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    background: white;

    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.lembaga-card:hover {
    transform: translateY(-5px);

    border-color: #bbf7d0;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.lembaga-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    background: #022c22;

    color: #86efac;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.5px;
}

.lembaga-card h3 {
    margin: 2px 0 7px;

    color: #0f172a;

    font-size: 14px;

    line-height: 1.4;
}

.lembaga-card p {
    margin: 0;

    color: #64748b;

    font-size: 10px;

    line-height: 1.7;
}

/* =========================================================
   CTA
========================================================= */

.struktur-cta {
    position: relative;

    overflow: hidden;

    padding: 100px 0;

    background: #022c22;
}

.struktur-cta-pattern {
    position: absolute;
    inset: 0;

    opacity: 0.08;

    background-image: radial-gradient(circle, white 1px, transparent 1px);

    background-size: 30px 30px;
}

.struktur-cta .container {
    position: relative;

    z-index: 2;
}

.struktur-cta-content {
    max-width: 720px;

    margin: auto;

    text-align: center;
}

.struktur-cta-content > span {
    color: #6ee7b7;

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.struktur-cta-content h2 {
    margin: 10px 0;

    color: white;

    font-size: clamp(32px, 5vw, 50px);

    line-height: 1.1;

    letter-spacing: -1.7px;
}

.struktur-cta-content p {
    max-width: 570px;

    margin: 0 auto 27px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;

    line-height: 1.8;
}

.struktur-cta-button {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 13px 19px;

    border-radius: 10px;

    background: #16a34a;

    color: white;

    text-decoration: none;

    font-size: 10px;
    font-weight: 800;

    transition: transform 0.25s ease, background 0.25s ease,
        box-shadow 0.25s ease;
}

.struktur-cta-button:hover {
    transform: translateY(-3px);

    background: #15803d;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.struktur-cta-button b {
    font-size: 17px;
    font-weight: 400;

    transition: transform 0.25s ease;
}

.struktur-cta-button:hover b {
    transform: translateX(4px);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {
    .struktur-intro-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

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

    .official-grid::before {
        display: none;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
    .struktur-hero {
        min-height: 470px;
    }

    .struktur-hero-content {
        padding: 70px 0;
    }

    .struktur-hero h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }

    .struktur-intro,
    .struktur-main,
    .dusun-section,
    .lembaga-section {
        padding: 75px 0;
    }

    .struktur-section-heading h2 {
        font-size: 40px;
    }

    .struktur-intro-text {
        padding-left: 20px;
    }

    .official-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .official-card,
    .official-leader {
        width: 100%;
    }

    .official-photo,
    .official-leader .official-photo {
        height: 230px;
    }

    .dusun-grid,
    .lembaga-grid {
        grid-template-columns: 1fr;
    }

    .struktur-cta {
        padding: 75px 0;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {
    .struktur-hero h1 {
        font-size: 43px;
    }

    .struktur-section-heading h2 {
        font-size: 35px;
    }

    .official-info {
        padding: 17px;
    }

    .dusun-card,
    .lembaga-card {
        padding: 18px;
    }
}
