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

body {
    font-family: 'PersianFont', 'Tahoma', 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Persian font fallbacks */
h1, h2, h3, h4, h5, h6 {
    font-family: 'PersianFont', 'Tahoma', 'Arial', 'Helvetica', sans-serif;
    font-weight: 600;
}

p, span, div, a, li {
    font-family: 'PersianFont', 'Tahoma', 'Arial', 'Helvetica', sans-serif;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* About Section */
.about {
    padding: 4rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.school-levels {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.level-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #1e3c72;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.level-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.level-item h3 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.level-item p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.level-item strong {
    color: #2a5298;
    font-weight: 600;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2rem;
    color: #1e3c72;
}

.details h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.details p:last-child {
    margin-bottom: 0;
}

/* Phone number specific styling */
.details p:contains("تلفن") {
    font-family: 'Tahoma', 'Arial', monospace;
    font-weight: 500;
    color: #1e3c72;
}

/* Email specific styling */
.details p:contains("ایمیل") {
    font-family: 'Tahoma', 'Arial', monospace;
    color: #2a5298;
}

/* Phone number and email specific classes */
.phone-number {
    font-family: 'Tahoma', 'Arial', monospace !important;
    font-weight: 500 !important;
    color: #1e3c72 !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px;
}

.phone-number a {
    direction: ltr !important;
    unicode-bidi: bidi-override;
    display: inline-block;
}

.email-address {
    font-family: 'Tahoma', 'Arial', monospace !important;
    color: #2a5298 !important;
    font-size: 1rem !important;
}

/* Hyperlink styles for phone and email */
.phone-number a,
.email-address a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.phone-number a:hover,
.email-address a:hover {
    color: #ffd700 !important;
    border-bottom: 1px solid #ffd700;
    transform: translateY(-1px);
}

.phone-number a:active,
.email-address a:active {
    transform: translateY(0);
}

/* Focus styles for accessibility */
.phone-number a:focus,
.email-address a:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Activities Section */
.activities {
    padding: 4rem 0;
    background: white;
}

.activities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 250px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-caption {
    padding: 1.5rem;
    background: white;
}

.gallery-caption h3 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.gallery-caption p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .school-levels {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .about, .contact {
        padding: 2rem 0;
    }
    
    .about h2, .contact h2 {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a5298;
}
