/* Custom Corporate Hub Design System - Panchakanya Group */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Light Theme Palette (Default) — Panchakanya Corporate Blue */
    --bg-primary: #f0f8fd;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.97);
    --border-color: rgba(0, 70, 138, 0.12);
    --border-color-hover: rgba(0, 102, 179, 0.35);

    --text-primary: #001a2e;
    --text-secondary: #335a78;
    --text-muted: #7ea3bd;

    --bg-navbar: rgba(240, 248, 253, 0.85);
    --orb-color-1: rgba(0, 102, 179, 0.06);
    --orb-color-2: rgba(201, 152, 26, 0.04);

    /* Brand Accents — corporate blue + heritage gold + festive crimson */
    --accent-blue: #0055a0;
    --accent-indigo: #0066b3;   /* PKG Corporate Blue (primary accent) */
    --accent-cyan: #1a7ec7;
    --accent-emerald: #0f8a5f;
    --accent-rose: #c0001a;
    --accent-amber: #c9981a;
    --accent-gold: #c9981a;

    --gradient-primary: linear-gradient(135deg, #002f54 0%, #0066b3 70%, #1a7ec7 100%);
    --gradient-blue: linear-gradient(135deg, #001a2e 0%, #0066b3 100%);
    --gradient-rose: linear-gradient(135deg, #7a0010 0%, #e53040 100%);
    --gradient-emerald: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    --gradient-gold: linear-gradient(135deg, #9a6f00 0%, #f0cb6a 100%);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 26, 46, 0.06);
    --shadow-md: 0 8px 32px 0 rgba(0, 26, 46, 0.1);
    --glow-indigo: 0 0 25px rgba(0, 102, 179, 0.05);
    --glow-indigo-hover: 0 0 35px rgba(0, 102, 179, 0.16);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

.dark-theme, :root.dark-theme {
    /* Dark Theme Palette — deep corporate navy */
    --bg-primary: #00111f;
    --bg-secondary: #001a2e;
    --bg-card: rgba(0, 36, 64, 0.55);
    --bg-card-hover: rgba(0, 51, 90, 0.75);
    --border-color: rgba(122, 184, 226, 0.12);
    --border-color-hover: rgba(67, 153, 212, 0.45);

    --text-primary: #eaf4fb;
    --text-secondary: #9fc0d8;
    --text-muted: #5d8099;

    --bg-navbar: rgba(0, 17, 31, 0.85);
    --orb-color-1: rgba(0, 102, 179, 0.16);
    --orb-color-2: rgba(201, 152, 26, 0.1);

    /* Brand Accents */
    --accent-blue: #4399d4;
    --accent-indigo: #1a7ec7;
    --accent-cyan: #7ab8e2;
    --accent-emerald: #10b981;
    --accent-rose: #e53040;
    --accent-amber: #f0cb6a;
    --accent-gold: #f0cb6a;

    --gradient-primary: linear-gradient(135deg, #002f54 0%, #0066b3 70%, #1a7ec7 100%);
    --gradient-blue: linear-gradient(135deg, #001a2e 0%, #0066b3 100%);
    --gradient-rose: linear-gradient(135deg, #7a0010 0%, #e53040 100%);
    --gradient-emerald: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    --gradient-gold: linear-gradient(135deg, #9a6f00 0%, #f0cb6a 100%);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --glow-indigo: 0 0 25px rgba(0, 102, 179, 0.18);
    --glow-indigo-hover: 0 0 35px rgba(0, 102, 179, 0.38);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Cyber Background Orbs */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-color-1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-color-2) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-navbar);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
    text-decoration: none;
    margin-left: clamp(0.5rem, 2vw, 1.75rem);
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}
.logo-container:hover .logo-img {
    transform: translateY(-1px);
}

.logo-slogan {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-weight: 400;
    font-size: 0.875rem;
    display: block;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button Icons Display Logic */
#sun-icon {
    display: none;
}
#moon-icon {
    display: block;
}
.dark-theme #sun-icon {
    display: block;
}
.dark-theme #moon-icon {
    display: none;
}

.btn-admin {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-admin:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-indigo);
    color: white;
    box-shadow: 0 0 15px rgba(0, 102, 179, 0.2);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(0, 102, 179, 0.12);
    color: var(--accent-indigo);
    border: 1px solid rgba(0, 102, 179, 0.25);
    margin-bottom: 1.5rem;
    animation: pulse 3s infinite;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Interactive Search Bar */
.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: var(--glow-indigo-hover);
    background: var(--bg-secondary);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-input:focus + .search-icon {
    color: var(--accent-indigo);
}

/* Dashboard Content Grid (Bento Style) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Gateway Portals Bento Grid */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    --ty: 0px;
    transform: translateY(var(--ty));
}

/* Dynamic glow effect on hover */
.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.portal-card:hover::before {
    opacity: 1;
}

.portal-card:hover {
    --ty: -6px;
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md), var(--glow-indigo);
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.portal-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.portal-card:hover .portal-icon-box {
    background: rgba(0, 102, 179, 0.15);
    border-color: rgba(0, 102, 179, 0.3);
    transform: scale(1.1);
}

.arrow-icon {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.portal-card:hover .arrow-icon {
    color: var(--text-primary);
    transform: translate(3px, -3px);
}

.portal-body {
    position: relative;
    z-index: 2;
}

.portal-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portal-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Sidebar Broadcast Center */
.broadcast-center {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.broadcast-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Canteen Widget */
.canteen-widget {
    background: linear-gradient(135deg, rgba(0, 102, 179, 0.05) 0%, rgba(201, 152, 26, 0.05) 100%);
    border: 1px dashed rgba(0, 102, 179, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.canteen-thumbnail-img {
    transition: var(--transition-smooth);
}

.canteen-widget:hover .canteen-thumbnail-img {
    transform: scale(1.05);
}

.canteen-widget:hover {
    background: linear-gradient(135deg, rgba(0, 102, 179, 0.1) 0%, rgba(201, 152, 26, 0.1) 100%);
    border-color: var(--accent-indigo);
    box-shadow: var(--shadow-sm);
    transform: scale(1.02);
}

.canteen-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
}

.canteen-btn {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-indigo);
}

/* Notices List */
.notices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.notice-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.notice-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
    transform: translateX(4px);
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.notice-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notice-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

/* Blur Modal Layer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border-color: rgba(244, 63, 94, 0.3);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-media {
    width: 100%;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.pdf-viewer {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    background: white;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-close-action {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-close-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.25rem 0;
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.footer p {
    margin: 0.35rem 0;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-indigo);
}

/* Discreet admin access pill in footer */
.footer-admin {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-admin-link:hover {
    color: var(--accent-indigo);
    border-color: var(--border-color-hover);
    background: rgba(0, 102, 179, 0.06);
}

/* Pancha-Patro Calendar Styles */
.calendar-card-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.calendar-leaf {
    width: 80px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    flex-shrink: 0;
}

.calendar-leaf-header {
    background: var(--accent-rose);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.05em;
}

.calendar-leaf-body {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0.5rem 0;
    line-height: 1;
}

.calendar-leaf-footer {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 0.35rem;
    text-transform: uppercase;
}

.calendar-today-info {
    flex: 1;
}

.today-holiday-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    margin-bottom: 0.35rem;
}

.today-regular-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    margin-bottom: 0.35rem;
}

.today-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.today-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.calendar-upcoming-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.35rem;
}

.calendar-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.calendar-upcoming-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
    transform: translateX(4px);
}

.event-date-badge {
    width: 42px;
    height: 42px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.event-month {
    font-size: 0.6rem;
    color: var(--accent-rose);
    text-transform: uppercase;
    line-height: 1;
}

.event-day {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.05rem;
}

.event-weekday {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-type-pill {
    flex-shrink: 0;
}

.pill-holiday {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.pill-event {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(0, 102, 179, 0.12);
    color: var(--accent-indigo);
    border: 1px solid rgba(0, 102, 179, 0.2);
}

/* ════════════════════════════════════════════════════════════════════
   HOMEPAGE V2 REDESIGN — Mesh BG · Hero · Search · Bento · Animations
   ════════════════════════════════════════════════════════════════════ */

/* ─── Animated Mesh Background ─── */
.hero-stage {
    position: relative;
}
.hero-mesh-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    border-radius: 0 0 32px 32px;
}
.hero-mesh-bg .mesh-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
}
.hero-mesh-bg .mesh-orb-1 {
    width: 520px; height: 520px;
    top: -180px; left: -120px;
    background: radial-gradient(circle, rgba(0,102,179,0.55) 0%, rgba(0,102,179,0) 70%);
    animation: meshFloat 18s ease-in-out infinite;
}
.hero-mesh-bg .mesh-orb-2 {
    width: 460px; height: 460px;
    top: -80px; right: -100px;
    background: radial-gradient(circle, rgba(201,152,26,0.32) 0%, rgba(201,152,26,0) 70%);
    animation: meshFloat 22s ease-in-out infinite reverse;
}
.hero-mesh-bg .mesh-orb-3 {
    width: 600px; height: 600px;
    top: 120px; left: 35%;
    background: radial-gradient(circle, rgba(26,126,199,0.28) 0%, rgba(26,126,199,0) 70%);
    animation: meshFloat 26s ease-in-out infinite;
}
.dark-theme .hero-mesh-bg .mesh-orb-1 { opacity: 0.45; }
.dark-theme .hero-mesh-bg .mesh-orb-2 { opacity: 0.40; }
.dark-theme .hero-mesh-bg .mesh-orb-3 { opacity: 0.35; }

.hero-mesh-bg .mesh-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 179, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 179, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000 0%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000 0%, transparent 82%);
}
.dark-theme .hero-mesh-bg .mesh-grid {
    background-image:
        linear-gradient(rgba(122, 184, 226, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 184, 226, 0.08) 1px, transparent 1px);
}

