/* CSS Variables for Premium Design System */
:root {
    --primary: #023e8a; /* Deep Blue */
    --primary-light: #0077b6;
    --secondary: #00b4d8; /* Vibrant Teal */
    --accent: #ffb703; /* Vibrant Gold/Amber */
    --accent-hover: #fb8500;
    
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    
    --text-main: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 4px 10px rgba(2, 62, 138, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(2, 62, 138, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 35px -10px rgba(2, 62, 138, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%) fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Override for Top Bar and Header to stretch full width */
.top-bar .container,
.header .container {
    max-width: 100%;
    padding: 0 3%;
}

.header .container {
    padding-right: 0; /* Allows the Administrative button to touch the right edge */
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

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

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.contact-info a {
    color: var(--text-white);
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--accent);
}

.udise-code span {
    font-weight: 300;
}

.udise-code strong {
    color: var(--accent);
    font-weight: 600;
}

/* Header & Navigation */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

.header.scrolled .header-inner {
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 50px;
}

.school-name h1 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.school-name p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation Styles */
.main-nav {
    height: 100%;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 100%;
}

.main-nav > ul > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav > ul > li > a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
    height: 100%;
    position: relative;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--secondary);
}

.main-nav > ul > li:not(.nav-admin) > a::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.main-nav > ul > li:not(.nav-admin) > a:hover::after,
.main-nav > ul > li:not(.nav-admin) > a.active::after {
    width: 100%;
}

/* Administrative Button */
.main-nav > ul > li.nav-admin {
    margin-left: 10px;
}

.main-nav > ul > li.nav-admin > a {
    background: #00bcd4; /* Vibrant teal */
    color: #ffffff;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 1rem;
    height: auto;
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.header.scrolled .main-nav > ul > li.nav-admin > a {
    /* Height is now automatic, no need to override */
}

.main-nav > ul > li.nav-admin > a:hover {
    background: #009eb3;
    color: #ffffff;
}

.main-nav .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.main-nav li:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
    border-top: 3px solid var(--primary-light);
}

.main-nav > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-light);
    padding-left: 25px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: rgba(2, 62, 138, 0.08);
    border: 1px solid rgba(2, 62, 138, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Ticker */
.notification-ticker {
    background: var(--secondary);
    color: #fff;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
}

.ticker-title {
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.ticker-title::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 10px solid var(--primary);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 8px 15px;
}

.ticker-content a, .ticker-content span {
    color: #fff;
}

.ticker-content a:hover {
    color: var(--bg-dark);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: url('../photos/photo/school_gate.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 62, 138, 0.4) 0%, rgba(0, 180, 216, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

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

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

/* Common Title */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 30px;
    border-radius: 2px;
}

.title-underline.center {
    margin: 20px auto 40px;
}

/* HOI Section */
.hoi-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.hoi-image-wrapper {
    position: relative;
}

.hoi-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.hoi-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    font-size: 5rem;
    color: rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.hoi-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.hoi-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hoi-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
}

/* Academic Excellence Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.stat-card:hover .stat-icon {
    color: var(--accent);
    transform: scale(1.1);
    transition: var(--transition);
}

.stat-number {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Activity Section */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.activity-img {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.activity-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    transition: var(--transition);
}

.activity-card:hover .activity-img::before {
    background: rgba(0,0,0,0);
}

.activity-img.teaching { background: linear-gradient(135deg, #11998e, #38ef7d); }
.activity-img.campus { background: linear-gradient(135deg, #FF416C, #FF4B2B); }
.activity-img.sports { background: linear-gradient(135deg, #4776E6, #8E54E9); }

.activity-content {
    padding: 30px;
}

.activity-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.activity-content p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    transform: translateY(-3px);
}

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

.links-col a {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-col a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-details li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.contact-details i {
    color: var(--accent);
    margin-top: 5px;
}

.contact-details a {
    color: #cbd5e1;
}

.contact-details a:hover {
    color: var(--accent);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
}

.copyright-text p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contact-info {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .contact-info a { margin: 0; }

    .header-inner {
        height: 75px;
    }

    .school-name h1 {
        font-size: 1.15rem;
    }

    .logo-img {
        height: 48px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        background: linear-gradient(180deg, #022c64 0%, #023e8a 100%);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        transition: max-height 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s ease;
        border-bottom: 4px solid var(--accent);
        border-radius: 0 0 20px 20px;
    }

    .main-nav.active {
        max-height: 85vh;
        opacity: 1;
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        height: auto;
    }

    .main-nav > ul > li {
        width: 100%;
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0;
    }

    .main-nav > ul > li:first-child {
        border-top: none;
    }

    .main-nav > ul > li > a {
        padding: 14px 24px;
        color: rgba(255, 255, 255, 0.92);
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-transform: none;
        letter-spacing: 0.3px;
        transition: var(--transition);
    }

    .main-nav > ul > li > a i.fa-chevron-down {
        display: inline-block;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .main-nav > ul > li.has-dropdown.open > a i.fa-chevron-down {
        transform: rotate(180deg);
        color: var(--accent);
    }

    .main-nav > ul > li > a:hover,
    .main-nav > ul > li.active > a {
        background: rgba(255, 183, 3, 0.15);
        color: var(--accent);
        padding-left: 28px;
        border-left: 4px solid var(--accent);
    }

    .main-nav .dropdown {
        position: static;
        width: 100%;
        background: rgba(0, 0, 0, 0.25);
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        border-top: none;
        display: block !important;
    }

    .main-nav > ul > li.has-dropdown.open .dropdown {
        max-height: 200px;
    }

    .main-nav .dropdown a {
        padding: 12px 20px 12px 48px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .main-nav .dropdown a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        padding-left: 52px;
    }

    .main-nav > ul > li.nav-admin {
        margin: 15px 20px 20px 20px;
        width: calc(100% - 40px);
    }

    .main-nav > ul > li.nav-admin > a {
        background: linear-gradient(135deg, var(--accent), var(--accent-hover));
        color: #ffffff;
        justify-content: center;
        border-radius: 30px;
        padding: 13px 20px;
        font-size: 1rem;
        font-weight: 700;
        box-shadow: 0 6px 20px rgba(255, 183, 3, 0.4);
    }

    .ticker-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .ticker-title {
        text-align: center;
    }

    .ticker-title::after {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hoi-grid {
        grid-template-columns: 1fr;
    }

    .hoi-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}


/* Teacher Profiles */
.teacher-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
}

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

.teacher-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.teacher-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.teacher-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.teacher-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* New Vertical Teacher Cards */
.teachers-container {
    margin-top: 30px;
}
.teacher-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .teacher-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .teacher-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .teacher-grid-new {
        grid-template-columns: 1fr;
    }
}

.teacher-card-vertical {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.teacher-photo-area {
    background: #dcdcdc; /* Matching the grey from screenshots */
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.teacher-photo-area img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: #fbd38d; /* Orange circle behind avatar */
    padding: 5px; /* if the png has transparent background, the circle will show */
}

.teacher-info-area {
    padding: 20px;
    text-align: left;
    background: #fff;
}

.teacher-desig {
    color: #007bff; /* Blue */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.teacher-name {
    color: #333;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}


/* Notice Table Styles */
.notice-table-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #fff;
    border: 1px solid #e2e8f0;
}

.notice-table th {
    background-color: #405189; /* Dark blue matching image */
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.notice-table td {
    padding: 8px 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    vertical-align: middle;
}

.notice-table tbody tr {
    background-color: #ffffff;
}

.notice-table tbody tr:hover {
    background-color: #f7fafc;
}

.btn-view {
    display: inline-block;
    background-color: #dc3545; /* Red button */
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-view:hover {
    background-color: #c82333;
    color: white;
}


/* Page Header Override */
.page-header.section-padding {
    padding: 30px 0 15px 0; /* Reduced from 80px */
}


/* =========================================
   Modern Gallery Styles
   ========================================= */

.gallery-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background: var(--bg-white);
    padding: 15px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.filter-btn {
    padding: 9px 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-main);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
}

.filter-btn:hover {
    background: rgba(0, 180, 216, 0.1);
    color: var(--secondary);
    border-color: var(--secondary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.view-mode-toggle {
    display: flex;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    padding: 7px 15px;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
}

.mode-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.btn-back {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-back:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary);
}

.album-current-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #0f172a;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(2, 62, 138, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
    display: block;
    opacity: 0.92;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: 1;
}

/* Badge for count or category */
.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 62, 138, 0.95) 0%, rgba(0, 180, 216, 0.45) 50%, transparent 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    transform: translateY(15px);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.6);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item:hover .gallery-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Enhanced Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: space-between;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title-wrap h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.lightbox-title-wrap span {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.lightbox-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.lightbox-img-wrapper {
    max-width: 85%;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    max-width: 100%;
}

.lightbox-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.lightbox-thumb:hover, .lightbox-thumb.active {
    opacity: 1;
    border-color: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-header-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-tabs {
        justify-content: center;
    }
    .view-mode-toggle {
        justify-content: center;
    }
    .lightbox-prev { left: 10px; width: 42px; height: 42px; }
    .lightbox-next { right: 10px; width: 42px; height: 42px; }
}
