/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --text: #333333;
    --text-light: #7f8c8d;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.width-100 {
    width: 100%;
    float: left;
}

.width-50 {
    width: 50%;
    float: left;
    padding: 0 15px;
}

.width-33 {
    width: 33.333%;
    float: left;
    padding: 0 15px;
}

.width-25 {
    width: 25%;
    float: left;
    padding: 0 15px;
}

.margin-top-50 {
    margin-top: 50px;
}

.margin-bottom-50 {
    margin-bottom: 50px;
}

.padding-50 {
    padding: 50px 0;
}

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

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== TOP HEADER ===== */
.top-header {
    background: linear-gradient(135deg, var(--primary), #1a252f);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.new-list {
    color: #f1c40f;
    margin-right: 10px;
    font-weight: bold;
}

.headquote {
    color: var(--light);
}

/* ===== MAIN HEADER & NAVIGATION ===== */
.header-menu {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    float: left;
    margin-right: 30px;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    float: right;
    display: flex;
    align-items: center;
    height: 60px;
}

.main-menu li {
    margin-left: 5px;
}

.main-menu a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-menu a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.main-menu a.active {
    background: var(--secondary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    float: right;
    padding: 10px;
}
/* Header Styles */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

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

.logo-img {
    height: 70px;
    width: auto;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.school-info {
    display: flex;
    flex-direction: column;
}

.school-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: bold;
}

.school-tagline {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #3498db;
    color: white;
}

.nav-link.active {
    background: #2980b9;
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9)),
                url('../images/slide.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn-primary {
    background: var(--secondary);
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--success);
}

.btn-secondary:hover {
    background: #27ae60;
}

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 25%;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 14px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== TABLE ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.table tr:hover {
    background: #f8f9fa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .width-33 {
        width: 50%;
    }

    .width-50 {
        width: 100%;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .main-menu.show {
        display: flex;
    }

    .main-menu li {
        margin: 5px 0;
        width: 100%;
    }

    .main-menu a {
        width: 100%;
        padding: 12px 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .width-33 {
        width: 100%;
    }

    .width-25 {
        width: 50%;
    }

    .hero {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .width-25 {
        width: 100%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.logo a {
    display: inline-block;
    cursor: pointer;
}

.logo a:hover img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Mobile Menu Styles - Add to your existing CSS */

.mobile-menu-btn {
    display: none;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    right: 20px;
    top: 15px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--primary);
        padding: 20px;
        z-index: 1000;
        margin: 0;
    }

    .main-menu.show {
        display: block;
    }

    .main-menu li {
        display: block;
        margin: 15px 0;
        text-align: center;
    }

    .main-menu a {
        display: block;
        padding: 12px;
        color: white;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .logo img {
        height: 50px;
    }

    .container {
        padding: 0 15px;
    }

    /* Make content full width on mobile */
    .width-33, .width-50, .width-25 {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Adjust text sizes */
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }
}