/* HUD scanline — a soft beam that sweeps the hero top-to-bottom on a loop,
   the classic "live system" cue that sells the digital-dashboard read. */
.hero-scanline {
    position: absolute;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan) 50%, transparent);
    box-shadow: 0 0 14px 1px rgba(26, 126, 199, 0.45);
    opacity: 0;
    animation: scanlineSweep 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scanlineSweep {
    0%   { top: 8%;  opacity: 0; }
    6%   { opacity: 0.55; }
    46%  { opacity: 0.55; }
    52%  { top: 92%; opacity: 0; }
    100% { top: 92%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scanline { display: none; }
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 25px) scale(0.95); }
}

/* ─── Hero v2 ─── */
.hero-v2 {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1rem 3rem;
    max-width: 880px;
    margin: 0 auto;
}

/* Entrance animation primitives */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0ms);
}

/* Eyebrow chip with live pulse */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    animation: floatUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--delay, 0ms);
}
.live-dot {
    width: 7px; height: 7px;
    border-radius: 9999px;
    background: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(15, 138, 95, 0.55);
    animation: livePulse 2s ease-in-out infinite;
}
.live-dot-sm { width: 6px; height: 6px; }
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 138, 95, 0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(15, 138, 95, 0); }
}

/* H1 with gradient/shimmer */
.hero-title-v2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin: 1.25rem auto 0.75rem;
    color: var(--text-primary);
    animation: floatUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--delay, 0ms);
}
.hero-title-v2 .shimmer-text {
    /* Static brand-blue → gold gradient. An infinite color-cycling animation here
       read as constant "blinking" on the page's largest heading — a still gradient
       keeps the polished look without the visual noise. */
    background: linear-gradient(110deg,
        var(--accent-indigo) 0%,
        var(--accent-cyan) 45%,
        var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-title-v2 .hero-title-rest {
    display: block;
    color: var(--text-primary);
}

.hero-subtitle-v2 {
    color: var(--text-secondary);
    font-size: 1.04rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.75rem;
    animation: floatUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--delay, 0ms);
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Search v2 ─── */
.search-v2 {
    position: relative;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.7rem 0.7rem 1.1rem;
    border-radius: 14px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    animation: floatUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--delay, 0ms);
}
.search-v2:hover,
.search-v2:focus-within,
.search-v2.is-active {
    border-color: var(--border-color-hover);
    box-shadow: var(--glow-indigo-hover), var(--shadow-md);
    transform: translateY(-1px);
}
.search-v2-icon {
    color: var(--accent-indigo);
    flex-shrink: 0;
    display: inline-flex;
}
.search-v2-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.2rem 0;
}
.search-v2-input::placeholder {
    color: var(--text-muted);
}
.search-v2-kbd {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-v2-kbd .kbd-key {
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 0 var(--border-color);
    font-weight: 600;
    line-height: 1;
}
.search-v2-kbd .kbd-plus {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 0.1rem;
}
.search-v2-clear {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}
.search-v2-clear:hover {
    color: var(--accent-rose);
    border-color: var(--accent-rose);
}

/* ─── Hero Stats Strip — HUD-style live data panel ─── */
.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 580px;
    margin: 0 auto 1.5rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: floatUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--delay, 0ms);
}
/* Viewfinder-style corner brackets — reinforces the "live data panel" read */
.hero-stats::before,
.hero-stats::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-indigo);
    opacity: 0.3;
    pointer-events: none;
}
.hero-stats::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
    border-radius: 6px 0 0 0;
}
.hero-stats::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 6px 0;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    border-radius: 10px;
    transition: var(--transition-fast);
}
.hero-stat + .hero-stat {
    border-left: 1px solid var(--border-color);
}
.hero-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-indigo);
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}
/* Live ticking clock — monospace so digits don't jitter the layout each second */
.hero-stat-clock-num {
    font-family: 'Outfit', 'Noto Sans Devanagari', monospace;
    font-variant-numeric: tabular-nums;
    color: var(--accent-emerald);
    letter-spacing: 0.02em;
}
.hero-stat-clock-num::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 0.4em;
    margin-bottom: 0.15em;
    border-radius: 9999px;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px 1px rgba(15, 138, 95, 0.6);
    animation: livePulse 2s ease-in-out infinite;
}

