/* Mayuri Natya Khetram Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6B0E20;      /* Deep Maroon */
    --primary-light: #8A142A;/* Bright Crimson */
    --primary-dark: #4A0814; /* Dark Maroon */
    --accent: #D4AF37;       /* Indian Gold */
    --accent-light: #F3E5AB; /* Muted Gold / Cream */
    --bg-cream: #FAF6F0;     /* Traditional Warm Cream Background */
    --bg-white: #FFFFFF;
    --text-dark: #2D1F1C;    /* Dark Charcoal for readability */
    --text-light: #FFFFFF;
    --text-muted: #6B5E5B;
    --border-gold: rgba(212, 175, 55, 0.4);
    --border-light: #EADBC8;
    --shadow-soft: 0 4px 20px rgba(45, 31, 28, 0.08);
    --shadow-hover: 0 12px 30px rgba(107, 14, 32, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary-dark);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-cream);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Common Layout Elements */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.badge-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    color: var(--primary);
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.section-header .divider-ornament {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 5px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 10px auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 14, 32, 0.4);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}
.btn-accent:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Floating Actions */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}
.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Top Notification Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent);
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-info {
    display: flex;
    gap: 20px;
    align-items: center;
}
.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-bar-info svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
}
.top-bar-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}
.top-bar-socials a:hover {
    color: var(--accent);
    transform: scale(1.1);
}
.top-bar-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Sticky Header */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

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

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

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

.logo-text h1 {
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Desktop Navigation */
nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin-right: 20px;
}

.nav-link {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

/* SPA Sections Transitions */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active-view {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Home Section Styles */

/* Hero Banner */
.hero {
    position: relative;
    min-height: 550px;
    background: linear-gradient(135deg, rgba(74, 8, 20, 0.9), rgba(107, 14, 32, 0.7)), url('assets/hero_dancer.jpg');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding: 80px 0;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
}

.hero-tag {
    background-color: var(--accent);
    color: var(--primary-dark);
    display: inline-block;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 2.8rem;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Counters Stats Bar */
.counters-bar {
    background-color: var(--accent-light);
    border-bottom: 3px solid var(--accent);
    padding: 30px 0;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
}
.counter-item:last-child {
    border-right: none;
}

.counter-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.counter-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
}

.counter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* What We Offer / Courses Section */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.course-img-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img {
    transform: scale(1.08);
}

.course-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.course-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-body h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.course-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

.course-affiliation {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
}

.course-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.course-link:hover {
    color: var(--accent);
}

/* Split Columns (Why Choose Us & Events) */
.home-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 50px;
}

.upcoming-events-panel {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.events-list {
    margin-top: 20px;
}

.event-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}
.event-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-date {
    background-color: var(--primary);
    color: var(--text-light);
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    flex-shrink: 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(107, 14, 32, 0.2);
}
.event-date .day {
    font-size: 1.4rem;
    line-height: 1;
}
.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-info h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}
.event-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.event-info .event-details-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Why Choose Us & Affiliate */
.why-choose-panel {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.why-list {
    list-style: none;
    margin: 25px 0;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.why-list li svg {
    width: 20px;
    height: 20px;
    fill: #28a745;
    flex-shrink: 0;
    margin-top: 2px;
}

.affiliate-badge {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.affiliate-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 5px;
    background: white;
    object-fit: contain;
    flex-shrink: 0;
}
.affiliate-text h5 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.affiliate-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Testimonials Slider */
.testimonials-section {
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-cream));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 10px 40px;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.4;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.testimonial-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* About Us Section Styles */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.about-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 3px solid var(--accent);
}
.about-hero-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.about-hero-content p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.founder-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}
.founder-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}
.founder-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--accent);
}
.founder-card h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.founder-role {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.founder-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Faculty Bios Layout */
.faculty-section {
    background-color: var(--bg-white);
    padding: 60px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-top: 60px;
}
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 30px;
}
.faculty-card {
    text-align: center;
}
.faculty-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    margin-bottom: 15px;
}

/* Courses & Syllabus Styles */
.course-detail-panel {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-soft);
}
.course-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bg-cream);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.course-detail-header h3 {
    font-size: 1.8rem;
}
.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.milestone-card {
    background-color: var(--bg-cream);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--accent);
}
.milestone-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.grades-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 25px;
}
.grades-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 9px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-gold);
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -26px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--accent);
}
.timeline-item h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Exams Section & Quiz Game */
.exam-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.exam-details h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.exam-details p {
    margin-bottom: 15px;
    color: var(--text-muted);
}
.exam-quiz-panel {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 2px solid var(--accent);
    padding: 40px;
    box-shadow: var(--shadow-hover);
}
.quiz-welcome, .quiz-question-view, .quiz-result-view {
    display: none;
}
.quiz-welcome.active-quiz-state, 
.quiz-question-view.active-quiz-state, 
.quiz-result-view.active-quiz-state {
    display: block;
}
.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 25px;
}
.quiz-option {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.quiz-option:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
}
.quiz-option.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.quiz-option.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.quiz-progress {
    height: 6px;
    background-color: var(--border-light);
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

/* Gallery Showcase Styles */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.gallery-filter-btn {
    background: white;
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.gallery-filter-btn:hover, .gallery-filter-btn.active-filter {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    height: 250px;
    position: relative;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(45, 31, 28, 0.9));
    color: white;
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-item-info {
    opacity: 1;
}

/* Admissions Section & Fee Estimator */
.admissions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.admissions-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.calculator-panel {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 35px;
    box-shadow: var(--shadow-soft);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background-color: var(--bg-cream);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
}

.fee-display-card {
    background-color: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    margin: 25px 0;
}
.fee-display-card h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.fee-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: 'Cinzel', serif;
}

/* Dynamic Admin Portal Interface */
.admin-portal-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 600px;
    overflow: hidden;
}

