/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Vazirmatn, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-left: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    color: #e74c3c;
    background-color: #f8f9fa;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Hero Section - Complete CSS */
:root {
  /* Variables for hero section heights */
  --hero-height-desktop: 100vh;
  --hero-height-tablet: 75vh;
  --hero-height-mobile: 60vh;
  --hero-height-mobile-landscape: 80vh;
  --hero-min-height: 500px;
  --hero-min-height-mobile: 350px;
  --hero-min-height-mobile-landscape: 400px;
}

.hero {
  /* Base styles */
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 80px;
  overflow: hidden;
  
  /* Height settings */
  height: var(--hero-height-desktop);
  min-height: var(--hero-min-height);
  
  /* Background with gradient overlay */
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/hero-bg.jpg') no-repeat center center/cover;
  z-index: -1;
}

.overlay-image {
  position: absolute;
  z-index: -1;
  max-width: 30%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.9;
  transition: all 0.5s ease;
}

.image1 {
  top: 60%;
  right: 10%;
  animation-delay: 0s;
}

.image2 {
  top: 0%;
  left: 10%;
  animation-delay: 2s;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.btn {
  display: inline-block;
  background-color: #e74c3c;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .hero {
    height: var(--hero-height-tablet);
    min-height: 450px;
  }
  
  .overlay-image {
    max-width: 35%;
    opacity: 0.8;
  }
  
  .image1 {
    top: 15%;
    right: 5%;
  }
  
  .image2 {
    bottom: 10%;
    left: 5%;
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  .hero {
    height: var(--hero-height-mobile);
    min-height: var(--hero-min-height-mobile);
    margin-top: 70px;
  }
  
  .overlay-image {
    max-width: 40%;
    opacity: 0.7;
  }
  
  .image1 {
  top: 60%;
  right: 2%;
  width: 700px; /* اندازه عرض تصویر */
  height: auto; /* ارتفاع به نسبت عرض حفظ شود */
}

.image2 {
  top: 5%;
  left: 2%;
  width: 250px; /* اندازه عرض تصویر */
  height: 100px; /* اندازه ارتفاع تصویر */
}
}

/* Mobile Landscape (576px and below, landscape) */
@media (max-width: 576px) and (orientation: landscape) {
  .hero {
    height: var(--hero-height-mobile-landscape);
    min-height: var(--hero-min-height-mobile-landscape);
  }
  
  .overlay-image {
    max-width: 25%;
  }
}

/* Very small mobile devices (400px and below) */
@media (max-width: 400px) {
  .hero {
    --hero-height-mobile: 50vh;
    min-height: 300px;
  }
  
  .overlay-image {
    display: none;
  }
  
  /* Optional: Use different background for very small screens */
  .hero-bg {
    background-image: url('images/hero-bg-mobile.jpg');
  }
}

/* Height adjustment classes */
.hero.height-small {
  --hero-height-desktop: 80vh;
  --hero-height-tablet: 65vh;
  --hero-height-mobile: 50vh;
}

.hero.height-medium {
  --hero-height-desktop: 90vh;
  --hero-height-tablet: 70vh;
  --hero-height-mobile: 55vh;
}

.hero.height-large {
  --hero-height-desktop: 100vh;
  --hero-height-tablet: 75vh;
  --hero-height-mobile: 60vh;
}
/* Services Section */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #e74c3c;
    margin: 15px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.service-card h3 {
    font-size: 1.3rem;
    padding: 20px 20px 10px;
    color: #2c3e50;
}

.service-card p {
    padding: 0 20px 20px;
    color: #666;
}

.card-link {
    display: inline-block;
    padding: 0 20px 20px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #c0392b;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.2rem;
    color: #e74c3c;
    margin-top: 5px;
}

.info-item p {
    color: #555;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Vazirmatn, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

.footer-col p {
    color: #bbb;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #e74c3c;
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Page Hero */
.page-hero {
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 80px;
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-main h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content-main h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #2c3e50;
}

.content-main p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.content-main ul {
    margin-bottom: 20px;
    padding-right: 20px;
}

.content-main ul li {
    margin-bottom: 10px;
    position: relative;
}

.content-main ul li::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #e74c3c;
    border-radius: 50%;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-box p {
    margin-bottom: 15px;
    color: #666;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    margin-bottom: 10px;
    padding-right: 15px;
    position: relative;
}

.sidebar-box ul li::before {
    content: '→';
    position: absolute;
    right: 0;
    color: #e74c3c;
}

/* Specific Page Styles */
/* Preschool */
.schedule {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.schedule-item .time {
    font-weight: 500;
    color: #e74c3c;
}

.schedule-item .activity {
    color: #555;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Language */
.languages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.language-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.language-card:hover {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.language-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.language-icon i {
    font-size: 1.8rem;
    color: #e74c3c;
}

.language-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.language-card p {
    color: #666;
}

.teaching-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.method {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #e74c3c;
}

.method h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.method p {
    color: #666;
}

.levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.level {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.level h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.level p {
    color: #666;
}

/* Leisure */
.sports {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sport-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sport-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.sport-card h4 {
    font-size: 1.2rem;
    padding: 15px;
    color: #2c3e50;
}

.sport-card p {
    padding: 0 15px 15px;
    color: #666;
}

.arts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.art-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.art-item:hover {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.art-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.art-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.art-item p {
    color: #666;
}

.science {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.science-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.science-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.science-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.science-item p {
    color: #666;
}

/* Quran */
.quran-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.course {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.course:hover {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.course-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.course-icon i {
    font-size: 1.8rem;
    color: #e74c3c;
}

.course h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.course p {
    color: #666;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature i {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature p {
    color: #666;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.day {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.day h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.day p {
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pop-in {
    animation: popIn 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 80%;
        background-color: #fff;
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 25px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}