/* -------------------------
   Base / Layout
   ------------------------- */
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff8f1;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  max-width: 1200px;
  padding: 0 10px;
}
/* Additional inline styles for this page */
   
    .about-content {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      margin: 40px 0;
      align-items: center;
    }
    
    .about-text {
      flex: 1;
      min-width: 300px;
    }
    
    .about-image {
      flex: 1;
      min-width: 300px;
      text-align: center;
    }
    
    .about-image img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .highlight-box {
      background-color: #f8f9fa;
      border-left: 4px solid #2c3e50;
      padding: 20px;
      margin: 30px 0;
      border-radius: 0 4px 4px 0;
    }
    
    h1 {
      color: #2c3e50;
      margin: 20px 0;
    }
    
    
   
/* Additional styling for this page */
    .course-list {
      list-style-type: none;
      padding: 0;
      margin: 30px 0;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
    }
    
    .course-list li {
      background: #f8f9fa;
      border-radius: 8px;
      padding: 20px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .course-list li:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .course-list a {
      display: block;
      color: #2c3e50;
      text-decoration: none;
      font-weight: 500;
      font-size: 1.1rem;
    }
    
    .course-list a:hover {
      color: #3498db;
    }
    
    .course-duration {
      display: block;
      color: #7f8c8d;
      font-size: 0.9rem;
      margin-top: 5px;
    }
    
    .contact-info {
      background: #e8f4fc;
      padding: 20px;
      border-radius: 8px;
      margin: 30px 0;
      text-align: center;
    }
    


main {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* -------------------------
   Top Navigation
   ------------------------- */
.top-nav {
  background-color: #ff6f61;
  border-bottom: 2px solid rgba(255,255,255,0.06);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* The list of links */
.nav-links {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

/* link styles */
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  display: inline-block;
}

/* hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

/* -------------------------
   Header (logo + title)
   ------------------------- */
header {
  background-color: #ff9478;
  padding: 1.1rem 1rem;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Logo image */
.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.contact-map {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* site title */
h1 {
  margin: 0;
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
}

/* -------------------------
   Hero / Content
   ------------------------- */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #ffb347, #ffcc33);
  color: #333;
}

.btn {
  background: #ff6f61;
  color: white;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1rem;
}

/* Highlights */
.highlights, .features {
  padding: 2rem 1rem;
  text-align: center;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature {
  flex: 1 1 220px;
  margin: 1rem;
  background: #ffe0b2;
  padding: 1rem;
  border-radius: 8px;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #ff9478;
  color: white;
  margin-top: auto;
}

/* -------------------------
   Mobile responsive + menu transition
   ------------------------- */
@media (max-width: 768px) {
  /* show only hamburger initially */
  .menu-toggle {
    display: block;
  }
  .about-content {
        flex-direction: column;
  }
  .course-list {
        grid-template-columns: 1fr;
      }

  /* Hide the nav links visually by default on mobile */
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ff6f61;
    flex-direction: column;
    gap: 0;
    overflow: hidden;

    /* Collapsed state */
    max-height: 0;
    transition: max-height 280ms ease;
    z-index: 40;
  }

  /* Individual mobile links style */
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    padding: 0.9rem 1rem;
    display: block;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  /* When open -> allow content to expand */
  .nav-links.open {
    max-height: 600px; /* large enough to show the list; adjust if you add more items */
  }

  /* stack brand (logo + title) vertically for small screens */
  .brand {
    flex-direction: column;
  }

  h1 { font-size: 1.4rem; }
  
  .map-container {
    height: 250px;
    width:100%;
  }
}

/* Map container styles */
.map-container {
  height: 400px;
  width: 100%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Desktop larger screen polish */
@media (min-width: 769px) {
  .nav-container { padding: 0.6rem 1rem; }
  .nav-links a:hover { opacity: 0.95; }
}