/* === HEADER SECTION === */
    header {
      background: #007bff;
      color: white;
      padding: 15px 25px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .logo {
      font-size: 1.4em;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 25px;
      margin: 0;
    }

    nav ul li a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      transition: 0.3s;
    }

    nav ul li a:hover {
      color: #ffe082;
    }

    /* === HAMBURGER MENU === */
    .menu-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 25px;
      height: 18px;
      cursor: pointer;
    }

    .menu-toggle span {
      display: block;
      height: 3px;
      width: 100%;
      background: white;
      border-radius: 2px;
      transition: all 0.3s ease;
    }
    
    /* === RESPONSIVENESS === */
    @media (max-width: 768px) {
      body {
        font-size: 1.0em;
      }
      .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 18px;
      }

      nav {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
      }

      nav.active {
        max-height: 350px;
      }

      nav ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
        gap: 10px;
      }

      nav ul li a {
        color: #007bff;
        display: block;
        padding: 10px 0;
        font-weight: 600;
        border-bottom: 1px solid #e0e0e0;
      }

      nav ul li:last-child a {
        border-bottom: none;
      }

      .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }
      .menu-toggle.active span:nth-child(2) {
        opacity: 0;
      }
      .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
      }

      .slider, .slides img {
        height: 250px;
      }

      .welcome-section,
      .navigation {
        padding: 30px 15px;
        margin: 25px 10px;
      }
      .welcome-section p {
          margin-top: 0;
      }
      .main-subjects {
        padding: 30px 15px;
        margin: 25px 10px;
      }

      .navigation h2 {
        font-size: 0.8em;
      }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
      body {
        font-size: 1.0em;
      }
      .slider, .slides img {
        height: 350px;
      }

      .welcome-section, .navigation {
        max-width: 90%;
      }
      
       .welcome-section p {
          margin-top: 0;
          font-size: 0.8em;
      }
      
      .main-subjects {
        max-width: 90%;
      }
    }

    @media (min-width: 1025px) {
      body {
        font-size: 1.2em;
      }
      .slider, .slides img {
        height: 450px;
      }
      
       .welcome-section p {
          margin-top: 0;
      }
      
    }
    
    /* This creates a gap for ads to "land" in between your sections */
.ad-spacer {
    height: auto;
    min-height: 50px; /* Gives Google enough room to realize it's a gap */
    margin: 20px 0;
    clear: both;
    display: block;
}

/* This makes sure the ad that lands in the spacer is centered and clean */
.ad-spacer ins.adsbygoogle {
    margin: 0 auto;
    border-top: 1px solid #f0f0f0; /* Optional: adds a subtle line above the ad */
    border-bottom: 1px solid #f0f0f0; /* Optional: adds a subtle line below the ad */
    padding: 10px 0;
}
    
    /* --- Global AdSense Protection --- */
    
    /* 1. Protect all Hero Banners from being split by ads */
    /*.science-hero ins.adsbygoogle, */
    /*.science-hero .adsbygoogle {*/
    /*    display: none !important;*/
    /*    height: 0px !important;*/
    /*    visibility: hidden !important;*/
    /*}*/
    
    /* 2. Protect the Navigation Steps Grid from being scattered */
    /*.nav-steps-grid ins.adsbygoogle,*/
    /*.navigation-container .adsbygoogle {*/
    /*    display: none !important;*/
    /*}*/
    
    /* 3. Ensure ads don't push your 'Select Level' buttons off-center */
    /*.dept-selector-area ins.adsbygoogle {*/
    /*    display: none !important;*/
    /*}*/