body {
      font-family: 'Segoe UI', sans-serif;
      background: #f1f4f9;
      margin: 0px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

* {
  box-sizing: border-box;
}


/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #f1f4f9;
  border-bottom: 1px solid #ddd;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 24px;

}

.nav-links a {
  text-decoration: none;
  color: #00307c;
  font-weight: 500;
  transition: color 0.1s;

}

.nav-links a:hover {
  color: #00307c;
  opacity: 0.7;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.hamburger-link-seperator {
    display: none;
  }

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0px;
    background: #f1f4f9;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
  }


  .hamburger-link-seperator {
    display: inline-block;
    height: 1px;
    width: 100%;
    padding: 0px;
    margin: 0px;
    background-color: black;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/*SUB Navbar*/

.sub-navbar {
  margin-top: 67px;
  top: 0;
  width: 100%;
  color: white;
  background-color: #00307c;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sub-nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Hero Styles  */

.hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-top: 0px; /* adjust if navbar is taller */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(90, 134, 191, 0.2); /* ← change to your desired overlay */
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.hero-content {
  position: absolute;
  top: 45%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
}

.hero-title {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 400px;
  margin-top: 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-button {
  display: inline-block;
  background-color: #00307c;
  color: white;
  padding: 18px 34px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 25px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 20px rgba(130, 130, 130, 0.2); /* ✨ Added button depth */
  font-weight: 600; /* Bolder text */
}

.hero-button:hover {
  background-color: white;
  color: #00307c;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-content {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
    min-width: 400px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }
}


/* Features Section Style */

.features-section {
  padding: 30px 20px;
  background-color: #f1f4f9;
  width: 100%;
  font-size: 16px;
  color: black;
  margin-top: 10px;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0 auto;
  text-align: center;
  width: 60%;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Circle icon container */
.circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Individual circle colors */
.circle-1 { background-color: #c2cefc; color: #00307c;} /* Blue */
.circle-2 { background-color: #ffe3b3; color: #f59e0b;} /* Orange */
.circle-3 { background-color: #bfffea; color: #10b981;} /* Green */
.circle-4 { background-color: #ffabbd; color: #e11d48;} /* Rose */

/* Responsive: 2x2 on mobile */
@media (max-width: 768px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 90%;
  }
}


/* Responsive layout for mobile */
@media (max-width: 768px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}


/* Self Study Section Style */

.self-study-section {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  margin-top: 40px;
}

.self-study-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.self-study-content {
  position: absolute;
  margin-top: -20px;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
}

.self-study-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.self-study-text {
  font-size: 18px;
  margin-bottom: 24px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.self-study-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.study-btn {
  background-color: #00307c;
  color: white;
  opacity: 0.83;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  min-width: 300px;
}

.study-btn i {
  margin-right: 8px;
  font-size: 16px;
  color: white;
}

.study-btn:hover i {
  margin-right: 8px;
  font-size: 16px;
  color: #00307c;
}

.study-btn:hover {
  background-color: white;
  color: #00307c;
}

/* Responsive */
@media (max-width: 768px) {
  .self-study-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
  }

  .self-study-title {
    font-size: 28px;
  }

  .self-study-buttons {
    justify-content: center;
  }
}


/* Follow us on social media styles */
/* Container for two cards */
.two-card-section {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 50px auto;
  margin-top: 70px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Both cards styling */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Left card (image + social) */
.left-card {
  flex: 1;
  min-width: 320px;
}

/* Image container with overlay text */
.image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  padding: 0 20px;
  max-width: 90%;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  min-width: 370px;
}

.text-overlay h2 {
  font-size: 28px;
  margin-bottom: 10px;

}

.text-overlay p {
  font-size: 16px;
  line-height: 1.3;
  margin-top: 50px;
}

/* Social buttons container */
.social-buttons {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;    /* center horizontally */
  gap: 15px;              /* spacing between buttons */
  padding: 20px;
}

.social-btn {
  flex: 1 1 60px;
  width: 100%;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 17px;
  padding: 2px 2px;
  padding-left: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.social-btn i {
  font-size: 34px;
  padding-right: 20px;
}

/* Social brand colors */
.social-btn.instagram {
  background-color: #e1306c;
}

.social-btn.instagram:hover {
  background-color: #c0255d;
}

.social-btn.youtube {
  background-color: #ff0000;
}

.social-btn.youtube:hover {
  background-color: #cc0000;
}

.social-btn.linkedin {
  background-color: #0077b5;
}

.social-btn.linkedin:hover {
  background-color: #005f91;
}

/* Right card (form) */
.right-card {
  flex: 1;
  min-width: 320px;
  padding: 30px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  margin: 0 0 10px 0;
  font-weight: 700;
  color: #00307c;
}

.section-title + .section-title {
  font-weight: 400;
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-control {
  padding: 10px 14px;
  font-size: 16px;
  border: 1.5px solid #4564dc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  border-color: #00307c;
}

.form-control:focus {
  border-color: #00307c;

}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #00307c;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
  border: 1.5px solid #00307c;

}

.btn-send {
  margin-top: 20px;
  background-color: #00307c;
  color: white;
  font-weight: 700;
  padding: 18px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn-send:hover {
  background-color: #2e48b0;
}

/* RESPONSIVE */

/* Stack cards on mobile */
@media (max-width: 900px) {
  .two-card-section {
    flex-direction: column;
    margin: 60px 15px;
  }

  .left-card,
  .right-card {
    min-width: auto;
    width: 100%;
    margin-bottom: 30px;
  }

  .right-card {
    padding: 20px;
  }

  .social-buttons {
    justify-content: center;
  }

  .social-btn {
    max-width: 100%;
    flex: 1 1 60px;
  }
}

/* LATEST POSTS SECTION STYLE */

.latest-posts-section {
  position: relative;
  background-image: url('./images/latest-posts-bg2.jpg');
  background-size: cover;
  background-position: center;
  color: white; /* or a light color for contrast */
  padding: 50px 20px;
}

.latest-posts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* black overlay with 40% opacity */
  z-index: 0;
}

.latest-posts-section > .container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 85%;
  margin: 0 auto;
}

.latest-posts-section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);

}

.latest-posts-section-description {
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);

}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.latest-posts-image-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: #f1f4f9;
}

.latest-posts-image-card:hover {
  transform: translateY(-5px);
}

.latest-posts-image-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  

}

.latest-posts-image-container img {
  width: 100%;
  height: 100%; /* fill container */
  object-fit: cover;
  display: block;

}

.latest-posts-image-title {
  padding: 15px;
  font-weight: 600;
  font-size: 16px;
  color: #00307c;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  background-color: #f1f4f9;

}

.latest-posts-image-title a {
  text-decoration: none;
  color: #00307c;
}


.latest-posts-image-title a:hover {
  opacity: 0.8;
}

.testimonial-slide {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  will-change: opacity;
}

.testimonial-slide.fade-out {
  opacity: 0;
}

.testimonial-slide.fade-in {
  opacity: 1;
}


/* Responsive for tablets */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .latest-posts-section {
    padding: 50px 1px;
    background-color: #ebefff;
    color: #222;
    width: 100%;
  }

}