.admin-sidebar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.admin-logo-area {
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}
.admin-logo-area h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.admin-logo-area span {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.admin-menu-item button {
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.admin-menu-item button:hover, .admin-menu-item.active-tab button {
    color: var(--text-light);
    background-color: var(--primary);
}
.admin-menu-item.active-tab button {
    border-left: 4px solid var(--accent);
}
.admin-menu-item button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.admin-content {
    padding: 40px;
    overflow-y: auto;
    background-color: #fafbfd;
}

.admin-tab-panel {
    display: none;
}
.admin-tab-panel.active-panel {
    display: block;
}

.admin-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.admin-header-title h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

/* Stats Overview Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.admin-stat-card {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}
.admin-stat-card.stat-accent {
    border-left-color: var(--accent);
}
.admin-stat-card h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.admin-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Admin Database Tables */
.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
}
.db-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.db-table th {
    background-color: var(--bg-cream);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 12px 18px;
    border-bottom: 2px solid var(--border-light);
}
.db-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}
.db-table tr:hover {
    background-color: rgba(250, 246, 240, 0.5);
}

/* Form Styles inside Admin */
.admin-form-panel {
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    padding: 30px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(45, 31, 28, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active-modal {
    display: flex;
    opacity: 1;
}
.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 2px solid var(--accent);
}
.modal-overlay.active-modal .modal-card {
    transform: scale(1);
}
.modal-header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    color: var(--text-light);
    font-size: 1.25rem;
}
.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}
.modal-close-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.modal-body {
    padding: 30px 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Checkout / Receipt design */
.receipt-layout {
    font-family: monospace;
    border: 1px dashed var(--text-muted);
    padding: 25px;
    background: #fff;
    color: #000;
}
.receipt-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.receipt-divider {
    border-top: 1px dashed var(--text-muted);
    margin: 15px 0;
}
.receipt-total {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Checkout Gateway Spinner */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact & Footer Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 15px;
}
.contact-card-icon {
    font-size: 1.5rem;
    color: var(--primary);
}
.contact-card-text h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}
.contact-card-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer Section */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
    border-top: 4px solid var(--accent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo h3 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}
.footer-logo p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}
.footer-col h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.footer-col ul li a {
    display: inline-block;
}
.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}
.footer-branch-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 0.85rem;
}
.footer-branch-card h5 {
    color: var(--accent-light);
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    font-size: 0.9rem;
}
.toast.toast-active {
    transform: translateX(0);
}
.toast.toast-success {
    border-left-color: #28a745;
}
.toast.toast-info {
    border-left-color: #17a2b8;
}

/* Responsive styles */
@media (max-width: 992px) {
    .home-split-grid {
        grid-template-columns: 1fr;
    }
    .about-hero-grid, .exam-layout, .admissions-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
    .admin-portal-wrapper {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 15px 0;
        border-bottom: 2px solid var(--accent);
    }
    .admin-logo-area {
        padding: 0 20px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0;
    }
    .admin-menu {
        flex-direction: row;
        overflow-x: auto;
    }
    .admin-menu-item button {
        padding: 15px 20px;
        white-space: nowrap;
    }
    .admin-menu-item.active-tab button {
        border-left: none;
        border-bottom: 4px solid var(--accent);
    }
    .admin-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .admin-header-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .top-bar-content {
        justify-content: center;
        gap: 10px;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        border-bottom: 2px solid var(--accent);
        box-shadow: var(--shadow-hover);
        flex-direction: column;
        padding: 20px;
    }
    nav.nav-active {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        gap: 10px;
    }
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    .nav-link.active::after {
        left: 0;
        right: 0;
    }
    header .btn {
        width: 100%;
        margin-top: 10px;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .counter-item {
        border-right: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Full-Screen Admin Mode Styles */
body.admin-mode {
    overflow: hidden; /* Prevent body scrolling since dashboard has its own scroll */
    background-color: #fafbfd;
}

body.admin-mode header,
body.admin-mode footer,
body.admin-mode .whatsapp-float {
    display: none !important;
}

body.admin-mode main {
    padding: 0 !important;
    margin: 0 !important;
}

body.admin-mode #admin-portal {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    display: block !important;
}

body.admin-mode #admin-portal .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

body.admin-mode .admin-portal-wrapper {
    border-radius: 0 !important;
    border: none !important;
    height: 100vh !important;
    min-height: 100vh !important;
    grid-template-columns: 260px 1fr !important;
}

body.admin-mode .admin-sidebar {
    height: 100vh !important;
    padding: 30px 0 !important;
}

body.admin-mode .admin-content {
    height: 100vh !important;
    overflow-y: auto !important;
    padding: 40px !important;
}

/* Mobile responsive adjustments for full screen admin mode */
@media (max-width: 992px) {
    body.admin-mode .admin-portal-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
        height: 100vh !important;
    }
    body.admin-mode .admin-sidebar {
        height: auto !important;
        padding: 10px 0 !important;
    }
    body.admin-mode .admin-content {
        height: calc(100vh - 120px) !important;
        padding: 20px !important;
    }
}
