/*
Theme Name: Maharishi Schools
Theme URI: https://example.com/maharishischools
Author: Custom Theme Builder
Description: Full-featured responsive theme with 5 distinct page layouts (About, Academics, Faculty, Campus Life, Contact).
Version: 3.0
Text Domain: maharishischools
*/

:root {
    --brand-primary: #004d4d;
    --brand-secondary: #003333;
    --brand-accent: #f39c12;
    --text-main: #2c3e50;
    --bg-light: #f9fbfb;
    --white: #ffffff;
}

* { box-sizing: border-box; }
body { 
    font-family: 'Outfit', sans-serif; 
    margin: 0; 
    padding: 0; 
    color: var(--text-main); 
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* Header & Nav */
.site-header { background: rgba(0, 77, 77, 0.98); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 9999; border-bottom: 3px solid var(--brand-accent); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.brand-title { margin: 0; font-size: 1.8em; font-weight: 700; }
.brand-title a { color: var(--white); text-decoration: none; }
.brand-title span { color: var(--brand-accent); }
nav.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav.main-nav a { color: var(--white); text-decoration: none; font-weight: 500; }
nav.main-nav a:hover { color: var(--brand-accent); }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 2em; cursor: pointer; }

/* Shared Page Header */
.page-header { margin-top: 80px; background: var(--brand-secondary); color: var(--white); padding: 60px 0; text-align: center; border-bottom: 4px solid var(--brand-accent); }
.page-header h1 { margin: 0; font-size: 3em; }
.page-content { padding: 60px 0; min-height: 50vh; }

/* Layout 1: About Us Split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.mv-box { background: var(--white); padding: 30px; border-radius: 12px; border-top: 4px solid var(--brand-accent); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Layout 2: Academics Grid */
.academic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.academic-card { background: var(--white); padding: 40px 30px; border-radius: 12px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; border-bottom: 4px solid transparent; }
.academic-card:hover { transform: translateY(-10px); border-color: var(--brand-primary); }
.academic-card i { font-size: 3em; color: var(--brand-accent); margin-bottom: 20px; }

/* Layout 3: Faculty Profiles */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.faculty-card { background: var(--white); border-radius: 12px; overflow: hidden; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faculty-img { height: 250px; background-size: cover; background-position: center; border-radius: 0; }
.faculty-info { padding: 20px; }
.faculty-info h3 { margin: 0 0 5px; color: var(--brand-primary); }
.faculty-info p { margin: 0; color: #666; font-size: 0.9em; font-weight: 600; text-transform: uppercase; }

/* Layout 4: Campus Life Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { height: 250px; background-size: cover; background-position: center; border-radius: 12px; transition: transform 0.3s; cursor: pointer; }
.gallery-item:hover { transform: scale(1.03); }

/* Layout 5: Contact Split */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { background: var(--brand-primary); color: var(--white); padding: 40px; border-radius: 12px; }
.contact-form { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; }
.btn-primary { background: var(--brand-accent); color: var(--brand-secondary); padding: 15px 35px; border-radius: 50px; border: none; font-weight: 700; cursor: pointer; display: inline-block; text-decoration: none; }

/* Footer */
.site-footer { background: var(--brand-secondary); color: var(--white); padding: 60px 0 30px; text-align: center; }
.site-footer a { color: var(--brand-accent); text-decoration: none; }

/* Responsive */
@media (max-width: 992px) {
    .about-split, .contact-grid { grid-template-columns: 1fr; }
    .mission-vision { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav.main-nav { position: absolute; top: 80px; left: 0; width: 100%; background: var(--brand-primary); display: none; flex-direction: column; padding: 20px; }
    nav.main-nav.active { display: flex; }
    nav.main-nav ul { flex-direction: column; width: 100%; }
    .page-header h1 { font-size: 2.2em; }
}
