/* ============================================================
   JDIH Landing Page — Custom Styles
   Design: Navy/Gold Authority Theme — Government Edition
   Clean, professional, no unnecessary animations
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --jdih-navy: #7f1d1d;
    --jdih-deep: #991b1b;
    --jdih-indigo: #b91c1c;
    --jdih-blue: #dc2626;
    --jdih-gold: #b91c1c;
    --jdih-amber: #ef4444;
    --jdih-slate: #3f1f1f;
    --jdih-light: #fff5f5;
    --jdih-mist: #fee2e2;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Card Utilities ---------- */
.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.glass-card-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.glass-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: 0.75rem;
    box-shadow: 0 8px 18px -10px rgba(127, 29, 29, 0.22);
}


/* ---------- Hero Section ---------- */
.jdih-hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
}
.jdih-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.jdih-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.22) 100%);
    z-index: 1;
}
.jdih-hero__content {
    position: relative;
    z-index: 2;
}

.hero-copy-panel {
    background: rgba(0, 0, 0, 0.26);
    border-radius: 12px;
    padding: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.data-strip {
    background: #ffffff;
    border-bottom: 1px solid #fee2e2;
    border-top: 1px solid #fee2e2;
    padding: 2rem 0;
}

.data-strip__inner {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
}

.data-strip__heading {
    border-left: 4px solid #b91c1c;
    padding-left: 1rem;
}

.data-strip__heading span {
    color: #3f1f1f;
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.data-strip__heading p {
    color: #6b4a4a;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0.35rem 0 0;
}

.data-strip__grid {
    background: #fffafa;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.data-strip__item {
    padding: 1.1rem 1.25rem;
}

.data-strip__item + .data-strip__item {
    border-left: 1px solid #fee2e2;
}

.data-strip__item dt {
    color: #8a5f5f;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.data-strip__item dd {
    color: #231313;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

/* Hero decorative rings */
.jdih-hero__decor-ring {
    position: absolute;
    border: 1px solid rgba(212, 168, 67, 0.10);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.jdih-hero__decor-ring--1 {
    width: 380px; height: 380px;
    top: 5%; right: -6%;
}
.jdih-hero__decor-ring--2 {
    width: 200px; height: 200px;
    bottom: 12%; left: -2%;
}
.jdih-hero__decor-ring--3 {
    width: 120px; height: 120px;
    top: 38%; right: 18%;
    border-color: rgba(37, 99, 235, 0.08);
}

/* Hero stat pills */
.hero-stat-pill {
    transition: background 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}
.hero-stat-pill:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(220, 38, 38, 0.2); /* Red accent on hover */
}


/* ---------- Section Dividers ---------- */
.section-divider-wave {
    position: relative;
}
.section-divider-wave::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--jdih-light);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 3;
}


/* ---------- Council Members Marquee ---------- */
.marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee-scroll 55s linear infinite;
    width: max-content;
}
.marquee-track:hover {
    animation-play-state: paused;
}

.dewan-card {
    flex-shrink: 0;
    width: 210px;
    transition: box-shadow 0.2s var(--ease-smooth);
}
.dewan-card:hover {
    box-shadow: 0 4px 12px -4px rgba(30, 58, 95, 0.15);
}
.dewan-card img {
    transition: transform 0.3s var(--ease-smooth);
}
.dewan-card:hover img {
    transform: scale(1.02);
}


/* ---------- News Cards ---------- */
.news-card-jdih {
    transition: box-shadow 0.2s var(--ease-smooth);
    border-radius: 0.75rem;
    overflow: hidden;
}
.news-card-jdih:hover {
    box-shadow: 0 4px 12px -4px rgba(30, 58, 95, 0.12);
}
.news-card-jdih .news-img-wrap {
    overflow: hidden;
}
.news-card-jdih .news-img-wrap img {
    transition: transform 0.3s var(--ease-smooth);
}
.news-card-jdih:hover .news-img-wrap img {
    transform: scale(1.02);
}
.news-card-jdih .news-overlay-link {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease-smooth);
}
.news-card-jdih:hover .news-overlay-link {
    opacity: 1;
}

