/* 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;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Account for fixed header */
}

/* Additional scroll offset for better positioning */
#get-quote {
  scroll-margin-top: 120px;
}

  .hero-text, .hero-buttons, .hero .btn { position: relative; z-index: 10010; }

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 */
}

main {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Additional elements that might cause white space */
* {
  box-sizing: border-box;
}

html, body, main, .hero, .hero-content {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* 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);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 10002;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger Menu Animation */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

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: flex;
  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;
}

/* New caret button for splitting link vs dropdown on mobile */


/* caret button */
.dropdown-caret {
  display: none;
  margin-left: 8px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  width: 28px;
  height: 28px;
  position: relative;
}
.dropdown-caret::before { content: "▼"; font-size: 14px; }
.dropdown-container.active .dropdown-caret::before { content: "▲"; }



/* 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: auto;
  /* Create a new stacking context to keep hero button above stray overlays */
  isolation: isolate;
}

.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-position: center;
  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;
  /* Never intercept clicks above the hero button/text */
  pointer-events: none;
}

.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;
  /* Ensure background never blocks clicks on buttons/text above */
  pointer-events: none;
}

.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: 0px;
  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(3, 1fr);
  margin-bottom: 20px;
  gap: 100px;
 
}

.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: 1rem;
  }

  .footer-column {
    flex: 0 0 100%;
  }

  .footer-logo img {
    width: 100px;
  }
  .logo2 img {
  width: 120px;
  padding: 0;
  height: 140px;
  padding-top: 0;
  /* margin-left: 6rem; */
  margin-right: 6rem;
  border-radius: 8px;
  transition: var(--transition);
}
}

/* --- 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 responsive for tablets */
  .hero-content {
    padding: 3rem 2rem;
    flex-direction: column;
    text-align: center;
    height: auto;
    min-height: 600px;
    margin-top: -120px;
  }

  .hero-text {
    padding-left: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

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

  .hero-visuals {
    flex: 1;
    min-height: 400px;
    margin-top: 2rem;
  }

  .hero-background-image {
    position: relative;
    width: 100%;
    height: 400px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Team section container max width shrink */
  .team-section .container {
    max-width: 900px; /* RESPONSIVE ADDED */
  }
}

/* Phones and smaller tablets */


  @media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger-menu {
      display: flex;
    }

    nav {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem;
      width: 100vw;
      flex-wrap: nowrap;
    }

    nav ul {
      display: flex;
  flex-direction: column;
  align-items: flex-start;
      position: fixed;
      top: 0;
      right: -100%;
      width: 250px;
      height: 100vh;
      background-color: var(--primary-color);
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      margin: 0;
      padding: 80px 20px 20px 20px;
      transition: right 0.3s ease;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
      z-index: 10001;
    }

    nav ul.active {
      right: 0;
    }

      nav ul li {
    width: 100%;
    margin: 10px 0;
    position: relative;  /* Ensure proper positioning context */
  }

    nav ul li a {
      display: block;
      padding: 15px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      width: 100%;
    }
  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: relative;  /* Change to relative positioning for mobile */
    top: auto;           /* Remove absolute positioning */
    left: auto !important; /* Force remove absolute positioning */
    background-color: var(--primary-color);
    flex-direction: column;
    width: 100%;         /* Full width in mobile sidebar */
    padding: 0.5rem 0;
    box-shadow: none;    /* Remove shadow for mobile */
    margin-top: 0.5rem;  /* Add some spacing */
    padding-left: 0;     /* Remove left padding to pull items to the left */
    margin-left: -200px;  /* Pull the entire dropdown menu to the left */
    z-index: 10006;      /* Ensure it appears above other elements */
    transform: none !important; /* Remove any transforms */
    opacity: 1 !important;      /* Force opacity to be visible */
    visibility: visible !important; /* Force visibility */
  }

  /* Show caret on mobile and keep Services text as normal link */
  .dropdown-container .services-link {
    display: inline-block;
  }
  .dropdown-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 0.6rem 0.2rem;  /* Further reduced left padding to pull items more to the left */
    font-size: 0.9rem;   /* Slightly larger font for mobile */
    border-bottom: none; /* Remove border for dropdown items */
    color: #ffffff !important;      /* Force text to be visible */
    background-color: transparent; /* Ensure background is transparent */
    text-decoration: none;         /* Remove any text decoration */
    display: block;                /* Ensure it's displayed as block */
    width: 100%;                   /* Full width */
    white-space: normal;           /* Allow text to wrap */
    opacity: 1 !important;         /* Force opacity to be visible */
  }

  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light background on hover */
    color: #ffffff;
  }

  /* Ensure dropdown items are properly positioned in mobile */
  .dropdown-menu li {
    margin: 0;
    width: 100%;
    position: relative;
    list-style: none;    /* Remove list bullets */
    padding: 0;          /* Remove default padding */
  }

  /* Hide dropdown by default in mobile */
  .dropdown-container .dropdown-menu {
    display: none;
  }

  /* Show dropdown when container is active or hovered */
  .dropdown-container.active .dropdown-menu,
  .dropdown-container:hover .dropdown-menu {
    display: block;
  }

  /* Add visual indicator for dropdown toggle in mobile */
  /* Remove pseudo-caret on link since we added a real button */
  .dropdown-container .dropdown-toggle::after { content: none; }

  /* Override desktop dropdown container styles for mobile */
  .dropdown-container {
    position: static;
    display: block;
    align-items: stretch;
    height: auto;
  }
  .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;
  }

  .dropdown-container .services-link { display: inline-block; }
.dropdown-caret { display: inline-flex; align-items: center; justify-content: center; }

