/* Importing Poppins font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #e8f9ff;
  color: #333;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  background: #004f7c;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
  position: fixed; /* Changed to fixed to match intent */
  top: 0;
  z-index: 1000;
  height: 55px;
  width: 100%;
}

.navbar:hover {
  box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1001; /* Ensure logo stays above nav-links */
}

.logo img {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
}

.logo h2 {
  font-size: 25px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-links a {
  text-decoration: none;
  color: #f1f1f1;
  font-size: 20px;
  font-weight: 600;
  /* padding: 5px 0;  */
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  position: relative;
  display: inline-block;
}

.nav-links a:not(.whatsapp-link)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease-in-out;
  transform: translateX(-50%); /* Center the underline */
}

.nav-links a:not(.whatsapp-link):hover::after {
  width: 100%; /* Expand exactly to text width */
}

/* WhatsApp Icon Link */
.whatsapp-link img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-link:hover img {
  transform: scale(1.05);
}

/* Menu Icon (Hamburger) */
.menu-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 25px;
  z-index: 1001; /* Above nav-links */
}

.menu-icon .line {
  background-color: #fff;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-icon.active .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-icon.active .line:nth-child(2) {
  opacity: 0;
}

.menu-icon.active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .menu-icon {
    display: flex;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden */
    width: 280px;
    height: 100vh;
    background: rgba(0, 79, 124, 0.9); /* Frosted glass effect */
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start; /* Shift items to the top */
    justify-content: flex-start;
    gap: 15px;
    padding-left: 30px; /* Align items properly */
    transition: right 0.5s ease-in-out;
    border-left: 5px solid rgba(192, 241, 249, 0.2);
  }

  .nav-links.active {
    right: 0; /* Slide in */
    margin-top: 55px;
    padding-top: 15px;
  }

  .nav-links li {
    width: 100%;
    text-align: left; /* Align text to the left */
  }

  .nav-links a {
    font-size: 25px; /* Slightly reduced font size */
    font-weight: 600;
    padding: 10px 0;
    display: block;
    color: white;
    transition: all 0.3s ease-in-out;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    border-left: 4px solid white;
    box-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3);
  }

  .logo {
    padding-left: 10px;
  }

  .logo h2 {
    font-size: 32px;
  }

  .logo img {
    height: 48px;
    width: 48px;
  }

  .whatsapp-link img {
    height: 45px;
    width: 45px;
  }

  /* Close button styling */
  .menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
  }

  .menu-close:hover {
    transform: rotate(90deg);
  }

  /* Dark overlay when menu is open */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    height: 55px;
  }
  .nav-links {
    gap: 13px;
  }

  .logo {
    padding-left: 10px;
  }

  .logo h2 {
    font-size: 28px;
  }

  .logo img {
    height: 43px;
    width: 43px;
  }

  .menu-icon {
    right: 15px;
  }

  .nav-links a {
    font-size: 25px;
    padding: 10px 15px;
  }

  .whatsapp-link img {
    height: 43px;
    width: 43px;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 3px 5px;
    height: 55px;
  }

  .nav-links {
    gap: 10px;
  }

  .logo {
    padding-left: 1px;
  }

  .logo h2 {
    font-size: 23px;
  }

  .logo img {
    height: 36px;
    width: 36px;
  }

  .menu-icon {
    right: 9px;
  }

  .nav-links a {
    font-size: 22px;
    padding: 6px 12px;
  }

  .whatsapp-link img {
    height: 38px;
    width: 38px;
  }
}


.main-header {
  background-color: #e8f9ff;
  color: #003366;
  padding: 20px 30px;
  text-align: center;
  /* margin-top: 75px; */
  border-radius: 50px;
  margin-left: 15px;
  margin-right: 15px;
  margin-top: 60px;
}

.main-header h1 {
  font-size: 45px;
  font-weight: 600;
  /* color: #002f5f; */
  color: #003366;
  /* margin-bottom: 10px; */
  /* letter-spacing: 1px; */
  transition: transform 0.3s ease-in-out;
}

.main-header p {
  font-size: 18px;
  /* color: #555; */
  color: #6b7c94;
  max-width: 850px;
  margin: auto;
  /* line-height: 1.7; */
  transition: opacity 0.3s ease-in-out;
}

.course-intro {
  font-size: 18px;
  font-style: italic;
  /* margin-top: 10px; */
}

.course-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px;
}

.content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  width: 45%;
  margin-bottom: 20px;
}

