:root {
  --primary-color: #00338c;
  --secondary-color: #1176b4;
  --text-color: #333333;
  --bg-color: #ffffff;
  --white: #ffffff;
  --dark-navy: #001529;
  --light-grey: #f8f9fa;
  --border-color: #e9ecef;
  --transition: all 0.3s ease;
  --section-padding: 100px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #a34200;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(198, 80, 0, 0.3);
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin-top: 15px;
}

/* --- HEADER --- */
.infobar {
  background-color: var(--dark-navy);
  color: var(--white);
  padding: 12px 0;
  font-size: 14px;
}

.infobar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logobar {
  padding: 20px 0;
  background: var(--white);
}

.logobar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.logo-group img {
  height: 60px;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 700;
}

.contact-item i {
  font-size: 20px;
}

.navbar {
  background-color: var(--primary-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
}

.nav-links a {
  padding: 20px 25px;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0, 0, 0, 0.1);
}

.nav-btn {
  background: var(--white);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 800;
  margin-left: 20px;
}

/* --- HERO --- */
.hero {
  height: 100vh;
  min-height: 700px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://res.cloudinary.com/e-commerce-website/image/upload/v1778253430/educa/x1lpdlsuswlapwj626vo.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: 1;
  animation: heroZoom 20s infinite alternate;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-subtitle {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 30px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  text-align: justify;
  text-align-last: center;
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 15px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.about-image img:hover {
  transform: translateY(-10px);
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #555;
}

.about-mission-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-mission-images img {
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-breadcrumbs {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/program-env.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  color: white !important;
  padding: 120px 0 !important;
  text-align: center !important;
}

.about-breadcrumbs h1 {
  font-size: 56px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.about-breadcrumbs .breadcrumbs-path a {
  color: var(--primary-color);
  font-weight: 700;
}

.about-mission {
  background: #fbfbfb;
}

.about-video {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.about-video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(29, 209, 0, 0.5);
}

.about-img-n {
  width: 44px !important;
  height: 44px !important;
  margin-top: 16px;
  object-fit: cover !important;
}

.about-accordions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-color);
}

.accordion-header.active {
  background: var(--primary-color);
  color: var(--white);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.accordion-item.active .accordion-content {
  padding: 25px;
  max-height: 500px;
}

/* --- PROGRAMS --- */
.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.view-all {
  color: var(--primary-color);
  font-weight: 700;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 40px;
}

.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.course-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card:hover img {
  transform: scale(1.1);
}

.course-content {
  padding: 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
  z-index: 2;
}

.course-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.course-card:hover h3 {
  color: var(--primary-color);
}

.course-card p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.course-read-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-read-more i {
  transition: transform 0.3s ease;
}

.course-card:hover .course-read-more i {
  transform: translateX(5px);
}

/* --- FOOTER OVERHAUL --- */
.footer-contact-bar {
  background: #1a1a1a;
  color: white;
  padding: 60px 0;
  border-radius: 20px;
  margin-bottom: -80px;
  position: relative;
  z-index: 10;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.footer-contact-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-bar-item {
  text-align: center;
  position: relative;
  padding: 20px;
  width: 100%;
  max-width: 600px;
}

.privacy-policy {
  background: url("../images/privacy_banner.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  color: white !important;
  padding: 120px 0 !important;
  text-align: center !important;
}

.contact-bar-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-bar-item i {
  font-size: 20px;
  color: #07c3f2; /* Bright green icons */
  margin-bottom: 20px;
}

.contact-bar-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-bar-item p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  text-align: justify;
  text-align-last: center;
}

.footer {
  background: var(--secondary-color);
  padding: 160px 0 80px;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}

.footer-col h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
  letter-spacing: 1.5px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 70px;
  height: 4px;
  background: #07c3f2;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 2.2;
  margin-bottom: 12px;
  font-size: 17px;
}

.footer-logo {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px; /* Spaced out links */
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  font-weight: 500;
}

.footer-col ul li a i {
  font-size: 14px;
  color: #07c3f2;
}

.footer-col ul li a:hover {
  color: white;
  transform: translateX(10px);
}

.footer-logo-box {
  background: white;
  padding: 15px 25px;
  border-radius: 12px;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo-box img {
  height: 45px;
  width: auto;
}

.footer-copyright {
  margin-top: 30px;
  font-size: 15px;
  opacity: 0.8;
}

.newsletter-info {
  margin-bottom: 25px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.newsletter-form input {
  background: transparent !important;
  border: none !important;
  color: #333 !important;
  padding: 15px 25px !important;
  flex: 1;
  outline: none !important;
  font-size: 17px !important;
}

.newsletter-form button {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  width: 55px !important;
  height: 55px !important;
  border-radius: 10px !important;
  font-size: 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #222 !important;
  transform: scale(1.05);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- FEATURES GRID --- */
.features-hero {
  padding: 120px 0;
  text-align: center;
  color: white;
  background-size: cover !important;
  background-position: center !important;
}

.features-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.features-hero .tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
}

.features-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  opacity: 0.9;
  text-align: justify;
  text-align-last: center;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-number {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
}

.feature-icon-box {
  width: 70px;
  height: 70px;
  background: #f8f9fa;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.feature-icon-box img {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.feature-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  text-align: justify;
}

/* Quote Section */
.features-quote {
  padding: 0px 0 100px 0;
  background: #ffffff; /* White outside */
}

.quote-card {
  background: #111019; /* Dark navy/black */
  padding: 60px 40px;
  border-radius: 25px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.quote-card blockquote {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 40px;
  font-style: italic;
  text-align: justify;
  text-align-last: center;
}

.quote-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #00bcd4; /* Cyan/Teal */
  margin-bottom: 10px;
  display: block;
  font-weight: 800;
}

.quote-author {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: capitalize;
}

@media (max-width: 992px) {
  .quote-card blockquote {
    font-size: 24px;
  }
  .features-hero h1 {
    font-size: 36px;
  }
}

/* --- ADVANCES PAGE --- */
.advances-hero {
  padding: 100px 0;
  text-align: center;
  background: #f8f9fa;
  position: relative;
}

.advances-hero .tagline-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.advances-hero .line {
  height: 2px;
  width: 50px;
  background: var(--primary-color);
}

.advances-hero .tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.advances-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--dark-navy);
}

.advances-hero h1 span {
  color: var(--primary-color);
}

.advances-intro-card {
  background: white;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.advances-intro-card::before {
  content: "\f19c"; /* fa-university */
  font-family: FontAwesome;
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 200px;
  color: rgba(29, 209, 0, 0.03);
  z-index: -1;
}

.advances-intro-card p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
  text-align-last: center;
}

.advances-intro-card p:last-child {
  margin-bottom: 0;
}

/* Advances List */
.advances-list-section {
  padding: 100px 0;
}

.advance-item {
  margin-bottom: 120px;
}

.advance-header {
  text-align: center;
  margin-bottom: 50px;
}

.advance-icon-box {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advance-header h2 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark-navy);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.comparison-card {
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: white;
  overflow: hidden;
  transition: var(--transition);
}

.comparison-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  z-index: 0;
}

.comparison-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.comparison-card:hover .card-bg {
  transform: scale(1.1);
}

.comparison-card .card-content {
  position: relative;
  z-index: 2;
}

.card-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-red {
  background: #ef4444;
}
.badge-cyan {
  background: #00bcd4;
}

.comparison-card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.comparison-card p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 450px;
  margin: 0 auto;
  text-align: justify;
  text-align-last: center;
}

.vs-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  color: var(--dark-navy);
  z-index: 10;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

/* Author Section */
.advances-author {
  padding: 100px 0;
  background: #111019;
  color: white;
  text-align: center;
}

.author-content {
  max-width: 800px;
  margin: 0 auto;
}

.author-tagline {
  color: #00bcd4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.advances-author h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 30px;
}

.author-name {
  color: #00bcd4;
}

.advances-author p {
  font-size: 20px;
  opacity: 0.8;
  line-height: 1.7;
  text-align: justify;
  text-align-last: center;
}

/* --- CONTACT PAGE --- */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.country-selector-wrapper {
  margin-bottom: 30px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
}

.country-selector-wrapper label {
  display: block;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--dark-navy);
  font-size: 18px;
}

