/* ==========================================================================
   IPTPI Jawa Timur - Modern & Professional Design System
   Palette: Premium Indigo (#4F46E5), Royal Blue (#2563EB), Slate (#0F172A), Cyan (#06B6D4)
   Typography: Plus Jakarta Sans & Outfit
   ========================================================================== */

:root {
    /* Brand Palette */
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #3730A3;
    --primary-subtle: #EEF2FF;
    --accent: #06B6D4;
    --accent-glow: rgba(6, 182, 212, 0.3);
    --secondary: #2563EB;
    
    /* Neutrals */
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;

    /* Semantic */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Elevation Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(79, 70, 229, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.35);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Typography */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--slate-700);
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

.site-container,
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-pill.primary {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* ==========================================================================
   Header & Navbar (Floating Glassmorphism)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
    border-radius: 6px;
}

.site-title-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.brand-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Nav Menu */
.desktop-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    background: var(--slate-50);
    padding: 5px;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
}

.desktop-navigation .menu-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.desktop-navigation .menu-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
}

.desktop-navigation .current-menu-item .menu-link {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

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

.btn-header-login {
    background: var(--primary);
    color: var(--white);
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    transition: var(--transition);
}

.btn-header-login:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: var(--slate-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: var(--slate-900);
    cursor: pointer;
}

/* Mobile Nav */
.mobile-navigation {
    display: none;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--slate-200);
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-menu .menu-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-700);
    background: var(--slate-50);
}

.mobile-nav-menu .current-menu-item .menu-link {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   Hero Section (Premium Design)
   ========================================================================== */
.hero-wrapper {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 1) 90%);
    padding: 70px 0 80px;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 46px;
    line-height: 1.18;
    color: var(--slate-900);
    margin: 16px 0 20px;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 16.5px;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 28px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: var(--white);
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
}

.btn-cta-secondary {
    background: var(--white);
    color: var(--slate-800);
    border: 1px solid var(--slate-200);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    background: var(--slate-50);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* Key Stats Counter Bar */
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.1;
}

.stat-desc {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 600;
}

/* Hero Media & Floating Badges */
.hero-visual-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-lg);
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s ease;
    transform: scale(1.03);
}

.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero-slider-controls {
    position: absolute;
    bottom: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.hero-dots-wrap {
    display: flex;
    gap: 6px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--white);
    width: 20px;
    border-radius: 10px;
}

.hero-nav-arrow {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    transition: var(--transition);
    opacity: 0.8;
}

.hero-nav-arrow:hover {
    opacity: 1;
    color: var(--accent);
}


.floating-pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--slate-800);
    border: 1px solid rgba(255,255,255,0.8);
    animation: floatAnimation 4s ease-in-out infinite;
}

.floating-pill.top-right {
    top: 24px;
    right: -14px;
}

.floating-pill.bottom-left {
    bottom: 24px;
    left: -14px;
    animation-delay: 2s;
}

.pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header-wrap {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-tag {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 8px;
}

.section-main-heading {
    font-size: 34px;
    color: var(--slate-900);
    margin-bottom: 14px;
}

.section-intro-text {
    font-size: 16px;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ==========================================================================
   About Section & Leadership Highlight
   ========================================================================== */
.section-modern-about {
    padding: 90px 0;
    background: var(--slate-50);
}

.about-bento-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: stretch;
}

.bento-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.about-story-card h3 {
    font-size: 26px;
    color: var(--slate-900);
    margin-bottom: 18px;
}

.about-story-card p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.about-quote-box {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    gap: 16px;
}

.quote-icon {
    font-size: 28px;
    color: var(--primary);
    opacity: 0.8;
}

.quote-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
    font-style: italic;
    line-height: 1.6;
}

.about-media-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pelantikan-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.pelantikan-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pelantikan-image-wrap:hover .pelantikan-img {
    transform: scale(1.04);
}

.pelantikan-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.about-vision-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vision-mini-box {
    background: var(--slate-50);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
}

.vision-mini-box i {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.vision-mini-box h5 {
    font-size: 14.5px;
    margin-bottom: 4px;
}

.vision-mini-box p {
    font-size: 12.5px;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ==========================================================================
   Services & Programs (Interactive Bento Cards)
   ========================================================================== */
.section-modern-services {
    padding: 90px 0;
    background: var(--white);
}

.services-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}

.modern-service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.modern-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.modern-service-card:hover::before {
    opacity: 1;
}

.service-icon-bubble {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.modern-service-card:hover .service-icon-bubble {
    background: var(--primary);
    transform: scale(1.08);
}

.modern-service-card:hover .service-icon-bubble i {
    color: var(--white);
}

.service-icon-bubble i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.modern-service-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--slate-900);
}