/* remove old pseudo-caret on link if present */
.dropdown-container .dropdown-toggle::after { content: none; }
  
  /* Hero Section */
  .hero {
    padding: 0rem 1rem; /* RESPONSIVE ADDED */
    width: 100%; /* RESPONSIVE ADDED */
  }
  .hero-content {
    flex-direction: column; /* RESPONSIVE ADDED */
    padding: 1rem 1rem; /* RESPONSIVE ADDED */
    height: auto; /* RESPONSIVE ADDED */
    min-height: 500px; /* RESPONSIVE ADDED */
    margin-top: -0px; /* RESPONSIVE ADDED */
    text-align: center; /* RESPONSIVE ADDED */
    background-position: left center; /* Move image to left for mobile */
  }
  .hero-text {
    max-width: 100%; /* RESPONSIVE ADDED */
    padding-left: 0; /* RESPONSIVE ADDED */
     margin-top: 1rem; /* increased to move text down more for mobile */
  
    text-align: center; /* RESPONSIVE ADDED */
  }
/* Reduce the huge top gap before the heading on mobile */
.hero-text h1 {
  padding-top: 0;     /* was 17rem */
  margin-top: 0.5rem; /* optional: small top margin */
}

/* Tighten space above the button on mobile */
.hero-buttons {
  gap: 0.5rem;        /* add a small, consistent gap between stacked items */
  margin-top: 0.5rem; /* already set by you; keep it small */
}
  .btn {
    width: 100%; /* RESPONSIVE ADDED */
    max-width: 250px; /* RESPONSIVE ADDED */
    margin: 0 auto; /* RESPONSIVE ADDED */
    padding: 0.8rem 1.5rem; /* RESPONSIVE ADDED */
    font-size: 1rem; /* RESPONSIVE ADDED */
  }
  .hero-visuals {
    width: 100%; /* RESPONSIVE ADDED */
    height: 250px; /* RESPONSIVE ADDED */
    min-height: 200px; /* RESPONSIVE ADDED */
    margin-top: 1rem; /* RESPONSIVE ADDED */
  }
  .hero-background-image {
    position: relative; /* RESPONSIVE ADDED */
    right: 0; /* RESPONSIVE ADDED */
    top: 0; /* RESPONSIVE ADDED */
    width: 100%; /* RESPONSIVE ADDED */
    height: 250px; /* RESPONSIVE ADDED */
    opacity: 1; /* ensure visible */
    -webkit-mask-image: none; /* RESPONSIVE ADDED */
    mask-image: none; /* RESPONSIVE ADDED */
    border-radius: 8px; /* 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: 2.5rem 1rem 1rem; /* RESPONSIVE ADDED */
  }
  .footer-container {
    flex-direction: column; /* RESPONSIVE ADDED */
    gap: 0.5rem; /* RESPONSIVE ADDED */
  }
  .footer-column {
    flex: 0 0 100%; /* RESPONSIVE ADDED */
  }
  .footer-logo img {
    width: 100px; /* RESPONSIVE ADDED */
    height: 100px; /* 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 content for small phones */
  .hero-content {
    padding: 1.5rem 0.5rem;
    min-height: 450px;
    margin-top: -60px;
    background-position: left center; /* Move image to left for mobile */
  }
  #home .hero-text {
    margin-top: 15rem; 
    margin-bottom: 1rem;
  }

  
  /* Hero Text smaller font */
  .hero-text h1 {
    font-size: 1.8rem; /* RESPONSIVE ADDED */
    line-height: 1.2; /* RESPONSIVE ADDED */
  }
  
  .hero-buttons {
    gap: 0.8rem; /* RESPONSIVE ADDED */
  }

  .btn {
    padding: 0.7rem 1.2rem; /* RESPONSIVE ADDED */
    font-size: 0.9rem; /* RESPONSIVE ADDED */
  }

  .hero-visuals {
    height: 200px; /* RESPONSIVE ADDED */
  }

  .hero-background-image {
    height: 200px; /* 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 content for very small phones */
  .hero-content {
    padding: 1rem 0.5rem;
    min-height: 400px;
    margin-top: -40px;
    background-position: left center; /* Move image to left for mobile */
  }

  #home .hero-text {
    margin-top: 15rem; 
    margin-bottom: 1rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  .hero-buttons {
    gap: 0.5rem; /* RESPONSIVE ADDED */
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .hero-visuals {
    height: 180px;
  }

  .hero-background-image {
    height: 180px;
  }
  
  nav ul {
    gap: 1rem; /* RESPONSIVE ADDED */
  }
  
  .submit-button {
    padding: 1rem 2rem; /* RESPONSIVE ADDED */
    font-size: 1rem; /* RESPONSIVE ADDED */
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 75px;
    right: 15px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 70px;
    right: 10px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Tighten spacing for the real-estate hero (all sizes) */
.real-estate-section .hero-text {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}
.real-estate-section .hero-text h2 {
  margin-top: 0;
}
.real-estate-section .hero-text p {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem; /* reduce gap above the button */
}
.real-estate-section .hero-buttons {
  gap: 0.5rem;       /* smaller space inside the buttons row/column */
  margin-top: 0.5rem;/* small, consistent gap above the button */
}

/* Mobile refinements */
@media (max-width: 768px) {
  .real-estate-section .hero-text {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .real-estate-section .hero-text h2 {
    margin-top: 0;
  }
  .real-estate-section .hero-text p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .real-estate-section .hero-buttons {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  /* Optional: if you still see extra space below this section on mobile */
  .real-estate-section .hero-image {
    margin-bottom: 15rem; /* was 15rem; this prevents huge space below the section */
  }
}

/* Accessibility Focus States */
/* a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
} */