.content h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid #3498db;
}

.content ul {
  list-style-type: none;
  padding-left: 20px;
}

.content ul li {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.content ul li i {
  color: #0056b3;
  margin-right: 10px;
}

.brochure-section {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.brochure-btn {
  background-color: #0056b3;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  margin-bottom: 40px;
}

.brochure-btn:hover {
  background-color: #2980b9;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darker background */
  backdrop-filter: blur(
    5px
  ); /* Blurring the background for a more modern look */
  transition: all 0.3s ease-in-out;
}

/* Smaller Modal */
.modal-content {
  position: absolute;
  background-color: #fff;
  padding: 20px; /* Reduced padding */
  width: 80%; /* Smaller width */
  max-width: 400px; /* Reduced maximum width */
  border-radius: 12px;
  margin: 100px auto; /* Centered but with reduced top margin */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  animation: slideIn 0.5s ease-out;
  padding-bottom: 20px; /* Reduced bottom padding */
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 33px; /* Smaller close button */
  color: #3498db;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.close-btn:hover {
  color: #e74c3c; /* Red on hover */
}

/* Title */
.model-content h3 {
  text-align: center;
  font-size: 18px; /* Reduced font size */
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

#brochureForm {
  display: flex;
  flex-direction: column;
}

/* Form Fields */
#brochureForm input {
  width: 90%;
  padding: 12px; /* Reduced padding */
  margin-bottom: 12px; /* Reduced bottom margin */
  border-radius: 8px;
  border: 2px solid #ccc;
  font-size: 14px; /* Smaller font size */
  color: #333;
  transition: border 0.3s ease;
}

#brochureForm input:focus {
  border: 2px solid #3498db;
  outline: none;
}

/* Submit Button */
#brochureForm button {
  width: 100%;
  padding: 12px; /* Reduced padding */
  background-color: #3498db;
  color: white;
  font-size: 16px; /* Smaller font size */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

#brochureForm button:hover {
  background-color: #2980b9;
}

/* Animation for Modal */
@keyframes slideIn {
  from {
    transform: translateY(-50%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .content {
    width: 100%;
  }
}

/* Modern Footer Styling */
.footer {
  background: linear-gradient(135deg, #071a32, #0c3b63);
  color: #ffffff;
  padding: 30px;
  font-family: "Poppins", sans-serif;
  border-top: 4px solid #1e3a5f;
}

/* Footer Container */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

/* Footer Logo & About */
.footer-logo {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.footer-logo-img {
  max-width: 120px;
  margin-bottom: 15px;
}

.footer-logo h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 16px;
  color: #b0c4de;
  line-height: 1.6;
}

/* Footer Sections */
.footer-section {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.footer-section h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 10px 0;
}

.footer-section ul li a {
  text-decoration: none;
  color: #b0c4de;
  font-size: 17px;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-section ul li a:hover {
  color: #1e90ff;
  padding-left: 8px;
}

/* Contact Info */
.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer-contact p {
  font-size: 17px;
  margin: 8px 0;
  color: #b0c4de;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #1e90ff;
}

/* Social Media Icons */
.footer-social .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.footer-social .social-icons a {
  color: #ffffff;
  font-size: 24px;
  transition: transform 0.3s, color 0.3s;
}

.footer-social .social-icons a:hover {
  color: #1e90ff;
  transform: scale(1.1);
}

/* WhatsApp Button */
.footer-call-to-action {
  text-align: center;
  margin-top: 15px;
}

.whatsapp-btn {
  background-color: #1e3a5f;
  color: white;
  font-size: 18px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: background 0.3s, transform 0.3s;
  font-weight: 700;
}

.whatsapp-btn:hover {
  background-color: #1dd448;
  transform: translateY(-3px);
}

/* Copyright */
.footer-copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #b0c4de;
  padding-top: 14px;
  border-top: 1px solid #ffffff44;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-container {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }

  .footer-section {
    flex: 1 1 45%;
  }

  .footer-contact {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .footer-section,
  .footer-contact {
    min-width: 100%;
  }

  .footer-social .social-icons {
    justify-content: center;
  }

  .whatsapp-btn {
    width: 80%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 25px 15px;
  }

  .footer-logo h2 {
    font-size: 20px;
  }

  .footer-section h4 {
    font-size: 18px;
  }

  .whatsapp-btn {
    font-size: 16px;
    padding: 12px 24px;
    width: 100%;
    max-width: 280px;
  }
}