/* Responsive for phones */
@media (max-width: 500px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-left: 0px;
  }

  .latest-posts-section {
    padding: 50px 10px;
    background-color: #ebefff;
    color: #222;
    width: 100%;
  }
  
}


/*STUDENT COMMENTS SECTION STYLES*/

.testimonial-section {
  padding: 30px 20px;
  background-color: none;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 30px;
}

.testimonial-card {
  display: flex;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1100px;
  width: 100%;
  flex-wrap: wrap;
}

.testimonial-image {
  flex: 1 1 200px;
  min-height: 300px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  flex: 2 1 500px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*background-color: #EEEDFE;*/
  background-color: white;
}

.testimonial-title {
  font-size: 28px;
  color: #00307c;
  margin-bottom: 20px;
  font-weight: 700;
}

.testimonial-quote {
  position: relative;
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  font-style: italic;
}

.quote-icon {
  font-size: 36px;
  color: #00307c;
  margin-bottom: 10px;
}

.testimonial-name {
  font-weight: bold;
  margin-top: 10px;
  color: #00307c;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-content {
    padding: 20px 16px; /* Top-bottom: 20px, Left-right: 16px */
  }

  .testimonial-title {
    margin: 0 0 12px 0;
    font-size: 24px;
  }

  .testimonial-quote {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .testimonial-name {
    margin-top: 10px;
    font-size: 15px;
  }

  .quote-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }
}

/*About Course Section Styles*/

.about-section {
  margin-top: 50px;
  width: 100%;
  background-color: #f8faff;
  padding: 60px 20px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
  gap: 40px;
}

.about-image {
  flex: 1 1 600px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-content {
  flex: 2 1 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title + List */
.about-title {
  font-size: 28px;
  color: #00307c;
  margin-bottom: 20px;
  margin-top: 0px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #555;
}

.list-icon {
  font-size: 16px;
  padding: 8px;
  color: white;
}

.purple { background-color: #7e57c2; }
.teal { background-color: #009688; }
.orange { background-color: #fb8c00; }
.blue {  background-color: #42a5f5; }
.pink { background-color: #ec407a; }

/* Feature boxes */
.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}


.about-feature-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
  padding: 10px;
  transition: transform 0.3s;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #555;
}



.about-feature-box:hover {
  transform: translateY(-5px);
}

.about-feature-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  padding: 0;
  border-radius: 50%;
  text-align: center;
  color: white;
  display: inline-block;
}


.green { background-color: #43a047; }
.yellow { background-color: #fdd835; color: white; }
.red { background-color: #e53935; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 12px;
  }

  .about-feature-box {
    padding: 12px;
  }

  .about-image img {
    max-width: 100%;
    height: auto;
  }

  .about-section {
    padding: 40px 10px; /* slightly reduce side padding */
    overflow-x: hidden; /* force safety net */
  }
}

@media (max-width: 480px) {
  .about-features {
    grid-template-columns: repeat(1, 1fr); /* 1 per row */
  }
}




/*FOOTER SECTION STYLES*/

.footer {
  margin-top: 80px;
  background-color: #00307c;
  color: white;
  padding: 20px 0 0;
  width: 100%; /* Ensure full width */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 180px;

}

.footer-logo {
  width: 200px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: white;
}

.footer-heading {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
    color: white;
    font-size: 13px;
}

.footer-links a {
  text-decoration: none;
  color: #bbb;
  transition: color 0.1s;
  color: white;
}

.footer-links a:hover {
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.social-icon {
  font-size: 18px;
  color: white;
  transition: color 0.3s;
}

.social-icon:hover {
  color: #ccc;
}

.footer-email {
  font-size: 14px;
  color: white;
}

/* Copyright strip */
.footer-bottom {
  margin-top: 0px;
  padding: 15px 30px;
  background-color: #00307c;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* MOBILE: Keep columns side-by-side (wraps if needed) */
@media (max-width: 768px) {
  .footer-container {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-column {
    flex: 1 1 45%;
  }

  .footer-logo {
    width: 200px;
  }

  .footer-bottom {
    font-size: 13px;
  }
}
