/* ====================================================================== */
/* General & Reusable Styles                                              */
/* ====================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Ubuntu', sans-serif;
}

body {
  min-height: 100vh;
  /* Apply black background as a base for pages that use it */
  background-color: #000;
}

/* Specific body background for pages needing white */
body.page-about,
body.page-index {
    background-color: #fff;
}


p {
  text-align: justify;
}

.uniform-header {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.libre-baskerville-regular {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: normal;
}

.libre-baskerville-bold {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-style: normal;
}

.libre-baskerville-regular-italic {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: italic;
}

.uniform {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Libre Baskerville";
}

/* --- Custom Thin Scrollbar CSS (Floating Style) --- */
::-webkit-scrollbar {
  width: 4px; /* Reduced from 8px to make it thinner */
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #AF8000;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #9C7400;
}

/* --- Animations & Effects --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

button,
.explore-courses,
.more-courses,
.send-button,
.submit-btn,
.cta-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover,
.explore-courses:hover,
.more-courses:hover,
.send-button:hover,
.submit-btn:hover,
.cta-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Gradient Text Effect */
.gradient-text {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(90deg, #3a3a3a, #AF8000, #5a5a5a);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease-in-out infinite;
}

.gradient-text-light {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(90deg, #f2d483, #AF8000, #f2d483);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease-in-out infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Reusable class for the animated underline effect */
.underline-animation {
  position: relative;
  display: inline-block;
}

.underline-animation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: #927c45;
  width: 0;
  animation: underlineSlide 5s linear infinite;
}

/* Specific underline for active nav link */
.nav-link-animated::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #927c45;
    width: 0;
    animation: underlineSlide 5s linear infinite;
}


@keyframes underlineSlide {
  0% {
    width: 0;
    left: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0;
    right: 100%;
  }
}

/* Fade In Up animation (used on About page stats) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In animation (used on Hero sections) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ====================================================================== */
/* Preloader                                                              */
/* ====================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  transition-delay: 0.7s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.ripple-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  width: 100px;
  height: auto;
  z-index: 10;
}

.ripple {
  position: absolute;
  border: 2px solid #AF8000;
  border-radius: 50%;
  animation: ripple 1.5s infinite;
}

.ripple:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes ripple {
  0% {
    width: 100px;
    height: 100px;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* ====================================================================== */
/* Navbar Styling                                                         */
/* ====================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background-color: white;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure logo path is correct */
.navbar img {
  height: 65px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 100;
  padding: 10px;
  /* Fix for underline animation */
  position: relative;
  display: inline-block;
}

.join-btn {
  background-color: #AD9452;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
}

.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

/* ====================================================================== */
/* Hero Section (Index Page)                                              */
/* ====================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Default for index page */
  background-color: #000;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback background for index */
.hero-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  /* Updated path */
  background-image: url('../images/backgrounds/hero-home.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 0;
}

/* Dark overlay for index */
.hero-section::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.main-text {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 20px;
  max-width: 1170px;
  margin-top: 5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease-out forwards;
  animation-delay: 1.5s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h2.uniform { /* Specific to index hero */
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.box-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-main p {
  color: #AD9452;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1.25rem;
  margin: 0 auto 20px auto;
  max-width: 800px;
  text-align: center;
}

.hero-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.explore-courses {
  background-color: white;
  border-radius: 30px;
  height: 55px;
  width: 180px;
  color: black;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 17px;
  border: none;
  padding: 0 20px;
  text-align: center;
  line-height: 1.2;
}

.explore-courses:hover {
  background-color: rgb(207, 207, 207);
  transform: translateY(-2px);
}

.hero-join-btn {
  background-color: #AF8000;
  color: white;
}

.hero-join-btn:hover {
  background-color: #9C7400;
  color: white;
  transform: translateY(-2px);
}

/* ====================================================================== */
/* Hero Section (Other Pages - About, Contact, Courses, Services)         */
/* ====================================================================== */

/* --- About Page Hero --- */
.about-hero {
  position: relative;
  padding-top: 100px;
  padding-left: 20px;
  padding-right: 20px;
  /* Updated path */
  background-image: url('../images/backgrounds/hero-about.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  color: white;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1; /* Keep behind content */
}

.about-content {
  margin: 20px;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
  position: relative;
  z-index: 2; /* Ensure content is above overlay */
  text-align: center;
  padding-left: 80px;
  padding-right: 80px;
}

.about-content h1 {
  font-size: 60px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #AD9452;
}

.about-content p {
  font-size: 18px;
  line-height: 1.7;
  margin: 20px;
  margin-bottom: 20px;
  color: white;
  text-align: justify;
  text-align-last: center;
}

.about-cta {
  margin-top: 40px;
}

.about-cta button {
  padding: 14px 28px;
  font-size: 16px;
  background-color: #AD9452;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

/* --- Contact Page Hero --- */
.contact-hero {
  /* Updated path */
  background-image: url('../images/backgrounds/hero-contact.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  height: 50vh;
  padding-left: 16px;
  padding-right: 16px;
  margin-top: 80px; /* Adjust based on navbar height */
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Slightly darker overlay */
  z-index: 1;
}

/* Reusing hero-content for consistency */
.contact-hero .hero-content {
  max-width: 800px;
  margin: 20px;
  animation: fadeIn 1s ease;
  position: relative;
  z-index: 2; /* Above overlay */
}

.hero-title {
  color: #AF8000;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Ubuntu', sans-serif;
}

.hero-text {
  color: #d1d5db;
  font-size: 18px;
  line-height: 28px;
  max-width: 672px;
  text-align: left;
}

/* --- Courses/Services Page Hero --- */
.courses-hero,
.services-hero {
  /* Updated path */
  background-image: url("../images/backgrounds/hero-courses.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  padding: 20px;
}

.courses-hero .container,
.services-hero .container {
  text-align: center;
}

/* Reusing content-area for consistency */
.courses-hero .content-area,
.services-hero .content-area {
  width: 100%;
}

.courses-hero .content-area h1,
.services-hero .content-area h1 {
  color: #AD9452;
  font-size: 70px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 16px;
}

.courses-hero .content-area p,
.services-hero .content-area p {
  color: #d1d5db;
  font-size: 18px;
  margin-bottom: 24px;
  margin: 0px 100px;
  text-align: center;
}

/* ====================================================================== */
/* Stats Section (Index Page)                                             */
/* ====================================================================== */
.stats-section {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 60px 20px;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #fff; /* Make sure this is present */
}

.stats-section::-webkit-scrollbar {
  display: none;
}

.stats-section .uniform-header {
  font-size: 28px;
  margin-bottom: 40px;
  color: black;
  font-weight: 700;
}

.stats-section .highlight-careers,
.stats-section .highlight-orgs {
  color: #732710;
  font-weight: bold;
}

.stats-section .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0;
  width: 100%;
}

.stats-section .card {
  box-sizing: border-box;
  flex-basis: calc(16.66% - 13px);
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 120px;
  max-width: 300px;
  padding: 15px 10px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, background-color 0.3s;
  text-align: center;
}

.stats-section .card:hover {
  transform: translateY(-5px);
  background-color: rgb(246, 246, 246);
}

/* Updated path */
.stats-section .card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 10px;
  border: 2px solid black;
  border-radius: 50%;
  padding: 8px;
  background-color: #fff;
}

.stats-section .card h2.counter { /* Counter numbers */
  font-size: 24px;
  font-weight: bold;
  color: #5A2D10;
  margin-bottom: 5px;
  line-height: 1.1;
}

.stats-section .card h3.label { /* Stat labels */
  margin-top: 5px;
  font-weight: 600;
  color: #7B570B;
  font-size: 1em;
  margin-bottom: 10px;
}

.stats-section .card .description {
  margin-top: 5px;
  font-size: 12px;
  color: #555;
  min-height: 30px;
  line-height: 1.3;
}

/* ====================================================================== */
/* Stats Section (About Page)                                             */
/* ====================================================================== */
.about-stats { /* Renamed class to avoid conflict */
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  flex-wrap: wrap;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.stat-box {
  flex: 1 1 200px;
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
  padding: 20px 10px;
}

.stat-box:hover {
  transform: scale(1.05);
}

.stat-box h2.counter { /* About page counters */
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: bold;
  color: white;
}

.stat-box p {
  font-size: 18px;
  color: #ccc;
  text-align: center;
}

/* ====================================================================== */
/* Courses Accordion (Index Page)                                         */
/* ====================================================================== */
:root {
  --brand: #AD9452;
  --bg: #000000;
  --fg: #EAEAEA;
  --muted: #9CA3AF;
  --separator: #1F2937;
}

.courses {
  position: relative;
  min-height: 100%;
  padding: 3rem 1rem;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Crect fill='%23000' width='160' height='160'/%3E%3Cg stroke='%23262626' stroke-width='1' fill='none' opacity='0.7'%3E%3Cpath d='M0 40H160M0 80H160M0 120H160M40 0V160M80 0V160M120 0V160'/%3E%3C/g%3E%3Cg fill='%231f2937'%3E%3Ccircle cx='40' cy='40' r='1.5'/%3E%3Ccircle cx='80' cy='80' r='1.5'/%3E%3Ccircle cx='120' cy='120' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 320px;
  background-position: center top;
  color: var(--fg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.courses h1.title_2 { /* More specific selector */
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--brand);
  font-size: 3rem;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.title_1 {
  font-size: clamp(0.5rem, 2.5vw, 1.3rem);
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 1rem 0;
  margin-bottom: 15px;
}

.courses .content-area {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
  align-items: center; /* MODIFIED: Was align-items: flex-start */
  position: relative;
}

.accordion-section {
  /* MODIFIED: flex: 3; was removed */
  width: 100%; /* ADDED */
  padding-left: 30px;
  padding-right: 30px; /* ADDED for symmetry */
  text-align: left;
  min-height: 1px;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  cursor: pointer;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: bold;
}

.accordion-number {
  color: var(--brand);
  min-width: 28px;
}

.accordion-title {
  color: #ffffff;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  padding-left: 0; /* MODIFIED: Was 35px, moved to child */
}

.accordion-item.active .accordion-body {
  max-height: 1000px; /* Increased to allow room for image */
  opacity: 1;
  margin-top: 15px;
}

/* --- NEW CSS for 75/25 Layout --- */
.accordion-body-flex-container {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* Aligns top of text with top of image */
  opacity: 0;
  transition: opacity 0.3s ease 0.1s; /* Fade in content *after* dropdown opens */
}

.accordion-item.active .accordion-body-flex-container {
  opacity: 1;
}

.accordion-text-content {
  flex: 3; /* 75% width */
  min-width: 0; /* Flexbox fix */
  padding-left: 35px; /* The old padding */
}
/* --- END NEW CSS --- */


.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  background: #d4c498;
  color: #1d1d1d;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.accordion-text {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: left;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
}

.learn-more span {
  background: #000;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* --- MODIFIED CSS for Inline Image --- */
.course-image-inline {
  display: block;
  flex: 1; /* 25% width */
  width: 100%; /* Fills the 25% flex container */
  height: auto;
  max-height: 250px; /* *** ADDED: Limit the image height *** */
  max-width: 100%; /* Overrides any previous max-width */
  margin: 0; /* Removed auto margin */
  border-radius: 8px;
  filter: invert(100%);
  object-fit: contain; /* Ensures image scales nicely */
}
/* --- END MODIFIED CSS --- */


.more-courses {
  background-color: var(--brand);
  border-radius: 30px;
  height: 60px;
  width: 180px;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px auto;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 17px;
  text-decoration: none;
  border: none;
  padding: auto;
}

.more-courses:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px var(--brand);
  text-decoration: none;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.item img {
  width: 25px;
  height: 25px;
}

.labels {
  font-size: 18px;
}

.svg {
  filter: invert(100%);
}

/* --- Media Query for Mobile --- */
@media (max-width: 767px) {
  .courses h1.title_2 {
    font-size: 8vw;
    margin-bottom: 30px;
  }
  .accordion-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .accordion-header {
    font-size: 1.4rem;
  }
  .accordion-body {
    padding-left: 0; /* Reset padding */
  }

  /* --- Mobile styles for 75/25 layout --- */
  .accordion-body-flex-container {
    flex-direction: column; /* Stack text and image on mobile */
  }

  .accordion-text-content {
    padding-left: 25px; /* Match mobile body padding */
  }

  .course-image-inline {
    margin: 20px auto 0 auto; /* Center image when stacked */
    max-width: 400px; /* Give it a max-width on mobile */
    max-height: 200px; /* Adjust max height for mobile */
  }
  /* --- END Mobile styles --- */
}

@media (max-width: 600px) {
    /* --- Index Page Accordion --- */
  .accordion-header {
    font-size: 1.2rem;
  }
  .accordion-number {
    min-width: 24px;
  }
}


/* ====================================================================== */
/* About Us Section (Index Page)                                          */
/* ====================================================================== */
.about-us {
  padding: 5vw;
  background-color: #fff; /* Make sure this is present */
}

.about-us .content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  flex-wrap: wrap;
  text-align: justify;
}

.about-us .text {
  flex: 1 1 45%;
  min-width: 300px;
  font-family: "Merriweather Sans", sans-serif;
  font-weight: 300;
  color: #333;
  font-size: large;
}

.merriweather-sans {
  font-family: "Merriweather Sans", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.design-logo {
  flex: 1 1 45%;
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* ====================================================================== */
/* Who We Are & Mission Sections (About Page)                             */
/* ====================================================================== */
.who-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 0;
  text-align: justify;
  background-color: #fff; /* Make sure this is present */
  color: #000;
}

.flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.text-col {
  flex: 1 1 50%;
}

.text-col h2 {
  font-size: 2.05rem;
  padding-bottom: 10px;
  margin-bottom: 40px;
  color: #927c45;
  position: relative;
  display: inline-block;
}

.text-col h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: #927c45;
  width: 0;
  animation: underlineSlide 5s linear infinite;
}

.text-col p {
  font-size: 1.05rem;
}

.img-col {
  flex: 1 1 40%;
  text-align: center;
}

/* Updated path */
.img-col img {
  max-width: 40%;
  height: auto;
}

.about3 .row {
  padding: 50px;
  padding-top: 30px;
  text-align: center;
  background-color: #fff; /* Make sure this is present */
  color: #000;
}

.about3 h1,
.about3 p {
  margin: 0;
}

.about3 h1 {
  padding: 36px;
  font-size: 3rem;
  /* color: #927c45; Inherited from .gradient-text potentially */
}

.about3 p {
  font-size: 1.2rem;
  line-height: 1.6;
  padding-left: 25px;
  padding-right: 25px;
  text-align: justify;
}

/* ====================================================================== */
/* Clients Section (Index Page)                                           */
/* ====================================================================== */
.clients-section {
  /* Updated path */
  background-image: url('../images/WhatsApp Image 2025-08-02 at 23.47.55_e28eafb6.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.custom-shape-divider-top,
.custom-shape-divider-bottom {
  position: absolute;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.custom-shape-divider-top {
  top: 0;
}

.custom-shape-divider-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-top svg,
.custom-shape-divider-bottom svg {
  display: block;
  width: 100%;
  height: 124px;
}

.shape-fill {
  fill: #ffffff; /* Fills the shape with white */
}

.inner-box {
  background-color: #111;
  padding: 15vh 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.clients {
  text-align: center;
  padding: 2.5rem 1rem;
  padding-bottom: 0;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
}

.clients2 {
  text-align: center;
  padding: 1rem 1rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
}

.marquee-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  background: linear-gradient(to right, #111 20%, transparent);
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 250px;
  background: linear-gradient(to left, #111 20%, transparent);
  z-index: 2;
  pointer-events: none;
}

.marquee {
  overflow: hidden;
  /* position: middle; // Not a valid CSS property */
  width: 100%;
  margin-top: 2rem;
  padding-bottom: 25px;
}

.marquee:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 4rem;
  animation: scrollMarquee 30s linear infinite;
  position: relative;
  z-index: 1;
}

/* Correct path assumed to be images/clients/corporate/ or images/clients/academic/ */
.partners {
  height: 110px;
  width: auto;
  object-fit: contain;
  background-color: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 1rem;
  flex-shrink: 0;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Adjust based on duplicated content */
  }
}

/* ====================================================================== */
/* Why Choose Us Section (Index Page)                                     */
/* ====================================================================== */
.why-choose-us {
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
  background-color: #fff; /* Make sure this is present */
}

.background-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at bottom right, #ffffff, #f0f4f8);
}

.background-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background-image: url('https://www.transparenttextures.com/patterns/lined-paper-2.png');
}

.heading { /* This seems specific to .why-choose-us */
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 4rem;
  color: #333333;
  text-align: center;
  width: 100%;
}

.choose-cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.choose-card {
  --glow-color: rgb(180, 119, 33);
  --glow-spread-color: rgba(180, 119, 33, 0.781);
  --enhanced-glow-color: rgb(245, 203, 110);
  background-color: #ffffff;
  border: 1px solid var(--glow-color);
  border-radius: 1em;
  padding: 1.5rem;
  transition: all 0.3s ease-in-out;
  box-shadow: -5px 5px 0.25em var(--glow-color), -10px 10px 0.4em var(--glow-spread-color);
  text-align: left;
  position: relative;
  transform: scale(1);
}

.choose-card:hover {
  transform: scale(1.03);
  border-color: var(--glow-color);
  box-shadow: -8px 8px 0.6em 0.25em var(--glow-color), -15px 15px 2em var(--glow-spread-color);
}

.choose-card h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #333333;
  transition: color 0.3s ease-in-out;
}

.choose-card:hover h3 {
  color: #ffffff; /* Text color change on hover */
}

.choose-card p span {
  color: #b47721;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease-in-out;
}

.choose-card:hover p span {
  color: var(--enhanced-glow-color);
}

.choose-card p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  line-height: 1.625;
  transition: color 0.3s ease-in-out;
  text-align: left;
}

.choose-card:hover p {
  color: #e0e0e0; /* Text color change on hover */
}

/* ====================================================================== */
/* Testimonials Section (Index Page)                                      */
/* ====================================================================== */
.testimonials {
  padding: 80px 0;
  background-color: #ffffff;
  color: rgb(9, 5, 5);
  text-align: center;
  position: relative;
}

.caption {
  text-align: center;
  color: #ffc548;
  margin-bottom: 20px;
}

.headline {
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 80px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.testimonial-slider-container {
  position: relative;
  width: 100%;
  margin: 40px auto 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-slides {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease-in-out;
}

.testimonials .tile {
  flex: 0 0 380px;
  max-width: 380px;
  margin: 0 20px;
  transform: scale(0.8);
  opacity: 0.6;
  transition: transform 0.5s ease, opacity 0.5s ease;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.testimonials .tile.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

/* Updated path */
.tile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.testimonial-controls {
  text-align: center;
  margin-top: 20px;
}

.testimonial-btn {
  margin: 0 10px;
  background-color: #AF8000;
  opacity: 0.7;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.testimonial-btn:hover {
  background-color: #9C7400;
  opacity: 1;
}

/* ====================================================================== */
/* Join Us (Index Page) & Contact Form Sections (Index & Contact Pages)   */
/* ====================================================================== */
.joinus {
  /* Updated path */
  background-image: url("../images/backgrounds/hero-home.jpg");
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: white;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.joinus::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.joinus .container {
  width: 75%;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
  flex-grow: 1;
}

/* Styles specifically for Contact Page content area */
.main-content { /* Used on contactus.html */
  flex-grow: 1;
  background-color: #000;
}

.main-content .container { /* Used on contactus.html */
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 16px;
}

.main-heading { /* Shared heading style */
  text-align: center;
  font-size: 60px;
  font-weight: 700;
  color: #AF8000;
  margin-bottom: 30px;
  display: inline-block; /* Allows underline animation to work */
  padding-bottom: 5px;
}

.sub-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #AF8000;
  margin-top: 25px;
  margin-bottom: 15px;
}

.sub-heading2 {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.joinus .container > p:not([class]) { /* Paragraphs directly in .joinus .container */
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: left;
}

.contact-section { /* Shared section for contact details */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 50px;
  gap: 60px;
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  font-size: 2.3rem; /* Adjusted size */
  color: #AF8000;
  vertical-align: middle;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details p {
  margin: 0;
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.2;
}

.contact-details a {
  color: #AF8000;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.contact-details a:hover {
  color: #8F6C00;
}

.contact-form-section { /* Shared form section styling */
  margin-top: 60px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.inline-fields {
  display: flex;
  gap: 20px;
}

.form-group.inline-fields .input-field {
  flex: 1;
}

.input-field input,
.input-field textarea {
  width: 100%;
  padding: 15px 20px;
  background-color: #111111;
  border: 2px solid #AF8000;
  border-radius: 10px;
  color: #f0f0f0;
  font-family: 'Merriweather Sans', sans-serif; /* Consistent font */
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 5px 10px -5px rgba(175, 128, 0, 0.4);
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  color: #a0a0a0;
}

.input-field input:focus,
.input-field textarea:focus {
  box-shadow: 0 8px 15px -5px rgba(175, 128, 0, 0.8);
}

.input-field textarea {
  resize: vertical;
  min-height: 120px;
}

.send-button { /* Shared button style */
  width: 150px;
  padding: 15px 20px;
  background-color: #000000;
  border: 2px solid #AF8000;
  border-radius: 10px;
  color: #AF8000;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 30px auto 0 auto;
  text-transform: uppercase;
  min-width: 180px; /* Ensure consistent width */
}

.send-button:hover {
  background-color: #AF8000;
  color: #000000;
  box-shadow: 0 0 15px rgba(175, 128, 0, 0.8);
}

.joinus-social-links { /* Social links in Join Us section */
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.joinus-social-links a {
  color: #AF8000;
  font-size: 1.8rem;
  transition: 0.3s ease;
  text-decoration: none;
}

.joinus-social-links a:hover {
  color: white;
  transform: scale(1.1);
}

/* ====================================================================== */
/* Map Section (Contact Page)                                             */
/* ====================================================================== */
.map-section {
  background-color: #000;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 32px;
  display: flex;
  flex-direction: column;
  margin-top: 60px;
}

.map-title {
  color: #AF8000;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.map-container {
  width: 100%;
  border: 2px solid #AF8000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.map-iframe {
  width: 100%;
  height: 390px;
  border: 0;
}

/* ====================================================================== */
/* CTA Video Section (About Page)                                         */
/* ====================================================================== */
.cta-video-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  max-width: 800px;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  background-color: #fff;
  color: #000;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.cta-btn.secondary {
  background-color: #dcdcdc;
}

/* ====================================================================== */
/* Courses & Services Page Grid                                           */
/* ====================================================================== */
.courses-section-new,
.services-section-new {
  padding: 80px 5%;
  background-color: #000; /* Ensure black background */
}

.courses-grid-container,
.services-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.5s ease-in-out;
}

.course-card-new,
.service-card-new {
  text-decoration: none;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: none;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.course-card-new:hover,
.service-card-new:hover {
  transform: translateY(-5px);
  border: 2px solid #af8000;
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

/* Updated path */
.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.course-card-new h3,
.service-card-new h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 10px;
}

.course-card-new p,
.service-card-new p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  text-align: left;
}

/* --- Detailed View (Courses & Services) --- */
.courses-section-new.detailed-view,
.services-section-new.detailed-view {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  max-width: 100%;
  margin: 0;
}

.courses-section-new.detailed-view .courses-grid-container,
.services-section-new.detailed-view .services-grid-container {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 15px;
  width: 25%;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 15px;
  border-right: 1px solid #333; /* Separator */
}

.courses-section-new.detailed-view .course-card-new,
.services-section-new.detailed-view .service-card-new {
  padding: 15px;
  flex: 0 0 auto; /* Prevent shrinking/growing */
  height: auto;
  width: 100%;
}

.courses-section-new.detailed-view .course-card-new h3,
.services-section-new.detailed-view .service-card-new h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.courses-section-new.detailed-view .course-card-new .card-icon,
.services-section-new.detailed-view .service-card-new .card-icon {
  margin-bottom: 10px;
}

.courses-section-new.detailed-view .course-card-new p,
.services-section-new.detailed-view .service-card-new p {
  display: none; /* Hide description in list view */
}

.courses-section-new.detailed-view .course-card-new.selected,
.services-section-new.detailed-view .service-card-new.selected {
  background-color: #af8000;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.courses-section-new.detailed-view .course-card-new.selected h3,
.services-section-new.detailed-view .service-card-new.selected h3 {
  color: #fff; /* White title when selected */
}

.course-details-panel,
.service-details-panel {
  display: none; /* Hidden by default */
  width: 75%;
  padding-left: 30px;
  color: #fff;
  flex-direction: column;
  animation: fadeIn 0.5s ease-in-out;
}

.course-details-panel.visible,
.service-details-panel.visible {
  display: flex; /* Show when 'visible' class is added */
}

.course-details-panel h3,
.service-details-panel h3 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #af8000;
}

.course-details-panel p,
.service-details-panel p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ccc;
}

.details-section {
  margin-top: 20px;
}

.details-section h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #af8000;
}

.outcomes-list { /* Used in Services detail view */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style-type: none;
  padding: 0;
}

.outcomes-list li {
  background-color: #222;
  color: #af8000;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.stats-container { /* Used in Services detail view */
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.stat-item {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  text-align: center; /* Center align text */
  border-left: 3px solid #af8000;
  flex-grow: 1; /* Allow items to grow */
}

.stat-item .stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.stat-item .stat-label {
  font-size: 14px;
  color: #aaa;
}

.service-card-new.middle,
.course-card-new.middle { /* Special positioning for middle card in grid */
  grid-column: 2;
  background-color: #ffffff;
  color: #000000;
  text-align: justify;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.service-card-new.middle h3,
.course-card-new.middle h3 {
  color: #222222;
}

.service-card-new.middle:hover,
.course-card-new.middle:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.3);
}

.tags-section { /* Used in Courses detail view */
  margin-bottom: 20px;
}

.tags-list,
.languages-list { /* Used in Courses detail view */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tags-list .tag,
.languages-list .tag-with-icon {
  display: inline-flex;
  align-items: center;
  background-color: #222;
  color: #af8000;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  flex-shrink: 0; /* Prevent wrapping inside the tag */
}

.languages-list .tag-with-icon img {
  width: 16px;
  height: 16px;
  margin-right: 8px; /* Space between icon and text */
}

/* ====================================================================== */
/* Modal (Join Now Popup)                                                 */
/* ====================================================================== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
}

.modal-content {
  background-color: #fff;
  margin: 8% auto; /* Fallback margin */
  padding: 20px;
  border-radius: 10px;
  width: 900px; /* Max width */
  max-width: 90%; /* Responsive width */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: row; /* Side-by-side layout */
}

.join-us-illustration {
  max-width: 95%;
  padding: 20px;
  flex: 1; /* Take up half the space */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Updated path */
.join-us-illustration img {
  max-width: 100%;
}

.form-content {
  max-width: 450px; /* Limit form width */
  padding: 20px;
  flex: 1; /* Take up the other half */
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #000; /* Ensure text is visible */
}

.close {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #000; /* Ensure button is visible */
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.submit-btn {
  background: #caa957;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.submit-btn:hover {
  background: #927c45;
}

/* ====================================================================== */
/* Footer Section                                                         */
/* ====================================================================== */
.footer {
  background-color: #000;
  width: 100%;
  position: relative; /* For pseudo-element and white section positioning */
  overflow: hidden; /* Contains the rotated white section */
  padding-top: 40px;
  padding-bottom: 50px;
  min-height: 400px; /* Ensure minimum height */
  box-sizing: border-box;
  flex-shrink: 0; /* Prevents shrinking in flex layouts */
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #AF8000; /* Gold top border */
  z-index: 3; /* Above other elements */
}

.footer-white-section {
  width: 350px;
  height: 450px;
  background-color: white;
  border-radius: 80px;
  position: absolute;
  top: -150px; /* Position partially outside */
  left: -90px;
  transform: rotate(-15deg);
  transform-origin: top right;
  z-index: 1; /* Behind main content */
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-white-section .footer-about {
  transform: rotate(15deg); /* Counter-rotate content */
  width: 250px;
  text-align: center;
  padding: 15px;
  color: #333;
  padding-top: 40px; /* Push content down */
}

/* Updated path */
.footer-logo {
  max-width: 120px;
  margin-top: 25px;
  margin-bottom: 25px;
  animation: pulseLogo 3s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 30px; /* Row and column gap */
  max-width: 1500px;
  margin: 0 auto; /* Center content */
  padding-left: 450px; /* Space for the white section */
  padding-right: 40px;
  box-sizing: border-box;
  position: relative; /* For z-index */
  z-index: 2; /* Above white section */
  color: #e0e0e0; /* Light text color */
}

.footer-links,
.footer-services,
.footer-contact {
  flex: 1 1 200px; /* Flex properties for columns */
  min-width: 180px; /* Minimum width before wrapping */
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  font-size: 1.1rem;
  color: #AF8000; /* Gold heading color */
  margin-bottom: 12px;
}

.footer-links ul,
.footer-services ul {
  list-style: none; /* Remove default bullets */
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-services a {
  color: #e0e0e0;
  text-decoration: none; /* Remove underline */
  transition: 0.3s ease; /* Smooth hover effect */
}

.footer-links a:hover,
.footer-services a:hover {
  color: #AF8000; /* Gold on hover */
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-contact-item .material-symbols-outlined {
  margin-right: 8px;
  color: #AF8000;
  font-size: 24px;
}

.footer-contact-item a,
.footer-contact-item span { /* Style both links and plain text */
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-contact-item a:hover {
  color: #AF8000; /* Gold on hover */
}

.footer-social-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 30px;
  padding: 15px 0;
  box-sizing: border-box;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  color: #AF8000;
  font-size: 1.3rem;
  transition: 0.3s ease;
}

.footer-social-links a:hover {
  color: white;
  transform: scale(1.1); /* Slight zoom on hover */
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #AF8000; /* Gold top border */
  color: #999; /* Grey text color */
  font-size: 0.8rem;
}

.para1 { /* Used inside the white section */
  font-size: 16px;
  font-weight: 400;
  color: #000; /* Black text */
  line-height: 1.5;
}

/* ====================================================================== */
/* Media Queries (Responsive)                                             */
/* ====================================================================== */

@media (min-width: 1024px) {
  /* --- Contact Page --- */
  .contact-hero .hero-title { /* More specific selector */
    font-size: 80px;
  }
  /* --- Index Page --- */
  .why-choose-us {
    padding: 4rem;
  }
  .choose-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  /* --- Navbar --- */
  .navbar {
    padding-left: 40px;
    padding-right: 40px;
  }
  .menu-icon {
    display: none;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
  .nav-links.show { /* Keep this for potential future use */
    display: flex;
  }

  /* --- Index Page --- */
  .courses h1.title_2 {
    font-size: 4.5rem;
    margin-bottom: 8px;
  }
  .courses .content-area {
    flex-direction: row;
    align-items: flex-start;
  }
  .accordion-section {
    padding-left: 0;
  }

  /* --- Contact Page --- */
  .contact-hero {
    height: 60vh;
    justify-content: flex-start;
    padding-left: 40px;
    padding-right: 40px;
  }
  .contact-hero .hero-title {
    font-size: 60px;
    line-height: 1;
  }
  .contact-hero .hero-text {
    font-size: 20px;
    line-height: 28px;
  }
  .contact-section {
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  /* --- Index Page --- */
  .why-choose-us .heading {
    font-size: 3rem;
  }
  .choose-cards {
    /* THIS IS THE FIX. IT IS NOW '3' INSTEAD OF '2' */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  /* --- About Page --- */
  .flex-row {
    flex-direction: column;
    text-align: center;
  }
  .about-hero {
    height: auto;
    padding-top: 120px;
    padding-bottom: 50px;
  }
  .text-col,
  .img-col {
    flex: 1 1 100%;
  }
}

@media (max-width: 930px) {
  /* --- About Page --- */
  .about-content {
    padding: 0 15px; /* Add some padding on smaller tablets */
  }
  .about-content h1 {
    font-size: 42px;
  }
  .who-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .about-content p {
    font-size: 16px;
  }
  .about-cta button {
    width: 100%;
    max-width: 300px; /* Prevent button from being overly wide */
    margin: 0 auto; /* Center button */
    display: block; /* Make it a block element */
  }
  .about3 .row {
    flex-direction: column;
    padding: 20px;
  }
}

@media (max-width:1000px) {
  /* --- Navbar --- */
  .navbar {
    padding: 15px 20px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; /* Adjust based on actual navbar height */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    gap: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .nav-links.show {
    display: flex;
  }
  .menu-icon {
    display: block;
  }

  /* --- About Page --- */
  .who-we-are, /* Selector from about.html */
  .our-mission { /* Selector from about.html */
    display: none;
  }

  /* --- Hero Sections --- */
  .box-main p { /* Index hero paragraph */
    padding: 0;
    margin: 0 20px 20px 20px;
  }
  .hero-buttons-container { /* Index hero buttons */
    flex-direction: column;
    align-items: center;
  }
  .content-area p { /* Courses/Services hero paragraph */
    margin: 0 15px 24px 15px; /* Adjust margin for mobile */
  }
  .courses-hero, .services-hero {
    height: auto; /* Adjust height for content */
    padding-top: 120px;
    padding-bottom: 50px;
  }
  .contact-hero {
    height: auto; /* Adjust height */
    padding: 60px 20px;
  }
  .hero-content { /* General hero content adjustment */
    text-align: center;
    margin: 0;
  }
  .hero-title { /* General hero title adjustment */
    font-size: 32px;
    line-height: 1.2;
  }
  .hero-text { /* General hero text adjustment */
    font-size: 16px;
  }

  /* --- Index Page Accordion --- */
  .courses h1.title_2 {
    font-size: 8vw;
    margin-bottom: 30px;
  }
  .accordion-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .accordion-header {
    font-size: 1.4rem;
  }
  .accordion-body {
    padding-left: 25px;
  }
  .image-display-area {
    position: static; /* Remove sticky positioning */
    width: calc(100% - 30px); /* Full width minus padding */
    margin: 20px 15px 0 15px; /* Add margin */
  }

  /* --- Clients Section --- */
  .partners {
    height: 60px; /* Smaller logos on mobile */
  }
  .marquee-wrapper::before,
  .marquee-wrapper::after {
      width: 50px; /* Reduce gradient width */
  }

  /* --- Contact Page Form --- */
  .contact-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .form-group.inline-fields {
    flex-direction: column;
    gap: 0; /* Remove gap */
  }
  .input-field {
    margin-bottom: 20px;
  }
  .form-group.inline-fields .input-field:last-child {
    margin-bottom: 0; /* Remove margin from last field */
  }

  /* --- Modal --- */
  .modal-content {
    flex-direction: column; /* Stack illustration and form */
  }
  .join-us-illustration {
    display: none; /* Hide illustration on small screens */
  }

  /* --- Footer --- */
  .footer-white-section {
    position: relative; /* Make it part of the normal flow */
    top: auto;
    left: auto;
    transform: none; /* Reset rotation */
    width: 90%;
    margin: 0 auto 30px auto; /* Center and add bottom margin */
    height: auto;
    border-radius: 20px;
    padding: 20px;
  }
  .footer-white-section .footer-about {
    transform: none; /* Reset rotation */
    width: 100%;
    padding-top: 15px; /* Reset padding */
  }
  .footer-content {
    padding: 20px; /* Reduce padding */
    flex-direction: column; /* Stack columns */
    align-items: flex-start; /* Align items to the left */
    gap: 30px;
    padding-left: 20px; /* Reset padding-left */
  }
  .footer-links,
  .footer-services,
  .footer-contact {
    width: 100%; /* Full width */
    flex-basis: 100%;
    min-width: unset;
  }
  .footer-bottom {
    text-align: center;
  }

  /* --- Courses/Services Page Detailed View --- */
  .courses-section-new,
  .services-section-new {
    padding: 50px 5%;
  }
  .courses-grid-container,
  .services-grid-container {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .courses-section-new.detailed-view,
  .services-section-new.detailed-view {
    flex-direction: column; /* Stack list and details */
    gap: 20px;
    padding: 20px 5%;
  }
  .courses-section-new.detailed-view .courses-grid-container,
  .services-section-new.detailed-view .services-grid-container {
    width: 100%; /* Full width */
    max-height: 40vh; /* Limit height */
    overflow-y: auto;
    border-right: none; /* Remove side border */
    border-bottom: 1px solid #333; /* Add bottom border */
    padding-right: 0;
    padding-bottom: 15px;
  }
  .courses-section-new.detailed-view .course-details-panel,
  .services-section-new.detailed-view .service-details-panel {
    width: 100%; /* Full width */
    padding-left: 0; /* Remove side padding */
    padding-top: 20px; /* Add top padding */
  }
  .course-card-new.middle,
  .service-card-new.middle {
    grid-column: auto; /* Reset grid column */
    order: 5; /* Optional: control order */
  }
}

@media (max-width: 600px) {
  /* --- Index Page Stats --- */
  .stats-section {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .stats-section .cards {
    gap: 15px;
    padding: 0 15px; /* Add side padding */
  }
  .stats-section .card {
    flex-basis: calc(50% - 7.5px); /* Two cards per row */
    max-width: 90%;
    padding: 15px;
    min-width: unset;
  }
  .stats-section .card img {
    width: 50px;
    height: 50px;
  }
  .stats-section .card h2.counter {
    font-size: 32px; /* Larger counter numbers */
  }

  /* --- Index Page Accordion --- */
  .accordion-header {
    font-size: 1.2rem;
  }
  .accordion-number {
    min-width: 24px;
  }
}

@media (max-width: 480px) {
  /* --- Index Page Clients --- */
  .partners {
    height: 50px; /* Even smaller logos */
  }
  .marquee-wrapper::before,
  .marquee-wrapper::after {
      width: 30px; /* Further reduce gradient width */
  }
}