/* Layout Styles - Andisheh Sefid School */
/* Color Palette: Light Blue (#264f79), White, Black only */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: white;
    direction: rtl;
    text-align: right;
    color: black;
}

/* Header Styles */
.header {
    background-color: #264f79;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo-area {
    width: 150px;
    height: 80px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-area span {
    color: #264f79;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Navigation */
.nav-menu {
    flex: 1;
    margin-right: 2rem;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: white;
    color: #264f79;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-toggle i {
    color: #264f79;
    font-size: 1.5rem;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Footer */
.footer {
    background-color: #264f79;
    padding: 3rem 2rem 1rem 2rem;
    margin-top: 4rem;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-section h3 {
    color: #264f79;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: black;
    line-height: 1.8;
}

.footer-section iframe {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    border: none;
}

.copyright {
    background-color: black;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo-area {
        width: 120px;
        height: 60px;
        font-size: 1rem;
    }

    .logo-area span {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
        order: -1;
    }

    .nav-menu {
        width: 100%;
        margin-right: 0;
        margin-top: 0;
        order: 3;
    }

    .nav-menu ul {
        display: none;
        flex-direction: column;
        gap: 0.8rem;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .nav-menu ul.show {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        background-color: #264f79;
        color: white;
        padding: 1rem;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-menu a i {
        font-size: 1.2rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: white;
        color: #264f79;
        border: 2px solid #264f79;
    }

    .container {
        padding: 0 1rem;
    }

    .footer {
        padding: 2rem 1rem 1rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-section iframe {
        height: 250px;
    }
}
