/* --- TEMA: BIRU v2 (ULTRA PREMIUM OCEAN) --- */
/* Merombak total dari 0 */

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-400: #60a5fa;
    --blue-600: #2563eb;
    --blue-900: #1e3a8a;
    --blue-950: #172554;
    
    /* Core Overrides */
    --primary: var(--blue-600);
    --primary-light: var(--blue-400);
    
    --bg-body: var(--blue-50);
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    
    --text-main: var(--blue-950);
    --text-muted: #475569;
    
    --border-color: var(--blue-100);
    
    /* Holiday & Cuti Overrides */
    --holiday-color: #ef4444; 
    --holiday-bg: #fef2f2;
    --holiday-border: #fecaca;
    
    --cuti-color: #f97316; 
    --cuti-bg: #fff7ed;
    --cuti-border: #fed7aa;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

/* HERO SECTION */
.portal-hero {
    background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 50%, var(--blue-600) 100%);
    color: white;
    padding: 80px 30px;
    border-radius: 24px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(23, 37, 84, 0.25);
    position: relative;
    z-index: 1;
}

.portal-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
    z-index: -1;
    border-radius: 24px;
}

.portal-hero h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, var(--blue-100));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-hero p {
    font-size: 18px;
    color: var(--blue-100);
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-weight: 500;
}

/* SEARCH BOX (GLASSMORPHISM) */
.search-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px;
    border-radius: 100px; /* Pill shape */
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-box input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 15px 25px !important;
    width: 100%;
    outline: none !important;
    font-size: 16px;
    box-shadow: none !important;
}
.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-box button {
    background: white;
    color: var(--blue-900);
    border: none;
    padding: 15px 30px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* HERO STATS */
.hero-box-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.hero-box-item {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-box-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    border-color: var(--blue-400);
}

.hero-box-label {
    font-size: 12px;
    color: var(--blue-100);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.hero-box-value {
    font-size: 24px;
    font-weight: 900;
    color: white;
}
.hero-box-value.hijriah { color: #34d399; }
.hero-box-value.jawa { color: #fbbf24; }

/* INFO CARDS */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--blue-950);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--blue-600);
    background: var(--blue-50);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    background: var(--blue-600);
    color: white;
    transform: rotate(360deg);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 800;
}

.info-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
}

/* TOPIK POPULER SECTION */
.topik-populer-wrapper {
    margin: 50px 0;
    padding: 40px; 
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05);
    border: none;
}

.topik-judul {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 35px 0;
    color: var(--blue-950);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: none;
}

.topik-judul span { 
    font-size: 28px; 
    background: var(--blue-100);
    padding: 10px;
    border-radius: 12px;
}

.pt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.pt-card {
    background: var(--blue-50);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--blue-950);
}

.pt-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue-400);
    background: white;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
}

.pt-logo-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
    padding: 15px;
    transition: transform 0.3s ease;
}

.pt-card:hover .pt-logo-container {
    transform: scale(1.1);
}

.pt-logo-container span { 
    font-size: 45px; 
    color: var(--blue-600);
}

.pt-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* TABLE CONTRAST OVERRIDES */
.brutalist-table-wrapper {
    background: white !important;
    border: 3px solid var(--blue-900) !important;
    box-shadow: 6px 6px 0px var(--blue-900) !important;
}
.brutalist-table {
    border: 3px solid var(--blue-900) !important;
}
.brutalist-th {
    background: var(--blue-900) !important;
    color: white !important;
    border: 1px solid var(--blue-950) !important;
}
.brutalist-td {
    border: 2px solid var(--blue-100) !important;
    background: white !important;
    color: var(--blue-950) !important;
}
.brutalist-td:hover {
    background: var(--blue-50) !important;
    border-color: var(--blue-400) !important;
    box-shadow: inset 0 0 0 2px var(--blue-400) !important;
}

/* YEARLY CALENDAR CONTRAST OVERRIDES */
.yearly-table {
    border: 1px solid var(--blue-400) !important;
    background-color: var(--blue-400) !important; 
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1) !important;
}
.yearly-header {
    background-color: var(--blue-900) !important;
    color: white !important;
    font-weight: 800 !important;
}
.yearly-cell {
    background-color: white !important;
}
.yearly-cell:hover {
    background-color: var(--blue-50) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .portal-hero {
        padding: 50px 20px;
        border-radius: 16px;
    }
    .portal-hero h1 {
        font-size: 32px;
    }
    .search-box {
        flex-direction: column;
        border-radius: 16px;
        padding: 15px;
    }
    .search-box button {
        width: 100%;
        margin-top: 10px;
    }
    .info-cards {
        grid-template-columns: 1fr;
    }
    .topik-populer-wrapper {
        padding: 25px 15px;
    }
}
