/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header Styles */
.top-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.school-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.school-name h1 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.school-name p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.main-nav {
    background-color: var(--dark-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 600;
}

.main-nav a:hover, 
.main-nav a.active {
    background-color: var(--primary-color);
}

.mobile-menu {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/bg-school.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.feature-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* News Section */
.news-section {
    padding: 60px 0;
    background-color: #f1f5f9;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.news-item {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-item h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

/* Gallery Preview */
.gallery-preview {
    padding: 60px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px;
    text-align: center;
}

/* Page Header */
.page-header {
    padding: 60px 0 30px;
    text-align: center;
    background-color: var(--light-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Profile Section */
.profile-section {
    padding: 40px 0;
}

.profile-section article {
    margin-bottom: 40px;
}

.profile-section h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.profile-section h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin: 20px 0 10px;
}

.profile-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.facilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.facility-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    text-align: center;
}

.facility-item i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.facility-item h3 {
    margin-bottom: 10px;
}

.org-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.org-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.org-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Staff Section */
.staff-section {
    padding: 40px 0;
}

.staff-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.staff-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-10px);
}

.staff-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.staff-info {
    padding: 20px;
    text-align: center;
}

.staff-info h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.staff-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* News Detail */
.news-detail {
    padding: 40px 0;
}

.news-detail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
}

.news-content {
    line-height: 1.8;
}

.news-content p, .news-content ul {
    margin-bottom: 20px;
}

.news-navigation {
    margin-top: 40px;
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    padding: 40px 0;
}

.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.gallery-categories button {
    padding: 8px 15px;
    background-color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-categories button:hover, 
.gallery-categories button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-album {
    cursor: pointer;
    transition: var(--transition);
}

.gallery-album:hover {
    transform: translateY(-5px);
}

.album-cover {
    position: relative;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.album-cover:hover .album-overlay {
    opacity: 1;
}

.album-info {
    padding: 10px 0;
}

.album-info h3 {
    margin-bottom: 5px;
}

.album-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

#modal-image {
    max-height: 70vh;
    max-width: 90%;
    object-fit: contain;
}

.modal-caption {
    color: var(--white);
    text-align: center;
    margin-top: 20px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-nav button {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-nav button:hover {
    background-color: var(--primary-color);
}


/* Facilities Section - Improved */
.facilities-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.facility-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #555;
}

.filter-btn:hover {
    background-color: #d0d0d0;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.facility-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.facility-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-img {
    transform: scale(1.05);
}

.facility-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.facility-content {
    padding: 20px;
}

.facility-title {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.facility-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.facility-features h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.facility-features ul {
    list-style: none;
}

.facility-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555;
}

.facility-features i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 0.9rem;
}


.facility-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.facility-categories button {
    padding: 8px 15px;
    background-color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.facility-categories button:hover, 
.facility-categories button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-img-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .facility-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.contact-info h2, 
.contact-form h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Map Section */
.map-section {
    padding: 40px 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.map-container {
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Alert */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.5rem;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p, 
.footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.2rem;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

/* Facilities Preview */
.facilities-preview {
    padding: 60px 0;
    background-color: #f1f5f9;
}

.facilities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.facility-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.facility-item:hover {
    transform: translateY(-5px);
}

.facility-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.facility-item h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}


/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-color);
        z-index: 100;
    }
    
    .main-nav ul.show {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        margin-left: auto;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .school-info {
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}