/* Reset and box-sizing */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* Body styles */
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding-top: 60px; /* space for fixed header */
  }

  /* Fixed Navbar Styles */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: red; /* Keep your original color or change as needed */
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  header .logo {
    display: flex;
    align-items: center;
  }
  header .logo img {
    width: 70px;
  }
  nav.nav-items {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  nav.nav-items a {
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    @media (max-width: 770px) {
        display: none;
        
    }
  }
  nav.nav-items a:hover {
    color: #007BFF;
  }
  #menuIcon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
  }

  /* Sidebar for small screens */
  .sidebar {
    display: none;
    position: fixed;
    top: 60px; /* below header */
    right: 0;
    width: 200px;
    background-color: darksalmon;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 998;
    transition: transform 0.3s ease;
  }
  .sidebar.show {
    display: block;
  }
  .sidebar button {
    display: block;
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .sidebar ul {
    list-style: none;
  }
  .sidebar li {
    margin: 10px 0;
  }
  .sidebar a {
    text-decoration: none;
    color: #333;
  }
    @media(max-width: 768px) {
    #menuIcon {
      display: block;
    }
    .nav-items {
      display: none; /* hide on small screens, shown via toggle */
      flex-direction: column;
      position: fixed;
      top: 60px;
      right: 20px;
      background-color: #fff;
      padding: 10px;
      border: 1px solid #ccc;
    }
    .nav-items.show {
      display: flex;
    }
    /* Adjust carousel for smaller screens */
    .gallery {
      min-height: auto;
    }
    .carousel-container {
      width: 100%;
    }
  }
  .hero {
    position: relative;
    height: 85vh;
    background-image: url('img/2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #fff;
  }
  /* Overlay for hero for better text visibility */
  .hero::after {
    content: "";
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }
  .hero-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
    background: rgba(0,0,0,0.3); /* semi-transparent background */
    border-radius: 10px;
  }
  .hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
  }
  .hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
  }
    .btn {
    display: inline-block;
    padding: 14px 24px;
    background-color: white;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.2s;
  }
  .btn:hover {
    background-color: purple;
    transform: translateY(-5px);
  }
  .about {
    width: 100%;
    min-height: 70vh;
    background-image: url('img/3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 80px 20px; /* increased top padding to account for fixed header */
    color: #000;
  }
  .about h2 {
    margin-bottom: 20px;
  }
  .about p {
    max-width: 800px;
    text-align: center;
    margin-bottom: 40px;
  }
  /* Container for vision and core values cards */
  .about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
  }
  /* Style for each card */
  .about-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    min-width: 250px;
    max-width: 350px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  }
  .about-card:hover,
  .about-card:focus {
    background-color: #663399; /* Rebecca purple */
    outline: none;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
  .about-card h3 {
    margin-bottom: 10px;
  }
  .about-card p {
    font-size: 1rem;
    line-height: 1.4;
  }
  #programs {
    padding: 20px;
    height: 85vh;
  }
  .section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
  }
  .programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .card {
    background-color: #e70a0a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  }
  .card h3 {
    margin-bottom: 15px;
    color: #4CAF50;
  }
  .card p {
    font-size: 1em;
    line-height: 1.5;
  }
  /* Gallery Carousel Styles */
  #gallery {
    padding: 20px;
  }
  .gallery {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background-color: #f0f0f0;
    padding: 0px;
  }
  .carousel-container {
    position: relative;
    width: 600px;
    height: 350px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }
  .carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  .carousel-images img {
    width: 100%;
    height: 90%;
    flex-shrink: 0;
    object-fit: cover;
  }
  .prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 10;
  }
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
  .prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  #contact {
    background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }
  .contact-form {
    background-color: rgb(255, 99, 99);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
  }
  #contact h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
  }
  #contact p {
    font-size: 1em;
    margin-bottom: 30px;
    color: #555;
  }
  .contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
  }
  .label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
  }
  /* Purple styled inputs */
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  input[type="text"]:focus,
  input[type="email"]:focus,
  textarea:focus {
    border-color: #6a0dad;
    box-shadow: 0 0 8px rgba(106, 17, 203, 0.2);
    outline: none;
  }
  /* Purple submit button */
  button.submit-btn {
    margin-top: 20px;
    padding: 14px;
    background-color: #6a0dad; /* purple */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }
  button.submit-btn:hover {
    background-color: #8a2be2;
    transform: translateY(-2px);
  }


  footer {
    background-color: darksalmon;
    color: #fff;
    padding: 10px 0;
    text-align: center;
  }