/* CSS Variables for Maintainability */
:root {
  --primary-color: #00335a;
  --secondary-color: #ff6b35;
  --accent-color: #c0cdd3;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --muted-text: #555;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --darkGreyBg: #e8e8e8;
}

/* Scroll Behavior for Smooth Navigation */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #6c93e1;
  background-color: var(--bg-color);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fade-In Animation for Sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section,
.hero,
.team-section,
.features-section {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

header {
  box-shadow: var(--shadow);
  width: 100%;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10001;
}

/* Language Toggle */
.language-toggle {
  display: inline-block;
  position: relative;
  width: 80px;
  user-select: none;
}

.language-toggle input[type="checkbox"] {
  display: none;
}

#language-selector {
  font-size: 0.9rem;
  padding: 0.4em 0.4em;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  min-width: 60px;
  transition: border-color 0.3s ease;
}

#language-selector:hover,
#language-selector:focus {
  border-color: #f26d3d; /* Accent color */
  outline: none;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  height: auto;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10000; /* Higher than .hero-content and .dropdown-menu */
  max-width: 100%;
  margin: 0 auto;
  transition: var(--transition);
}

nav.scrolled {
  background: linear-gradient(90deg, var(--primary-color), #2f4996);
}

.logo {
  align-items: start;
  font-weight: 700;
  font-size: 1.4rem;
  font-family: "Roboto", sans-serif;
}

.logo img {
  width: 120px;
  height: 50px;
  margin-right: 150px;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.1);
}

.logo2 img {
  width: 220px;
  height: 190px;
  margin-right: 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.logo2 img:hover {
  transform: scale(1.1);
}

.head img {
  width: 80px;
  height: 60px;
  align-items: end;
  transition: var(--transition);
}

.head img:hover {
  transform: scale(1.1);
}

.nav-profile-image {
  height: 90px;
  width: 90px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  transition: var(--transition);
}

.nav-profile-image:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  position: relative;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
  font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--secondary-color);
}

nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

/* Dropdown Menu Styles */
.dropdown-container {
  position: relative;
  display: grid;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  min-width: 200px;
  z-index: 10005;
}

.dropdown-container:hover .dropdown-menu,
.dropdown-container.active .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  z-index: 10005;
}

.dropdown-menu li {
  margin: 0 10px;
}

.dropdown-menu a {
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  position: relative;
}

nav ul li a.dropdown-toggle:after {
  width: 0; /* Disable the underline animation for dropdown */
  height: 0;
}

