/* ============================================
   The Sanskar School - Custom Stylesheet
   Built with Bulma 1.0.4
   ============================================ */

:root {
    --primary: #1a3c6e;
    --primary-light: #2a5298;
    --primary-dark: #0f2847;
    --secondary: #2d8a4e;
    --secondary-light: #3aaf63;
    --accent: #d4a017;
    --accent-light: #f0c040;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-cream: #fdf6e3;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ---- Global ---- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ---- Accessibility: Focus States ---- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.navbar-item:focus-visible,
.navbar-link:focus-visible {
    outline-offset: -2px;
    background: rgba(212, 160, 23, 0.08);
}

.hero-arrow:focus-visible,
.hero-dot:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 3px var(--accent);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline-color: #fff;
}

.back-to-top:focus-visible {
    outline-color: var(--accent);
}

.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary);
}

.section {
    padding: 4rem 1.5rem;
}

img {
    max-width: 100%;
}

a {
    transition: var(--transition);
}

/* ---- Top Bar ---- */
.topbar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.topbar a:hover {
    color: var(--accent-light);
}

.btn-ecare,
.btn-ecare:visited {
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-ecare:hover,
.btn-ecare:focus {
    background: var(--accent-light);
    color: var(--primary-dark);
}

/* ---- Navbar ---- */
.navbar {
    box-shadow: var(--shadow);
    padding: 0.25rem 0;
    z-index: 100;
    position: sticky;
    top: 0;
    transition: box-shadow 0.3s ease;
}

.navbar.is-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo-item {
    gap: 0.75rem;
}

.navbar .logo-item img {
    max-height: 50px;
}

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

.school-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.school-location {
    font-size: 0.75rem;
    color: var(--text-light);
}

.navbar-item {
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar-dropdown .navbar-item {
    font-size: 0.9rem;
    padding-right: 2rem;
}

.navbar-link:not(.is-arrowless)::after {
    border-color: var(--primary);
}

.navbar-dropdown {
    border-top: 3px solid var(--accent);
    border-radius: 0 0 8px 8px;
    display: none;
}

/* Show dropdown on hover (desktop) or when JS toggles .is-open */
@media screen and (min-width: 1024px) {
    .navbar-item.has-dropdown:hover > .navbar-dropdown,
    .navbar-item.has-dropdown.is-open > .navbar-dropdown {
        display: block;
    }
}

/* ---- Hero Section ---- */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,60,110,0.7) 0%, rgba(45,138,78,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.hero-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.hero-arrow {
    pointer-events: all;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ---- Page Hero / Breadcrumb ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.page-hero .title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-hero .breadcrumb li.is-active a {
    color: var(--accent-light);
}

.page-hero .breadcrumb li + li::before {
    color: rgba(255,255,255,0.5);
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ---- Cards ---- */
.card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    border: none;
}

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

.card .card-image figure {
    overflow: hidden;
}

.card .card-image img {
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content .title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ---- About Section (Homepage) ---- */
.about-section {
    background: var(--bg-light);
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Active Navbar ---- */
.navbar-end > a.navbar-item.is-active,
.navbar-end > .navbar-item.has-dropdown.is-current-section > .navbar-link {
    color: var(--accent);
    box-shadow: inset 0 -3px 0 var(--accent);
}

.navbar-dropdown .navbar-item.is-active,
.navbar-dropdown .navbar-item.is-active:hover {
    background-color: var(--bg-light);
    color: var(--accent);
    font-weight: 600;
}

/* ---- Navbar End Tools (search + dark mode) ---- */
.navbar-end-tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,60,110,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* ---- Toppers Section ---- */
.topper-card {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.topper-session,
.topper-session:hover {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    cursor: default;
    z-index: 1;
    white-space: nowrap;
}

.topper-session i {
    margin-right: 3px;
    font-size: 0.6rem;
}

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

.topper-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin-bottom: 1rem;
}

.topper-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.topper-score {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

/* ---- Quick Links Grid (Homepage) ---- */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.quick-link {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.quick-link:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    color: var(--primary);
}

.quick-link i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition);
}

.quick-link:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.quick-link span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---- Content Pages ---- */
.content-section {
    background: var(--white);
}

.content-section .content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-section .content p {
    margin-bottom: 1.25rem;
}

.message-card {
    position: relative;
}

.message-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: var(--shadow);
}

.blockquote-accent {
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    background: var(--bg-cream);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.15rem;
    margin: 2rem 0;
}

/* ---- Facilities ---- */
.facility-card {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.facility-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.facility-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--white);
    font-size: 1.5rem;
}

.facility-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.facility-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---- Contact Form ---- */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ---- Values List ---- */
.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.value-item i {
    color: var(--secondary);
    font-size: 1.25rem;
}

.value-item span {
    font-weight: 600;
    color: var(--primary);
}

/* ---- Skills Grid ---- */
.skill-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

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

.skill-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.skill-card h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ---- Lightbox Modal ---- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.lightbox.is-active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---- Album Cards ---- */
.album-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

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

.album-card .card-image {
    position: relative;
    overflow: hidden;
}

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

.album-card:hover .card-image img {
    transform: scale(1.05);
}

.album-photo-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ---- Kids Corner ---- */
.kids-section {
    background: linear-gradient(180deg, #e3f2fd 0%, #fff9c4 100%);
}

.kids-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
}

.kids-card:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 1.5rem 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-heading {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-divider {
    background: rgba(255,255,255,0.1);
    margin: 2rem 0 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 99;
    text-decoration: none;
}

.back-to-top.is-visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Homework Table ---- */
.homework-table {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.homework-table thead th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border: none;
}

.homework-table tbody tr:hover {
    background: var(--bg-cream);
}

/* ---- Calendar ---- */
.calendar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calendar-month {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

/* ---- Animation Performance Hints ---- */
.hero-slide {
    will-change: opacity;
}

.card .card-image img,
.album-card .card-image img,
.gallery-item img {
    will-change: transform;
}

.fade-in {
    will-change: opacity, transform;
}

.fade-in.is-visible {
    will-change: auto;
}

/* ---- Inline Style Replacements ---- */
.gradient-primary-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 3rem;
}

.gradient-accent-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.gradient-hero-icon {
    display: inline-flex;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gradient-hero-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.section-line-left {
    margin: 0 0 1.5rem 0;
}

.text-muted {
    color: var(--text-light);
}

.rounded-notification {
    border-radius: var(--radius);
}

/* ---- Responsive ---- */

/* Tablet adjustments (900px) */
@media screen and (max-width: 900px) {
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }

    .contact-card {
        padding: 2rem;
    }
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease;
        opacity: 0;
        padding: 0;
        box-shadow: none;
        background: var(--white);
    }

    .navbar-menu.is-active {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        padding: 0.5rem 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .navbar-menu .navbar-item,
    .navbar-menu .navbar-link {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Mobile dropdown: always visible when parent dropdown is toggled */
    .navbar-item.has-dropdown {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .navbar-item.has-dropdown > .navbar-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    /* Arrow indicator for mobile */
    .navbar-item.has-dropdown > .navbar-link::after {
        content: '';
        border: 2px solid var(--primary);
        border-right: 0;
        border-top: 0;
        display: block;
        height: 0.5em;
        width: 0.5em;
        transform: rotate(-45deg);
        transition: transform 0.2s;
        margin-left: auto;
    }

    .navbar-item.has-dropdown.is-open > .navbar-link::after {
        transform: rotate(135deg);
    }

    /* Mobile dropdown hidden by default, shown with is-open */
    .navbar-item.has-dropdown > .navbar-dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 0;
        background: var(--bg-light);
    }

    .navbar-item.has-dropdown.is-open > .navbar-dropdown {
        display: block;
    }

    .navbar-dropdown .navbar-item {
        padding-left: 2rem;
        font-size: 0.9rem;
    }

    /* Navbar end tools row on mobile */
    .navbar-end-tools {
        padding: 0.5rem 1.25rem;
        border-top: 1px solid #eee;
        margin-top: 0.5rem;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar-left,
    .topbar-right {
        justify-content: center;
        width: 100%;
    }

    .topbar a {
        padding: 0.25rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .page-hero .title {
        font-size: 2rem;
    }

    .message-photo {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-header .title {
        font-size: 1.75rem;
    }

    .quick-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .quick-link {
        padding: 1.25rem 0.75rem;
    }

    .quick-link i {
        font-size: 1.75rem;
    }

    .quick-link span {
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-social .social-icon {
        width: 44px;
        height: 44px;
    }
}

@media screen and (max-width: 480px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .topbar-left {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ---- Search Results ---- */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
    color: var(--text-dark);
    text-decoration: none;
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.search-result-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.search-result-content p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ---- Navbar Search ---- */
.navbar-search {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.navbar-search .input {
    width: 160px;
    height: 34px;
    font-size: 0.85rem;
    border-radius: 17px;
    padding-left: 2rem;
    transition: width 0.3s ease;
}

.navbar-search .input:focus {
    width: 220px;
}

.navbar-search .icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-light);
    pointer-events: none;
}

@media screen and (max-width: 1023px) {
    .navbar-search {
        flex: 1;
        margin: 0;
    }
    .navbar-search .input {
        width: 100%;
    }
    .navbar-search .input:focus {
        width: 100%;
    }
}

/* ============================================
   Dark Mode Toggle Button
   ============================================ */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.dark-mode-toggle:hover {
    color: var(--accent);
}

.dark-mode-toggle .fa-sun {
    display: none;
}

html.dark-mode .dark-mode-toggle .fa-moon {
    display: none;
}

html.dark-mode .dark-mode-toggle .fa-sun {
    display: inline;
    color: #f0c040;
}

/* ============================================
   Dark Mode
   ============================================ */
html.dark-mode {
    --text-dark: #e0e0e0;
    --text-light: #a0a0a0;
    --bg-light: #1e1e1e;
    --bg-cream: #2a2a2a;
    --white: #121212;
    --shadow: 0 2px 15px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.4);
}

html.dark-mode body {
    background: #121212;
    color: #e0e0e0;
}

html.dark-mode .topbar {
    background: #0a0a0a;
}

html.dark-mode .navbar,
html.dark-mode .navbar.is-white {
    background: #1a1a1a;
}

html.dark-mode .navbar-dropdown {
    background: #1a1a1a;
    border-top-color: var(--accent);
}

html.dark-mode .navbar-item,
html.dark-mode .navbar-link {
    color: #e0e0e0;
}

html.dark-mode .navbar-item:hover,
html.dark-mode .navbar-link:hover {
    background: #2a2a2a;
    color: #fff;
}

html.dark-mode .navbar-dropdown .navbar-item:hover {
    background: #2a2a2a;
}

html.dark-mode .navbar-item.has-dropdown.is-current-section > .navbar-link {
    color: var(--accent-light);
}

html.dark-mode .school-name {
    color: #fff;
}

html.dark-mode .card,
html.dark-mode .contact-card,
html.dark-mode .topper-card,
html.dark-mode .facility-card,
html.dark-mode .skill-card,
html.dark-mode .value-item,
html.dark-mode .quick-link,
html.dark-mode .album-card,
html.dark-mode .kids-card,
html.dark-mode .search-result-item,
html.dark-mode .calendar-card {
    background: #1e1e1e;
    color: #e0e0e0;
}

html.dark-mode .card-content .title,
html.dark-mode .topper-name,
html.dark-mode .facility-card h4,
html.dark-mode .skill-card h5,
html.dark-mode .value-item span {
    color: #e0e0e0;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
html.dark-mode .title,
html.dark-mode .subtitle {
    color: #e0e0e0;
}

html.dark-mode .section-header .subtitle {
    color: #a0a0a0;
}

html.dark-mode .content-section {
    background: #121212;
}

html.dark-mode .about-section,
html.dark-mode .kids-section {
    background: #1a1a1a;
}

html.dark-mode .input,
html.dark-mode .textarea,
html.dark-mode .select select {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

html.dark-mode .input::placeholder,
html.dark-mode .textarea::placeholder {
    color: #666;
}

html.dark-mode .notification.is-light,
html.dark-mode .notification.is-info.is-light,
html.dark-mode .notification.is-success.is-light,
html.dark-mode .notification.is-warning.is-light,
html.dark-mode .notification.is-danger.is-light {
    background: #2a2a2a;
}

html.dark-mode .tag.is-light,
html.dark-mode .tag.is-primary.is-light,
html.dark-mode .tag.is-info.is-light,
html.dark-mode .tag.is-success.is-light,
html.dark-mode .tag.is-warning.is-light,
html.dark-mode .tag.is-danger.is-light {
    background: #2a2a2a;
}

html.dark-mode .search-result-item {
    border-color: #333;
}

html.dark-mode .navbar-search .input {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

html.dark-mode .blockquote-accent {
    background: #2a2a2a;
}

html.dark-mode .homework-table thead th {
    background: var(--primary-dark);
}

html.dark-mode .homework-table tbody tr:hover {
    background: #2a2a2a;
}

html.dark-mode .breadcrumb a,
html.dark-mode .breadcrumb li + li::before {
    color: rgba(255,255,255,0.6);
}

html.dark-mode a {
    color: var(--accent-light);
}

html.dark-mode .label {
    color: #e0e0e0;
}

html.dark-mode .help {
    color: #a0a0a0;
}

html.dark-mode .pagination-link {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

/* ---- Footer ---- */
html.dark-mode .site-footer {
    background: #0a0a0a;
    color: #a0a0a0;
}

html.dark-mode .site-footer h3,
html.dark-mode .site-footer h4,
html.dark-mode .footer-heading {
    color: #e0e0e0;
}

html.dark-mode .site-footer a,
html.dark-mode .footer-links a {
    color: rgba(255,255,255,0.6);
}

html.dark-mode .site-footer a:hover,
html.dark-mode .footer-links a:hover {
    color: var(--accent-light);
}

html.dark-mode .footer-tagline {
    color: #888;
}

html.dark-mode .footer-contact p {
    color: #a0a0a0;
}

html.dark-mode .footer-divider {
    background: rgba(255,255,255,0.08);
}

html.dark-mode .footer-bottom p {
    color: rgba(255,255,255,0.5);
}

html.dark-mode .social-icon {
    background: rgba(255,255,255,0.08);
    color: #ccc;
}

html.dark-mode .social-icon:hover {
    background: var(--accent);
    color: #fff;
}

/* ---- Bulma Overrides ---- */
html.dark-mode .has-text-grey,
html.dark-mode .has-text-grey-dark {
    color: #a0a0a0 !important;
}

html.dark-mode .has-text-dark {
    color: #e0e0e0 !important;
}

html.dark-mode .has-background-light,
html.dark-mode .has-background-white,
html.dark-mode .has-background-white-bis,
html.dark-mode .has-background-white-ter {
    background-color: #1e1e1e !important;
}

html.dark-mode strong {
    color: #e0e0e0;
}

/* ---- Mobile Navbar ---- */
html.dark-mode .navbar-menu {
    background: #1a1a1a;
}

html.dark-mode .navbar-burger {
    color: #e0e0e0;
}

html.dark-mode .navbar-dropdown .navbar-item.is-active,
html.dark-mode .navbar-dropdown .navbar-item.is-active:hover {
    background-color: #2a2a2a;
}

html.dark-mode .navbar-item.has-dropdown > .navbar-link::after {
    border-color: #a0a0a0;
}

html.dark-mode .navbar-end-tools {
    border-top-color: #333;
}

@media screen and (max-width: 1023px) {
    html.dark-mode .navbar-item.has-dropdown > .navbar-dropdown {
        background: #151515;
    }
}

/* ---- Tables ---- */
html.dark-mode .table {
    background: #1e1e1e;
    color: #e0e0e0;
}

html.dark-mode .table th {
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .table td {
    border-color: #333;
    color: #d0d0d0;
}

html.dark-mode .table thead th {
    border-color: #333;
    color: #e0e0e0;
}

html.dark-mode .table tbody tr:hover {
    background: #2a2a2a;
}

html.dark-mode .table.is-striped tbody tr:nth-child(even) {
    background: #252525;
}

/* ---- Buttons ---- */
html.dark-mode .button {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

html.dark-mode .button:hover {
    border-color: #4a4a4a;
    color: #fff;
}

html.dark-mode .button.is-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

html.dark-mode .button.is-primary:hover {
    background: var(--primary-light);
}

html.dark-mode .button.is-danger {
    background: #cc3333;
    border-color: #cc3333;
    color: #fff;
}

html.dark-mode .button.is-warning {
    background: #b58900;
    border-color: #b58900;
    color: #fff;
}

html.dark-mode .button.is-rounded {
    border-color: transparent;
}

/* ---- Bulma Message Boxes ---- */
html.dark-mode .message {
    background: #1e1e1e;
}

html.dark-mode .message-body {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #d0d0d0;
}

html.dark-mode .message.is-info .message-body {
    background: rgba(32, 156, 238, 0.1);
    border-color: rgba(32, 156, 238, 0.3);
    color: #7ec8f0;
}

html.dark-mode .message.is-warning .message-body {
    background: rgba(255, 183, 15, 0.1);
    border-color: rgba(255, 183, 15, 0.3);
    color: #f0c040;
}

html.dark-mode .message.is-success .message-body {
    background: rgba(72, 199, 142, 0.1);
    border-color: rgba(72, 199, 142, 0.3);
    color: #6ecfa0;
}

html.dark-mode .message.is-danger .message-body {
    background: rgba(241, 70, 104, 0.1);
    border-color: rgba(241, 70, 104, 0.3);
    color: #f08090;
}

/* ---- Card Footer ---- */
html.dark-mode .card-footer {
    border-top-color: #333;
}

html.dark-mode .card-footer-item {
    border-right-color: #333;
    color: var(--accent-light);
}

html.dark-mode .card-footer-item:hover {
    background: #2a2a2a;
}

/* ---- Modals ---- */
html.dark-mode .modal-content,
html.dark-mode .modal-card {
    background: #1e1e1e;
}

html.dark-mode .modal-card-head,
html.dark-mode .modal-card-foot {
    background: #252525;
    border-color: #333;
}

html.dark-mode .modal-card-title {
    color: #e0e0e0;
}

/* ---- Content text ---- */
html.dark-mode .content-section .content {
    color: #d0d0d0;
}

html.dark-mode .content-section .content p {
    color: #d0d0d0;
}

html.dark-mode .content p,
html.dark-mode .content li {
    color: #d0d0d0;
}

/* ---- Notification text ---- */
html.dark-mode .notification {
    background: #2a2a2a;
    color: #d0d0d0;
}

html.dark-mode .notification strong {
    color: #e0e0e0;
}

html.dark-mode .notification.is-success.is-light {
    color: #6ecfa0;
}

html.dark-mode .notification.is-danger.is-light {
    color: #f08090;
}

html.dark-mode .notification.is-warning.is-light {
    color: #f0c040;
}

html.dark-mode .notification.is-info.is-light {
    color: #7ec8f0;
}

/* ---- Tags in dark mode ---- */
html.dark-mode .tag.is-light {
    color: #d0d0d0;
}

html.dark-mode .tag.is-info.is-light {
    color: #7ec8f0;
}

html.dark-mode .tag.is-success.is-light {
    color: #6ecfa0;
}

html.dark-mode .tag.is-warning.is-light {
    color: #d4a017;
}

html.dark-mode .tag.is-danger.is-light {
    color: #f08090;
}

html.dark-mode .tag.is-primary.is-light {
    color: #6ea8f0;
}

html.dark-mode .tag.is-link.is-light {
    background: #2a2a2a;
    color: #7ec8f0;
}

/* ---- Pagination ---- */
html.dark-mode .pagination-previous,
html.dark-mode .pagination-next {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

html.dark-mode .pagination-previous:hover,
html.dark-mode .pagination-next:hover,
html.dark-mode .pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

html.dark-mode .pagination-link.is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---- Search result icon ---- */
html.dark-mode .search-result-icon {
    background: #2a2a2a;
    color: #a0a0a0;
}

/* ---- Inline style overrides ---- */
html.dark-mode [style*="background: var(--bg-light)"],
html.dark-mode [style*="background:var(--bg-light)"] {
    background: #1e1e1e !important;
}

html.dark-mode [style*="color: var(--text-light)"],
html.dark-mode [style*="color:var(--text-light)"] {
    color: #a0a0a0 !important;
}

html.dark-mode [style*="color: var(--text-dark)"],
html.dark-mode [style*="color:var(--text-dark)"] {
    color: #e0e0e0 !important;
}

/* ---- Box element ---- */
html.dark-mode .box {
    background: #1e1e1e;
    color: #e0e0e0;
}

/* ---- Dropdown / Select ---- */
html.dark-mode .select:not(.is-multiple):not(.is-loading)::after {
    border-color: #a0a0a0;
}

/* ---- Topper cards ---- */
html.dark-mode .topper-name {
    color: #e0e0e0;
}

html.dark-mode .topper-session {
    background: var(--primary-light);
}

/* ---- Quick links ---- */
html.dark-mode .quick-link:hover {
    color: var(--accent-light);
}

html.dark-mode .quick-link i {
    color: var(--accent-light);
}

/* ---- Kids section ---- */
html.dark-mode .kids-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #1e1e1e 100%);
}

/* ---- Blockquote ---- */
html.dark-mode .blockquote-accent {
    border-left-color: var(--accent);
    color: #d0d0d0;
}

/* ---- Contact info items ---- */
html.dark-mode .contact-info-item p,
html.dark-mode .contact-info-item a {
    color: #d0d0d0;
}

/* ---- Hamburger / Navbar link arrow ---- */
html.dark-mode .navbar-link:not(.is-arrowless)::after {
    border-color: #a0a0a0;
}

/* ---- HR / Dividers ---- */
html.dark-mode hr {
    background-color: #333;
}

/* ---- Guest book entries ---- */
html.dark-mode .contact-card p[style*="font-style: italic"] {
    color: #d0d0d0 !important;
}

/* ---- eCare button (stays visible) ---- */
html.dark-mode .btn-ecare,
html.dark-mode .btn-ecare:visited {
    background: var(--accent);
    color: #fff;
}

/* ---- File input ---- */
html.dark-mode .file-label .file-cta {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

html.dark-mode .file-label .file-name {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #d0d0d0;
}
