/* =========================================================
   BERANDA DESA
   ========================================================= */

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

.hero-slider {
    position: relative;

    width: 100%;

    height: calc(100vh - 82px);

    min-height: 620px;

    max-height: 820px;

    overflow: hidden;

    background: #064e3b;
}

/* =========================================================
   SLIDE
   ========================================================= */

.hero-slide {
    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: 0;

    transform: scale(1.06);

    transition: opacity 1s ease, transform 7s ease;

    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;

    transform: scale(1);

    pointer-events: auto;
}

/* =========================================================
   OVERLAY
   ========================================================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(2, 44, 34, 0.9) 0%,
        rgba(2, 44, 34, 0.68) 40%,
        rgba(2, 44, 34, 0.25) 75%,
        rgba(2, 44, 34, 0.15) 100%
    );
}

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

.hero-container {
    position: relative;

    z-index: 2;

    height: 100%;

    display: flex;

    align-items: center;
}

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

.hero-content {
    max-width: 750px;

    color: white;

    padding-top: 20px;
}

/* =========================================================
   BADGE
   ========================================================= */

.hero-badge {
    display: inline-flex;

    align-items: center;

    padding: 8px 15px;

    margin-bottom: 22px;

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

    border-radius: 999px;

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

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.9);
}

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

.hero-content h1 {
    max-width: 750px;

    margin: 0 0 24px;

    font-size: clamp(44px, 6vw, 76px);

    line-height: 1.08;

    letter-spacing: -2px;

    font-weight: 750;

    color: white;
}

.hero-content h1 span {
    display: block;

    color: #6ee7b7;
}

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

.hero-content > p {
    max-width: 650px;

    margin: 0;

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

    font-size: 17px;

    line-height: 1.8;
}

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

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 32px;
}

/* =========================================================
   GENERAL BUTTON
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

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

/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.btn-primary {
    color: white;

    background: #16a34a;

    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.25);
}

.btn-primary:hover {
    background: #15803d;

    transform: translateY(-3px);

    box-shadow: 0 15px 30px rgba(22, 163, 74, 0.35);
}

/* =========================================================
   LIGHT BUTTON
   ========================================================= */

.btn-light {
    color: white;

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

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

    backdrop-filter: blur(8px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.18);

    transform: translateY(-3px);
}

/* =========================================================
   HERO SLIDER BUTTON
   ========================================================= */

.hero-arrow {
    position: absolute;

    z-index: 5;

    top: 50%;

    width: 48px;
    height: 48px;

    display: flex;

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

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

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(8px);

    color: white;

    font-size: 18px;

    cursor: pointer;

    transform: translateY(-50%);

    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.18);

    transform: translateY(-50%) scale(1.08);
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}

/* =========================================================
   INDICATORS
   ========================================================= */

.hero-indicators {
    position: absolute;

    z-index: 5;

    left: 50%;

    bottom: 45px;

    display: flex;

    align-items: center;

    gap: 7px;

    transform: translateX(-50%);
}

.hero-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;

    border-radius: 50%;

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

    cursor: pointer;

    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
    width: 28px;

    border-radius: 20px;

    background: #6ee7b7;
}

/* =========================================================
   SCROLL INDICATOR
   ========================================================= */

.hero-scroll {
    position: absolute;

    z-index: 5;

    right: 30px;

    bottom: 35px;

    display: flex;

    align-items: center;

    gap: 10px;

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

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;

    height: 45px;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.8)
    );

    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.7);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* =========================================================
   SECTION GLOBAL
   ========================================================= */

.welcome-section,
.about-section,
.news-section,
.potential-section,
.gallery-section {
    background: #ffffff;
}

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

.reveal {
    opacity: 0;

    transform: translateY(45px);

    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;

    transform: translateY(0);
}

/* =========================================================
   SECTION LABEL
   ========================================================= */