/* Call to Action Button */
nav .cta {
  background: linear-gradient(45deg, #ffffff, #e9ecef);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

nav .cta:hover {
  background: linear-gradient(45deg, var(--secondary-color), #e85a2a);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Navigation responsiveness */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 1.5rem;
  }
  nav ul {
    gap: 1.5rem;
  }
}



/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible; /* Ensure no clipping */
  background-attachment: fixed;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 4rem;
  width: 100%;
  position: relative;
  z-index: 0;
  margin-top: -180px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./images/arabwomenlearning.png");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 20vh;
  height: 900px;
  box-shadow: var(--shadow);
}

.hero-text {
  flex: 1;
  max-width: 100%;
  padding-left: 2rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
  
}

.hero-tag {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
  font-family: "Roboto", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-features {
  list-style: none;
  margin-bottom: 2.5rem;
  /* padding-left: 0; */
}

.hero-features li {
  color: white;
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
  font-size: 1.1rem;
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), #2f4996);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #2f4996, var(--primary-color));
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.hero-note {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 1.5rem;
}

.hero-visuals {
  flex: 1.5;
  position: relative;
  height: 100%;
  min-height: 800px;
}

.hero-background-image {
  max-width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  -webkit-mask-image: linear-gradient(to left, black 90%, transparent 100%);
  mask-image: linear-gradient(to left, black 90%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  width: 70vw;
  height: 100%;
  border-radius: 10px;
  z-index: 1;
}

.hero-background-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Real Estate Section */
.real-estate-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100vw;
  max-width: 1550px;

  padding: 1rem 1rem;
  background-color: white;
  box-sizing: border-box;
  margin-top: -275px;
  gap: 2rem;
}
.real-estate-section {
    margin-bottom: 250px;
  }

.real-estate-section .hero-text {
  flex: 1;
  padding-right: 2rem;
  padding-left: 1rem;
  color: var(--primary-color);
}

.real-estate-section .hero-image {
  flex: 1;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-estate-section .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}


.real-estate-section .hero-text p {
  flex: 1;
  padding-right: 2rem;
  padding-left: 4rem;
  font-size: 1.2rem;
  color: var(--muted-text);
}

.real-estate-section .hero-text h2
 {
  flex: 1;
  padding-right: 2rem;
  padding-left: 4rem;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Courses Section */
.courses {
  padding: 20px 20px;
  background-color: #f0f0f0;
  margin-top: -270px;
  width: 100vw;
  max-width: 1550px;
}

.courses .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  width: 100%;
}

.courses h1 {
  font-size: 32px;
  color: #1a2a44;
  margin-bottom: 20px;
}

.course-grid {
  display: flex;
  /* grid-template-columns: repeat(5, minmax(180px, 1fr)); */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 20px;
  gap: 50px;
 
}

.course-card {
  color: white;
  padding: 0;
  text-align: center;
  display: flex;
  border-radius: 15px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 12vw;
  height: 250px;
  background-color: #1a4971;
  overflow: hidden;
  position: relative;
}

.course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.course-card h3 {
  font-size: 14px;
  margin: 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  position: absolute;
  bottom: 0;
  z-index: 2;
  text-transform: uppercase;
}

.courses p {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}



/* Stats Section */
.stats-section {
  padding: 2rem 0;
  background-color: var(--card-bg);
  border-radius: 12px;
  width: 100vw;
  max-width: 1550px;
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 2rem;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  flex: 1;
  min-width: 250px;
  transition: var(--transition);
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  background-color: #e9ecef;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.stat-icon:hover {
  background-color: var(--accent-color);
}

.stat-icon svg {
  width: 45px;
  height: 45px;
  color: var(--primary-color);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 0.6rem 0;
  font-family: "Roboto", sans-serif;
}

.stat-text {
  font-size: 1.1rem;
  color: var(--muted-text);
  margin: 0;
}

@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .stat-item {
    width: 100%;
  }
}

/* Hire Tutor Section */
.hire-tutor-section {
  background-color: var(--primary-color);
  padding: 1.2rem 2rem;
  position: relative;
  width: 60vw;
  align-self: center;
  border-radius: 30px;
  max-width: 1550px;
  margin: 2rem auto 4rem auto;
}

.hire-tutor-container {
  margin-top: -20px;
  margin-bottom: 4rem;
  max-width: 900px;
  text-align: center;
  padding: 2rem;
  padding-right: 2rem;
}

.hire-tutor-container p {
  text-align: center;
  color: var(--bg-color);
}

.hire-tutor-section h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--bg-color);
  font-family: "Roboto", sans-serif;
}

.subtitle {
  font-size: 1rem;
  text-align: center;
  padding-right: 2rem;
  width: 100%;
  color: var(--bg-color);
}

.form-container {
  border-radius: 12px;
  transition: var(--transition);
  background: var(--primary-color);
  padding: 1.5rem 2rem;
  cursor: default;
}

.form-container:hover {
  transform: translateY(-5px);
}

.form-section {
  text-align: left;
}

.form-section h3 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.8rem;
  font-family: "Roboto", sans-serif;
}

.user-type-selection {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.user-type-option {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.user-type-option:hover {
  border-color: var(--accent-color);
  background: #e9ecef;
}

.user-type-option input[type="radio"] {
  display: none;
}

.user-type-option label {
  cursor: pointer;
  color: var(--text-color);
  font-weight: 500;
  display: block;
  width: 100%;
}

.user-type-option input[type="radio"]:checked + label {
  color: var(--accent-color);
  font-weight: 600;
}

.user-type-option input[type="radio"]:checked + label::before {
  content: "✓ ";
  color: var(--accent-color);
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--card-bg);
  font-size: 1rem;
}

.form-hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: -0.3rem;
  margin-bottom: 0.6rem;
}



