* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    transition: margin-left 0.3s ease-in-out;
}

/* --- Loading Screen Styles --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.pencil {
    display: block;
    margin: 0 auto 20px;
    animation: write 3s ease-in-out infinite;
}

.pencil-body { fill: var(--secondary-color); }
.pencil-eraser { fill: #FDD835; }
.pencil-eraser-band { fill: #BDBDBD; }
.pencil-tip { fill: var(--text-dark); }

.line {
    width: 80%;
    margin: 0 auto;
}

.line path {
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw 3s ease-in-out infinite;
}

.loader-text {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInText 3s ease-in-out infinite;
}

@keyframes write {
    0% { transform: rotate(-10deg) translateX(0); }
    50% { transform: rotate(-10deg) translateX(-10px); }
    100% { transform: rotate(-10deg) translateX(0); }
}

@keyframes draw {
    0% { stroke-dashoffset: 500; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 500; }
}

@keyframes fadeInText {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Simple Gallery Styles */
.gallery-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.simple-gallery {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.gallery-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-container {
        height: 350px;
    }
    
    .slide-caption {
        font-size: 1rem;
        padding: 10px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        height: 250px;
    }
    
    .slide-caption {
        font-size: 0.9rem;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Enhanced CBSE Information Section */
.cbse-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Documents Row */

.doc-item {
  background: #f8fafc;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.doc-item:hover {
  background: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15);
}

.doc-preview {
  display: flex;
  align-items: center;
  gap: 15px;
}

.preview-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.doc-info h4 {
  color: #1e3a8a;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.doc-size {
  font-size: 0.85rem;
  color: #6b7280;
}

.quick-download {
  width: 40px;
  height: 40px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.quick-download:hover {
  background-color: #d97706;
  transform: scale(1.1);
}

.featured-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.featured-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.primary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.secondary-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.accent-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.card-header {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.featured-card .doc-icon {
    font-size: 2.5rem;
    margin: 0;
}

.featured-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.featured-card p {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-footer {
    padding: 0 25px 25px 25px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.download-icon {
    font-size: 1.2rem;
}

/* Document Categories */
.doc-categories {
    margin-bottom: 50px;
}

.category-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--secondary-color);
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
}

.category-header h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.category-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.doc-item {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.doc-item:hover {
    background: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15);
}

.doc-preview {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info {
    flex-grow: 1;
}

.doc-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.doc-size {
    color: var(--text-light);
    font-size: 0.85rem;
}

.quick-download {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-download:hover {
    background: #d97706;
    transform: scale(1.1);
}

.quick-download span {
    font-size: 1.2rem;
}

/* Quick Access Bar */
.quick-access-bar {
    background: var(--gradient);
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    color: white;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.access-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.access-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.access-info p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .featured-docs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-card {
        height: 250px;
    }
    
    .card-header {
        padding: 25px 20px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .featured-card .doc-icon {
        font-size: 2rem;
    }
    
    .category-section {
        padding: 25px 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-access-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .access-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .doc-preview {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .preview-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .quick-download {
        width: 35px;
        height: 35px;
    }
}

/* Updated document actions layout */
.doc-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.preview-btn {
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.preview-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.preview-btn span {
    font-size: 1.1rem;
    color: white;
}

/* Update doc-preview to accommodate new layout */
.doc-preview {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-info {
    flex-grow: 1;
}

/* PDF Preview Container Styles */
.pdf-preview-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
}

.preview-header {
    background: var(--gradient);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-preview-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-preview-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.preview-content {
    height: 600px;
    position: relative;
}

#pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Smooth animations */
.pdf-preview-container {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for preview */
@media (max-width: 768px) {
    .preview-content {
        height: 400px;
    }
    
    .preview-header {
        padding: 15px 20px;
    }
    
    .preview-header h3 {
        font-size: 1.1rem;
    }
    
    .doc-actions {
        gap: 5px;
    }
    
    .preview-btn,
    .quick-download {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .preview-content {
        height: 300px;
    }
    
    .doc-preview {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .doc-actions {
        justify-content: center;
    }
}


/* Header Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.title h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.title p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.info {
    text-align: right;
    font-size: 0.9rem;
}

.info b {
    color: var(--primary-color);
    display: inline-block;
    margin-right: 5px;
}

.info p {
    display: inline;
    color: var(--text-dark);
    margin-right: 15px;
}

/* --- Desktop Navigation Styles --- */
nav {
    background: var(--gradient);
    box-shadow: var(--shadow);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

nav a:hover::after {
    width: 80%;
    left: 10%;
}

/* --- Mobile Sidebar Styles --- */
.mobile-menu-toggle, .mobile-menu-close {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.sidebar-header {
    display: none; /* Hidden on desktop */
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}


/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="[http://www.w3.org/2000/svg](http://www.w3.org/2000/svg)" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 100,0 200,50 300,0 400,30 500,0 600,40 700,0 800,20 900,0 1000,10 1000,100"/></svg>') repeat-x;
    bottom: -1px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Grid Layouts */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Admission Section */
.admission-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.admission-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.admission-content h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.admission-content ol {
    background: var(--light-bg);
    padding: 20px 30px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.admission-content li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.documents-list {
    list-style: none;
    padding: 0;
}

.documents-list li {
    background: var(--light-bg);
    margin: 10px 0;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease;
}

.documents-list li:hover {
    background: #ecfdf5;
    transform: translateX(10px);
}

.documents-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Management Section */
.management-content {
    max-width: 1000px;
    margin: 0 auto;
}

.management-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.management-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

.management-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.management-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.management-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.management-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.management-avatar img:hover {
    transform: scale(1.1);
}

.management-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.management-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.management-description {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
}

.management-description p {
    color: var(--text-dark);
    line-height: 1.7;
    text-align: justify;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section a, .footer-section p {
    color: #d1d5db;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: row; /* Keep it row for alignment */
        justify-content: space-between; /* Space between logo and button */
        flex-wrap: nowrap; /* Prevent wrapping */
        align-items: center;
    }

    .info {
        display: none; /* Hide contact info in header on mobile */
    }

    .title h1 { font-size: 1.3rem; }
    .logo img { width: 50px; height: 50px; }

    /* --- Sidebar Navigation for Mobile --- */
    nav {
        display: none; /* Hide desktop nav bar */
    }

    #mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 280px;
        height: 100vh;
        background: var(--primary-color);
        z-index: 2000;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    
    .sidebar-open #mobile-sidebar {
        left: 0; /* Slide in */
    }

    .sidebar-open .overlay {
        display: block;
    }
    
    #mobile-sidebar .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mobile-sidebar .sidebar-header h3 {
        color: var(--white);
        font-size: 1.5rem;
    }

    #mobile-sidebar .mobile-menu-close {
        display: block;
        color: var(--white);
        font-size: 1.5rem;
    }

    #mobile-sidebar ul {
        flex-direction: column;
        padding-top: 20px;
    }

    #mobile-sidebar li {
        width: 100%;
    }

    #mobile-sidebar a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    #mobile-sidebar a:hover {
        background-color: var(--secondary-color);
        transform: translateY(0);
    }

    #mobile-sidebar a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger button */
    }
    
    .hero { padding: 50px 0; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 50px 0; }
    .section h2 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 20px; }
    .about-card { padding: 30px 20px; }
    .admission-content { padding: 30px 20px; }
    .management-grid { grid-template-columns: 1fr; gap: 20px; }
    .management-description { padding: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
    .btn { padding: 12px 25px; font-size: 1rem; }
    .section h2 { font-size: 1.8rem; }
    .about-card, .admission-content, .management-card, .contact-card {
        padding: 25px 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    .hero {
        background: none !important;
        color: var(--text-dark) !important;
    }
    .section {
        page-break-inside: avoid;
    }
}
