/* 
   LPM UNIKU Premium Stylesheet — Edisi "Menuju Akreditasi Unggul"
   Theme: Royal Midnight Blue (#071E4A & #0B2C6D) & Imperial Gold (#E5A93C & #F59E0B)
   Font: Plus Jakarta Sans & Montserrat (Tegas, Berwibawa & Ultra-Presisi)
*/

:root {
    --primary: #0B2C6D;           /* Royal Blue UNIKU */
    --primary-light: #1D4ED8;     /* Vibrant Blue Accent */
    --primary-dark: #071E4A;      /* Deep Midnight Blue */
    --primary-deep: #041230;      /* Midnight Onyx */
    
    --gold: #E5A93C;              /* Imperial Gold */
    --gold-light: #FDE047;        /* Canary Gold Glow */
    --gold-dark: #D97706;         /* Warm Amber Gold */
    --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    --gold-glow: radial-gradient(circle, rgba(229,169,60,0.22) 0%, transparent 70%);
    
    --secondary: #059669;        /* Emerald Mutu */
    --secondary-light: #10B981;  /* Jade Green */
    --secondary-dark: #047857;   /* Deep Forest Green */
    
    --dark: #0F172A;             /* Slate Charcoal (High-Contrast, Ultra-Sharp) */
    --dark-charcoal: #1E293B;    /* Deep Executive Slate */
    --light: #F8FAFC;            /* Warm Crisp Pearl White */
    --pearl: #FAF9F6;            /* Soft Ivory */
    --gray-light: #F1F5F9;       /* Light Warm Canvas */
    --gray: #64748B;             /* Neutral Slate */
    --gray-dark: #334155;        /* Dark Slate */
    
    --white: #FFFFFF;
    --border: #E2E8F0;           /* Crisp border */
    --border-gold: rgba(229, 169, 60, 0.35);
    
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    
    --shadow-sm: 0 4px 6px -1px rgba(7, 30, 74, 0.05), 0 2px 4px -2px rgba(7, 30, 74, 0.05);
    --shadow-md: 0 10px 20px -3px rgba(7, 30, 74, 0.08), 0 4px 6px -4px rgba(7, 30, 74, 0.06);
    --shadow-lg: 0 20px 30px -5px rgba(7, 30, 74, 0.14), 0 8px 12px -6px rgba(7, 30, 74, 0.1);
    --shadow-gold: 0 10px 25px -5px rgba(217, 119, 6, 0.38);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Ensure anchor target IDs scroll nicely below sticky header */
[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Typography — Tegas, Presisi & Berwibawa */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary-dark);
    margin-bottom: 0.5em;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1em;
    color: var(--gray-dark);
    letter-spacing: -0.005em;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--primary) 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(229, 169, 60, 0.4);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.05rem;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(11, 44, 109, 0.4);
    opacity: 0.95;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--white);
    background: var(--gold-gradient);
}

