/* styles.css */

/* --- Variables & Base Styles --- */
:root {
    --primary-color: #0a74da; /* Blue from logo */
    --secondary-color: #eaf6ff; /* Light blue accent */
    --dark-blue: #1a253c; /* Darker blue from logo */
    --text-color: #333;
    --heading-color: var(--dark-blue); /* Use dark blue for headings */
    --white-color: #ffffff;
    --light-gray: #f4f7fa;
    --gray: #6c757d; /* Slightly softer gray */
    --border-color: #dee2e6; /* Softer border */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Softer shadow */
    --transition-speed: 0.3s;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
  }
  
  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 600; /* Slightly bolder default */
  }
  
  h1 { font-size: 2.8rem; font-weight: 700; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.2rem; font-weight: 500; }
  
  p {
    margin-bottom: 1em;
    color: var(--gray);
  }
  
  a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
  }
  
  a:hover {
    color: #075aa5; /* Darker primary on hover */
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  section {
    padding: 80px 0;
  }
  
  /* Alternating background for sections */
  #vision, #courses, #testimonials, #contact {
      background-color: var(--white-color);
  }
  #goals, #campus { /* Use light gray for these */
      background-color: var(--light-gray);
  }
  /* Hero has its own background */
  
  
  /* --- Utility Classes --- */
  .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: #075aa5;
    border-color: #075aa5;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(10, 116, 218, 0.3);
  }
  
  .btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .btn-outline {
      background-color: transparent;
      color: var(--primary-color);
      border: 2px solid var(--primary-color);
  }
  
  .btn-outline:hover {
      background-color: var(--primary-color);
      color: var(--white-color);
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .section-header h2 {
    margin-bottom: 10px;
  }
  
  .section-header .underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 15px auto;
    border-radius: 2px;
  }
  
  .section-header p {
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      color: var(--gray);
  }
  
  
  /* --- Header & Navigation --- */
  header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease;
  }
  
  header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
  }
  
  #navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Adjust height if needed for logo */
  }
  
  /* Logo Styling */
  .logo a {
      display: block; /* Ensure link takes up space */
  }
  .logo img {
    max-height: 80px; /* Control logo size */
    width: auto; /* Maintain aspect ratio */
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
  }
  
  .nav-menu li {
    margin-left: 25px;
  }
  
  .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
    font-size: 0.95rem; /* Slightly smaller nav links */
  }
  
  .nav-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--primary-color);
      transition: width var(--transition-speed) ease;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-color);
  }
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  
  .nav-link.cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
  }
  
  .nav-link.cta:hover {
    background-color: #075aa5;
    color: var(--white-color); /* Ensure text color remains white on hover */
    transform: scale(1.05);
  }
  .nav-link.cta::after {
      display: none; /* No underline for CTA button */
  }
  
  .menu-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    z-index: 1001;
  }
  
  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    transition: all var(--transition-speed) ease-in-out;
    border-radius: 3px;
  }
  
  /* --- Hero Section --- */
  .hero {
    /* Using a lighter gradient overlay */
    background: linear-gradient(rgba(234, 246, 255, 0.6), rgba(234, 246, 255, 0.6)), url('image_placeholder_bg.jpg') no-repeat center center/cover;
    padding-top: 180px; /* Adjust based on navbar height */
    padding-bottom: 120px;
    color: var(--heading-color);
    min-height: 80vh;
    display: flex;
    align-items: center;
  }
  
  .hero .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
  }
  
  .hero-content {
      flex: 1;
      max-width: 600px;
  }
  
  .hero-content h1 {
      color: var(--heading-color);
      margin-bottom: 20px;
  }
  
  .hero-content p {
      font-size: 1.1rem;
      margin-bottom: 30px;
      color: var(--text-color);
  }
  
  .hero-buttons .btn {
      margin-right: 15px;
  }
  .hero-buttons .btn:last-child {
      margin-right: 0;
  }
  
  .hero-image {
      flex: 1;
      max-width: 500px;
      text-align: center;
  }
  
  .hero-image img {
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      transform: scale(1);
      transition: transform 0.5s ease;
  }
  
  .hero-image img:hover {
      transform: scale(1.03);
  }
  
  
  /* --- Vision Section (uses .about styles) --- */
  #vision { /* Can reuse .about class styling */
      background-color: var(--white-color);
  }
  
  .about-content { /* Reused for vision */
      display: flex;
      align-items: center;
      gap: 50px;
  }
  
  .about-image { /* Reused for vision */
      flex: 1;
      max-width: 500px;
  }
  
  .about-image img { /* Reused for vision */
      border-radius: 10px;
      box-shadow: var(--shadow);
  }
  
  .about-text { /* Reused for vision */
      flex: 1.2;
  }
  
  .about-text h3 { /* Reused for vision */
      color: var(--primary-color);
      margin-top: 20px;
  }
  .about-text h3:first-of-type {
      margin-top: 0;
  }
  
  /* --- Goals Section --- */
  .goals {
      background-color: var(--light-gray);
  }
  
  .goals-grid {
      display: grid;
      /* Adjust columns for potentially 7-8 items */
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 40px;
  }
  
  .goal-item {
      background-color: var(--white-color);
      padding: 30px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
      border: 1px solid var(--border-color);
      display: flex; /* Use flex for better alignment */
      flex-direction: column;
      align-items: center;
  }
  
  .goal-item:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow);
  }
  
  .goal-icon {
      font-size: 2.8rem;
      color: var(--primary-color);
      margin-bottom: 20px;
      display: inline-block;
      /* Added background circle */
      background-color: var(--secondary-color);
      width: 70px;
      height: 70px;
      line-height: 70px; /* Vertically center icon */
      border-radius: 50%;
  }
  
  .goal-item h3 {
      font-size: 1.3rem; /* Slightly smaller heading */
      margin-bottom: 10px;
      color: var(--heading-color);
  }
  
  .goal-item p {
      font-size: 0.95rem;
      color: var(--gray);
      margin-bottom: 0; /* Remove bottom margin for flex alignment */
      flex-grow: 1; /* Allow paragraph to take space */
  }
  
  /* Style the concluding goal item differently if needed */
  .goal-conclusion {
      grid-column: 1 / -1; /* Make it span full width if needed */
      background-color: var(--secondary-color); /* Different background */
      border-color: var(--primary-color);
  }
  .goal-conclusion .goal-icon {
      background-color: var(--white-color);
  }
  
  
  /* --- Courses Section --- */
  .courses {
      background-color: var(--white-color); /* Keep white */
  }
  
  .course-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-top: 40px;
  }
  
  .course-card {
      background-color: var(--white-color);
      padding: 35px 30px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
      border: 1px solid var(--border-color);
  }
  
  .course-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow);
  }
  
  .course-icon {
      font-size: 3rem;
      color: var(--primary-color);
      margin-bottom: 20px;
      display: inline-block;
  }
  
  .course-card h3 {
      font-size: 1.4rem;
      margin-bottom: 15px;
  }
  
  .course-card p {
      font-size: 0.95rem;
      margin-bottom: 25px;
      min-height: 60px;
  }
  
  
  /* --- Campus Section (About AAII) --- */
  .campus {
      background-color: var(--light-gray);
  }
  .campus-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
  }
  
  .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: var(--shadow);
      cursor: pointer;
  }
  
  .gallery-item img {
      transition: transform 0.5s ease;
      width: 100%;
      height: 250px;
      object-fit: cover;
  }
  
  .gallery-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: linear-gradient(to top, rgba(10, 116, 218, 0.85), rgba(10, 116, 218, 0));
      color: var(--white-color);
      padding: 40px 20px 20px;
      transform: translateY(100%);
      opacity: 0;
      transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
  }
  
  .gallery-item:hover .gallery-caption {
      transform: translateY(0);
      opacity: 1;
  }
  
  .gallery-item:hover img {
      transform: scale(1.1);
  }
  
  .gallery-caption h3 {
      color: var(--white-color);
      margin-bottom: 5px;
      font-size: 1.3rem;
  }
  
  .gallery-caption p {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.9rem;
      margin-bottom: 0;
  }
  
  .about-aaii-text { /* Style for the added text */
      text-align: center;
      margin-top: 40px;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
  }
  .about-aaii-text p {
      margin-bottom: 25px;
  }
  
  /* --- Testimonials Section --- */
  .testimonials {
      background-color: var(--white-color); /* Keep white */
      position: relative;
      overflow: hidden;
  }
  
  .testimonial-slider {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
      padding: 30px; /* More padding */
      background-color: var(--white-color);
      border-radius: 10px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border-color); /* Subtle border */
  }
  
  .testimonial-slide {
      display: none;
      animation: fadeEffect 1s;
  }
  
  .testimonial-slide.active {
      display: block;
  }
  
  .testimonial-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 30px;
      text-align: center;
  }
  
  .testimonial-image {
      flex-shrink: 0;
      width: 120px;
      height: 120px;
  }
  
  .testimonial-image img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--primary-color);
      padding: 3px;
      background-color: var(--white-color);
  }
  
  .testimonial-text {
      flex-grow: 1;
  }
  
  .testimonial-text p:first-child { /* Quote */
      font-style: italic;
      font-size: 1.1rem;
      color: var(--text-color);
      margin-bottom: 20px;
      position: relative;
      padding: 0 20px;
  }
  
  .testimonial-text p:first-child::before,
  .testimonial-text p:first-child::after {
      content: '"';
      font-size: 3rem;
      color: var(--primary-color);
      opacity: 0.3;
      position: absolute;
      top: -10px;
  }
  .testimonial-text p:first-child::before { left: -5px; }
  .testimonial-text p:first-child::after { right: -5px; top: auto; bottom: -20px; }
  
  
  .testimonial-text h4 {
      color: var(--primary-color);
      font-size: 1.1rem;
      margin-bottom: 5px;
  }
  
  .testimonial-position {
      font-size: 0.9rem;
      color: var(--gray);
      margin-bottom: 0;
  }
  
  .testimonial-controls {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 30px;
      gap: 15px;
  }
  
  .testimonial-controls button {
      background: none;
      border: none;
      color: var(--primary-color);
      font-size: 1.8rem;
      cursor: pointer;
      transition: transform 0.2s ease;
      padding: 5px;
  }
  
  .testimonial-controls button:hover {
      transform: scale(1.1);
  }
  
  .testimonial-dots {
      display: flex;
      gap: 10px;
  }
  
  .dot {
      width: 12px;
      height: 12px;
      background-color: #ccc;
      border-radius: 50%;
      cursor: pointer;
      transition: background-color var(--transition-speed) ease;
  }
  
  .dot.active {
      background-color: var(--primary-color);
  }
  
  @keyframes fadeEffect {
    from {opacity: 0.4}
    to {opacity: 1}
  }
  
  /* --- Enrollment Section --- */
  .enrollment {
      background-color: var(--primary-color); /* Use dark blue */
      color: var(--white-color);
  }
  
  .enrollment-content {
      display: flex;
      gap: 50px;
      align-items: flex-start;
  }
  
  .enrollment-text {
      flex: 1;
  }
  
  .enrollment-text h2 {
      color: var(--white-color);
      font-size: 2.5rem;
  }
  .enrollment-text p {
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 30px;
  }
  
  .enrollment-text ul {
      margin: 25px 0;
      list-style: none;
      padding: 0;
  }
  
  .enrollment-text ul li {
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      font-size: 1.05rem;
  }
  
  .enrollment-text ul li i {
      margin-right: 15px;
      font-size: 1.3rem;
      width: 25px;
      text-align: center;
      color: var(--primary-color); /* Use primary blue for icons */
  }
  
  .enrollment-text .btn-primary { /* Button inside dark section */
      background-color: var(--primary-color);
      color: var(--white-color);
      border-color: var(--primary-color);
  }
  .enrollment-text .btn-primary:hover {
      background-color: var(--white-color);
      color: var(--primary-color);
      border-color: var(--white-color);
  }
  
  .enrollment-form-container {
      flex: 1;
      background-color: var(--white-color);
      padding: 40px;
      border-radius: 10px;
      box-shadow: var(--shadow);
  }
  
  .enrollment-form-container h3 {
      color: var(--heading-color);
      text-align: center;
      margin-bottom: 30px;
  }
  
  .form-group {
      margin-bottom: 20px;
  }
  
  .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: var(--text-color);
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid var(--border-color);
      border-radius: 5px;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(10, 116, 218, 0.2);
  }
  
  .form-group textarea {
      resize: vertical;
      min-height: 100px;
  }
  
  .enrollment-form button[type="submit"] {
      width: 100%;
      padding: 15px;
      font-size: 1.1rem;
  }
  
  /* --- Contact Section --- */
  .contact {
       background-color: var(--white-color);
  }
  .contact-content {
      display: flex;
      gap: 40px;
      align-items: flex-start;
  }
  
  .contact-info {
      flex: 1;
      max-width: 450px;
  }
  
  .contact-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 25px;
  }
  
  .contact-item i {
      font-size: 1.8rem;
      color: var(--primary-color);
      margin-right: 20px;
      width: 30px;
      text-align: center;
      margin-top: 5px;
  }
  
  .contact-item h3 {
      font-size: 1.2rem;
      margin-bottom: 5px;
  }
  .contact-item p {
      margin-bottom: 0;
      color: var(--gray);
  }
  /* Style links within contact info */
  .contact-item p a {
      color: var(--primary-color);
      font-weight: 500;
  }
  .contact-item p a:hover {
      text-decoration: underline;
  }
  
  
  .social-media {
      margin-top: 30px;
  }
  .social-media h3 {
      margin-bottom: 15px;
  }
  
  .social-icons a {
      color: var(--primary-color);
      font-size: 1.6rem;
      margin-right: 15px;
      transition: color var(--transition-speed) ease, transform 0.2s ease;
      display: inline-block;
  }
  
  .social-icons a:hover {
      color: var(--dark-blue); /* Use dark blue on hover */
      transform: scale(1.1);
  }
  .social-icons a:last-child {
      margin-right: 0;
  }
  
  .map-container {
      flex: 1.5;
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
      min-height: 400px;
  }
  
  .map-placeholder {
      position: relative;
      background-color: var(--light-gray);
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 400px;
  }
  .map-placeholder img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(10%) opacity(0.9); /* Less aggressive filter */
  }
  
  .map-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: rgba(10, 116, 218, 0.8);
      color: var(--white-color);
      padding: 20px 30px;
      border-radius: 8px;
      text-align: center;
      cursor: pointer;
      transition: background-color var(--transition-speed) ease;
  }
  .map-overlay:hover {
       background-color: rgba(7, 90, 165, 0.9);
  }
  .map-overlay h3 {
      color: var(--white-color);
      margin-bottom: 5px;
  }
  .map-overlay p {
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 0;
  }

  /* onlineCourse page */

  .lang-ar {
    font-family: 'Amiri', sans-serif;
    font-size: 1.1rem;
    color: var(--gray);
    display: inline-block;
    margin-left: 8px;
    font-weight: 400;
}