@media (max-width: 540px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stat + .hero-stat:nth-child(3) { border-left: none; }
}

/* ─── Quick Action Chips ─── */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    animation: floatUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--delay, 0ms);
}
.qchip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.qchip:hover {
    color: var(--accent-indigo);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-indigo-hover);
}
.qchip-primary {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(0, 102, 179, 0.28);
}
.qchip-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 179, 0.4);
}

/* ─── Section Head (new for portals list) ─── */
.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.section-head-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.section-head-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: var(--accent-indigo);
    box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.18);
}
.section-head-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}
.section-head-meta { flex-shrink: 0; }
.section-head-count {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    background: rgba(0, 102, 179, 0.08);
    color: var(--accent-indigo);
    border: 1px solid rgba(0, 102, 179, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── Portal Card v2 — tilt + glow ─── */
.portal-card-v2 {
    transform-style: preserve-3d;
    transform: perspective(900px) translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}
.portal-card-v2:hover {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    box-shadow: 0 18px 50px -10px rgba(0, 102, 179, 0.25),
                var(--glow-indigo-hover);
}
.portal-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 102, 179, 0.16),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.portal-card-v2:hover .portal-card-glow { opacity: 1; }
.portal-card-v2 .portal-header,
.portal-card-v2 .portal-body,
.portal-card-v2 .portal-card-footer { position: relative; z-index: 2; }

.portal-card-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    justify-content: flex-end;
}
.portal-launch-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}
.portal-card-v2:hover .portal-launch-cta {
    transform: translateX(3px);
}

