﻿/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", "Amiri", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  direction: rtl;
}

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

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #2d5a27;
    font-family: "Amiri", serif;
}


.nav-link {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 10%;
        right: 10%;
        height: 2px;
        background-color: transparent;
        transition: background-color 0.3s;
    }

    .nav-link.active::after {
        background-color: #2d5a27;
    }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 auto;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://images.unsplash.com/photo-1609599006353-e629aaabfeae?ixlib=rb-4.0.3");
    background-position: center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  font-family: "Amiri", serif;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e8f5e8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(45deg, #f4a261, #e76f51);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(244, 162, 97, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #2d5a27;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #2d5a27;
  border: 2px solid #2d5a27;
}

.btn-outline:hover {
  background: #2d5a27;
  color: #fff;
  transform: translateY(-2px);
}

/* Feature Section */
.feature-section {
  padding: 5rem 0;
  background: #fff;
}

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

.feature-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d5a27;
  margin-bottom: 1.5rem;
  font-family: "Amiri", serif;
}

.feature-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Categories Section */
.categories-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d5a27;
  margin-bottom: 1rem;
  font-family: "Amiri", serif;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
}

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

.category-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #2d5a27, #4a7c59);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d5a27;
  margin-bottom: 1rem;
}

.card-description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
}

.level-card.selected {
  border: 3px solid var(--level-border-color, #2d5a27);
  box-shadow: 0 8px 24px rgba(44, 90, 39, 0.1);
}

/* Footer */
.footer {
  background: #2d5a27;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: "Amiri", serif;
}

.footer-brand p {
  color: #e8f5e8;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-link {
  color: #e8f5e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4a7c59;
  color: #e8f5e8;
}

/* Responsive Design */
@media (max-width: 768px) {
 
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .feature-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .feature-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 999;
    }

        .nav-menu.nav-menu-open {
            max-height: 300px;
            display: flex; /* هذا السطر مهم جداً */
        }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .nav-menu li {
        padding: 10px 20px;
    }
}