.section-label {
    display: inline-block;

    margin-bottom: 8px;

    color: #16a34a;

    font-size: 12px;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.section-label.light {
    color: #86efac;
}

/* =========================================================
   SAMBUTAN
   ========================================================= */

.welcome-section {
    padding: 110px 0;
}

.welcome-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    align-items: center;

    gap: 90px;
}

/* =========================================================
   FOTO KEPALA DESA
   ========================================================= */

.welcome-photo {
    position: relative;

    padding: 18px;
}

.welcome-photo::before {
    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 130px;

    height: 130px;

    border-top: 4px solid #16a34a;

    border-left: 4px solid #16a34a;

    border-radius: 20px 0 0 0;
}

.welcome-photo::after {
    content: "";

    position: absolute;

    right: 0;

    bottom: 0;

    width: 130px;

    height: 130px;

    border-right: 4px solid #16a34a;

    border-bottom: 4px solid #16a34a;

    border-radius: 0 0 20px 0;
}

.welcome-photo img {
    position: relative;

    z-index: 2;

    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 24px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   LEADER CARD
   ========================================================= */

.leader-card {
    position: absolute;

    z-index: 3;

    right: -20px;

    bottom: 35px;

    padding: 17px 22px;

    background: white;

    border-radius: 14px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.14);
}

.leader-card strong {
    display: block;

    color: #0f172a;

    font-size: 15px;
}

.leader-card span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 12px;
}

/* =========================================================
   SAMBUTAN CONTENT
   ========================================================= */

.welcome-content h2 {
    margin: 5px 0 20px;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.2;

    color: #0f172a;
}

.welcome-content h2 span {
    color: #16a34a;
}

.quote-mark {
    height: 30px;

    color: #16a34a;

    font-family: Georgia, serif;

    font-size: 65px;

    line-height: 0.8;

    opacity: 0.5;
}

.welcome-text {
    max-width: 650px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.9;
}

.welcome-name {
    display: flex;

    flex-direction: column;

    margin-top: 25px;

    color: #64748b;

    font-size: 14px;
}

.welcome-name strong {
    margin-top: 3px;

    color: #0f172a;

    font-size: 16px;
}

/* =========================================================
   TEXT BUTTON
   ========================================================= */

.text-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 24px;

    color: #15803d;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: gap 0.25s ease;
}

.text-button:hover {
    gap: 15px;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    padding: 100px 0;

    background: #f8fafc;
}

.about-grid {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 90px;

    align-items: center;
}

.about-content h2 {
    margin: 5px 0 20px;

    max-width: 600px;

    color: #0f172a;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.2;
}

.about-content h2 span {
    color: #16a34a;
}

.about-content p {
    max-width: 650px;

    margin-bottom: 15px;

    color: #64748b;

    line-height: 1.8;
}

/* =========================================================
   MINI CARDS
   ========================================================= */

