/* ===== IMPROVED OUR SCHOOL PAGE CSS ===== */
/* assets/styles/our_school.css */

/* ===== BASE STYLES ===== */
.our-school-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

/* ===== SECTION TITLES ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    margin: 50px 0 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3498db;
    font-size: 1.8rem;
    font-weight: 600;
}

.section-title .material-icons {
    color: #3498db;
    font-size: 2rem;
    background: #e8f4fc;
    padding: 10px;
    border-radius: 50%;
}

.sub-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #34495e;
    margin: 30px 0 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.sub-section-title .material-icons {
    color: #2980b9;
    background: #f0f7ff;
    padding: 8px;
    border-radius: 50%;
}

/* ===== HERO SECTION ===== */
.school-hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.school-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71, #3498db);
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 2.2rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.school-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-title .school-icon {
    font-size: 48px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e8f4fc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.stat-icon {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 12px;
    background: #e8f4fc;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
    font-family: 'Arial', sans-serif;
    line-height: 1;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== ORGANIZATIONAL STRUCTURE ===== */
.org-chart {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    border: 2px solid #f0f7ff;
}

.org-level {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.org-level::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: #3498db;
    z-index: 1;
}

.level-1 { margin-top: 0; }
.level-1::before { display: none; }

/* TEACHER/STAFF CARDS */
.org-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    min-width: 250px;
    max-width: 280px;
    position: relative;
    z-index: 2;
}

.org-card:hover {
    border-color: #3498db;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-5px);
}

.head-teacher {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff, #ffeaea);
}

.head-teacher:hover {
    border-color: #e74c3c;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.15);
}

.deputy {
    border-color: #f39c12;
}

.deputy:hover {
    border-color: #f39c12;
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.15);
}

/* TEACHER PHOTOS - ROUNDED AND PROFESSIONAL */
.teacher-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.head-teacher .teacher-photo img {
    border-color: #e74c3c;
    border-width: 5px;
}

.deputy .teacher-photo img {
    border-color: #f39c12;
}

.teacher-photo:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #2ecc71;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* TEACHER INFO */
.org-name {
    font-weight: 700;
    color: #2c3e50;
    margin: 8px 0 5px;
    font-size: 1.2rem;
}

.org-qualification {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px 0;
}

.org-experience {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 5px 0;
    font-style: italic;
}

/*============= HODs GRID ================== */
#hodsGrid {
    margin: 25px 0;
}

.hod-card {
    background: blanchedalmond;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e8f4fc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.hod-photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.hod-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #3498db;
}

.hod-info {
    flex: 1;
}

.hod-info h4 {
    color: #2c3e50;
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.hod-name {
    color: #3498db;
    font-weight: 600;
    margin: 5px 0;
    font-size: 0.95rem;
}

.hod-qualification {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 5px 0;
}

.hod-staff {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #95a5a6;
    font-size: 0.85rem;
    margin: 8px 0 0;
}

/* ===== TEACHERS GRID (FIXED - NO DUPLICATE) ===== */
#teachersGrid {
    margin: 25px 0;
}

.teacher-card {
    background: blanchedalmond;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0f7ff;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.teacher-card .teacher-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.teacher-card .teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.05);
    border-color: #2980b9;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.teacher-info {
    flex: 1;
    width: 100%;
}

.teacher-info h4 {
    color: #2c3e50;
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.6em;
}

.teacher-subject {
    color: whitesmoke;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 8px 0;
    padding: 5px 10px;
    background: #5a56e6;
    border-radius: 20px;
    display: inline-block;
}

.teacher-qualification {
    color: #42b253;
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
}

.teacher-experience {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 15px 0 0;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

.teacher-experience .material-icons {
    color: #f39c12;
}

.view-all-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 35px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
}

/* ===== ACADEMIC SECTION ===== */
.program-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* EARLY EDUCATION */
.early-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0f7ff;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.program-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #9b59b6;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.program-card h4 {
    color: #2c3e50;
    margin: 0 0 10px;
}

.age-group {
    color: #3498db;
    font-weight: 600;
    margin: 5px 0;
    font-size: 0.9rem;
}

.focus-area {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 5px 0;
    line-height: 1.4;
}

.facilities-list {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.facilities-list h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.facilities-list ul {
    list-style: none;
    padding: 0;
}

.facilities-list li {
    padding: 8px 0;
    color: #7f8c8d;
    position: relative;
    padding-left: 25px;
}

.facilities-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

.early-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.early-stat {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #f0f7ff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.early-stat .material-icons {
    font-size: 32px;
    color: #3498db;
    background: #e8f4fc;
    padding: 10px;
    border-radius: 50%;
}

.early-stat h4 {
    color: #2c3e50;
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.early-stat p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
}

/* PRIMARY LEVEL */
.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.grade-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #f0f7ff;
    transition: all 0.3s ease;
    text-align: center;
}