.modern-service-card p {
    font-size: 14.5px;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-100);
    font-size: 13px;
    color: var(--slate-600);
    font-weight: 600;
}

.service-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-feature-list li i {
    color: var(--success);
    font-size: 12px;
}

/* Mekanisme Banner */
.mechanism-banner-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

.mechanism-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.mechanism-left h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 12px;
}

.mechanism-left p {
    color: var(--slate-300);
    font-size: 15px;
}

.mechanism-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    margin: 0 auto 10px;
}

.step-card h5 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 6px;
}

.step-card p {
    color: var(--slate-400);
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================================================
   Portfolio / Activity Carousel
   ========================================================================== */
.section-modern-portfolio {
    padding: 90px 0;
    background: var(--slate-50);
}

.modern-carousel-frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--slate-900);
}

.modern-carousel-track {
    position: relative;
    height: 520px;
}

.modern-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s ease;
    transform: scale(1.02);
}

.modern-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.modern-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.carousel-content-badge {
    align-self: flex-start;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.carousel-content-title {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 10;
}

.carousel-nav-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev { left: 20px; }
.carousel-nav-btn.next { right: 20px; }

.modern-carousel-dots {
    position: absolute;
    bottom: 18px;
    right: 36px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modern-carousel-dots .c-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.modern-carousel-dots .c-dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 10px;
}

/* ==========================================================================
   Recent News Cards
   ========================================================================== */
.section-modern-news {
    padding: 90px 0;
    background: var(--white);
}

.modern-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.modern-news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.modern-news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.4);
}

.news-thumb-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-news-card:hover .news-thumb-container img {
    transform: scale(1.06);
}