.about-cards {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.mini-card {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 22px;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);

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

.mini-card:hover {
    transform: translateX(7px);

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

.mini-icon {
    width: 50px;

    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #ecfdf5;

    font-size: 23px;
}

.mini-card strong {
    display: block;

    margin-bottom: 3px;

    color: #0f172a;
}

.mini-card span {
    color: #64748b;

    font-size: 13px;
}

/* =========================================================
   STATISTIK
   ========================================================= */

.stats-section {
    position: relative;

    overflow: hidden;

    padding: 100px 0;

    background: #064e3b;

    color: white;
}

.stats-background {
    position: absolute;

    inset: 0;

    background: radial-gradient(
            circle at 10% 20%,
            rgba(52, 211, 153, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(110, 231, 183, 0.12),
            transparent 30%
        );
}

.stats-heading {
    position: relative;

    z-index: 2;

    max-width: 650px;

    margin: 0 auto 55px;

    text-align: center;
}

.stats-heading h2 {
    margin: 5px 0 15px;

    color: white;

    font-size: clamp(32px, 4vw, 46px);
}

.stats-heading h2 span {
    color: #6ee7b7;
}

.stats-heading p {
    color: rgba(255, 255, 255, 0.7);
}

.stats-grid {
    position: relative;

    z-index: 2;

    display: grid;

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

    gap: 20px;
}

.stat-item {
    padding: 32px 25px;

    text-align: center;

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

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

    border-radius: 20px;

    backdrop-filter: blur(10px);

    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);

    background: rgba(255, 255, 255, 0.11);
}

.stat-icon {
    margin-bottom: 15px;

    font-size: 27px;
}

.stat-number {
    font-size: 40px;

    font-weight: 750;

    line-height: 1;

    color: white;
}

.stat-title {
    margin-top: 10px;

    color: #d1fae5;

    font-size: 14px;

    font-weight: 600;
}

.stat-item > span {
    color: rgba(255, 255, 255, 0.5);

    font-size: 12px;
}

/* =========================================================
   BERITA
   ========================================================= */

.news-section {
    padding: 105px 0;
}

.section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}

.section-header h2 {
    margin: 5px 0 0;

    color: #0f172a;

    font-size: clamp(30px, 4vw, 43px);
}

.view-all {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #15803d;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;
}

.view-all:hover {
    gap: 13px;
}

.news-grid {
    display: grid;

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

    gap: 25px;
}

.news-card {
    overflow: hidden;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-8px);

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

/* =========================================================
   NEWS IMAGE
   ========================================================= */

.news-image {
    position: relative;

    height: 220px;

    overflow: hidden;
}

.news-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;

    left: 15px;

    top: 15px;

    padding: 6px 10px;

    border-radius: 7px;

    background: #16a34a;

    color: white;

    font-size: 11px;

    font-weight: 700;
}

/* =========================================================
   NEWS CONTENT
   ========================================================= */

.news-content {
    padding: 24px;
}

.news-date {
    margin-bottom: 9px;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.news-content h3 {
    margin: 0 0 12px;

    color: #0f172a;

    font-size: 18px;

    line-height: 1.45;
}

.news-content p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.7;
}

.news-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    color: #15803d;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition: gap 0.25s ease;
}

.news-link:hover {
    gap: 13px;
}

/* =========================================================
   POTENSI
   ========================================================= */

.potential-section {
    padding: 105px 0;

    background: #f8fafc;
}

.section-heading-center {
    max-width: 650px;

    margin: 0 auto 50px;

    text-align: center;
}

.section-heading-center h2 {
    margin: 5px 0 15px;

    color: #0f172a;

    font-size: clamp(32px, 4vw, 46px);
}

.section-heading-center h2 span {
    color: #16a34a;
}

.section-heading-center p {
    color: #64748b;
}

.potential-grid {
    display: grid;

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

    gap: 20px;
}

.potential-card {
    position: relative;

    height: 430px;

    overflow: hidden;

    border-radius: 22px;

    background: #064e3b;
}

.potential-image {
    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    transition: transform 0.7s ease;
}

.potential-card:hover .potential-image {
    transform: scale(1.08);
}

.potential-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        to top,
        rgba(2, 44, 34, 0.95),
        rgba(2, 44, 34, 0.15)
    );
}

.potential-overlay {
    position: absolute;

    z-index: 2;

    left: 25px;

    right: 25px;

    bottom: 25px;

    color: white;
}

.potential-overlay > span {
    color: #6ee7b7;

    font-size: 12px;

    font-weight: 700;
}

.potential-overlay h3 {
    margin: 5px 0 8px;

    font-size: 26px;
}

.potential-overlay p {
    margin: 0;

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

    font-size: 13px;

    line-height: 1.7;
}

/* =========================================================
   GALERI
   ========================================================= */

.gallery-section {
    padding: 105px 0;
}

.gallery-grid {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr;

    grid-template-rows: 230px 230px;

    gap: 15px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 18px;

    background: #e2e8f0;
}

.gallery-large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;

    left: 15px;

    right: 15px;

    bottom: 15px;

    padding: 12px 15px;

    border-radius: 10px;

    background: rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(8px);

    color: white;

    font-size: 12px;

    font-weight: 600;
}

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