.form-group input,
.form-group select {
  width: 90%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.submit-button {
  background: linear-gradient(45deg, var(--primary-color), #2f4996);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

.submit-button:hover {
  background: linear-gradient(45deg, #2f4996, var(--primary-color));
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-container {
    padding: 2rem;
  }

  .hire-tutor-section {
    padding: 3rem 1rem;
  }

  .hire-tutor-section h2 {
    font-size: 2.5rem;
  }

  .hire-tutor-section {
    width: 90vw;
  }
}

/* Team Section */
.team-section {
padding: 2rem 2rem;
  background-color: var(--card-bg);
  width: 100%;
 
}
.team-section .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center; /* Center the heading */
}

.team-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 60px;
}

.team-carousel-inner {
  display: flex;
  gap: 2rem;
  justify-content: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding: 1.5rem 0;
}

.team-carousel-inner::-webkit-scrollbar {
  display: none;
}



.team-card {
   width: auto;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  background: none;
  transition: none;
  position: static;
  overflow: visible;
}



.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition);
}

.team-card:hover::before {
  opacity: 1;
}

.team-image {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  border: 4px solid #ffffff;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1rem;
  font-family: "Roboto", sans-serif;
}

.team-bio {
  flex-grow: 1;
  margin-bottom: 0.8rem;
}

.team-bio p {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

team-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid #ffffff;
}

.team-rating {
  font-weight: 600;
  color: var(--text-color);
}

.star {
  color: yellow;
  margin-right: 3px;
}

.team-specialty {
  background: #ffffff;
  color: var(--text-color);
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--accent-color);
  color: white;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Testimonial Centered Section */