.btn-glow {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-glow:hover {
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

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

.btn-outline-hero {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* Topbar Styles */
.top-bar {
    background: linear-gradient(90deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 9px 0;
    border-bottom: 2px solid var(--gold);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 20px;
}

.top-contact span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.top-contact span i {
    color: var(--gold);
}

.top-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.top-links a:hover {
    color: var(--gold-light);
}

.admin-login-btn {
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.4);
    color: var(--gold-light) !important;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 700 !important;
    transition: var(--transition);
}

.admin-login-btn:hover {
    background: var(--gold);
    color: var(--primary-dark) !important;
    border-color: var(--gold);
}

/* ============================================
   NAVBAR — Royal Gold & Midnight Redesign
   ============================================ */

.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(229, 169, 60, 0.35);
    overflow: visible;
}

/* Scrolled state applied via JS */
.main-header.scrolled {
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.14);
    background: #FFFFFF;
    border-bottom-color: var(--gold);
}

.main-header .container {
    max-width: 1420px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-graphic {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 800;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
}

.logo-graphic.mini {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

/* Hamburger */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    background: var(--gray-light);
}

/* ---- Nav List ---- */
.main-nav {
    flex-shrink: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav ul li {
    position: relative;
}

/* Top-level links */
.main-nav ul li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 8px;
    font-weight: 700;
    color: var(--gray-dark);
    font-size: 0.81rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.22s ease;
    position: relative;
    letter-spacing: 0.005em;
    white-space: nowrap;
}

/* Icon in nav links */
.main-nav ul li > a > i:first-child {
    font-size: 0.76rem;
    opacity: 0.7;
    transition: all 0.22s ease;
}

/* Hover state */
.main-nav ul li > a:hover {
    color: var(--primary);
    background: rgba(11, 44, 109, 0.06);
}

@media (max-width: 1366px) {
    .main-nav ul li > a {
        padding: 7px 6px;
        font-size: 0.77rem;
        gap: 3px;
    }
    .main-nav ul li > a > i:first-child {
        font-size: 0.7rem;
    }
    .header-container {
        gap: 6px;
    }
}

@media (max-width: 1200px) {
    .main-nav ul li > a {
        padding: 6px 5px;
        font-size: 0.73rem;
        gap: 2px;
    }
    .main-nav ul li > a > i:first-child {
        font-size: 0.68rem;
    }
    .header-container {
        gap: 4px;
    }
}

.main-nav ul li > a:hover > i:first-child {
    opacity: 1;
    color: var(--primary);
}

/* Active state — golden bottom bar indicator */
.main-nav ul li > a.active {
    color: var(--primary-dark);
    background: rgba(229, 169, 60, 0.1);
    font-weight: 700;
}

.main-nav ul li > a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    border-radius: 2px 2px 0 0;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.5);
    animation: navIndicator 0.3s ease;
}

@keyframes navIndicator {
    from { opacity: 0; transform: scaleX(0.4); }
    to   { opacity: 1; transform: scaleX(1); }
}

.main-nav ul li > a.active > i:first-child {
    opacity: 1;
    color: var(--primary);
}

/* Chevron arrow */
.nav-arrow {
    font-size: 0.62rem !important;
    opacity: 0.5 !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
    margin-left: 1px;
}

.main-nav ul li:hover > a .nav-arrow {
    transform: rotate(180deg);
    opacity: 0.9 !important;
}

/* ---- Dropdown ---- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: white;
    border: 1px solid rgba(11, 44, 109, 0.09);
    border-radius: var(--radius-md);
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 8px;
    padding-top: 16px;
    display: block;
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.18), 0 2px 8px rgba(11, 44, 109, 0.07);
    pointer-events: none;
}

/* Dropdown arrow notch */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 -2px 2px rgba(245, 158, 11, 0.08));
}

.main-nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-dark);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.18s ease;
    position: relative;
}

.dropdown-menu li a::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.dropdown-menu li a:hover {
    background: rgba(245, 158, 11, 0.08);
    color: var(--primary);
    padding-left: 16px;
}

.dropdown-menu li a:hover::before {
    background: var(--primary);
    transform: scale(1.4);
}

/* Divider inside dropdown */
.dropdown-menu li + li {
    border-top: 1px solid rgba(11, 44, 109, 0.05);
}


.nav-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Content Wrapper */
.content-wrapper {
    min-height: calc(100vh - 400px);
}

