/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1920&auto=format&fit=crop') center/cover;
    padding: 6rem 0 4rem;
    color: white;
    text-align: center;
    position: relative;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h2 { font-size: 3rem; color: white; margin-bottom: 1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-weight: 500; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: white; }
.separator { color: rgba(255,255,255,0.5); }

/* About Page */
.about-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-full-text p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; }
.vision-mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.vm-card { background: white; padding: 3rem 2rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-md); transition: transform 0.4s ease, box-shadow 0.4s ease; border-top: 4px solid var(--gold); }
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.vm-card-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.value-item { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--bg-light); padding: 2rem; border-radius: var(--radius-md); transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease; }
.value-item:hover { background: var(--primary); color: white; }
.value-item:hover h4, .value-item:hover p, .value-item:hover i { color: white; }
.value-item i { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; transition: var(--transition); }
.value-item h4 { color: var(--primary); margin-bottom: 0.5rem; transition: var(--transition); }

/* Disclosure Table (For Documents with Links) */
.disclosure-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.disclosure-table td { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--bg-light); }
.disclosure-table tr:last-child td { border-bottom: none; }
.label-cell { font-weight: 600; color: var(--primary); width: 40%; background: #f8fafc; }

/* General Info Table (For Static Text Data) */
.general-info-table { width: 100%; border-collapse: collapse; background: white; border-radius: 0 0 var(--radius-md) var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); table-layout: fixed; word-wrap: break-word; }
.general-info-table th { text-align: left; padding: 1rem 1.5rem; background: #f8fafc; color: var(--text-main); font-weight: 600; border-bottom: 2px solid #e2e8f0; }
.general-info-table td { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--bg-light); color: var(--text-main); line-height: 1.6; }
.general-info-table tr:last-child td { border-bottom: none; }
.general-info-table .label-cell { font-weight: 600; color: var(--primary); background: #f8fafc; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-info-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 2.5rem 1.25rem; border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; box-shadow: 0 10px 30px -10px var(--primary-dark); border: 1px solid rgba(255,255,255,0.1); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease; position: relative; overflow: hidden; z-index: 1; }
.contact-info-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-light), var(--primary)); opacity: 0; transition: opacity 0.5s ease; z-index: -1; }
.contact-info-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px -10px var(--primary-dark); }
.contact-info-card:hover::before { opacity: 1; }
.contact-info-card .icon { background: rgba(255,255,255,0.1); color: var(--gold); width: 70px; height: 70px; font-size: 1.75rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 0 0 0 rgba(255,255,255,0.2); }
.contact-info-card:hover .icon { background: var(--gold); color: var(--primary-dark); transform: scale(1.15) rotate(360deg); box-shadow: 0 0 25px 5px rgba(245, 158, 11, 0.5); }
.contact-info-card h4 { font-size: 1.25rem; margin-bottom: 0; color: white; font-weight: 700; transition: transform 0.3s ease; }
.contact-info-card:hover h4 { transform: translateY(-3px); }
.contact-info-card p { font-size: 0.95rem; color: rgba(255,255,255,0.85) !important; margin: 0; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; width: 100%; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; height: 300px; box-shadow: var(--shadow-md); }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Forms */
.form-card { background: white; padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border-top: 5px solid var(--primary); }
.form-card h3 { margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); font-size: 0.9rem; }
.required { color: #ef4444; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: var(--radius-sm); font-family: var(--font-body); transition: var(--transition); background: #f9fafb; }
.form-control:focus { outline: none; border-color: var(--primary-light); background: white; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.btn-submit { background: var(--primary); color: white; border: none; padding: 1rem 2rem; font-weight: 600; font-size: 1rem; border-radius: var(--radius-xl); cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; width: 100%; justify-content: center; }
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.alert { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Gallery */
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.filter-btn { background: var(--bg-light); border: none; padding: 0.5rem 1.5rem; border-radius: var(--radius-xl); font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-muted); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: flex-end; padding: 1.5rem; opacity: 0; transition: var(--transition); color: white; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: white; margin-bottom: 0.25rem; font-size: 1.1rem; transform: translateY(10px); transition: transform 0.3s ease; }
.gallery-item:hover .gallery-overlay h4 { transform: translateY(0); }
.gallery-overlay .category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 2rem; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; box-shadow: var(--shadow-xl); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; cursor: pointer; transition: var(--transition); }
.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }
.lightbox-caption { color: white; margin-top: 1rem; font-size: 1.25rem; font-family: var(--font-heading); }

