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

:root {
  --primary-color: #05308d;
  --primary-light: #1f6abf;
  --dark-bg: #1a1f3a;
  --light-bg: #f4f6f9;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --border-color: #e0e3e8;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

/* Header */
.header {
  background-color: var(--primary-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav .nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
}

.nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}
.search-box {
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  min-width: 150px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  /* text-align: right; */
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .highlight {
  color: #1f72bf;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 179, 148, 0.3);
}

.btn-small {
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
}

.btn-small:hover {
  background-color: var(--primary-light);
}

.btn-newsletter {
  background-color: var(--dark-bg);
  color: white;
  padding: 0.75rem 2.5rem;
}

.btn-newsletter:hover {
  background-color: #252d47;
}

/* Courses Section */
.courses {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.courses-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.course-card {
  width: 100%;
  height: 260px;
  perspective: 1000px; /* enables 3D flip */
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.course-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* FRONT DESIGN */
.card-front {
  background: white;
  text-align: center;
}

/* BACK DESIGN */
.card-back {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
  text-align: center;
}

/* Button inside the back */
.learn-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: white;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
}

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

/* Shared Flip Card Base */
/* Shared Flip Card Base */
.flip-card {
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flip-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front {
  background: white;
}

.card-back {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
}

/* Learn More Button */
.learn-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
}

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

/* Why Choose Us */
.why-choose {
  padding: 4rem 2rem;
  background-color: white;
  text-align: center;
}

.why-choose h2 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-align: left;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 200px;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(26, 179, 148, 0.3);
}

.why-down {
  margin-top: auto;
  text-align: end;
  font-weight: 400;
  cursor: pointer;
}

.why-down:hover {
  padding: 4px;
  text-shadow: 0 0 5px white, 0 0 10px black;
}
.why-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* How to Start */
.how-start {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.how-content h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
}
.step-flex {
  display: flex;
  width: 100%;
  gap: 15px;
  align-items: center;
  background: transparent;
  transition: transform 0.3s, background 0.3s ease-in-out;
  padding: 16px;
  border-radius: 8.644px;
}
.step-flex:hover {
  background: rgb(255, 255, 255);
  transform: scale(1.1);
  color: rgb(0, 8, 18);
}

.step-number {
  min-width: 50px;
  height: 50px;
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.step.completed .step-number {
  background-color: var(--primary-color);
  color: white;
}

.how-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 400px;
  color: white;
}

.placeholder-image {
  font-size: 1.5rem;
  text-align: center;
  opacity: 0.8;
}

/* Contact Us Section */
.contact-us {
  background: var(--primary-color);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.contact-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><defs><pattern id="gift" width="80" height="80" patternUnits="userSpaceOnUse"><text x="40" y="50" font-size="40" text-anchor="middle" fill="rgba(255,255,255,0.05)">✉️</text></pattern></defs><rect width="1200" height="300" fill="url(%23gift)"/></svg>');
  opacity: 0.2;
}

.contact-us h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.contact-us p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  resize: none;
}

.contact-form input {
  height: 45px;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form .btn-newsletter {
  background-color: var(--white);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.contact-form .btn-newsletter:hover {
  background-color: var(--primary-light);
  color: white;
}

/* Partner */
.partner {
  background: var(--white);
}
.partner .container {
  margin: 0 12rem;
}

.carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
}

.partner_list {
  display: flex;
  gap: 2rem;
  list-style-type: none;
  padding: 10px;
  margin: 0;
  animation: scroll 15s linear infinite;
}

.partner_list li {
  min-width: 300px;
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: bold;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.carousel:hover .partner_list {
  animation-play-state: paused;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: #b2bac2;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  color: #b2bac2;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  max-width: 80px;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(26, 179, 148, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: #7d8692;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav .nav-list {
    position: absolute;
    top: 100%;
    height: 100vh;
    width: 100%;
    left: 0;
    background: var(--primary-color);
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem;
    display: none;

    /* HIDDEN STATE */
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
    opacity: 1; /* keep visible, only move it */
    z-index: 1500;
  }

  /* VISIBLE STATE */
  .nav.open .nav-list {
    transform: translateX(0);
  }

  .nav .nav-toggle {
    display: block;
  }
  .nav.open .nav-list {
    display: flex;
    margin-right: -1rem;
  }
  .search-box input {
    min-width: 120px;
  }

  .hero {
    min-height: 50vh;
  }

  .hero::before {
    opacity: 0.1;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .how-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .contact-us {
    padding: 3rem 1.5rem;
  }

  .contact-us h2 {
    font-size: 1.8rem;
  }

  .contact-us p {
    font-size: 1rem;
  }

  .contact-form {
    max-width: 100%;
    gap: 0.75rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  .contact-form .btn-newsletter {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  /* .header-container {
    flex-direction: column;
  } */

  /* .nav .nav-list {
    gap: 0.25rem;
    font-size: 0.8rem;
  } */

  /* .search-box {
    width: 100%;
  } */

  .how-image {
    max-width: 300px;
    margin: auto;
  }

  .partner .container {
    width: 100%;
    margin: auto;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .benefits-grid,
  .benefits-grid-2,
  .why-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .newsletter h2 {
    font-size: 1.5rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-container {
    flex-wrap: wrap;
  }
  .footer-brand {
    text-align: left;
  }
}

/* Others */

.course-header,
.partner_label {
  text-align: center;
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  padding: 10px;
}