.testimonial-centered {
  background-color: #f5f5f5;
  padding: 4rem 1rem;
  text-align: center;
  width: 100vw;
  max-width: 1550px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  position: relative;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  transform: translateX(50px);
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.testimonial-author img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.author-role {
  font-size: 0.9rem;
  color: #666;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #2196f3;
}

@media (max-width: 768px) {
  .testimonial-centered {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .testimonial-slide {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .testimonial-dots {
    margin-top: 1rem;
  }

  .testimonial-slide {
    font-size: 0.9rem;
  }
}

/* Footer Section */
.footer {
  background-color: var(--primary-color);
  padding: 5rem 2rem 2rem;
  color: var(--bg-color);
  font-family: "Poppins", sans-serif;
  width: 100vw;
  max-width: 1550px;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-width: 220px;
  height: 400px;
  transition: var(--transition);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact p {
  margin: 0.6rem 0;
}

.footer-contact a {
  color: var(--muted-text);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-links a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 0.5rem;
  border-top: 1px solid #dee2e6;
  text-align: start;
  font-size: 0.95rem;
  color: #777;
}

.footer-bottom p {
  color: #ffffff;
}

@media (max-width: 992px) {
  .footer-column {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3.5rem 1.5rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-column {
    flex: 0 0 100%;
  }

  .footer-logo img {
    width: 100px;
  }
}

/* --- RESPONSIVE STYLES ADDED START --- */

/* Smaller laptops and tablets */
@media (max-width: 1200px) {
  /* Real Estate Section: allow padding shrink */
  .real-estate-section {
    padding: 1rem 1.5rem; /* RESPONSIVE ADDED */
  }

  /* Courses: adjust grid columns */
  .course-grid {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-bottom: 20px;/* RESPONSIVE ADDED */
  }
}

/* Tablets and medium devices */
@media (max-width: 992px) {
  /* Footer columns to 50% each */
  .footer-column {
    flex: 0 0 calc(50% - 1rem); /* existing but re-emphasized */
  }

  /* Real Estate Section stacking vertically */
  .real-estate-section {
    flex-direction: column; /* RESPONSIVE ADDED */
    align-items: center; /* RESPONSIVE ADDED */
    padding: 1rem; /* RESPONSIVE ADDED */
  }

  /* Hero content padding shrink */
  .hero-content {
    padding: 3rem 2rem; /* RESPONSIVE ADDED */
  }

  /* Team section container max width shrink */
  .team-section .container {
    max-width: 900px; /* RESPONSIVE ADDED */
  }
}

/* Phones and smaller tablets */


  @media (max-width: 768px) {
 nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem ;
    width: 100vw;
    flex-wrap: nowrap;
  }

  nav ul {
   flex-direction: row;  /* Keep links horizontal */
    align-items: center;
    gap: 1.5rem;         /* Space between links */
    width: auto;         /* Don't take full width */
    margin: 0;
    padding: 0;
  }
  nav .cta {
    margin-top: 0.8rem;
    width: 80%;
    text-align: center;
  }
   .logo {
    font-size: 1rem;
    width: auto;
  }
   .logo img {
    width: 60px;         /* Smaller logo for mobile */
    height: auto;
    margin-right: 0;
  }
  .language-toggle {
    flex-shrink: 0;      /* Prevent language selector from shrinking */
  }

  #language-selector {
    font-size: 0.8rem;
    padding: 0.3rem;
    min-width: 70px;
  }
.dropdown-menu {
    position: absolute;
    top: 100%;           /* Position below the nav item */
    left: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    width: 200px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
  }
  .nav-profile-image {
    height: 70px;
    width: 70px;
  }
  header{
    position: relative;
  }

  .head {
    flex-shrink: 0;      /* Prevent flag from shrinking */
  }

  .head img {
    width: 30px;         /* Smaller flag for mobile */
    height: auto;
  }

  
  /* Hero Section */
  .hero {
    padding: 2.5rem 1.5rem; /* RESPONSIVE ADDED */
    width: 100%; /* RESPONSIVE ADDED */
  }
  .hero-content {
    flex-direction: column; /* RESPONSIVE ADDED */
  }
  .hero-text {
    max-width: 100%; /* RESPONSIVE ADDED */
    padding-left: 1rem; /* RESPONSIVE ADDED */
    margin-top: 4rem; /* adjusted */
    margin-bottom: 4rem; /* adjusted */
    text-align: center; /* RESPONSIVE ADDED */
  }
  .hero-text h1 {
    font-size: 2.5rem; /* RESPONSIVE ADDED */
  }
  .hero-buttons {
    flex-direction: column; /* RESPONSIVE ADDED */
    gap: 1rem; /* RESPONSIVE ADDED */
    justify-content: center; /* RESPONSIVE ADDED */
    align-items: center; /* RESPONSIVE ADDED */
  }
  .btn {
    width: 80%; /* RESPONSIVE ADDED */
    max-width: 200px; /* RESPONSIVE ADDED */
    margin: 0 auto; /* RESPONSIVE ADDED */
  }
  .hero-visuals {
    width: 100%; /* RESPONSIVE ADDED */
    height: 350px; /* RESPONSIVE ADDED */
    min-height: 200px; /* RESPONSIVE ADDED */
  }
  .hero-background-image {
    position: relative; /* RESPONSIVE ADDED */
    right: 0; /* RESPONSIVE ADDED */
    top: 0; /* RESPONSIVE ADDED */
    width: 100%; /* RESPONSIVE ADDED */
    height: 300px; /* RESPONSIVE ADDED */
    opacity: 1; /* ensure visible */
    -webkit-mask-image: none; /* RESPONSIVE ADDED */
    mask-image: none; /* RESPONSIVE ADDED */
  }
  
  /* Real Estate Section */
  .real-estate-section {
    flex-direction: column; /* RESPONSIVE ADDED */
    margin-top: 0; /* RESPONSIVE ADDED */
    margin-bottom: 2rem; /* RESPONSIVE ADDED */
    padding: 1rem; /* RESPONSIVE ADDED */
    width: 100%; /* RESPONSIVE ADDED */
  }
  .real-estate-section .hero-image {
    height: 250px; /* RESPONSIVE ADDED */
    margin-top: 1rem; /* RESPONSIVE ADDED */
    margin-bottom: 15rem;
  }
  .real-estate-section .hero-text h2 {
    font-size: 1.75rem; /* RESPONSIVE ADDED */
    padding-left: 0; /* RESPONSIVE ADDED */
    padding-right: 0; /* RESPONSIVE ADDED */
  }
  .real-estate-section .hero-text p {
    font-size: 1rem; /* RESPONSIVE ADDED */
    padding-left: 0; /* RESPONSIVE ADDED */
    padding-right: 0; /* RESPONSIVE ADDED */
    color: var(--text-color); /* RESPONSIVE ADDED */
  }
  
  /* Course Grid */
  .course-grid {
    grid-template-columns: repeat(2, 1fr); /* RESPONSIVE ADDED */
    width: 70vw;
     flex-wrap: wrap;
     margin-bottom: 20px;
    
  }
  .courses .container h1{
    align-self: center;
    font-size: x-large;
    padding-right: 1rem;
  }
  
  .course-card {
    width: 30vw;  /* occupy 90% of viewport width */
    max-width: 400px; /* optional max width to limit overly large cards */
    margin: 0 auto; /* center cards horizontally */
  }
  
  /* Stats Section */
  .stats-container {
    padding: 0 1rem; /* RESPONSIVE ADDED */
  }
  
  /* Hire Tutor Section */
  .hire-tutor-section {
    width: 90vw; /* RESPONSIVE ADDED */
    padding: 3rem 1rem; /* RESPONSIVE ADDED */
  }
  .hire-tutor-section h2 {
    font-size: 2.5rem; /* existing */
  }
  .form-row {
    flex-direction: column; /* RESPONSIVE ADDED */
    gap: 1rem; /* RESPONSIVE ADDED */
  }
  .form-container {
    padding: 2rem; /* RESPONSIVE ADDED */
  }
  
  /* Team Section */
  .team-section {
    padding: 2rem 1rem; /* RESPONSIVE ADDED */
  }
  .team-carousel {
    padding: 0 20px; /* RESPONSIVE ADDED */
    display: grid;
    gap: 2rem;
  }
  .team-card {
    max-width: 280px; /* RESPONSIVE ADDED */
  }
  
  /* Testimonial Section */
  .testimonial-centered {
    padding: 3rem 1.5rem; /* RESPONSIVE ADDED */
  }
  .section-title {
    font-size: 2rem; /* RESPONSIVE ADDED */
  }
  .testimonial-slide {
    font-size: 1rem; /* RESPONSIVE ADDED */
  }
  
  /* Footer */
  .footer {
    padding: 3.5rem 1.5rem 1.5rem; /* RESPONSIVE ADDED */
  }
  .footer-container {
    flex-direction: column; /* RESPONSIVE ADDED */
    gap: 2.5rem; /* RESPONSIVE ADDED */
  }
  .footer-column {
    flex: 0 0 100%; /* RESPONSIVE ADDED */
  }
  .footer-logo img {
    width: 100px; /* RESPONSIVE ADDED */
    height: auto; /* RESPONSIVE ADDED */
  }
}

/* Mobile phones and smaller */


@media (max-width: 480px) {
  .course-grid {
    grid-template-columns: 1fr; /* stack cards vertically */
    gap: 20px;
    width: 50vw;
  }
  
  .course-card {
    width: 30vw;  /* occupy 90% of viewport width */
    max-width: 600px; /* optional max width to limit overly large cards */
    margin: 0 auto; /* center cards horizontally */
  }

  .courses .container h1{
    align-self: center;
    font-size: x-large;
    padding-right: 1rem;
  }

   .team-carousel {
    display: grid !important; /* force grid */
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 20px;
    
  }
  .team-carousel-inner {
    display: block !important; /* override flex or scroll if present */
    overflow-x: visible !important;
    padding: 0 !important;
}


  
  /* Hero Text smaller font */
  .hero-text h1 {
    font-size: 2rem; /* RESPONSIVE ADDED */
  }
  
  /* Hero Features list: smaller and line spacing */
  .hero-features li {
    font-size: 1rem; /* RESPONSIVE ADDED */
  }
  
  /* Real Estate Section text smaller */
  .real-estate-section .hero-text h2 {
    font-size: 1.5rem; /* RESPONSIVE ADDED */
  }
  .real-estate-section .hero-text p {
    font-size: 0.9rem; /* RESPONSIVE ADDED */
  }
  
  /* Stat numbers smaller */
  .stat-number {
    font-size: 1.5rem; /* RESPONSIVE ADDED */
  }
  
  /* Testimonial adjustments */
  .section-title {
    font-size: 1.75rem; /* RESPONSIVE ADDED */
  }
  .testimonial-slide {
    font-size: 0.9rem; /* RESPONSIVE ADDED */
  }
}

/* Ultra small phones */
@media (max-width: 320px) {
  /* Further small adjustments */
  
  .hero-buttons {
    gap: 0.5rem; /* RESPONSIVE ADDED */
  }
  
  nav ul {
    gap: 1rem; /* RESPONSIVE ADDED */
  }
  
  .submit-button {
    padding: 1rem 2rem; /* RESPONSIVE ADDED */
    font-size: 1rem; /* RESPONSIVE ADDED */
  }
}




/* Accessibility Focus States */
/* a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
} */