/* Academics Page */
.curriculum-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.curriculum-tab { background: var(--bg-light); border: none; padding: 0.75rem 2rem; border-radius: var(--radius-xl); font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-muted); font-family: var(--font-body); }
.curriculum-tab:hover, .curriculum-tab.active { background: var(--primary); color: white; box-shadow: var(--shadow-md); }
.curriculum-content { display: none; animation: fadeIn 0.5s ease; }
.curriculum-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.subject-item { background: white; border: 1px solid #e5e7eb; padding: 1rem; border-radius: var(--radius-md); display: flex; align-items: center; gap: 0.75rem; font-weight: 500; color: var(--text-main); transition: var(--transition); box-shadow: var(--shadow-sm); }
.subject-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.subject-item i { color: var(--gold); font-size: 1.25rem; }

.beyond-academics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.beyond-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; align-items: flex-start; padding: 2rem; gap: 1.5rem; border-left: 4px solid var(--gold); }
.beyond-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.beyond-card-icon { font-size: 2.5rem; color: var(--primary); background: var(--bg-light); width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.beyond-card-body h3 { color: var(--primary); margin-bottom: 0.5rem; font-family: var(--font-heading); }
.beyond-card-body p { color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Admissions Page */
.admission-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.step-card { background: white; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); text-align: center; border-top: 4px solid var(--gold); transition: transform 0.4s ease, box-shadow 0.4s ease; position: relative; margin-top: 1rem; }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-number { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: bold; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.step-card h3 { margin-top: 1rem; margin-bottom: 0.5rem; color: var(--primary); }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

.admission-form-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.form-info h3 { color: var(--primary); margin-bottom: 1rem; }
.form-info p { color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.documents-list { background: white; padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-top: 2rem; }
.documents-list h4 { margin-bottom: 1rem; color: var(--primary); }
.documents-list ul { list-style: none; padding: 0; }
.documents-list li { padding: 0.5rem 0; border-bottom: 1px dashed #e5e7eb; display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.95rem; }
.documents-list li:last-child { border-bottom: none; }
.documents-list li i { color: #10b981; }

/* Principal Message */
.principal-section { display: grid; grid-template-columns: 350px 1fr; gap: 3rem; align-items: start; }
.principal-photo { position: sticky; top: 120px; }
.principal-photo-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid var(--bg-light); text-align: center; }
.photo-placeholder { height: 280px; background: linear-gradient(135deg, var(--bg-light), #e2e8f0); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--primary-light); }
.principal-photo-card .info { padding: 1.5rem; background: var(--primary); color: white; }
.principal-photo-card .info h3 { margin-bottom: 0.25rem; font-family: var(--font-heading); font-size: 1.25rem; }
.principal-photo-card .info p { margin: 0; color: var(--gold); font-weight: 500; }
.principal-message-content h3 { color: var(--primary); font-family: var(--font-heading); margin-bottom: 1.5rem; font-size: 1.8rem; }
.principal-message-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; font-size: 1.05rem; }
.principal-message-content .quote { background: var(--bg-light); padding: 1.5rem 2rem; border-left: 4px solid var(--gold); font-style: italic; font-size: 1.2rem; color: var(--primary); margin: 2rem 0; font-family: var(--font-heading); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.principal-signature { margin-top: 3rem; }
.principal-signature .name { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary); margin-bottom: 0.25rem; font-weight: bold; }
.principal-signature .title { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Disclosure */
.disclosure-section { margin-bottom: 3rem; }
.disclosure-section h3 { background: var(--primary); color: white; padding: 1rem 1.5rem; border-radius: var(--radius-md) var(--radius-md) 0 0; margin: 0; display: flex; align-items: center; gap: 0.75rem; font-size: 1.1rem; }
.disclosure-section .disclosure-table { border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-sm); table-layout: fixed; word-wrap: break-word; }
.disclosure-table th { text-align: left; padding: 1rem 1.5rem; background: #f8fafc; color: var(--text-main); font-weight: 600; border-bottom: 2px solid #e2e8f0; }
.disclosure-section .disclosure-table th:nth-child(1),
.disclosure-section .disclosure-table td:nth-child(1) { width: 8%; }
.disclosure-section .disclosure-table th:nth-child(2),
.disclosure-section .disclosure-table td:nth-child(2) { width: 72%; }
.disclosure-section .disclosure-table th:nth-child(3),
.disclosure-section .disclosure-table td:nth-child(3) { width: 20%; }

.disclosure-section .general-info-table th:nth-child(1),
.disclosure-section .general-info-table td:nth-child(1) { width: 10%; text-align: center; color: var(--text-muted); }
.disclosure-section .general-info-table th:nth-child(2),
.disclosure-section .general-info-table td:nth-child(2) { width: 45%; }
.disclosure-section .general-info-table th:nth-child(3),
.disclosure-section .general-info-table td:nth-child(3) { width: 45%; }

/* Events Page */
.events-filter-bar { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.events-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.event-list-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; border: 1px solid var(--bg-light); }
.event-list-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.event-list-date { background: var(--primary); color: white; padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 130px; text-align: center; }
.event-list-date .day { font-size: 2.5rem; font-weight: 700; line-height: 1; margin-bottom: 0.25rem; font-family: var(--font-heading); }
.event-list-date .month { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; color: var(--gold); }
.event-list-date .year { font-size: 0.9rem; opacity: 0.8; }
.event-list-body { padding: 2rem; flex: 1; }
.event-list-body .tag { display: inline-block; padding: 0.25rem 0.75rem; background: var(--bg-light); color: var(--primary); border-radius: var(--radius-xl); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 1rem; }
.event-list-body h3 { color: var(--primary); margin-bottom: 0.75rem; font-family: var(--font-heading); font-size: 1.5rem; }
.event-list-body p { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.event-list-body .meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.event-list-body .meta span { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.event-list-body .meta i { color: var(--gold); }

@media (max-width: 768px) {
    .event-list-card { flex-direction: column; }
    .event-list-date { padding: 1rem; border-bottom: 1px solid var(--bg-light); min-width: auto; flex-direction: row; gap: 0.5rem; align-items: baseline; justify-content: center; }
    .event-list-date .day { font-size: 1.5rem; margin-bottom: 0; }
    .about-content-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admission-form-section { grid-template-columns: 1fr; }
    .principal-section { grid-template-columns: 1fr; }
    .principal-photo { position: static; }
    .disclosure-table td, .disclosure-table th { display: block; width: 100%; }
    .label-cell { border-bottom: none !important; padding-bottom: 0.5rem !important; }
}