/* Hero Section — Royal Midnight & Imperial Gold (Compact Viewport Fit) */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 85% 25%, rgba(229, 169, 60, 0.22) 0%, transparent 48%), radial-gradient(circle at 10% 80%, rgba(29, 78, 216, 0.2) 0%, transparent 40%), linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 45%, var(--primary) 100%);
    color: var(--white);
    padding: 28px 0 34px 0;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.hero-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.45);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.hero-tag-badge i {
    color: var(--gold);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(1.85rem, 2.4vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.hero-content h1 span {
    color: var(--gold);
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline;
    text-shadow: 0 2px 14px rgba(245, 158, 11, 0.35);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-graphic-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Shield Badge Graphic */
.shield-badge {
    background: rgba(7, 30, 74, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(229, 169, 60, 0.35);
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 25px rgba(229, 169, 60, 0.15);
    max-width: 440px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

.shield-icon {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.4));
}

.shield-badge h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-weight: 800;
}

.shield-badge p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
}

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

/* Stats Counter Section */
.stats-section {
    background-color: var(--white);
    padding: 60px 0;
    box-shadow: var(--shadow-sm);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 1rem;
}

/* Features Grid */
.features-section {
    padding: 45px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: var(--gold);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* News Section */
.news-section {
    background-color: var(--gray-light);
    padding: 45px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-body {
    padding: 25px;
}

.news-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-link:hover {
    color: var(--gold-dark);
}

/* Page Banner — Royal Midnight & Gold Header */
.page-banner {
    background: radial-gradient(circle at 92% 15%, rgba(229, 169, 60, 0.18) 0%, transparent 45%), linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 45%, var(--primary) 100%);
    color: var(--white);
    padding: 28px 0 30px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(7, 30, 74, 0.16);
    border-bottom: 2px solid var(--gold);
}

.page-banner h1 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
    color: var(--gold-light);
}

.breadcrumbs i {
    color: var(--gold);
    font-size: 0.7rem;
}

.breadcrumbs span.current {
    color: var(--gold-light);
    font-weight: 800;
    background: transparent;
    border: none;
    padding: 0;
}

/* Page Layouts & Inner Content */
.page-content-section {
    padding: 35px 0 60px 0;
}

.content-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.content-card h2 {
    font-size: 1.8rem;
    border-left: 5px solid var(--gold);
    padding-left: 15px;
    margin-bottom: 25px;
}

/* Tugas & Fungsi 2-column responsive grid */
.tugas-fungsi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
}

.vision-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 0px;
    border-top: 4px solid var(--primary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.mission-list {
    list-style: none;
}

.mission-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.mission-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--gold-dark);
    font-size: 1.2rem;
}

/* Pejabat Struktural Grid Layout */
.pejabat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    margin-top: 25px;
}

.pejabat-card {
    background-color: var(--white);
    border: 1.5px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pejabat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.pejabat-card.leader-card {
    border-top-color: var(--gold);
    background: linear-gradient(to bottom, rgba(11, 44, 109, 0.02) 0%, var(--white) 100%);
    box-shadow: 0 4px 15px rgba(11, 44, 109, 0.05);
}

.pejabat-img-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.pejabat-card:hover .pejabat-img-wrapper {
    border-color: var(--gold);
    transform: scale(1.05);
}

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

.pejabat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pejabat-info h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-dark);
    font-weight: 700;
    margin: 0;
}

.pejabat-info h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

/* Responsiveness for Pejabat Grid & Staff Grid */
.staff-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1200px) {
    .pejabat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .staff-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .pejabat-grid,
    .staff-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}