.grade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #2ecc71;
}

.grade-card h4 {
    color: #2c3e50;
    margin: 0 0 15px;
    font-size: 1.2rem;
}

.grade-stats {
    text-align: left;
    margin: 15px 0;
}

.grade-stats p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    margin: 8px 0;
    font-size: 0.9rem;
}

.grade-stats .material-icons {
    font-size: 18px;
    color: #3498db;
}

.grade-subjects {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.grade-subjects strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.grade-subjects p {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.primary-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-stat {
    text-align: center;
}

.summary-stat .stat-number {
    font-size: 2.5rem;
    color: #3498db;
}

.summary-stat .stat-label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}


/* SECONDARY LEVEL */
.secondary-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0f7ff;
}

.junior-senior {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.level-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.level-section h4 {
    color: #2c3e50;
    margin: 0 0 15px;
}

.subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.subject-tag {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #e8f4fc;
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.subject-tag:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.level-section p {
    color: #7f8c8d;
    margin: 15px 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.secondary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.secondary-stat {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #f0f7ff;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.secondary-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-stat .material-icons {
    font-size: 32px;
    color: #3498db;
    background: #e8f4fc;
    padding: 10px;
    border-radius: 50%;
}

.secondary-stat h4 {
    color: #2c3e50;
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.secondary-stat p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
}

/* GCE LEVEL */
.gce-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0f7ff;
}

.gce-highlights ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.gce-highlights li {
    padding: 10px 0;
    color: #7f8c8d;
    position: relative;
    padding-left: 30px;
}

.gce-highlights li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #f39c12;
    font-size: 1.2rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.subject-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.subject-card:hover {
    border-color: #3498db;
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.subject-card .material-icons {
    color: #3498db;
    font-size: 20px;
}

.subject-card span {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.gce-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.gce-stat {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #f0f7ff;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.gce-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gce-stat .material-icons {
    font-size: 32px;
    color: #9b59b6;
    background: #f5eefb;
    padding: 10px;
    border-radius: 50%;
}

.gce-stat h4 {
    color: #2c3e50;
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.gce-stat p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
}

.gce-requirements {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.gce-requirements h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.gce-requirements ul {
    list-style: none;
    padding: 0;
}

.gce-requirements li {
    padding: 8px 0;
    color: #7f8c8d;
    position: relative;
    padding-left: 25px;
}

.gce-requirements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* ===== HISTORY SECTION ===== */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.vm-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #9b59b6;
}

.vm-icon {
    font-size: 40px;
    color: #9b59b6;
    margin-bottom: 20px;
    background: #f5eefb;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.vm-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.vm-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #9b59b6);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    border: 4px solid #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    z-index: 2;
}

.timeline-year {
    font-weight: 700;
    color: #3498db;
    font-size: 1.3rem;
    margin-bottom: 8px;
    background: #e8f4fc;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid #3498db;
}

.timeline-content {
    color: #2c3e50;
    line-height: 1.5;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #f0f7ff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* ===== FACILITIES SECTION ===== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.facility-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e74c3c;
}

.facility-icon {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
    background: #fdeaea;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.facility-card h3 {
    color: #2c3e50;
    margin: 0 0 15px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.facility-card p {
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .our-school-container {
        padding: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin: 40px 0 25px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .school-logo, .hero-title .school-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .org-level {
        flex-direction: column;
        gap: 25px;
    }
    
    .org-level::before {
        display: none;
    }
    
    .org-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .deputy {
        margin: 0;
    }
    
    .hods-grid,
    .teachers-grid,
    .grades-grid,
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .program-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 140px;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .junior-senior {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vision-mission-grid,
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .early-stats,
    .secondary-stats,
    .gce-stats,
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Fix for mobile teacher cards */
    .teacher-card {
        padding: 20px;
    }
    
    .teacher-card .teacher-photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .program-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .hods-grid,
    .teachers-grid,
    .grades-grid,
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hod-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .hod-photo {
        width: 70px;
        height: 70px;
    }
    
    .teacher-card .teacher-photo {
        width: 80px;
        height: 80px;
    }
    
    .early-stats,
    .secondary-stats,
    .gce-stats,
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: -31px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-year {
        font-size: 1.1rem;
    }
}

/* PRINT STYLES */
@media print {
    .our-school-container {
        max-width: 100%;
        padding: 0;
    }
    
    .view-all-btn,
    .tab-btn {
        display: none !important;
    }
    
    .tab-content > .tab-pane {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .section-title {
        page-break-before: always;
    }
    
    .school-hero {
        background: none;
        color: black;
        box-shadow: none;
    }
    
    .stat-card,
    .org-card,
    .vm-card,
    .facility-card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}
