/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 100px; 
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fefefe;
  color: #333;
}

/* Header layout */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo img {
  height: 50px;
}

/* Nav links */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0077b6;
}

/* Hamburger menu (hidden by default) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: 20px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: 0.3s;
}

/* About Section */
.about-section {
  padding: 60px 20px;
  padding-top: 100px;
  background-color: #f9f9f9;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.small-heading {
  font-size: 18px;
  color: #0077b6;
  margin-bottom: 10px;
}

.medium-heading {
  font-size: 28px;
  color: #023e8a;
  margin-bottom: 5px;
}

.large-heading {
  font-size: 40px;
  color: #03045e;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  max-width: 600px;
}

.courses-box {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #0077b6;
  border: 2px solid #0077b6;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.courses-box:hover {
  background-color: #0077b6;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.about-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Details Section */
.details-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.details-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.main-heading {
  font-size: 36px;
  color: #03045e;
  margin-bottom: 10px;
}

.sub-heading {
  font-size: 18px;
  color: #777;
  margin-bottom: 40px;
  font-style: italic;
}

/* Grid wrapper for the cards */
.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Card style for each block */
.info-block {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  flex: 1 1 300px;
  max-width: 100%;
  text-align: left;
  transition: transform 0.3s ease;
}

.info-block:hover {
  transform: translateY(-5px);
}

.info-block h2 {
  font-size: 24px;
  color: #0077b6;
  margin-bottom: 15px;
}

.info-block p {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

/* Footer */
.footer-section {
  background-color: #f1f1f1;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
}

.footer-container p {
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.social-icons a {
  color: #333;
  font-size: 24px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #0077b6;
}

.footer-note {
  font-size: 14px;
  color: #666;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    width: 100%;
    display: none;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    order: 2;
  }

  .about-image {
    order: 1;
  }

  .small-heading {
    font-size: 16px;
  }

  .medium-heading {
    font-size: 24px;
  }

  .large-heading {
    font-size: 32px;
  }

  .about-text p {
    font-size: 15px;
  }
  .main-heading {
    font-size: 28px;
  }

  .sub-heading {
    font-size: 16px;
  }

  .info-block h2 {
    font-size: 22px;
  }

  .info-block p {
    font-size: 15px;
  }

  .info-block {
    text-align: center;
  }

  .social-icons {
    gap: 20px;
  }

  .social-icons a {
    font-size: 22px;
  }

  .footer-note {
    font-size: 12px !important;
  }
}