/* Document Table and Repository Page */
.doc-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.table-responsive {
    overflow-x: auto;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.doc-table th {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: left;
    padding: 11px 13px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.doc-table td {
    padding: 10px 13px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    vertical-align: middle;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table tr:hover td {
    background-color: #f8fafc;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.security-badge.secure {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.security-badge.open {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.doc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doc-action-btn:hover {
    background-color: var(--primary-light);
}

.doc-action-btn.btn-secure-view {
    background-color: #ef4444;
}

.doc-action-btn.btn-secure-view:hover {
    background-color: #dc2626;
}

/* Secure Viewer Layout */
.viewer-body {
    background-color: var(--gray-dark);
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.viewer-header {
    background-color: var(--primary-dark);
    border-bottom: 2px solid var(--gold);
    color: var(--white);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.viewer-title-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-to-portal {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.back-to-portal:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--gold-light);
}

.viewer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viewer-control-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.viewer-control-btn:hover {
    background-color: var(--gold);
    color: var(--white);
}

.viewer-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-num-display {
    font-size: 0.9rem;
    font-weight: 600;
}

.viewer-container-outer {
    flex: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 30px;
    position: relative;
}

/* Secure Document Viewer Core */
.secure-viewer-viewport {
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Canvas render sizing */
.secure-viewer-viewport canvas {
    display: block;
    max-width: 100%;
}

/* Text Watermark Overlay on Canvas */
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Toast warning notification */
.security-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #ef4444;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Admin Dashboard CSS */
.admin-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
    min-height: 500px;
}

.admin-sidebar {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-menu {
    list-style: none;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gray-dark);
    border-radius: var(--radius-sm);
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background-color: var(--gray-light);
    color: var(--primary);
}

.admin-content-box {
    background-color: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.admin-content-box h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--secondary-dark);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer Section */
.main-footer {
    background-color: #0F172A;
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0 0;
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 35px;
    padding-bottom: 35px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 800;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--gold);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.about-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.about-col .footer-logo h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0;
    font-weight: 900;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold);
    color: #0F172A;
    transform: translateY(-3px);
}

.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 8px;
}

.links-col ul li a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

.contact-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-col p i {
    color: var(--gold-light);
    margin-top: 5px;
}

.footer-bottom {
    background-color: #020617;
    padding: 20px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   MOBILE QUICK LINKS BAR — max-width: 992px
   Replaces hamburger menu. No JS dropdown needed.
   ============================================ */

/* Quick links bar: hidden on desktop */
.mobile-quicklinks-bar {
    display: none;
}

@media (max-width: 992px) {

    /* Hide hamburger button (removed from HTML too) */
    .mobile-nav-toggle {
        display: none !important;
    }

    /* Hide desktop nav on mobile */
    .main-nav {
        display: none !important;
    }

    /* Quick links bar: horizontal scroll row inside sticky header */
    .mobile-quicklinks-bar {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 8px 12px;
        background: #f8fafc;
        border-top: 1px solid rgba(217, 119, 6, 0.12);
        border-bottom: 2px solid rgba(217, 119, 6, 0.15);
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */
    }
    .mobile-quicklinks-bar::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* Each link pill */
    .mql-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 13px;
        background: rgba(229, 169, 60, 0.08);
        color: var(--primary-dark);
        border-radius: 20px;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
        text-decoration: none;
        border: 1.5px solid transparent;
        flex-shrink: 0;
        transition: background 0.15s, color 0.15s;
    }
    .mql-link i {
        font-size: 0.78rem;
        opacity: 0.8;
    }
    .mql-link:active,
    .mql-link:hover {
        background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
        color: #0F172A;
    }
    .mql-link.mql-active {
        background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
        color: #FFFFFF;
        font-weight: 800;
        border-color: #D97706;
    }

    /* Other layout fixes */
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .shield-badge { margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item { border-right: none; }
    .features-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .bottom-content { flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 576px) {
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .top-contact {
        flex-direction: column;
        gap: 5px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Running Text / Marquee Banner */
.running-text-container {
    background-color: var(--primary-dark);
    border-bottom: 2px solid var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    height: 38px;
    overflow: hidden;
    position: relative;
    z-index: 99;
}

.running-text-label {
    background-color: var(--gold);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.running-text-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.running-text-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 60s linear infinite;
    font-weight: 500;
}

.running-text-content:hover {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* ==============================================
   SURVEY PAGE STYLES
   ============================================== */

/* Hero Card */
.survey-hero-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    padding: 35px 40px;
    margin-bottom: 35px;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.survey-hero-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.survey-hero-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 80px;
    width: 150px;
    height: 150px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
}

.survey-hero-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-light);
    position: relative;
    z-index: 1;
}

.survey-hero-text {
    position: relative;
    z-index: 1;
}

.survey-hero-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.survey-hero-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 750px;
}

/* Filter Bar */
.survey-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.survey-filter-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.survey-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.survey-filter-btn {
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.survey-filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.survey-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Year Group */
.survey-year-group {
    margin-bottom: 45px;
}

.survey-year-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.survey-year-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.32);
    letter-spacing: 0.05em;
}

.survey-year-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--border), transparent);
    border-radius: 2px;
}

