* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #e8f8f1;
}

/* HEADER / NAVBAR */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 200;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #007b5d;
}
.logo a{
    text-decoration: none;    
}
.logo img{
    width: 35px;
    background-color: #007b5d;
    border-radius: 7px;
    padding: 5px;
    margin: 0 5px;
}
.logo span{
    color: #000;
}

/* Buttons desktop */
.auth-buttons a {
  padding: 10px 18px;
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  margin-left: 10px;
}

.auth-buttons .signin {
  color: #007b5d;
  font-weight: 600;
}

.auth-buttons .signup {
  background: #007b5d;
  color: white;
  font-weight: 600;
}

/* Hamburger icon */
.menu-icon {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: #007b5d;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  text-align: center;
  background: white;
  padding: 20px;
  gap: 12px;
}

.mobile-menu a {
  padding: 10px;
  text-decoration: none;
  color: #007b5d;
  font-weight: 500;
}

.mobile-menu .signup-btn {
  background: #007b5d;
  color: white;
  border-radius: 8px;
}

/* ✅ Responsive */
@media (max-width: 820px) {
  header {
    padding: 15px 25px;
  }
  .auth-buttons {
    display: none;
  }
  .menu-icon {
    display: block;
  }
  .logo {
    font-size: 20px;
  }
  .logo img {
    width: 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
  .search-box-container {
    width: 100%;
    padding: 4px;
  }
  .search-box-container input {
    padding: 10px;
  }
  .search-box-container button {
    padding: 10px 20px;
  }
  .categories {
    gap: 8px;
  }
  .categories span {
    padding: 8px 12px;
    font-size: 14px;
  }
  .stats-container {
    gap: 20px;
  }
  .stat-box {
    min-width: 150px;
  }
  .stat-box h2 {
    font-size: 24px;
  }
  .stat-box p {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  header {
    padding: 10px 15px;
  }
  .hero {
    padding: 60px 15px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 15px;
  }
  .search-box-container input {
    padding: 8px;
    font-size: 14px;
  }
  .search-box-container button {
    padding: 8px 16px;
    font-size: 14px;
  }
  .categories span {
    padding: 6px 10px;
    font-size: 13px;
  }
  .stats-container {
    flex-direction: column;
    gap: 15px;
  }
  .stat-box {
    min-width: auto;
    text-align: center;
  }
  .stat-box .icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .stat-box h2 {
    font-size: 20px;
  }
  .stat-box p {
    font-size: 13px;
  }
  .top-teachers-intro h2 {
    font-size: 24px;
  }
  .top-teachers-intro p {
    font-size: 16px;
  }
  .teachers-section {
    padding: 15px;
    gap: 15px;
  }
  .teacher-card {
    padding: 12px;
  }
  .teacher-details h3 {
    font-size: 18px;
  }
  .teacher-details p {
    font-size: 13px;
  }
  .buttons {
    gap: 8px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .btn-secondary {
    width: 120px;
  }
  .how-it-works {
    padding: 40px 15px;
  }
  .works-how h3 {
    font-size: 18px;
  }
  .works-how p {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .steps-container {
    gap: 60px;
  }
  .step h3 {
    font-size: 18px;
  }
  .step p {
    font-size: 12px;
  }
  .icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .site-footer {
    padding: 30px 15px 15px;
  }
  .footer-content {
    gap: 30px;
  }
  .footer-column h4 {
    font-size: 18px;
  }
  .footer-column p {
    font-size: 16px;
  }
  .footer-column ul li a {
    font-size: 13px;
  }
  .footer-bottom {
    font-size: 16px;
  }
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
}

.hero h1 span {
  color: #007b5d;
}

.hero p {
  margin-top: 15px;
  font-size: 18px;
  max-width: 650px;
  margin-inline: auto;
  color: #444;
}

/* Search Box */
.search-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 35px;
  width: 100%;
}

.search-box-container {
  display: flex;
  align-items: center;
  background: white;
  padding: 6px;
  border-radius: 50px;
  width: 670px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: .3s;
}

.search-icon {
  margin-left: 15px;
  margin-right: 8px;
  font-size: 17px;
  opacity: 0.6;
}

.search-box-container input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
}

.search-box-container button {
  background: #007b5d;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  cursor: pointer;
  transition: .3s;
}

.search-box-container button:hover {
  background: #005e46;
}

/* ✅ Active search border */
.search-box-container.active {
  box-shadow: 0px 0px 10px rgba(0, 123, 93, 0.4);
  border: 2px solid #007b5d;
}

/* Categories */
.categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.categories span {
  padding: 10px 18px;
  border-radius: 20px;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: .3s;
}

.categories span:hover {
  background: #007b5d;
  color: white;
}

/* ✅ Stats Section */
.stats-section {
  background: #fff;
  padding: 60px 0;
  width: 100%;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width:80%;
  margin: auto;
  flex-wrap: wrap;
  gap: 25px;
}

.stat-box {
  text-align: center;
  min-width: 200px;
}

.stat-box .icon {
  background: #d4f3e8;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  font-size: 28px;
  color: #05785b;
}

.stat-box h2 {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  color: #05785b;
}

.stat-box p {
  margin-top: 4px;
  font-size: 15px;
  color: #555;
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
  }
}

/* top teachers  */

.top-teachers-intro {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9fafc;
  color: #374151; /* Neutral/dark gray */
  max-width:100%;
  margin: 0 auto;
}

.top-teachers-intro h2 {
  font-weight: 700;
  font-size: 28px;
  color: #111827; /* Darker text for heading */
  margin-bottom: 12px;
}

.top-teachers-intro p {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #6b7280; /* Medium gray for paragraph */
  margin: 0;
}

/* teacher section  */

.teachers-section {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 20px;
  flex-wrap: wrap;
  background: #f8f9fa;
}

.teacher-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.image-container {
  position: relative;
  width: 100%;
  height: 200px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* يركز على الجزء العلوي */
  display: block;
}

.rate {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0c9676;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.teacher-details {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teacher-details h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.teacher-details p {
  margin: 4px 0;
  color: #6c757d;
  font-size: 14px;
}

.icon-location::before {
  content: "📍";
  margin-right: 6px;
}

.icon-clock::before {
  content: "⏰";
  margin-right: 6px;
}

.rating {
  font-weight: 600;
  display: flex;
  align-items: center;
  color: #222;
  margin: 8px 0;
}

.icon-star::before {
  content: "⭐";
  margin-right: 6px;
  color: #f4c518;
  font-size: 16px;
}

.reviews {
  color: #6c757d;
  font-weight: 400;
  margin-left: 6px;
  font-size: 13px;
}

.tags {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px 0;
}

.tags span {
  background: #e9eef5;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 12px;
  color: #495057;
  font-weight: 600;
  white-space: nowrap;
}

.description {
  font-size: 14px;
  color: #495057;
  flex-grow: 1;
  margin-bottom: 15px;
}

.buttons {
  display: flex;
  gap: 12px;
}

.btn {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border-radius: 5px;
  padding: 10px 16px;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background: #0c9676;
  color: white;
  flex: 1;
}

.btn-primary:hover {
  background: #087256;
}

.btn-secondary {
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  width: 170px;
}

.btn-secondary:hover {
  background: #f0f0f0;
  color: #000;
}

.view-all-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.btn-view-all {
  max-width: 240px;
  height: 60px;
}


/* How it Works Section */
.how-it-works {
  background-color: #fff;
  padding: 50px 20px;
}
.works-how{
  width: 100%;
}
.works-how h3{
  text-align: center;
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 17px;
  color: #111827;
}
.works-how p{
  text-align: center;
  font-weight: 400;
  font-size: 18px;
  color: #4b5563;
  line-height: 1.4;
  margin-bottom: 60px;
}
.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  max-width:90%;
  margin: 0 auto;
  flex-wrap: wrap;
  text-align: center;
}
.icon {
  background-color: #d4f0e7;
  color: #21a176;
  font-size: 32px;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 12px;
  color: #111827;
}

.step p {
  font-weight: 400;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #cbd5e1;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width:90%;
  margin: 0 auto 20px auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  min-width: 160px;
  flex: 1;
}

.footer-column h4 {
  color: #f9fafb;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 21px;
}

.footer-column p {
  font-size: 18px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #10b981;
  text-decoration: underline;
}

.footer-bottom {
  max-width:100%;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 15px;
  font-size: 18px;
  color: #6b7280;
}