/* ─── Empty State v2 ─── */
.empty-state-v2 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
}
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 9999px;
    background: rgba(0, 102, 179, 0.08);
    color: var(--accent-indigo);
    margin-bottom: 0.75rem;
}

/* ─── CTA link polish ─── */
.cta-link-v2 {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-indigo);
    background: rgba(0, 102, 179, 0.06);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 179, 0.15);
    transition: var(--transition-smooth);
}
.cta-link-v2:hover {
    background: rgba(0, 102, 179, 0.12);
    border-color: rgba(0, 102, 179, 0.3);
    transform: translateY(-1px);
}

/* ─── Notice item v2 — read-more affordance ─── */
.notice-item-v2 {
    position: relative;
    overflow: hidden;
}
.notice-item-v2::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-rose);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.notice-item-v2:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}
.notice-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-rose);
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.notice-item-v2:hover .notice-read-more {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Calendar leaf v2 — gentle float ─── */
.calendar-leaf-v2 {
    animation: leafFloat 6s ease-in-out infinite;
    box-shadow: 0 12px 32px -8px rgba(0, 102, 179, 0.35);
}
@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%      { transform: translateY(-4px) rotate(1.5deg); }
}

/* ─── Hero container needs to lift above mesh ─── */
.hub-main-layout { position: relative; }
.hub-main-layout > .hero-stage,
.hub-main-layout > section,
.hub-main-layout > .dashboard-grid { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════════════════════════
   PANCHA-PATRO PROMO CARD — Premium emblem-led navigation
   ════════════════════════════════════════════════════════════════════ */
.pp-promo-panel { padding-top: 0.5rem; }

.pp-promo-card {
    position: relative;
    display: block;
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 18%, rgba(240, 203, 106, 0.22), transparent 70%),
        linear-gradient(135deg, #001a2e 0%, #002f54 45%, #0066b3 100%);
    border: 1px solid rgba(240, 203, 106, 0.28);
    box-shadow:
        0 14px 40px -10px rgba(0, 26, 46, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}
.pp-promo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 203, 106, 0.5);
    box-shadow:
        0 22px 55px -12px rgba(0, 26, 46, 0.65),
        0 0 0 1px rgba(240, 203, 106, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.pp-promo-card:focus-visible {
    outline: 3px solid var(--accent-amber);
    outline-offset: 3px;
}

.pp-promo-glow {
    position: absolute;
    top: -45%;
    left: 50%;
    width: 150%;
    height: 130%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(240, 203, 106, 0.32) 0%, transparent 55%);
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.55s ease;
    z-index: 0;
}
.pp-promo-card:hover .pp-promo-glow { opacity: 0.95; }

.pp-promo-shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.pp-promo-card:hover .pp-promo-shine { left: 200%; }

.pp-promo-header,
.pp-promo-emblem-wrap,
.pp-promo-info,
.pp-promo-meta,
.pp-promo-cta {
    position: relative;
    z-index: 2;
}

.pp-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pp-promo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.7rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(240, 203, 106, 0.3);
    color: #f0cb6a;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pp-promo-year-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(122, 184, 226, 0.28);
    color: #b3d7f0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pp-promo-emblem-wrap {
    display: flex;
    justify-content: center;
    margin: 0.85rem 0 0.5rem;
}
.pp-promo-emblem {
    width: 180px;
    height: 180px;
    max-width: 62%;
    object-fit: contain;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pp-promo-card:hover .pp-promo-emblem {
    transform: scale(1.06) rotate(-2deg);
}

.pp-promo-info {
    text-align: center;
    margin: 0.25rem 0 1rem;
}
.pp-promo-title {
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0cb6a;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.pp-promo-subtitle {
    color: #b3d7f0;
    font-size: 0.78rem;
    line-height: 1.55;
    max-width: 260px;
    margin: 0 auto;
}

.pp-promo-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.pp-promo-today {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed rgba(122, 184, 226, 0.22);
}
.pp-promo-today-label {
    color: #7ab8e2;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pp-promo-today-date {
    color: #f0cb6a;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}
.pp-promo-today-bs {
    display: block;
    margin-top: 0.15rem;
    color: #9cc9ea;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.pp-promo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}
.pp-promo-status-holiday { color: #ffb3bd; }
.pp-promo-status-open    { color: #b8e6d5; }
.status-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    flex-shrink: 0;
}
.status-dot-red {
    background: #e53040;
    box-shadow: 0 0 0 0 rgba(229, 48, 64, 0.55);
    animation: livePulse 2s ease-in-out infinite;
}
.status-dot-green {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    animation: livePulse 2s ease-in-out infinite;
}

.pp-promo-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #c9981a 0%, #f0cb6a 100%);
    color: #001a2e;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 6px 18px rgba(201, 152, 26, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
}
.pp-promo-cta svg {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pp-promo-card:hover .pp-promo-cta {
    background: linear-gradient(135deg, #f0cb6a 0%, #c9981a 100%);
    box-shadow: 0 10px 24px rgba(201, 152, 26, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.pp-promo-card:hover .pp-promo-cta svg {
    transform: translateX(3px);
}

/* ════════════════════════════════════════════════════════════════════
   POLISH — Section dividers · Focus rings · Grain · Panel refinements
   ════════════════════════════════════════════════════════════════════ */

/* Subtle grain texture on mesh background — adds tactile depth */
.hero-mesh-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}

/* Gradient underline on section heads */
.section-head {
    position: relative;
    padding-bottom: 1rem;
}
.section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg,
        rgba(0, 102, 179, 0.35) 0%,
        rgba(0, 102, 179, 0.12) 35%,
        transparent 100%);
}

/* Broadcast panel — slightly richer card surface */
.broadcast-panel {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.dark-theme .broadcast-panel {
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Calendar upcoming header — gradient divider above */
.calendar-upcoming-header {
    position: relative;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-top: none;
}
.calendar-upcoming-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 102, 179, 0.3) 50%,
        transparent 100%);
}

/* Unified focus rings — brand-accent for keyboard nav */
.qchip:focus-visible,
.portal-card:focus-visible,
.notice-item:focus-visible,
.sidebar-link:focus-visible,
.search-v2:focus-within {
    outline: none;
}
.qchip:focus-visible,
.portal-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.35),
                var(--glow-indigo-hover);
}

/* Slightly tighten hero spacing on small screens */
@media (max-width: 640px) {
    .hero-v2 { padding: 2.5rem 1rem 2rem; }
    .pp-promo-emblem { width: 150px; height: 150px; max-width: 60%; }
    .pp-promo-title { font-size: 1.3rem; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .mesh-orb, .calendar-leaf-v2, .shimmer-text, .live-dot,
    .pp-promo-emblem, .status-dot-red, .status-dot-green {
        animation: none !important;
    }
    .pp-promo-card, .pp-promo-cta { transition: none !important; }
    .reveal-up {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ─── x-cloak and Navigation Menu Styles ─── */
[x-cloak] {
    display: none !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-indigo);
    background: rgba(0, 102, 179, 0.05);
}

.nav-link.active {
    color: var(--accent-indigo);
    font-weight: 600;
    background: rgba(0, 102, 179, 0.08);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.mobile-nav-link {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-align: left;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--accent-indigo);
    background: rgba(0, 102, 179, 0.05);
}

@media (max-width: 840px) {
    .nav-menu {
        display: none;
    }
    .btn-mobile-menu {
        display: flex !important;
    }
}