.survey-year-count {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Survey Cards Grid */
.survey-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

/* Survey Card */
.survey-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.2);
}

.survey-card-topbar {
    height: 5px;
    width: 100%;
}

.survey-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.survey-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.survey-card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.survey-card:hover .survey-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.survey-card-cat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: 20px;
}

.survey-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.4;
}

.survey-card-desc {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.65;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.survey-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Status Badges */
.survey-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.survey-status-open {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.survey-status-closed {
    background: rgba(100, 116, 139, 0.12);
    color: var(--gray);
}

/* Action Buttons */
.survey-action-btn {
    font-size: 0.82rem;
    padding: 7px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
}

.survey-btn-closed {
    background: var(--gray-light);
    color: var(--gray);
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .survey-hero-card {
        flex-direction: column;
        padding: 25px 22px;
    }
    .survey-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .survey-cards-grid {
        grid-template-columns: 1fr;
    }
    .survey-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .survey-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================
   AIPT COUNTDOWN SECTION
   ============================================== */

.aipt-countdown-section {
    position: relative;
    background: linear-gradient(135deg, #050f28 0%, #0b2c6d 45%, #1e3a8a 100%);
    padding: 45px 0;
    overflow: hidden;
    margin: 25px 0;
}

/* Floating particles */
.aipt-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.aipt-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.35;
    animation: aipt-float var(--d) ease-in-out infinite alternate;
}

@keyframes aipt-float {
    from { transform: translateY(0) scale(1);   opacity: 0.25; }
    to   { transform: translateY(-18px) scale(1.4); opacity: 0.6;  }
}

/* Inner layout */
.aipt-inner {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- Left Column ---- */
.aipt-text-col {
    color: white;
}

.aipt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.aipt-headline {
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    color: white;
}

.aipt-highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.aipt-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    opacity: 0.6;
}

.aipt-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 20px;
}

.aipt-desc strong {
    color: var(--gold-light);
    font-weight: 800;
}

.aipt-tags {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}

.aipt-tags span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.aipt-tags span i {
    color: var(--gold);
    font-size: 0.9rem;
}

.aipt-cta-btn {
    font-size: 0.88rem;
    padding: 11px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--gold-gradient);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: var(--transition);
    border: none;
}

.aipt-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.5);
    background: var(--gold-gradient);
    color: var(--white);
}

/* ---- Right Column: Dual Timer Cards Grid ---- */
.aipt-timer-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.aipt-timer-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 30px 16px 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aipt-timer-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    animation: aipt-crown-pulse 2s ease-in-out infinite;
}

@keyframes aipt-crown-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5); }
    50%       { box-shadow: 0 8px 30px rgba(245, 158, 11, 0.85); transform: translateX(-50%) scale(1.08); }
}

.aipt-timer-label-top {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    margin-top: 6px;
}

.aipt-timer-target-date {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 18px;
}

/* Timer grid */
.aipt-timer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 18px;
}

.aipt-timer-box {
    background: rgba(11, 44, 109, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 10px 4px 6px;
    flex: 1;
    min-width: 48px;
    text-align: center;
}

.aipt-timer-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.aipt-timer-unit {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    margin-top: 4px;
}

.aipt-timer-separator {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    padding-bottom: 10px;
    animation: aipt-blink 1s step-start infinite;
}

@keyframes aipt-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Progress Bar */
.aipt-timer-progress-wrap {
    margin-top: auto;
}

.aipt-timer-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 5px;
}

.aipt-timer-progress-label span:nth-child(2) {
    color: var(--gold-light);
    font-weight: 700;
}

.aipt-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.aipt-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .aipt-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .aipt-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }
    .aipt-tags {
        align-items: center;
    }
    .aipt-headline {
        font-size: 1.9rem;
    }
}

