/* PM SHRI / Govt. Sr. Sec. School Premium Custom Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Yatra+One&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --header-navy-dark: #0b1f42;
    --header-navy: #184285;
    --primary-blue: #1d61e8;
    --primary-blue-glow: #3b82f6;
    --accent-gold: #f59e0b;
    --accent-yellow-light: #fef08a;
    --accent-crimson: #dc2626;
    --accent-emerald: #10b981;
    --accent-purple: #7c3aed;
    --bg-main: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --card-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 20px 45px rgba(29, 97, 232, 0.12);
    --border-radius-card: 20px;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* 1. TOP HEADER & BAR */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 8px 0;
    font-size: 0.88rem;
}
.quote-text {
    font-style: italic;
    color: #475569;
    font-weight: 500;
}

/* Header Brand Box */
.header-brand-box {
    background: linear-gradient(135deg, #0b1f42 0%, #184285 50%, #1d61e8 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 25px rgba(24, 66, 133, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}
.header-brand-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(24, 66, 133, 0.35);
}
.header-brand-box img {
    height: 56px;
    width: 56px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.header-brand-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}
.header-brand-sub {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 900;
    margin: 3px 0 0 0;
    color: #fef08a;
    font-family: 'Yatra One', 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* 2. PRIMARY NAVBAR */
.main-navbar {
    background: linear-gradient(90deg, #0b1f42 0%, #184285 40%, #1d61e8 100%);
    box-shadow: 0 4px 20px rgba(11, 31, 66, 0.25);
    padding: 4px 0;
    border-bottom: 2px solid rgba(245, 158, 11, 0.4);
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    padding: 12px 18px !important;
    font-size: 0.98rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    min-height: 44px;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    padding: 10px;
}
.dropdown-item {
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* 3. TOP NOTIFICATION TICKER */
.ticker-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ticker-badge {
    background: linear-gradient(135deg, #e11d48, #dc2626);
    color: #fff;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
    white-space: nowrap;
}

/* 4. PREMIUM CARD STYLING */
.card-custom {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-card);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}
.card-header-blue {
    background: linear-gradient(135deg, #184285, #1d61e8);
    color: #ffffff;
    padding: 16px 22px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header-purple {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    padding: 16px 22px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* UNIFORM ELEGANT PDF BUTTON */
.btn-pdf-custom {
    background: linear-gradient(135deg, #1d61e8, #184285) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 12px rgba(29, 97, 232, 0.25) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
}
.btn-pdf-custom:hover {
    background: linear-gradient(135deg, #0b1f42, #184285) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(29, 97, 232, 0.4) !important;
}

/* 5. BOTTOM-TO-TOP NEWS RUNNING TICKER */
.news-ticker-container {
    height: 390px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    padding: 12px;
}
.news-ticker-content {
    animation: newsScroll 20s linear infinite;
}
.news-ticker-container:hover .news-ticker-content {
    animation-play-state: paused;
}
@keyframes newsScroll {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}
.news-item-card {
    padding: 14px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.25s ease;
}
.news-item-card:hover {
    background: #f1f5f9;
    transform: scale(1.01);
}
.news-item-date {
    font-size: 0.78rem;
    color: var(--primary-blue);
    font-weight: 800;
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}
.news-item-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.96rem;
    margin: 6px 0;
    line-height: 1.4;
}

/* 6. NOTICE BOARD */
.notice-list {
    max-height: 390px;
    overflow-y: auto;
}
.notice-item {
    padding: 14px 18px;
    border-left: 5px solid var(--primary-blue);
    background: #f8fafc;
    margin-bottom: 12px;
    border-radius: 0 12px 12px 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.notice-item.important {
    border-left-color: var(--accent-crimson);
    background: #fff5f5;
}
.notice-item:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

/* 7. TOPPER ACHIEVEMENT CARD (Matching Screenshot 3 design!) */
.topper-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.topper-badge-rank {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #0f172a;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-block;
    text-transform: uppercase;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
    letter-spacing: 0.5px;
}
.topper-photo-wrap {
    position: relative;
    text-align: center;
    padding: 15px;
}
.topper-photo-img {
    width: clamp(140px, 30vw, 210px);
    height: clamp(140px, 30vw, 210px);
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fbbf24;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    transition: transform 0.4s ease;
}
.topper-photo-img:hover {
    transform: scale(1.05);
}
.topper-pill-red {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.topper-banner-red {
    background: linear-gradient(90deg, #991b1b, #dc2626);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 900;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(153, 27, 27, 0.3);
    font-family: 'Yatra One', 'Outfit', sans-serif;
}
.topper-stats-right {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
    color: #ffffff;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
}
.topper-percent-big {
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 8. SCHOOL PROFILE BANNER CARD */
.profile-banner-card {
    background: linear-gradient(135deg, #0b1f42 0%, #1d61e8 50%, #0d9488 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: 0 20px 45px rgba(29, 97, 232, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-box-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    transition: transform 0.3s ease;
}
.stat-box-pill:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.22);
}

/* 9. CAROUSEL BANNER */
.carousel-inner img {
    height: clamp(240px, 45vw, 440px);
    object-fit: cover;
    border-radius: var(--border-radius-card);
}

/* 10. STAFF CARDS */
.staff-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-blue-glow);
}
.staff-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-blue);
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(29, 97, 232, 0.2);
}

/* 11. LABS & INFRASTRUCTURE */
.lab-card-img {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius-card);
    border-top-right-radius: var(--border-radius-card);
}

/* 12. FOOTER */
footer {
    background: #091326;
    color: #94a3b8;
    padding-top: 50px;
    padding-bottom: 25px;
    margin-top: 60px;
    border-top: 3px solid var(--primary-blue);
}
footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}
footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}
footer a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

/* 13. RESPONSIVE MEDIA QUERIES FOR MOBILE & TABLET (NO DESIGN BREAK!) */
@media (max-width: 991.98px) {
    .header-brand-box {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 16px;
    }
    .navbar-collapse {
        background: rgba(11, 31, 66, 0.98);
        backdrop-filter: blur(16px);
        padding: 15px;
        border-radius: 16px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    .topper-stats-right {
        border-radius: 0 0 24px 24px;
        padding: 25px 20px;
    }
    .news-ticker-container, .notice-list {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .header-brand-box img {
        height: 44px;
        width: 44px;
    }
    .header-brand-title {
        font-size: 0.95rem;
    }
    .header-brand-sub {
        font-size: 1.15rem;
    }
    .stat-box-pill {
        padding: 10px 4px;
    }
    .stat-box-pill h3 {
        font-size: 1.1rem;
    }
    .stat-box-pill small {
        font-size: 0.7rem;
    }
    .topper-card {
        border-radius: 16px;
    }
    .topper-banner-red {
        font-size: 1.1rem;
        padding: 10px 12px;
    }
}