.country-selector-wrapper select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.country-selector-wrapper select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(29, 209, 0, 0.1);
}

.info-display-area {
  position: relative;
  min-height: 200px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.loading-spinner {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.api-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styles for the dynamic content from API */
.api-content h4 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.api-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 15px;
}

.api-content ul {
  margin-bottom: 20px;
}

.api-content li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #555;
}

.api-content li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.contact-form-wrapper {
  background: white;
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fbfbfb;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  background: white;
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 5px 15px rgba(29, 209, 0, 0.05);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 16px 45px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(29, 209, 0, 0.2);
}

/* --- MOBILE MENU --- */
.mobile-nav-toggle {
  display: none;
  background: #f8f9fa;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: #e9ecef;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background: white;
  z-index: 2000;
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-menu-header .logo img {
  height: 40px;
}

.close-menu {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: var(--transition);
}

.close-menu:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-links a {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-navy);
  text-transform: uppercase;
  transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary-color);
  padding-left: 10px;
}

.mobile-menu-footer {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.mobile-menu-footer .nav-btn {
  display: block;
  text-align: center;
  margin-left: 0;
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 1200px) {
  .nav-links a {
    padding: 20px 15px;
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .section-padding {
    padding: 60px 0;
  }
  .infobar-socials {
    display: none;
  }

  .infobar .container {
    justify-content: center;
  }

  .contact-info {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .navbar {
    display: none; /* Hide main navbar on mobile */
  }

  .logobar {
    padding: 10px 0;
  }

  .logobar .container {
    padding: 0 20px;
  }

  .logo-group img {
    height: 45px;
  }

  /* Advances responsiveness */
  .advances-hero h1 {
    font-size: 36px;
  }

  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .comparison-card h3 {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding: 120px 0 60px;
  }

  .footer-contact-bar {
    margin-bottom: -60px;
    padding: 40px 0;
  }

  /* Contact Page responsiveness */
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* About Us responsiveness */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-mission-images {
    grid-template-columns: 1fr 1fr;
  }

  .about-breadcrumbs h1 {
    font-size: 42px;
  }

  .about-text p {
    font-size: 16px;
  }

  .about-video {
    height: 350px;
  }

  .video-play-btn {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .logo-group {
    gap: 10px;
  }

  .logo-group img {
    height: 35px;
  }

  .advances-intro-card {
    padding: 30px;
  }

  .hero {
    min-height: 500px;
    height: auto;
    padding: 100px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 12px;
    padding: 8px 20px;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .footer-contact-bar .container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding: 100px 0 50px;
  }

  .contact-bar-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-logo-box {
    padding: 10px 15px;
    gap: 15px;
  }

  .footer-logo-box img {
    height: 35px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero {
    min-height: 450px;
  }
}
@media (max-width: 576px) {
  .about-mission-images {
    grid-template-columns: 1fr;
  }

  .about-breadcrumbs h1 {
    font-size: 32px;
  }
}
@media (max-width: 992px) {
  .contact-breadcrumbs h1 {
    font-size: 36px;
  }
}

.contact-breadcrumbs {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://res.cloudinary.com/e-commerce-website/image/upload/v1777263533/educa/oivp9uunwuz6o35isptq.png") !important;
  background-size: cover !important;
  background-position: center !important;
  color: white !important;
  padding: 100px 0 !important;
  text-align: center !important;
}

.contact-breadcrumbs h1 {
  font-size: 56px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.contact-breadcrumbs .breadcrumbs-path a {
  color: var(--primary-color);
  font-weight: 700;
}

/* Video Modal */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.video-modal-overlay.active {
  display: flex;
}

.video-modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

.video-modal-content {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-modal-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Comprehensive Responsiveness Fixes */
.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.video-title {
  font-size: 48px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .programs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .programs-header .view-all {
    align-self: flex-start;
  }

  .video-title {
    font-size: 36px;
  }

  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 30px !important;
  }

  .video-title {
    font-size: 28px;
  }

  .course-card img {
    height: 200px;
  }

  .course-content {
    padding: 30px 20px;
  }

  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .video-title {
    font-size: 24px;
  }

  .section-title h2 {
    font-size: 26px !important;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-card img {
    height: 180px;
  }
}

/* Refined Mobile Styling */
@media (max-width: 480px) {
  .logo-group {
    margin-bottom: 15px;
  }

  .logo-group img {
    height: 35px;
  }

  .contact-info {
    display: none; /* Hide top contact info on tiny screens to avoid clutter */
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 26px !important;
  }

  .section-padding {
    padding: 40px 0;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-card img {
    height: 180px;
  }
}

/* Fix footer bottom positioning on mobile */
@media (max-width: 992px) {
  .footer {
    position: relative;
    padding-bottom: 120px !important;
  }
  .footer-bottom {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    text-align: center !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
  }
}