@media (max-width: 640px) {
    .aipt-timer-col {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .aipt-timer-box {
        min-width: 44px;
        padding: 8px 3px 5px;
    }
    .aipt-timer-num {
        font-size: 1.45rem;
    }
    .aipt-headline {
        font-size: 1.6rem;
    }
}

/* ==============================================
   DOCUMENT REPOSITORY PAGE STYLES
   ============================================== */

/* Hero Card */
.doc-hero-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    padding: 30px 36px;
    margin-bottom: 28px;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.doc-hero-card h1,
.doc-hero-card h2,
.doc-hero-card h3 {
    color: #ffffff !important;
}

.doc-hero-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

.doc-hero-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.doc-hero-icon {
    flex-shrink: 0;
    width: 62px; height: 62px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-light);
    position: relative; z-index: 1;
}

.doc-hero-text { position: relative; z-index: 1; }
.doc-hero-text h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: white; }
.doc-hero-text p  { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.7; max-width: 750px; }

/* Filter Bar */
.doc-filter-bar-new {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.doc-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
}

.doc-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.doc-filter-btn {
    padding: 7px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    border: 1.5px solid var(--border) !important;
    background: #f8fafc !important;
    color: var(--primary-dark) !important;
    cursor: pointer !important;
    font-family: var(--font-main) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.doc-filter-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: #ffffff !important;
}

.doc-filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.32) !important;
}

.doc-filter-btn.active i,
.doc-filter-btn.active span {
    color: #ffffff !important;
}

.doc-filter-total {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray);
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.doc-filter-total span {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Year Group */
.doc-year-group {
    margin-bottom: 40px;
}

.doc-year-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.doc-year-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.32);
    display: flex;
    align-items: center;
    gap: 7px;
}

.doc-year-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--border), transparent);
    border-radius: 2px;
}

.doc-year-count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Category Sub-group */
.doc-cat-group {
    margin-bottom: 22px;
}

.doc-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 14px;
}

.doc-cat-icon {
    color: var(--primary);
    font-size: 0.95rem;
}

.doc-cat-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.doc-cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray);
    background: var(--gray-light);
    padding: 2px 9px;
    border-radius: 20px;
    margin-left: auto;
}

/* Document Cards Grid */
.doc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding-left: 8px;
}

/* Document Card */
.doc-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(217, 119, 6, 0.25);
}

.doc-card-pdf-icon {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    font-size: 1.4rem;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.doc-card-body {
    padding: 14px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.4;
}

.doc-card-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.doc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.doc-card-date {
    font-size: 0.72rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Access badges */
.doc-access-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doc-badge-read {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.doc-badge-download {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

/* Card Action Button */
.doc-card-action {
    padding: 0 16px 14px;
}

.doc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-secure-view {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.28);
}

.btn-secure-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.38);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(5,150,105,0.25);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5,150,105,0.35);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .doc-hero-card {
        flex-direction: column;
        padding: 22px 18px;
    }
    .doc-filter-bar-new {
        padding: 14px 16px;
    }
    .doc-filter-label {
        min-width: unset;
    }
    .doc-cards-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
    }
}

/* ==========================================
   NEWS & KEGIATAN PAGE STYLES
   ========================================== */
.news-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card-full {
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 44, 109, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.news-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.25);
}

.news-card-img-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f1f5f9;
    overflow: hidden;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-full:hover .news-card-img-wrap img {
    transform: scale(1.05);
}

.news-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 3rem;
}

.news-card-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.news-card-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.88rem;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-card-read-btn {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.news-card-full:hover .news-card-read-btn {
    gap: 10px;
    color: var(--secondary);
}

/* ==========================================
   AGENDA & PENGUMUMAN BANNER STYLES (PREMIUM)
   ========================================== */
.agenda-banner-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-top: 4px solid var(--gold);
    box-shadow: 0 16px 40px rgba(217, 119, 6, 0.15), 0 4px 12px rgba(11, 44, 109, 0.04);
    padding: 26px 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.agenda-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 2px solid #f1f5f9;
}

.agenda-banner-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agenda-live-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: livePulse 1.8s infinite;
    flex-shrink: 0;
}

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

.agenda-banner-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(11, 44, 109, 0.05);
}