/* Add this to your CSS file if needed */
.lang-fr {
    /* font-family: 'Your Chosen Font for French', sans-serif; */ /* Example */
    font-size: 1.1rem;
    color: var(--gray); /* Or your desired color */
    display: inline-block;
    margin-left: 8px;
    font-weight: 400;
  }


/* Teachers Section */
.teachers-section {
  padding: 4rem 2rem;
  background-color: #f7f9fc;
}
.section-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.teacher-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.teacher-card:hover {
  transform: translateY(-5px);
}
.teacher-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.teacher-card p {
  margin: 0.25rem 0;
  line-height: 1.4;
}


/* Course Card Enhancements */
.course-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.course-description h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

/* instructor image following course parent */
.instructor-img {
  display: block;                 /* make it block-level */
  margin: 0 auto 1rem;            /* auto left/right, 1rem bottom */
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.feature-item {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}
  
  /* --- Footer --- */
  footer {
      background-color: var(--dark-blue); /* Use dark blue */
      color: rgba(255, 255, 255, 0.7);
      padding: 60px 0 30px;
  }
  
  .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
      margin-bottom: 40px;
  }
  
  .footer-logo h2 {
      color: var(--white-color);
      margin-bottom: 5px;
      font-size: 1.3rem; /* Smaller heading */
  }
  .footer-logo p {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.9rem;
      margin-top: 0;
  }
  .footer-logo img { /* Style footer logo */
      max-height: 50px; /* Adjust size */
      margin-bottom: 10px;
  }
  
  footer h3 {
      color: var(--white-color);
      font-size: 1.1rem;
      margin-bottom: 20px;
      font-weight: 500;
  }
  
  .footer-links ul,
  .footer-resources ul {
      padding: 0;
      list-style: none;
  }
  
  .footer-links ul li,
  .footer-resources ul li {
      margin-bottom: 10px;
  }
  
  .footer-links a,
  .footer-resources a {
      color: rgba(255, 255, 255, 0.7);
      transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
      position: relative;
  }
  
  .footer-links a:hover,
  .footer-resources a:hover {
      color: var(--white-color);
      padding-left: 8px;
  }
  .footer-links a::before,
  .footer-resources a::before {
      content: '\f105'; /* Font Awesome right arrow */
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      left: -5px;
      opacity: 0;
      transition: opacity var(--transition-speed) ease, left var(--transition-speed) ease;
      color: var(--primary-color);
  }
  .footer-links a:hover::before,
  .footer-resources a:hover::before {
      opacity: 1;
      left: -15px;
  }
  
  
  .footer-newsletter p {
      margin-bottom: 15px;
  }
  
  .newsletter-form {
      display: flex;
      gap: 10px;
  }
  
  .newsletter-form input[type="email"] {
      flex-grow: 1;
      padding: 10px 15px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 5px;
      background-color: rgba(255, 255, 255, 0.1);
      color: var(--white-color);
      font-family: 'Poppins', sans-serif;
  }
  .newsletter-form input[type="email"]::placeholder {
      color: rgba(255, 255, 255, 0.5);
  }
  .newsletter-form input[type="email"]:focus {
      outline: none;
      border-color: var(--primary-color);
      background-color: rgba(255, 255, 255, 0.2);
  }
  
  .newsletter-form .btn-primary {
      padding: 10px 15px;
      border-radius: 5px;
      flex-shrink: 0;
  }
  
  .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      padding-top: 30px;
      margin-top: 30px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
  }
  
  .footer-bottom p {
      font-size: 0.9rem;
      margin-bottom: 10px;
  }
  
  .footer-legal a {
      color: rgba(255, 255, 255, 0.7);
      margin: 0 10px;
      font-size: 0.85rem;
  }
  
  .footer-legal a:hover {
      color: var(--white-color);
  }
  
  /* --- Back to Top Button --- */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform 0.2s ease, background-color var(--transition-speed) ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background-color: #075aa5;
    transform: translateY(-3px);
  }
  
  /* --- Animations --- */
  .animate-on-scroll {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .animate-on-scroll.visible {
      opacity: 1;
      transform: translateY(0);
  }
  
  /* Staggered Animation Delays */
  .hero-content h1.animate-on-scroll { transition-delay: 0.1s; }
  .hero-content p.animate-on-scroll { transition-delay: 0.2s; }
  .hero-buttons.animate-on-scroll { transition-delay: 0.3s; }
  .hero-image.animate-on-scroll { transition-delay: 0.4s; }
  
  .about-image.animate-on-scroll { transition-delay: 0.1s; }
  .about-text.animate-on-scroll { transition-delay: 0.2s; }
  
  /* Stagger goals animation */
  .goals-grid .goal-item.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
  .goals-grid .goal-item.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
  .goals-grid .goal-item.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
  .goals-grid .goal-item.animate-on-scroll:nth-child(4) { transition-delay: 0.15s; } /* Adjust timing for grid */
  .goals-grid .goal-item.animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
  .goals-grid .goal-item.animate-on-scroll:nth-child(6) { transition-delay: 0.35s; }
  .goals-grid .goal-item.animate-on-scroll:nth-child(7) { transition-delay: 0.2s; }
  .goals-grid .goal-item.animate-on-scroll:nth-child(8) { transition-delay: 0.3s; } /* Concluding item */
  
  
  .course-card.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
  .course-card.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
  .course-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
  .course-card.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
  
  .gallery-item.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
  .gallery-item.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
  .gallery-item.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
  .about-aaii-text.animate-on-scroll { transition-delay: 0.4s; }
  
  
  .enrollment-text.animate-on-scroll { transition-delay: 0.1s; }
  .enrollment-form-container.animate-on-scroll { transition-delay: 0.2s; }
  
  .contact-info.animate-on-scroll { transition-delay: 0.1s; }
  .map-container.animate-on-scroll { transition-delay: 0.2s; }
  
  
  /* --- Responsiveness --- */
  
  /* Tablets (e.g., iPads) */
  @media (max-width: 992px) {
      h1 { font-size: 2.5rem; }
      h2 { font-size: 2rem; }
      h3 { font-size: 1.4rem; }
  
      .container {
          padding: 0 30px;
      }
  
      #navbar .container { height: 70px; }
      .logo img { max-height: 50px; } /* Adjust logo size */
      .nav-menu { display: none; }
      .menu-toggle { display: block; }
  
      .nav-menu.active {
          display: flex;
          flex-direction: column;
          position: absolute;
          top: 70px;
          left: 0;
          width: 100%;
          background-color: var(--white-color);
          box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
          padding: 20px 0;
          align-items: center;
          opacity: 0;
          transform: translateY(-10px);
          animation: slideDown 0.3s forwards;
      }
  
      @keyframes slideDown {
          to {
              opacity: 1;
              transform: translateY(0);
          }
      }
  
      .nav-menu li { margin: 15px 0; width: 100%; text-align: center; }
      .nav-link { padding: 10px 0; width: 100%; display: block; }
      .nav-link::after { display: none; }
      .nav-link.cta { margin-top: 10px; width: auto; display: inline-block; }
  
      .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
      .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
      .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
      .hero { padding-top: 120px; padding-bottom: 80px; text-align: center; }
      .hero .container { flex-direction: column; text-align: center; gap: 30px; }
      .hero-content { max-width: 100%; }
      .hero-buttons { justify-content: center; }
      .hero-image { margin-top: 30px; max-width: 400px; }
  
      .about-content { flex-direction: column; text-align: center; } /* Applies to vision */
      .about-image { max-width: 450px; margin-bottom: 30px; }
  
      .goals-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } /* Adjust goal grid */
      .goal-conclusion { grid-column: auto; } /* Don't force full width on tablet */
  
      .course-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  
      .campus-gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  
      .testimonial-slider { max-width: 90%; }
  
      .enrollment-content { flex-direction: column; }
      .enrollment-text { text-align: center; }
      .enrollment-text ul { justify-content: center; }
      .enrollment-form-container { margin-top: 30px; }
  
      .contact-content { flex-direction: column; }
      .contact-info { max-width: 100%; }
      .map-container { margin-top: 30px; }
  
      .footer-content { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
      .footer-bottom { flex-direction: column; }
      .footer-legal { margin-top: 10px; }
  
  }
  
  /* Mobile Phones */
  @media (max-width: 576px) {
      h1 { font-size: 2rem; }
      h2 { font-size: 1.8rem; }
      h3 { font-size: 1.3rem; }
  
      section { padding: 60px 0; }
      .container { padding: 0 15px; }
  
      #navbar .container { height: 60px; }
      .logo img { max-height: 40px; } /* Smaller logo on mobile */
      .nav-menu.active { top: 60px; }
  
      .hero { padding-top: 100px; padding-bottom: 60px; }
      .hero-content p { font-size: 1rem; }
      .hero-buttons { display: flex; flex-direction: column; gap: 15px; align-items: center; }
      .hero-buttons .btn { width: 80%; max-width: 250px; margin: 0;}
  
      .goals-grid { grid-template-columns: 1fr; } /* Stack goals */
      .course-cards { grid-template-columns: 1fr; }
      .campus-gallery { grid-template-columns: 1fr; }
  
      .testimonial-content { flex-direction: column; gap: 20px; }
      .testimonial-image { width: 100px; height: 100px; }
      .testimonial-text p:first-child { font-size: 1rem; }
  
      .enrollment-form-container { padding: 30px; }
  
      .contact-item { flex-direction: column; align-items: center; text-align: center; }
      .contact-item i { margin: 0 0 10px 0; }
  
      .footer-content { grid-template-columns: 1fr; text-align: center; }
      .footer-logo { display: flex; flex-direction: column; align-items: center;} /* Center footer logo */
      .footer-links ul, .footer-resources ul { text-align: center; }
      .footer-links a:hover, .footer-resources a:hover { padding-left: 0; }
      .footer-links a::before, .footer-resources a::before { display: none; }
      .newsletter-form { flex-direction: column; }
  
      .back-to-top {
          width: 40px;
          height: 40px;
          font-size: 1.2rem;
          bottom: 20px;
          right: 20px;
      }
  }
  
  /* Medium Devices (adjust if needed) */
  @media (min-width: 768px) and (max-width: 991.98px) {
    .lang-ar {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .course-card h3 {
        font-size: 1.4rem;
    }

      .testimonial-content {
          flex-direction: row;
          text-align: left;
          align-items: center;
      }
      .testimonial-image { margin-bottom: 0; }
      .testimonial-text p:first-child::before { left: -15px; }
      .testimonial-text p:first-child::after { right: -15px; }
  
      .footer-bottom { flex-direction: row; }
      .footer-legal { margin-top: 0; }
  }
  
  /* Larger Grid for Goals on wider screens */
  @media (min-width: 1200px) {
      .goals-grid {
          grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
      }
       .goal-conclusion {
          grid-column: 1 / -1; /* Span full width */
      }
  }
  