.news-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.news-card-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta-info {
    display: flex;
    gap: 14px;
    font-size: 12.5px;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.news-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-heading {
    font-size: 18.5px;
    line-height: 1.38;
    margin-bottom: 12px;
}

.news-heading a {
    color: var(--slate-900);
}

.news-heading a:hover {
    color: var(--primary);
}

.news-summary {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-cta {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-read-cta:hover {
    gap: 10px;
}

/* ==========================================================================
   Contact & Newsletter CTA Card
   ========================================================================== */
.section-modern-cta {
    padding: 80px 0 100px;
    background: var(--slate-50);
}

.cta-gradient-card {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-gradient-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.cta-text-left h3 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-text-left p {
    color: #CBD5E1;
    font-size: 16px;
    line-height: 1.7;
}

.newsletter-glass-form {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: var(--radius-full);
    display: flex;
}

.newsletter-glass-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--white);
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.newsletter-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-glass-btn {
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    padding: 0 26px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.newsletter-glass-btn:hover {
    background: var(--primary-subtle);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Struktur Organisasi Page (Executive Flowchart Style)
   ========================================================================== */
.page-hero-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
}

.page-hero-banner h1 {
    color: var(--white);
    font-size: 38px;
    margin: 12px 0 8px;
}

.page-hero-banner p {
    color: #94A3B8;
    font-size: 16px;
}

.org-page-body {
    padding: 70px 0 90px;
    background: var(--slate-50);
}

.org-section-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.org-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--slate-100);
    margin-bottom: 36px;
}

.org-icon-badge {
    width: 52px;
    height: 52px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.org-section-head h2 {
    font-size: 26px;
    color: var(--slate-900);
}

.org-section-head span {
    font-size: 13.5px;
    color: var(--slate-500);
}

/* Core Leadership Tree */
.chief-card {
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
    border: 2px solid #C084FC;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 8px 24px rgba(192, 132, 252, 0.18);
    max-width: 780px;
    margin: 0 auto 30px;
}

.chief-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    flex-shrink: 0;
}

.chief-info .badge-role {
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.chief-info h3 {
    font-size: 24px;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.chief-info p {
    font-size: 14px;
    color: #7E22CE;
    font-weight: 600;
}

.deputy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.deputy-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.deputy-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.deputy-avatar {
    width: 52px;
    height: 52px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.deputy-info .badge-sub {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.deputy-info h4 {
    font-size: 17px;
    color: var(--slate-900);
}

.secretariat-treasury-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-office-box {
    background: #FAFAFD;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 24px;
}

.office-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 16px;
}

.office-header h4 {
    font-size: 18px;
}

.office-members {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.office-members li {
    display: flex;
    flex-direction: column;
}

.office-members .label-role {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.office-members .officer-name {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--slate-900);
}

/* 9 Bidang Operasional Cards */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.division-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.division-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background: var(--white);
}

.division-card-header {
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 14px;
}

.division-code {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.division-title-wrap h4 {
    font-size: 16px;
    color: var(--slate-900);
    line-height: 1.3;
}

.division-card-body {
    padding: 20px;
    flex-grow: 1;
}

.division-members-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.division-members-list li {
    font-size: 14px;
    color: var(--slate-800);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.division-members-list .member-order {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

.ethics-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--white);
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 28px;
}

.ethics-icon {
    font-size: 40px;
    color: #38BDF8;
}

.ethics-content h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 4px;
}

.ethics-content p {
    color: #94A3B8;
    font-size: 14px;
}

.ethics-date {
    color: #38BDF8;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   Berita (Blog & Detail Page)
   ========================================================================== */
.berita-layout-wrapper {
    padding: 70px 0 90px;
    background: var(--slate-50);
}

.berita-grid-columns {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.feed-articles {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feed-article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feed-article-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.4);
}

.feed-thumb-wrap {
    position: relative;
    max-height: 360px;
    overflow: hidden;
}

.feed-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feed-article-card:hover .feed-thumb-img {
    transform: scale(1.04);
}

.feed-content {
    padding: 32px;
}

.feed-title {
    font-size: 25px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.feed-title a {
    color: var(--slate-900);
}

.feed-title a:hover {
    color: var(--primary);
}

.feed-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-100);
}

.feed-meta-row i {
    color: var(--primary);
}

.feed-excerpt {
    font-size: 15px;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 20px;
}

.btn-read-post {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-read-post:hover {
    gap: 12px;
}

/* Sidebar Widgets */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.side-widget {
    background: var(--white);
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.side-widget-title {
    font-size: 18px;
    color: var(--slate-900);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--slate-100);
    position: relative;
}

.side-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--primary);
}

.search-pill-box {
    display: flex;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.search-pill-box input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 11px 18px;
    font-size: 14px;
    outline: none;
}

.search-pill-box button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 18px;
    cursor: pointer;
}

.cat-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    font-weight: 600;
    font-size: 14px;
}

.cat-nav-list a:hover,
.cat-nav-list a.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

.recent-mini-item {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.recent-mini-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-mini-content h5 {
    font-size: 14px;
    line-height: 1.35;
    margin-top: 4px;
}

.recent-mini-content h5 a {
    color: var(--slate-900);
}

.recent-mini-content h5 a:hover {
    color: var(--primary);
}

/* Article Detail Content */
.detail-main-paper {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.detail-cover-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.detail-cover-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.detail-article-text {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--slate-700);
}

.detail-article-text p {
    margin-bottom: 22px;
}

.detail-article-text h2, 
.detail-article-text h3 {
    margin: 32px 0 16px;
    color: var(--slate-900);
}

/* Share & Author Boxes */
.share-action-bar {
    margin-top: 44px;
    padding: 24px;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.share-action-bar span {
    font-weight: 700;
    color: var(--slate-900);
    font-size: 14px;
}

.share-action-bar .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-pill {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.share-pill.wa { background: #25D366; }
.share-pill.fb { background: #1877F2; }
.share-pill.tw { background: #000000; }
.share-pill.copy { background: var(--primary); }

.author-profile-box {
    margin-top: 36px;
    padding: 28px;
    background: var(--primary-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 22px;
}

.author-avatar-badge {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.author-meta-info h4 {
    font-size: 18px;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.author-meta-info p {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.6;
}

/* ==========================================================================
   Footer (Rich & Professional)
   ========================================================================== */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
}

.footer-top-section {
    padding: 80px 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
    gap: 40px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    border-radius: 6px;
}

.footer-logo-row h4 {
    color: var(--white);
    font-size: 19px;
}

.footer-about-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--slate-400);
    margin-bottom: 24px;
}

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

.footer-social-row a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.footer-social-row a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-widget-heading {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 22px;
    font-weight: 700;
}

.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-links a {
    color: var(--slate-400);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-links a i {
    font-size: 10px;
    color: var(--primary-light);
}

.footer-nav-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-items li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--slate-400);
    line-height: 1.5;
}

.footer-contact-items li i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-bottom-bar {
    padding: 22px 0;
    text-align: center;
    background: #060913;
    font-size: 13.5px;
    color: var(--slate-500);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid,
    .about-bento-grid,
    .mechanism-grid,
    .cta-inner-grid,
    .berita-grid-columns {
        grid-template-columns: 1fr;
    }
    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
    }
    .services-bento-grid,
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-navigation { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-navigation.show { display: block; }
    .hero-title { font-size: 32px; }
    .section-main-heading { font-size: 26px; }
    .hero-stats-row { grid-template-columns: 1fr; gap: 12px; }
    .services-bento-grid,
    .divisions-grid,
    .modern-news-grid,
    .deputy-grid,
    .secretariat-treasury-grid,
    .about-vision-boxes,
    .mechanism-steps,
    .footer-columns-grid {
        grid-template-columns: 1fr;
    }
    .modern-carousel-track { height: 320px; }
    .detail-main-paper { padding: 24px; }
    .bento-card { padding: 24px; }
    .cta-gradient-card { padding: 32px 20px; }
    .floating-pill { display: none; }
    .event-detail-grid { grid-template-columns: 1fr; }
    .certificate-canvas-wrapper { padding: 15px !important; }
    .cert-frame-inner { padding: 15px !important; }
    .cert-recipient-name { font-size: 22px !important; }
}

/* ==========================================================================
   Page Hero Banners
   ========================================================================== */
.page-hero-banner {
    background: linear-gradient(135deg, #0B0F19 0%, #1E1B4B 50%, #312E81 100%);
    padding: 70px 0 60px;
    color: var(--white);
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero-banner.detail-event-hero {
    text-align: left;
    padding: 50px 0 45px;
}

.banner-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #A5B4FC;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.page-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-hero-desc {
    font-size: 16px;
    color: #CBD5E1;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.btn-cert-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-cert-check:hover {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* Breadcrumbs */
.event-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #94A3B8;
}

.event-breadcrumb-nav a {
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-breadcrumb-nav a:hover {
    color: var(--white);
}

.crumb-separator {
    color: #64748B;
}

.crumb-current {
    color: #A5B4FC;
    font-weight: 600;
}

.event-header-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.event-detail-heading {
    font-size: 34px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
}

/* ==========================================================================
   Modern Event Cards & Catalog (/event)
   ========================================================================== */
.section-modern-events {
    padding: 80px 0 100px;
    background: var(--slate-50);
}

.events-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.modern-event-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.modern-event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.4);
}

.event-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--slate-900);
}

.event-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-event-card:hover .event-cover-img {
    transform: scale(1.06);
}

.event-floating-tags {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.badge-event-type {
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.badge-event-type.workshop { background: #D97706; }
.badge-event-type.pelatihan { background: #059669; }
.badge-event-type.seminar { background: #7C3AED; }

.badge-event-mode {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-status-pill {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.event-status-pill.open {
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.event-status-pill.closed {
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.event-content-wrap {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-schedule-row {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.event-schedule-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-card-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
}

.event-card-title a {
    color: var(--slate-900);
}

.event-card-title a:hover {
    color: var(--primary);
}

.event-info-pill {
    font-size: 13.5px;
    color: var(--slate-600);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.event-info-pill i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.event-card-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-count-badge {
    font-size: 13px;
    color: var(--slate-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.participant-count-badge i {
    color: var(--primary);
}

.btn-event-action {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-event-action:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ==========================================================================
   Event Detail Page (/event/{slug})
   ========================================================================== */
.section-event-detail {
    padding: 60px 0 100px;
    background: var(--slate-50);
}

.event-layout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.event-showcase-cover {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--slate-900);
    height: 380px;
}

.event-showcase-cover .cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-article-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.card-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-100);
}

.card-section-header i {
    font-size: 22px;
}

.card-section-header h3 {
    font-size: 22px;
    color: var(--slate-900);
}

.event-prose-content {
    font-size: 15.5px;
    color: var(--slate-700);
    line-height: 1.8;
}

.event-prose-content p {
    margin-bottom: 16px;
}

.event-prose-content ul, .event-prose-content ol {
    margin: 16px 0 20px 24px;
}

.event-prose-content li {
    margin-bottom: 8px;
}

.speaker-highlight-box {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.speaker-icon {
    width: 54px;
    height: 54px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.speaker-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.speaker-name {
    font-size: 18px;
    color: var(--slate-900);
    font-weight: 700;
}

.cert-guarantee-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cert-guarantee-box i {
    font-size: 26px;
    margin-top: 2px;
}

.cert-guarantee-box strong {
    color: #166534;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.cert-guarantee-box p {
    font-size: 13.5px;
    color: #15803D;
    line-height: 1.5;
    margin: 0;
}

/* Sidebar Registration Panel */
.event-registration-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.panel-heading {
    font-size: 20px;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.event-specs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.spec-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.spec-info label {
    display: block;
    font-size: 12px;
    color: var(--slate-500);
    margin-bottom: 2px;
}

.spec-info strong {
    font-size: 14.5px;
    color: var(--slate-900);
    font-weight: 700;
}

.panel-divider {
    height: 1px;
    background: var(--slate-100);
    margin: 28px 0;
}

.form-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-header-title h4 {
    font-size: 18px;
    color: var(--slate-900);
}

.modern-styled-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.styled-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 6px;
}

.styled-form-group .required {
    color: var(--danger);
}

.styled-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--slate-900);
    background: var(--slate-50);
    transition: var(--transition);
    outline: none;
}

.styled-form-input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.input-hint {
    display: block;
    font-size: 11.5px;
    color: var(--slate-500);
    margin-top: 4px;
}

.btn-register-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transition: var(--transition);
    margin-top: 8px;
}

.btn-register-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.45);
}

.closed-notice-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--slate-50);
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius-lg);
}

.closed-notice-card i {
    font-size: 36px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.closed-notice-card h5 {
    font-size: 17px;
    margin-bottom: 6px;
}

.closed-notice-card p {
    font-size: 13px;
    color: var(--slate-500);
    margin: 0;
}

.sidebar-footer-link {
    margin-top: 24px;
    text-align: center;
}

.sidebar-footer-link a {
    font-size: 12.5px;
    color: var(--slate-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sidebar-footer-link a:hover {
    color: var(--primary);
}

.alert-success-banner {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.alert-success-banner .alert-icon {
    font-size: 28px;
    color: #16A34A;
}

.alert-success-banner h4 {
    color: #15803D;
    font-size: 18px;
    margin-bottom: 4px;
}

.alert-success-banner p {
    font-size: 14px;
    color: #166534;
    margin-bottom: 8px;
}

.btn-cert-direct {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #15803D;
    color: var(--white);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
}

.btn-cert-direct:hover {
    background: #166534;
    color: var(--white);
}

.alert-error-banner {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #B91C1C;
}

/* ==========================================================================
   Modern Repository Page (/repository)
   ========================================================================== */
.section-modern-repository {
    padding: 70px 0 100px;
    background: var(--slate-50);
}

.repo-toolbar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.toolbar-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    align-items: center;
}

.toolbar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-filter-pill {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.category-filter-pill:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

.category-filter-pill.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 16px;
    color: var(--slate-400);
    font-size: 14px;
}

.search-input-wrap input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 14px;
    color: var(--slate-900);
    background: var(--slate-50);
    outline: none;
    transition: var(--transition);
}

.search-input-wrap input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    color: var(--slate-400);
    font-size: 14px;
}

.resource-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.modern-resource-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.35);
}

.resource-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.resource-category-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-subtle);
    color: var(--primary);
}

.resource-category-badge.media_pembelajaran { background: #E0E7FF; color: #4338CA; }
.resource-category-badge.karya_inovasi { background: #FEF3C7; color: #B45309; }
.resource-category-badge.modul_panduan { background: #D1FAE5; color: #047857; }
.resource-category-badge.dokumen_resmi { background: #EDE9FE; color: #6D28D9; }
.resource-category-badge.jurnal { background: #CFFAFE; color: #0E7490; }

.resource-download-pill {
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.resource-item-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.4;
    margin-bottom: 10px;
}

.resource-item-description {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.resource-meta-details {
    padding: 14px 0;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.meta-row {
    font-size: 12.5px;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-row i {
    color: var(--primary);
    width: 14px;
}

.btn-access-resource {
    width: 100%;
    padding: 12px 18px;
    background: var(--slate-900);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-access-resource:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* ==========================================================================
   Certificate Validation & Master Frame (/cek-sertifikat)
   ========================================================================== */
.section-certificate-verify {
    padding: 70px 0 100px;
    background: var(--slate-50);
}

.cert-search-panel {
    max-width: 720px;
    margin: 0 auto 50px;
}

.cert-search-input-group {
    background: var(--white);
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
}

.cert-search-icon {
    font-size: 20px;
    color: var(--primary);
    margin-right: 12px;
}

.cert-query-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--slate-900);
    background: transparent;
}

.btn-cert-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-cert-search:hover {
    background: var(--primary-dark);
}

.cert-search-notice {
    text-align: center;
    font-size: 12.5px;
    color: var(--slate-500);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cert-display-container {
    max-width: 900px;
    margin: 0 auto;
}

.cert-valid-alert {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.valid-icon-wrap i {
    font-size: 32px;
    color: #16A34A;
}

.valid-text-wrap h4 {
    font-size: 17px;
    color: #15803D;
    margin-bottom: 2px;
}

.valid-text-wrap p {
    font-size: 13px;
    color: #166534;
    margin: 0;
}

/* Printable Certificate Frame */
.printable-cert-frame {
    background: #FFFDF9;
    border: 14px double #D97706;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.cert-inner-border {
    border: 2px solid #CA8A04;
    border-radius: var(--radius-sm);
    padding: 44px 36px;
    text-align: center;
    background: #FFFDF9;
}

.cert-official-logo {
    height: 70px;
    width: auto;
    margin: 0 auto 14px;
}

.cert-org-main {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1E293B;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.cert-org-sub {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.cert-title-rule {
    width: 140px;
    height: 2px;
    background: #D97706;
    margin: 0 auto 16px;
}

.cert-word-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 800;
    color: #B45309;
    letter-spacing: 8px;
    margin-bottom: 4px;
}

.cert-code-line {
    font-size: 13.5px;
    color: var(--slate-500);
}

.cert-body-block {
    margin: 36px 0;
}

.cert-intro-text {
    font-size: 14px;
    color: var(--slate-500);
    margin-bottom: 8px;
}

.cert-person-name {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    color: var(--slate-900);
    border-bottom: 2px solid #E2E8F0;
    display: inline-block;
    padding: 0 40px 10px;
    margin-bottom: 8px;
}

.cert-person-affiliation {
    font-size: 15px;
    color: var(--slate-600);
    margin-bottom: 24px;
}

.cert-honor-reason {
    font-size: 14.5px;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.cert-event-name {
    font-size: 22px;
    color: var(--primary);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.cert-event-date {
    font-size: 13.5px;
    color: var(--slate-500);
}

.cert-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 20px;
    align-items: flex-end;
    margin-top: 48px;
    padding-top: 24px;
}

.cert-sign-col {
    text-align: center;
}

.cert-city-date {
    font-size: 12.5px;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.cert-role-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 14px;
}

.cert-stamp-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 14px;
}

.cert-signer-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--slate-900);
}

.cert-qr-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 12px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.cert-qr-img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.qr-sub-text {
    display: block;
    font-size: 10px;
    color: var(--slate-500);
    margin-top: 6px;
    font-weight: 600;
}

.btn-cert-print {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.btn-cert-print:hover {
    background: var(--primary-dark);
}

.btn-cert-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    margin-left: 12px;
    transition: var(--transition);
}

.btn-cert-reset:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.empty-state-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    border: 1px solid var(--slate-200);
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon-wrap i {
    font-size: 48px;
    color: #94A3B8;
    margin-bottom: 16px;
}

.empty-state-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.empty-state-card p {
    font-size: 14.5px;
    color: var(--slate-500);
}

.btn-primary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
}

.btn-primary-pill:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .event-layout-grid {
        grid-template-columns: 1fr;
    }
    .toolbar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .events-showcase-grid,
    .resource-cards-grid {
        grid-template-columns: 1fr;
    }
    .cert-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cert-inner-border {
        padding: 24px 16px;
    }
    .cert-person-name {
        font-size: 24px;
        padding: 0 10px 8px;
    }
    .cert-word-title {
        font-size: 30px;
        letter-spacing: 4px;
    }
    .cert-search-input-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
        gap: 10px;
    }
    .btn-cert-search {
        width: 100%;
        justify-content: center;
    }
}