.agenda-banner-more:hover {
    color: var(--gold-dark);
    background: rgba(245, 158, 11, 0.14);
    gap: 10px;
}

.agenda-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.agenda-item-card {
    background: #f8fafc;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 12px;
    padding: 20px 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.agenda-item-card:hover {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.28);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.15);
}

.agenda-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.agenda-item-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.agenda-item-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.agenda-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.5;
    margin: 0 0 16px 0;
    min-height: 48px;
}

.agenda-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.agenda-item-target {
    font-size: 0.82rem;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

@media (max-width: 992px) {
    .agenda-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .agenda-banner-card {
        padding: 20px;
        margin-top: -30px;
    }
    .agenda-banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .agenda-banner-grid {
        grid-template-columns: 1fr;
    }
    .agenda-item-title {
        min-height: unset;
    }
}

/* ==========================================
   GLOBAL DARK CARD TEXT CONTRAST OVERRIDE
   ========================================== */
.doc-hero-card p,
.survey-hero-card p,
.hero-section p,
.aipt-section p,
.top-bar p,
.doc-hero-text p,
.survey-hero-text p,
[style*="background: linear-gradient"] p,
[style*="background:var(--primary"] p,
[style*="background: var(--primary"] p,
[style*="background:#0b2c6d"] p,
[style*="background: #0b2c6d"] p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.doc-hero-card h1, .doc-hero-card h2, .doc-hero-card h3,
.survey-hero-card h1, .survey-hero-card h2, .survey-hero-card h3,
.hero-section h1, .hero-section h2, .hero-section h3,
.doc-hero-text h1, .doc-hero-text h2, .doc-hero-text h3,
.survey-hero-text h1, .survey-hero-text h2, .survey-hero-text h3,
[style*="background: linear-gradient"] h1,
[style*="background: linear-gradient"] h2,
[style*="background: linear-gradient"] h3 {
    color: #ffffff !important;
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   Target: max-width 768px (Tablet) & 480px (Phone)
   ========================================== */

/* ── Tablet (≤ 768px) ─────────────────────── */
@media (max-width: 768px) {

    .container { padding: 0 16px; }

    /* Top Bar */
    .top-bar { font-size: 0.78rem; padding: 7px 0; }
    .top-bar-content { flex-direction: column; gap: 4px; text-align: center; }
    .top-contact { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .top-links { justify-content: center; gap: 12px; }

    /* Page Banner */
    .page-banner { padding: 18px 0 20px 0 !important; }
    .page-banner h1 { font-size: 1.4rem !important; }

    /* Content Cards */
    .content-card { padding: 22px 18px; }
    .content-card h2 { font-size: 1.4rem; }

    /* Vision Mission Grid — CRITICAL FIX */
    .vision-mission-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Tugas & Fungsi grid — single column on mobile */
    .tugas-fungsi-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Tugas & Fungsi 2-col inline grid override (fallback) */
    .content-card > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Pejabat Grid */
    .pejabat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    .pejabat-img-wrapper { width: 90px !important; height: 90px !important; }
    .pejabat-info h4 { font-size: 0.9rem !important; }

    /* Hero Section */
    .hero-section { padding: 40px 0 50px 0; }
    .hero-content h1 { font-size: 2rem !important; }
    .hero-grid { grid-template-columns: 1fr !important; text-align: center; gap: 30px; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .shield-badge { display: none; }

    /* Stats Grid */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    .stat-num { font-size: 2.2rem; }

    /* Features & News Grid */
    .features-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .feature-card { padding: 24px 20px; }
    .news-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }

    /* Doc filter bar */
    .doc-filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Survey / Doc hero cards */
    .survey-hero-card, .doc-hero-card { padding: 24px 18px !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
    .bottom-content { flex-direction: column; text-align: center; gap: 8px; }
}

/* ── Phone (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {

    .container { padding: 0 12px; }
    body { font-size: 0.95rem; }

    /* Navbar Logo */
    .site-title { font-size: 1.1rem !important; }
    .site-subtitle { font-size: 0.65rem !important; }
    .logo-graphic { width: 40px !important; height: 40px !important; font-size: 1.1rem !important; }

    /* Hero */
    .hero-content h1 { font-size: 1.7rem !important; }
    .hero-content p { font-size: 1rem !important; }
    .btn { padding: 10px 18px; font-size: 0.9rem; }

    /* Content Card */
    .content-card { padding: 18px 14px; border-radius: var(--radius-sm); }
    .content-card h2 { font-size: 1.2rem; }

    /* Vision Box */
    .vision-box { padding: 18px 14px !important; }
    .mission-list li { font-size: 0.9rem; margin-bottom: 12px; }

    /* Pejabat: stack single col on small phones */
    .pejabat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stat-num { font-size: 2rem; }
    .stat-label { font-size: 0.85rem; }

    /* News */
    .news-grid { grid-template-columns: 1fr !important; }

    /* Page Banner */
    .page-banner h1 { font-size: 1.2rem !important; }
    .breadcrumbs { font-size: 0.8rem !important; }

    /* Form controls */
    .form-control { font-size: 0.95rem; }

    /* Admin panel */
    .admin-content-box { padding: 16px 12px !important; }

    /* Section titles */
    .section-title { font-size: 1.6rem !important; }

    /* Doc & Survey filter tabs: wrap on small screens */
    .doc-filter-tabs { flex-wrap: wrap; gap: 6px !important; }
    .doc-filter-btn { font-size: 0.78rem !important; padding: 6px 12px !important; }
}

/* ==========================================================
   STRICT SHARP & STRAIGHT GEOMETRIC DESIGN OVERRIDE
   Menghilangkan semua garis melengkung & rounded corners
   ========================================================== */
*, *::before, *::after {
    border-radius: 0px !important;
}

.content-card,
.vision-box,
.feature-card,
.news-card,
.news-card-full,
.pejabat-card,
.pejabat-img-wrapper,
.shield-badge,
.agenda-banner-card,
.agenda-item-card,
.doc-hero-card,
.doc-hero-icon,
.doc-filter-bar,
.doc-filter-bar-new,
.doc-card,
.survey-hero-card,
.survey-hero-icon,
.survey-card,
.sub-index-card,
.admin-content-box,
.btn,
.btn-primary,
.btn-gold,
.btn-outline,
.btn-outline-hero,
.btn-glow,
.doc-filter-btn,
.survey-filter-btn,
.doc-action-btn,
.survey-action-btn,
.hero-tag-badge,
.agenda-item-badge,
.agenda-item-date,
.doc-access-badge,
.doc-year-badge,
.doc-year-count,
.doc-cat-count,
.news-date,
.news-card-date-badge,
.news-card-cat-badge,
.survey-status-badge,
.admin-login-btn,
.mql-link,
.form-control,
input, select, textarea,
.modal-content,
.dropdown-menu,
.alert,
.aipt-eyebrow,
.aipt-cta-btn,
.aipt-timer-card,
.aipt-timer-box,
.aipt-progress-bar-bg,
.aipt-progress-bar-fill,
.stats-section,
.badge-logos,
.agenda-banner-more {
    border-radius: 0px !important;
}

/* Sharp decorative underlines & accents */
.section-title::after,
.footer-col h4::after,
.content-card h2,
.doc-cat-header,
.main-nav ul li > a.active::after {
    border-radius: 0px !important;
}

/* Sharp profile image frames instead of circular avatars */
.pejabat-img-wrapper {
    border-radius: 0px !important;
    border: 2px solid var(--primary) !important;
    width: 140px !important;
    height: 155px !important;
}

.pejabat-img-wrapper img {
    border-radius: 0px !important;
}

/* =========================================================
   TASK PLANNER & MONITORING KEGIATAN MUTU STYLES
   ========================================================= */
.kanban-task-card,
.task-filter-cat-btn,
#taskDetailModal > div,
#editTaskModal > div {
    border-radius: 0px !important;
}

.kanban-task-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-left-color 0.2s ease;
}

.kanban-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(7, 30, 74, 0.09) !important;
}

