/* RESET & GLOBALS */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.gradient-text {
    background: linear-gradient(97deg, #FFCE01 1.95%, #E30613 100%);
    
    /* Standard property */
    background-clip: text;

    /* Vendor prefix for Chrome, Safari, Edge */
    -webkit-background-clip: text;

    /* Make the text transparent so gradient shows */
    color: transparent;
    -webkit-text-fill-color: transparent;
}
html,
body {
  height: 100%;
}

body {
  font-family: var(--app-font);
  background-color: var(--bg-body);
  color: var(--text-main);
  direction: rtl;
}

/* LAYOUT HELPERS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  
}

.section {
  padding: 64px 0;
  background-color: #fffaf0;
}

.section-soft {
  padding: 64px 0;
  background-color: var(--bg-soft);
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 34px;
  color: #c75600;
  font-weight: 700;
}

.section-title span {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 4px;
}

/* BUTTONS */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 10px 26px;
  border-radius: 999px;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary-gradient {
  background-image: linear-gradient(90deg, #ffb000, #ff7a00);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.4);
}

.btn-primary-gradient:hover {
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-hero {
  background: var(--Primary-0, #FFFDF5);
  border: 2px solid #e38306;
  min-width: 160px;
  margin-top: 22px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.btn-card {
  background-color: #111827;
  color: #f9fafb;
  margin: 12px;
}

.btn-card:hover,
.btn-hero:hover {
  transform: translateY(-1px);
}

/* HERO */

/* HEADER MAIN CONTAINER */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url("../img/bg.2d718154a609.png") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    padding-top: 5px;
}

/* ---------------- NAVBAR BASE ---------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    position: relative;
    z-index: 10;
}

/* Links layout */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 30px;
    /* padding: 10px 0; */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

/* ---------------- HAMBURGER BUTTON ---------------- */
.nav-toggle {
    width: 35px;
    height: 28px;
    display: none; /* hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 4px;
}

/* Toggle animation: turn burger into "X" */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
a {
    text-decoration: none;
}
/* ---------------- MOBILE MENU ---------------- */
@media (max-width: 992px) {

    /* Hide nav links completely */
    .nav-links {
        display: none !important;
    }

    /* Keep logo + actions visible */
    .navbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
        /* margin-top: 10px; */
        
    }

    .navbar-left {
        display: flex;
        align-items: center;
        gap: 10px;
        
    }

}
/* SMALL SCREENS */
@media (max-width: 576px) {
    .navbar-left {
        padding: 15px 0;
    }
}
/* VERY SMALL SCREENS (360px and below) */
@media (max-width: 360px) {

    /* Reduce spacing */
    .navbar-right {
        gap: 6px;
    }

    .navbar-left {
        gap: 6px;
    }

    /* Smaller buttons */
    .nav-actions .btn {
        padding: 4px 10px;
        font-size: 0.75rem;
        min-width: auto;
    }

    /* Reduce logo width if needed */
    .logo-text img {
        width: 70px; /* adjust to fit */
        height: auto;
    }
}

/* EXTREMELY SMALL SCREENS (320px and below) */
@media (max-width: 320px) {

    /* Even tighter spacing */
    .navbar-right {
        gap: 4px;
    }

    .navbar-left {
        gap: 4px;
    }

    .nav-actions .btn {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .logo-text img {
        width: 60px; /* compact logo */
    }
}

/* .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 40px auto 0;
} */
/* HERO MIDDLE CENTER */
.hero-middle {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    /* align-items: center; */
    text-align: center;
    max-width: 700px;
   padding-top: 40px;
}

.hero-title {
    font-family: var(--font-main);
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: inherit;
  font-size: 0.92rem;
  max-width: 560px;
  margin: 0 auto;
  color: #e5e7eb;
}




/* FEATURES BOTTOM */
.features {
    width: 100%;
    padding: 20px 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.feature-item {
  font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon img {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
}



/* TEACHER CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.teacher-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.card-image img {
  /* width: 100%; */
  display: block;
  height: 220px;
  object-fit: fill;
}

.card-body {
  padding: 16px 18px 18px;
  font-size: 0.9rem;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-yellow {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-rating {
  background-color: #111827;
  color: #f9fafb;
}

.teacher-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.teacher-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #4b5563;
}

/* REVIEWS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.review-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;

}

.review-image img {
  /* width: 100%; */
  height: 220px;
  object-fit: fill;
  display: block;
  margin-top: 10px;
}

.review-body {
  padding: 16px 18px 18px;
}

.review-text {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 14px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.review-name {
  font-weight: 700;
}

.review-tag {
  color: var(--text-muted);
}

.section-cta {
  text-align: center;
  margin-top: 28px;
}

/* HOW IT WORKS */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}

.how-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-card-highlight {
  border: 2px solid #fbbf24;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.how-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.how-text {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.faq-item summary {
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: #b45309;
}

.faq-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* FOOTER */
.footer {
  background-color: #000000;
  color: #d1d5db;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-mini {
  font-size: 0.75rem;
  color: #9ca3af;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 1rem;
}

.footer-right a:hover {
  color: #ffffff;
}

.footer-social {
  display:     flex;
  align-items: center;
  gap:         8px;
}

/* shared .ks-link used by land + contact footers */
.ks-link {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           34px;
  height:          34px;
  border-radius:   50%;
  background:      rgba(255,255,255,.09);
  color:           #d7d7d7;
  text-decoration: none;
  transition:      background .2s, color .2s, transform .15s;
}
.ks-link:hover {
  background: rgba(255,255,255,.2);
  color:      #fff;
  transform:  translateY(-2px);
}
.ks-link svg { display: block; }

.footer-logo {
  font-weight: 800;
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .cards-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 10px;
  }

/*   
  .nav-links {
    display: none; 
  } */

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

  .cards-grid,
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: 60px;
  }

  .card-image img,
  .review-image img {
    height: 200px;
  }
}
/* RESPONSIVE */


@media (max-width: 576px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}