:root {
      --primary: #21316F;
      --secondary: #EC8421;
      --link: #1a73e8;
    }
    * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: #fff;
      color: #333;
      line-height: 1.6;
    }
    a {
      color: var(--link);
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }

    .top-bar {
      background: #f4f4f4;
      padding: 8px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.95em;
      flex-wrap: wrap;
    }
    .top-left, .top-right {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
    .top-left a {
      margin-right: 15px;
      font-weight: 600;
      font-size: 1.05em;
      color: var(--primary);
    }
    .top-left a:hover {
      color: var(--secondary);
    }
    .top-right {
      margin-left: auto;
    }
    .top-right a {
      margin-left: 10px;
      font-size: 1.2em;
      color: var(--primary);
    }

    header {
      background: var(--primary);
      color: white;
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }
    .logo-area {
      display: flex;
      align-items: center;
      gap: 15px;
      flex: 1;
    }
    .logo-img {
      height: 60px;
    }
    .logo-text {
      font-size: 1.5em;
      font-weight: 600;
    }
    .menu-toggle {
      display: none;
      font-size: 1.8em;
      cursor: pointer;
      color: white;
    }
    nav {
      flex: 1;
    }
    .menu {
      display: flex;
      justify-content: flex-end;
      gap: 15px;
    }
    .menu a {
      color: white;
      font-weight: 600;
    }
    .menu a:hover {
      color: var(--secondary);
    }

    .banner {
      background: url('../img/back2.jpg') center/cover no-repeat;
      height: 300px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      background-color: var(--primary);
      color: white;
      padding: 10px;
    }
    .banner h1 {
      background-color: rgba(33, 49, 111, 0.7);
      padding: 15px;
      border-radius: 10px;
      font-size: 1.8em;
    }

    section {
      padding: 10px 20px;
      max-width: 1200px;
      margin: auto;
    }
    .section-title {
      color: var(--primary);
      font-size: 2em;
      margin-bottom: 15px;
      text-align: center;
    }
    section p {
      margin-top: 0;
      margin-bottom: 20px;
    }

    .course-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
    }
    .course-card {
      background: #f9f9f9;
      border-left: 5px solid var(--secondary);
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      transition: transform 0.3s ease;
    }
    .course-card:hover {
      transform: translateY(-5px);
    }
    .course-card h3 {
      color: var(--primary);
      margin-top: 0;
    }

    .testimonials blockquote {
      font-style: italic;
      background: #f9f9f9;
      padding: 20px;
      border-left: 5px solid var(--primary);
      margin: 20px auto;
      max-width: 600px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }
    .contact-info h3 {
      margin-bottom: 5px;
      color: var(--primary);
    }
    .contact-info p {
      margin-bottom: 20px;
    }
    .contact-form input, .contact-form select, .contact-form textarea {
      width: 100%;
      padding: 12px;
      margin-bottom: 15px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1em;
    }
    .contact-form button {
      background: var(--secondary);
      color: white;
      padding: 12px;
      border: none;
      border-radius: 8px;
      font-size: 1em;
      cursor: pointer;
    }
    .contact-form button:hover {
      background: var(--primary);
    }

    footer {
      background: var(--primary);
      color: white;
      text-align: center;
      padding: 20px 15px;
    }
    footer a {
      color: var(--link);
      margin: 0 10px;
    }

    @media(max-width: 768px) {
      .top-bar {
        flex-direction: column;
        align-items: flex-start;
      }
      .top-right {
        justify-content: flex-end;
        width: 100%;
      }
      header {
        flex-direction: column;
        align-items: flex-start;
      }
      .logo-area {
        width: 100%;
        justify-content: space-between;
      }
      .menu-toggle {
        display: block;
      }
      nav {
        width: 100%;
      }
      .menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
      }
      .menu.show {
        max-height: 500px;
        display: flex;
      }
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }
    #formResponse {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: none;
    transition: all 0.3s ease;
    }


    .gallery-section {
      text-align: center;
      padding: 60px 20px;
      background-color: #fff;
    }

    .gallery-section h1 {
      color: #21316F;
      font-size: 2em;
      margin-bottom: 10px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 15px;
      justify-items: center;
      padding: 0 15px;
    }

    .gallery-grid img {
      width: 100%;
      max-width: 220px;
      height: 150px;
      object-fit: cover;
      border-radius: 10px;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    }

    .gallery-grid img:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

    /* Responsive grid adjustments */
    @media (max-width: 1200px) {
      .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    @media (max-width: 992px) {
      .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 768px) {
      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 480px) {
      .gallery-grid {
        grid-template-columns: 1fr;
      }
    }

    .gallery-grid img:hover {
      transform: scale(1.03);
      box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }


    .gallery-grid video {
  width: 100%;
  max-width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}


    /* Testimonials section styles */
.testimonials-section {
  padding: 40px 20px;
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
  text-align: center;
  overflow: hidden; /* Hide overflowing content for smooth scrolling */
  position: relative;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.testimonials-section .section-title {
  font-size: 2.5em;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Wrapper for scrolling area */
.testimonial-wrapper {
  height: 250px; /* Adjust height as needed */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  margin: 0 auto;
  max-width: 800px;
  background-color: #fff;
}

/* Content that scrolls */
.testimonial-content {
  display: flex;
  flex-direction: column;
  animation: scrollTestimonials 20s linear infinite;
}

/* Individual testimonials styled as cards */
.testimonials blockquote {
  background: #f0f4f8;
  padding: 20px;
  margin: 15px 30px;
  border-left: 6px solid #007BFF;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-style: italic;
  font-size: 1.1em;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for testimonials */
.testimonials blockquote:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Animation keyframes for smooth vertical scrolling */
@keyframes scrollTestimonials {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}



/* Thumbnail Grid */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-items: center;
  }

  .gallery-item {
    width: 300px;
    height: 200px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s;
  }

  .gallery-item:hover {
    transform: scale(1.05);
  }

  /* Lightbox */
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .lightbox.active {
    display: flex;
  }

  .lightbox-content {
    position: relative;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
  }

  .lightbox-media[type="image"],
  .lightbox-content img.lightbox-media {
    width: 80vw;
    height: 80vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
  }

  .lightbox-content video.lightbox-media {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
  }

  /* Buttons */
  .close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    background: rgba(0,0,0,0.6);
    font-size: 36px;
    border-radius: 50%;
    cursor: pointer;
    padding: 5px 15px;
  }

  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 36px;
    padding: 8px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }

  .nav-btn:hover {
    background: rgba(255,255,255,0.5);
  }

  .nav-btn.prev {
    left: -60px;
  }

  .nav-btn.next {
    right: -60px;
  }

  @media(max-width:768px) {
    .gallery-item {
      width: 100%;
      height: auto;
    }
    .lightbox-media {
      max-width: 95vw;
      max-height: 80vh;
    }
    .nav-btn.prev { left: 10px; }
    .nav-btn.next { right: 10px; }
    .close-btn {
      top: 10px;
      right: 10px;
    }
  }