.cta-section {
    position: relative;

    overflow: hidden;

    padding: 100px 0;

    background: linear-gradient(135deg, #065f46, #047857);

    text-align: center;
}

.cta-pattern {
    position: absolute;

    inset: 0;

    opacity: 0.1;

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

    background-size: 30px 30px;
}

.cta-content {
    position: relative;

    z-index: 2;

    max-width: 700px;

    margin: auto;
}

.cta-content h2 {
    margin: 5px 0 18px;

    color: white;

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

    line-height: 1.15;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.75);

    font-size: 15px;
}

.cta-buttons {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}

.btn-white {
    color: #065f46;

    background: white;
}

.btn-white:hover {
    background: #ecfdf5;

    transform: translateY(-3px);
}

.btn-transparent {
    color: white;

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

    background: rgba(255, 255, 255, 0.08);
}

.btn-transparent:hover {
    background: rgba(255, 255, 255, 0.15);

    transform: translateY(-3px);
}

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

@media (max-width: 950px) {
    .hero-slider {
        height: 680px;
    }

    .welcome-grid,
    .about-grid {
        gap: 50px;
    }

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

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

    .news-card:last-child {
        grid-column: span 2;

        max-width: calc(50% - 12px);

        justify-self: center;
    }

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

    .potential-card:last-child {
        grid-column: span 2;

        max-width: 50%;

        justify-self: center;
    }
}

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

@media (max-width: 800px) {
    .hero-slider {
        height: 650px;

        min-height: 650px;
    }

    .hero-content {
        max-width: 100%;

        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: clamp(38px, 10vw, 52px);

        letter-spacing: -1px;
    }

    .hero-content > p {
        font-size: 15px;

        line-height: 1.7;
    }

    .hero-arrow {
        width: 40px;

        height: 40px;

        font-size: 15px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .hero-scroll {
        display: none;
    }

    .hero-indicators {
        bottom: 25px;
    }

    /* -----------------------------------------
       WELCOME
    ----------------------------------------- */

    .welcome-section {
        padding: 75px 0;
    }

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

        gap: 55px;
    }

    .welcome-photo {
        max-width: 500px;

        margin: auto;
    }

    .leader-card {
        right: 5px;

        bottom: 25px;
    }

    /* -----------------------------------------
       ABOUT
    ----------------------------------------- */

    .about-section {
        padding: 75px 0;
    }

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

        gap: 45px;
    }

    /* -----------------------------------------
       STATS
    ----------------------------------------- */

    .stats-section {
        padding: 75px 0;
    }

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

        gap: 12px;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 32px;
    }

    /* -----------------------------------------
       NEWS
    ----------------------------------------- */

    .news-section {
        padding: 75px 0;
    }

    .section-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 30px;
    }

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

    .news-card:last-child {
        grid-column: auto;

        max-width: none;
    }

    /* -----------------------------------------
       POTENSI
    ----------------------------------------- */

    .potential-section {
        padding: 75px 0;
    }

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

    .potential-card:last-child {
        grid-column: auto;

        max-width: none;
    }

    .potential-card {
        height: 380px;
    }

    /* -----------------------------------------
       GALERI
    ----------------------------------------- */

    .gallery-section {
        padding: 75px 0;
    }

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

        grid-template-rows: 180px 180px 180px;
    }

    .gallery-large {
        grid-column: span 2;

        grid-row: span 1;
    }

    /* -----------------------------------------
       CTA
    ----------------------------------------- */

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

    .cta-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

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

@media (max-width: 500px) {
    .hero-slider {
        height: 620px;

        min-height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(2, 44, 34, 0.9),
            rgba(2, 44, 34, 0.55)
        );
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

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

        grid-template-rows: repeat(5, 200px);
    }

    .gallery-large {
        grid-column: auto;

        grid-row: auto;
    }

    .welcome-photo {
        padding: 10px;
    }

    .welcome-photo::before,
    .welcome-photo::after {
        width: 80px;

        height: 80px;
    }

    .leader-card {
        right: -5px;

        bottom: 20px;

        padding: 13px 16px;
    }
}