.news-card-jdih .news-overlay-link .glass-pill,
.gallery-caption .glass-pill {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

.news-card-jdih .news-overlay-link:hover .glass-pill,
.gallery-item:hover .gallery-caption .glass-pill {
    background: #991b1b !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
}

.news-card-jdih a:hover,
.dewan-card a:hover,
.produk-card a:hover,
.gallery-item a:hover,
#quick-navigation a:hover {
    color: #991b1b !important;
}

/* Featured news card */
.news-featured {
    position: relative;
    min-height: 420px;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s var(--ease-smooth);
}
.news-featured:hover {
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.15);
}
.news-featured img {
    transition: transform 0.3s var(--ease-smooth);
}
.news-featured:hover img {
    transform: scale(1.02);
}
.news-featured__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    padding: 2.5rem 2rem;
}


/* ---------- Produk Hukum ---------- */
.produk-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
    border-top: 2px solid rgba(184, 148, 58, 0.3);
}
.produk-card:hover {
    box-shadow: 0 4px 12px -4px rgba(184, 148, 58, 0.15);
    border-top-color: rgba(184, 148, 58, 0.6);
}
.produk-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 148, 58, 0.10);
    border: 1px solid rgba(184, 148, 58, 0.2);
    flex-shrink: 0;
}


/* ---------- Gallery Section ---------- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: box-shadow 0.2s var(--ease-smooth);
}
.gallery-item:hover {
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.15);
}
.gallery-item img {
    transition: transform 0.3s var(--ease-smooth);
}
.gallery-item:hover img {
    transform: scale(1.02);
}
.gallery-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s var(--ease-smooth);
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
}


/* ---------- Section Heading Style ---------- */
.section-heading {
    position: relative;
    display: inline-block;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--jdih-gold);
    border-radius: 2px;
}
.section-heading-center::after {
    left: 50%;
    transform: translateX(-50%);
}


/* ---------- Stat Counter ---------- */
.stat-counter-card {
    position: relative;
    overflow: hidden;
}
.stat-counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--jdih-gold);
    border-radius: 0 2px 2px 0;
}


/* ---------- CTA Button ---------- */
.jdih-btn {
    position: relative;
    transition: opacity 0.15s var(--ease-smooth);
}
.jdih-btn:hover {
    opacity: 0.9;
}
.jdih-btn:active {
    opacity: 0.8;
}


/* ---------- Quick access shortcuts ---------- */
.quick-link {
    transition: box-shadow 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}
.quick-link:hover {
    box-shadow: 0 2px 8px -2px rgba(30, 58, 95, 0.1);
    border-color: rgba(184, 148, 58, 0.3);
}

/* Match agenda page date accent */
.agendadesa .next__date,
.agendadesa .prev__date,
.agendadesa .prev__month,
.event__post .next__date,
.event__post .prev__date,
.event__post .prev__month,
.agenda-date {
    color: #d97706 !important;
}

.agendadesa .next__date,
.agendadesa .prev__dt,
.event__post .next__date,
.event__post .prev__dt {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}


/* ---------- Mobile Adjustments ---------- */
@media (max-width: 768px) {
    .jdih-hero {
        min-height: 75vh;
    }
    .jdih-hero__decor-ring {
        display: none;
    }
    .marquee-track {
        animation-duration: 35s;
    }
    .dewan-card {
        width: 175px;
    }
    .news-featured {
        min-height: 280px;
    }
    .hero-copy-panel {
        padding: 1.5rem;
    }
    .data-strip__inner {
        grid-template-columns: 1fr;
    }
    .data-strip__grid {
        grid-template-columns: 1fr;
    }
    .data-strip__item + .data-strip__item {
        border-left: 0;
        border-top: 1px solid #fee2e2;
    }
}

@media (max-width: 480px) {
    .dewan-card {
        width: 155px;
    }
}


/* ---------- Base Overrides ---------- */
html {
    scroll-behavior: smooth;
}

/* Override ndeso wrapper for landing page */
.ndesopro_home_widget {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.revealed, .reveal-left.revealed, .reveal-scale.revealed { opacity: 1; transform: translate(0) scale(1); }
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.stagger-children.revealed > * { opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.6s; }
