:root {
    --primary: #0072CE;
    --secondary: #5DD300;
    --accent: #00bcd4;
    --light: #f9f9f9;
    --medium-light: #f0f4f8; /* New light shade */
    --dark: #1c1c1c;
    --text-dark: #333;
    --text-light: #555;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Softer shadow */
    --card-hover-shadow: 0 8px 20px rgba(0,0,0,0.1);
    --border-radius: 12px; /* Consistent border radius */
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth; /* Already set, but good to keep */
  }
  
  html {
      scroll-padding-top: 60px; /* Adjust based on sticky nav height */
  }
  
  
  body {
    background: var(--light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px; /* Base font size */
  }
  
  h1, h2, h3 {
      font-weight: 700;
      line-height: 1.3;
      color: var(--dark);
  }
  
  h2 {
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
      color: var(--primary);
      text-align: center; /* Center section headings */
  }
  
  h3 {
      font-size: 1.5rem;
      margin-bottom: 0.8rem;
      color: var(--text-dark);
  }
  
  p {
      margin-bottom: 1rem;
      color: var(--text-light);
  }
  
  /* --- Header Styles --- */
  header {
    background: linear-gradient(90deg, var(--primary), #004d99);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .header-content img {
    height: 100px;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }
  
  .school-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .school-details h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    color: #fff; /* Ensure white text */
  }
  
  .school-details p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 0;
    color: #fff; /* Ensure white text */
  }
  
  /* --- Navigation Styles --- */
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Space between icon and menu on mobile */
    align-items: center; /* Vertically align items */
    background: var(--secondary);
    padding: 0.5rem 1rem; /* Base padding */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(93, 211, 0, 0.4);
    min-height: 60px; /* Ensure nav has consistent height */
  }
  
  /* --- Hamburger Icon --- */
  .menu-icon {
    display: none; /* Hidden by default on larger screens */
    font-size: 1.8rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
  }
  
  /* --- Navigation Menu Links --- */
  nav .menu {
    display: flex; /* Show links by default on larger screens */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center; /* Center links */
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Allow menu to take available space */
  }
  
  nav a {
    color: #fff;
    text-decoration: none;
    margin: 0.5rem 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.7rem 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
  }
  
  nav a:hover {
    background-color: #004080;
    transform: scale(1.05);
  }
  
  /* --- Hero Section Styles --- */
  .hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('images/school1.jpeg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
    max-width: 850px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.3;
    color: #fff;
    margin: 0;
  }
  
  /* --- Main Content Area & Container --- */
  main {
      overflow-x: hidden;
  }
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
  }
  
  /* Center text utility */
  .text-center {
      text-align: center;
  }
  
  /* Make paragraphs slightly larger */
  .large-paragraph {
      font-size: 1.2rem;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
      color: var(--text-light);
  }
  
  /* --- Section Default Margin & Padding --- */
  section {
    padding: 4rem 0;
    margin-bottom: 0;
  }
  
  /* --- Card Layout Styles (Used for #about) --- */
  .card {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 4rem;
  }
  
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
  }
  
  /* Alternating Card Layout */
  .alternating-card:nth-child(even) { /* Target specific class */
       flex-direction: row-reverse;
  }
  #about { background: #fff; }
  
  
  .card img {
    flex: 1 1 45%;
    min-width: 300px;
    max-height: 400px;
    object-fit: cover;
  }
  
  .card .text {
    flex: 1 1 55%;
    padding: 3rem;
  }
  
  .card h2 {
    text-align: left;
    margin-bottom: 1.2rem;
    font-size: 2.2rem;
  }
  
  .card p, .card ul {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
  }
  
  .card ul {
    list-style: none;
    padding-left: 0;
  }
  
  .card ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .card ul li::before {
    /* Using Font Awesome Check */
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free'; /* Specify Font Awesome family */
    font-weight: 900; /* Required for solid icons */
    position: absolute;
    left: 0;
    top: 3px; /* Fine-tune vertical alignment */
    color: var(--secondary);
  }
  
  
  /* --- Feature Grid Section Styles (#why-zenith, #facilities) --- */
  .feature-section {
      padding: 4rem 0;
  }
  .feature-section.light-bg {
      background-color: var(--medium-light);
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
  }
  
  .feature-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .feature-item:hover {
      transform: translateY(-5px);
      box-shadow: var(--card-hover-shadow);
  }
  
  .feature-icon {
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .feature-item h3 {
      color: var(--primary);
      font-size: 1.4rem;
  }
  
  
  /* --- Full Width Accent Section (#academics) --- */
  .full-width-section {
      padding: 5rem 0;
  }
  .accent-section {
    background-color: var(--medium-light);
  }
  .accent-section h2 {
      color: var(--primary);
  }
  
  
  /* --- CTA Section Styles (#admission) --- */
  .cta-section {
    background-color: var(--primary);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
  }
  
  .cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 0.5rem;
    cursor: pointer; /* Add cursor pointer */
  }
  
  .cta-button:hover {
    background-color: #4caf00;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  }
  .cta-button.secondary-cta {
      background-color: #fff;
      color: var(--primary);
  }
  .cta-button.secondary-cta:hover {
       background-color: #eee;
       color: #0056a1;
  }
  
  
  /* --- Campus Life Section (Grouping Events/Gallery) --- */
  .campus-life-section {
      background-color: #fff;
      padding: 4rem 0;
  }
  .campus-life-section > .container > h2 {
       margin-bottom: 2.5rem;
  }
  .carousel-container {
      /* Optional styling */
  }
  .carousel {
      margin-bottom: 3rem;
  }
  .carousel h3 {
      text-align: center;
      margin-bottom: 1.5rem;
      font-size: 1.8rem;
      color: var(--dark);
  }
  .carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1.2rem 0.5rem;
    gap: 1.5rem;
  }
  /* Hide scrollbar */
  .carousel-wrapper::-webkit-scrollbar { display: none; }
  .carousel-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
  
  .carousel-slide {
    flex: 0 0 320px;
    width: 320px;
    height: 280px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .carousel-slide:hover {
      transform: scale(1.03);
      box-shadow: var(--card-hover-shadow);
  }
  .slide-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      padding: 0.6rem;
      text-align: center;
      font-size: 0.9rem;
      font-weight: 600;
      opacity: 0;
      transition: opacity 0.3s ease;
  }
  .carousel-slide:hover .slide-caption {
      opacity: 1;
  }
  
  
  /* --- Contact Section Styles --- */
  .contact-section {
    background-color: var(--medium-light);
    padding: 5rem 0;
  }
  .contact-section h2 {
      margin-bottom: 3rem;
  }
  .contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
  }
  
  .contact-details-map {
    flex: 1 1 45%;
    min-width: 300px;
  }
  .contact-details-map h3 {
      margin-bottom: 1.5rem;
  }
  .contact-info-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 1rem;
      font-size: 1.1rem;
      color: var(--text-light);
  }
  .contact-info-item i {
      color: var(--primary);
      font-size: 1.3rem;
      margin-right: 1rem;
      width: 20px;
      text-align: center;
      margin-top: 2px;
  }
  .map-placeholder {
      margin-top: 2rem;
      border-radius: var(--border-radius);
      overflow: hidden;
      box-shadow: var(--card-shadow);
  }
  .map-placeholder iframe {
      display: block;
  }
  .map-placeholder p {
      text-align: center;
      margin-top: 0.5rem;
      font-size: 0.8rem;
      color: #888;
  }
  
  .contact-form-wrapper {
    flex: 1 1 50%;
    min-width: 300px;
  }
  .contact-form-wrapper h3 {
      margin-bottom: 1.5rem;
  }
  .contact-form {
      background: #fff;
      padding: 2.5rem;
      border-radius: var(--border-radius);
      box-shadow: var(--card-shadow);
  }
  .contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
  }
  .contact-form button {
    display: inline-block;
    width: 100%; /* Make button full width */
  }
  
  
  /* --- Footer Styles --- */
  footer {
    background: var(--primary);
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
    border-top: 5px solid var(--secondary);
    margin-top: 0;
  }
  
  footer p {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: white;
  }
  
  footer small {
    opacity: 0.8;
    font-style: italic;
  }
  
  
  /* --- Responsive Media Queries --- */
  @media (max-width: 992px) {
      h2 { font-size: 2.2rem; }
      .hero h1 { font-size: 3rem; }
      .card .text { padding: 2rem; }
      .contact-container { gap: 2rem; }
      .carousel-slide { flex-basis: 280px; width: 280px; height: 240px;}
  }
  
  @media (max-width: 768px) {
    h2 { font-size: 2rem; }
    header { padding: 1rem; }
  
    .header-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .header-content img { height: 50px; margin-right: 0; margin-bottom: 0.8rem; }
    .school-details h1 { font-size: 2rem; }
    .school-details p { font-size: 1rem; }
  
    /* --- Mobile Navigation --- */
    nav {
      padding: 0.5rem 1rem; /* Adjust padding */
      justify-content: space-between; /* Align icon to the right */
      position: relative; /* Needed for absolute positioning of menu */
    }
  
    .menu-icon {
      display: block; /* Show hamburger icon */
    }
  
    nav .menu {
      display: none; /* Hide menu by default */
      flex-direction: column; /* Stack links vertically */
      position: absolute; /* Position relative to nav */
      top: 100%; /* Position it right below the nav bar */
      left: 0;
      width: 100%;
      background-color: var(--secondary); /* Match nav background */
      padding: 0.5rem 0; /* Padding for the dropdown */
      box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add shadow */
      border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle separator */
    }
  
    nav .menu.open {
      display: flex; /* Show menu when .open class is added */
    }
  
    nav .menu a {
      width: 100%; /* Make links take full width */
      text-align: center; /* Center text */
      padding: 1rem 0.5rem; /* More vertical padding */
      margin: 0; /* Remove horizontal margins */
      border-radius: 0; /* Remove border-radius */
      border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Link separators */
    }
    nav .menu a:last-child {
        border-bottom: none; /* Remove border from last item */
    }
  
    nav .menu a:hover {
      background-color: #004080;
      transform: none; /* Disable scale on hover in mobile menu */
    }
    /* --- End Mobile Navigation --- */
  
    .hero { min-height: 60vh; }
    .hero h1 { font-size: 2.5rem; }
  
    .container { padding: 0 1rem; }
    section { padding: 3rem 0; }
  
    .card { flex-direction: column !important; margin-bottom: 2.5rem;}
    /* Ensure alternating also stacks */
    .alternating-card:nth-child(even){
        flex-direction: column !important;
    }
  
    .card img { width: 100%; height: 250px; max-height: 250px; flex-basis: auto; }
    .card .text { padding: 1.5rem; flex-basis: auto; }
    .card h2 { font-size: 1.8rem; }
    .card p, .card ul { font-size: 1rem; }
  
    .feature-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
    .feature-item { padding: 1rem;}
    .feature-item h3 { font-size: 1.2rem; }
  
    .full-width-section { padding: 3.5rem 0; }
    .large-paragraph { font-size: 1.1rem; }
  
    .cta-section { padding: 3rem 0; }
    .cta-section h2 { font-size: 1.8rem;}
    .cta-section p { font-size: 1.1rem;}
    .cta-button { padding: 0.8rem 1.5rem; font-size: 1rem;}
  
    .campus-life-section { padding: 3rem 0; }
    .carousel h3 { font-size: 1.6rem; }
    .carousel-wrapper { padding-bottom: 1rem; }
    .carousel-slide { flex-basis: 260px; width: 260px; height: 210px; }
  
    .contact-section { padding: 3.5rem 0; }
    .contact-container { flex-direction: column; gap: 2.5rem; }
    .contact-details-map, .contact-form-wrapper { flex-basis: 100%; width: 100%; }
    .contact-form { padding: 2rem; }
  
    footer { padding: 2rem 1rem; }
  }