html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
/*base styles */
* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
  }

  :root {
    --color-primary: blue;
    --color-success: forestgreen;
    --color-danger: #f75842;
    --color-white: white;
    --color-light: rgba(255, 255, 255, 0.7);
    --color-black: black;
    --color-bg: #1f2641; /* Default background, will be overridden for body */
    --color-bg1: #2e3267;
    --color-bg2: rgb(26, 101, 26);

    --container-width-lg: 70%; /* Adjusted for better readability on wider screens */
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
  }

  body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: var(--color-black); /* Default text color to black for white background */
    background: var(--color-white); /* Set the background to white */
  }

  /* for every image the tag should have the following */
  img {
    width: 100%;
    display: block;
    object-fit: cover;
  }

  .btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid var(--color-black);/*Addaborderforbettervisibilityonwhite*/
    font-weight: 500;
}

  .btn:hover {
    background: forestgreen; /* Hover background for buttons */
    color: var(--color-white);
    border-color: forestgreen;
  }

  .btn-primary {
    background: var(--color-danger);
    color: var(--color-white);
    border-color: var(--color-danger); /* Add border for primary button */
  }

  .btn-primary:hover {
    background: forestgreen;
    color: var(--color-white);
    border-color: forestgreen;
  }

  /**** header section***/
  .section__head {
    display: flex; /* Arrange paragraph and socials side-by-side */
    justify-content: space-between; /* Space out the paragraph and socials */
    align-items: center;
    padding: 1rem 5rem;
  }

  .section__head p {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    color: rgb(58, 50, 50);
  }

  .header__socials {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
    gap: 10px;
    padding: 0;
    margin: 0;
}

  .header__socials li a{
    font-size: 1 rem;
    cursor: pointer;
    transition: all 400ms ease;
    color: var(--color-black);
  }


  .header__socials a:hover{
    color: var(--color-bg2);
  }

  /****************NAVBAR****************/
nav{
    padding: 1rem 6rem;
    background: whitesmoke;
    width: 100%;
    height: 5rem;
    position: relative;
    top: 0;
    z-index: 9999;
}

.nav__logo h4{
  color: var(--color-black);
}

/****change navbar styles on scroll using javascript**/
.window-scroll{
    background: var(--color-primary);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);

}
.nav__container{
    background: #f2f2f2;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto; /* Center the container */
}

nav button{
    display: none;
}

.nav__menu{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav__logo img {
    width: auto; /* Adjust as needed */
    height: 30px; /* Adjust as needed */
  }

.nav__menu a{
    font-size: 0.9rem;
    transition: all 400ms ease;
    color: var(--color-black);
}


.nav__menu a:hover{
    color: var(--color-bg2);
    text-decoration: underline;
    text-underline-offset: 0.7em;
    text-decoration-thickness: 2px;
}

/* --- NEW DROPDOWN SPECIFIC STYLES --- */

.nav__menu .dropdown {
    position: relative; /* THIS IS CRUCIAL: Establishes positioning context for .dropdown-content */
    /* Add any specific padding/margin if this dropdown item needs to differ from others */
}

/* The trigger button (the icon-only link) */
.nav__menu .dropbtn {
    display: flex; /* Use flex to center the icon */
    align-items: center; /* Vertically center icon */
    justify-content: center; /* Horizontally center icon */
    padding: 15px 15px; /* Adjust padding to make the clickable area comfortable for an icon */
    cursor: pointer; /* Indicate it's clickable */
    /* You might want to remove 'text-decoration: underline;' from hover for this specific link */
}

.nav__menu .dropbtn:hover {
    color: var(--color-bg2); /* Inherit hover color from other links */
    text-decoration: none; /* Crucial: Remove the underline on hover for the icon */
}


/* The dropdown content container (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(2, 2, 70);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #eee;

}

/* Individual links within the dropdown */
.dropdown-content a {
    color: #ffffff; /* Text color for dropdown items */
    padding: 12px 16px;
    text-decoration: none;
    display: block; /* Make each link take full width */
    text-align: left; /* Align text to the left */
    transition: background-color 0.2s ease;
    font-size: 0.9rem; /* Match main nav font size or adjust */
    font-weight: normal; /* Override any bolding from main nav if not desired */
}

.dropdown-content a:hover {
    background-color: #e9e9e9; /* Lighter hover background */
    color: var(--color-primary); /* Example: Change text color on hover */
    text-decoration: none; /* Ensure no underline on hover for dropdown items */
}


.dropdown-content.show {
    display: block !important;
}

.dropbtn i {
    font-size: 1.2rem;
    color: var(--color-black);
    transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is active (via JS 'active' class on dropbtn) */
.dropbtn.active i {
    transform: rotate(180deg);
}

/* --- END OF NEW DROPDOWN SPECIFIC STYLES --- */

/***SCROLL IMAGE VIEWER section***/
.Page1 {
  padding: 0 auto;
  }

  .image-container {
    position: relative; /* Needed for absolute positioning of overlay content */
    width: 100%; /* Or a specific width */
    overflow: hidden;; /* To contain the overlay within the image bounds */
    max-height:500px ;
  }

  .image-container img {
    display: block;
    width: 100%;
    height: auto; /* Maintain image aspect ratio */
  }

  .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #043015d9;
    display: flex;
    align-items: center; /* Vertically align content */
    justify-content: space-between; /* Put slider on left, text on right */
    padding: 40px; /* Adjust padding around the content */
    box-sizing: border-box; /* Include padding in width and height */
  }

  .right__intro {
    flex: 1; /* Take up available space on the right */
    width: 400px;
    height: 500px;
    padding: 8rem 4rem;
  }

  .left__intro {
    flex: 2; /* Take up available space on the left */
    color: white; /* Style text for better visibility on blue overlay */
    padding-left: 20px; /* Add some spacing between slider and text */
  }

  .left__intro h4 {
    margin-bottom: 10px;
    font-size: 3rem; /* Adjust heading size */
    color: white;
  }

  .left__intro p {
    line-height: 1.6;
    font-size: 1.5em;/*Adjustparagraphsize*/
    color: white;
}

.separator1{
  width: 10%; /* Adjust width */
  height: 10px; /* Adjust thickness */
  background-color: var(--color-white); /* Adjust color */
  margin-bottom: 4px; /* Adjust top, horizontal, and bottom margins for spacing */
}

  .slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
    height: 400px;

}

  .slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;

  }

  .slide img {
    width: 30%;
    height: 60%;
    padding: 2rem 1rem;
  }

/****school themme**/

  .Page2{
    position: relative;
    background: url(images/children.jpg);
    gap: 0;
    height: 80%;
}

.Page2 h2{
  color:#08cd4d ;
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9em;
  gap: 2rem;
  letter-spacing: 4px;
}

.Page2 p{
  margin: 2rem 0rem 2rem;
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 200;
  line-height: 1.2em;
  text-transform: capitalize;
  text-align: left;
}

.overlay__background{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #212327d9;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Put slider on left, text on right */
    padding: 40px; /* Adjust padding around the content */
    box-sizing: border-box; /* Include padding in width and height */
    text-align: left;
}

.themes__container{
    display: grid;
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-height: 100%;
}

.theme{
  color: white;
  background: #006400;
  align-content: center;
  align-items: center;
  padding: 2em 0em 0em 0em;
  width: 80%;
  height: 100%;
  border-style: solid;
  border-width: 0px 0px 3px 0px;
  border:#079141;
  border-radius: 10px;
  transition: border 0.3s ease-in-out;
  box-shadow: 0 3rem 3rem rgba(0,0,0,0.3);
    box-sizing: border-box;

}

.theme a h4{
  color: var(--color-white);
}

.separator {
  width: 20%; /* Adjust width */
  height: 6px; /* Adjust thickness */
  background-color: #FFD700; /* Adjust color */
  margin-bottom: 4px; /* Adjust top, horizontal, and bottom margins for spacing */
}

.theme__icon{
  font-size: 40px;
  padding:  0em 1em 0em;
  align-items: flex-end;
}

.theme:hover a{
    background: transparent;
    border-color: var(--color-primary);
}

.theme:hover a{
    border-bottom: 1px solid var(--color-danger);
}

.theme__info{
    padding: 3rem;
    color: var(--color-white);
}

.theme__info p{
    margin: 1rem 0rem 1rem;
    font-size: 1.1rem;
}
/***PAGE 2 END***/

/* Core Values Section Styling */
.core-values-section {
    background-color: #f8f8f8; /* Light background to make it stand out */
    padding: 60px 0; /* Top and bottom padding */
    text-align: center; /* Center the main heading */
}


.core-values-section .container {
    max-width: 1200px; /* Same max-width as your content section for consistency */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Horizontal padding for smaller screens */
}

.core-values-section h2 {
    text-align: center;
    font-size: 2.8em;
    color: #004085; /* Deep blue from your previous styling */
    margin-bottom: 50px;
    position: relative; /* For the underline effect */
    display: inline-block; /* Makes border-bottom apply only to the text width */
    padding-bottom: 10px; /* Space for the underline */
}

.core-values-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px; /* Length of the underline */
    height: 4px;
    background-color: #004085; /* Color of the underline */
    border-radius: 2px;
}


.values-grid {
    display: grid;
    /* Responsive grid: 3 columns on large screens, 2 on medium, 1 on small */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Space between value items */
    margin-top: 30px;
}

.value-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* More pronounced shadow for each card */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.value-item ion-icon {
    font-size: 3.5em; /* Large icon size */
    color: #007bff; /* A brighter blue for icons */
    margin-bottom: 15px;
    display: block; /* Ensures proper spacing */
}

.value-item h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

/* Ensure the element is initially hidden or off-screen if you want a "fly-in" effect */
.landing-title {
    opacity: 0; /* Start invisible */
    transform: translateY(-50px); /* Start 50px above its final position (or scale, or rotate) */
    /* Add animation properties
    animation: slideInFromTop 1s ease-out forwards;  Name, duration, timing, fill-mode
    animation-delay: 0.5s;  Delay before animation starts (optional) */
    transition: none !important; /* Disable any transitions to ensure the animation plays smoothly */
}

/* New classes to trigger animations (keep these as they were) */
.animate-slideInFromTop {
    animation: slideInFromTop 1s ease-out forwards;
    animation-delay: 0.5s;
}

.animate-fadeInZoom {
    animation: fadeInZoom 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

.animate-fadeIn {
    animation: fadeIn 3s ease-in forwards;
    animation-delay: 1s;
}

/* Define the animation */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px); /* Start point */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End point (original position) */
    }
}


@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust columns for tablets */
    }
    .core-values-section h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .core-values-section {
        padding: 40px 0;
    }
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust columns further for smaller tablets */
        gap: 20px;
    }
    .core-values-section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .value-item {
        padding: 25px;
    }
    .value-item ion-icon {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .core-values-section {
        padding: 30px 0;
    }
    .values-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }
    .core-values-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .value-item {
        padding: 20px;
    }
    .value-item ion-icon {
        font-size: 2.5em;
    }
    .value-item h3 {
        font-size: 1.3em;
    }
}

/*END OF ADDITIONAL BEFORE PAGE 3***/

.Page3{
  position: relative;
  top: 3rem;
  overflow: hidden;
  height: 80vh;
  margin: 0 auto;
  margin-bottom: 5rem;
  padding: 0 4rem;
}

.history__container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  height: 100%;
}

.history__left h4{
  color:#1559DA ;
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9em;
  gap: 2rem;
  letter-spacing: 4px;

}

.line-separator {
  width: 20%; /* Adjust width */
  height: 6px; /* Adjust thickness */
  background-color: var(--color-danger); /* Adjust color */
  margin-bottom: 2px; /* Adjust top, horizontal, and bottom margins for spacing */
}

.history__left p{
  color: rgb(159, 153, 153);
  font-weight:200;
  font-size: 1rem;
  margin: 1rem 0 2.4rem;
}

.history__left p2{
  padding-bottom: 20px;

}

.history__image{
  display: inline-block;
  vertical-align:middle;
  height: 100%;
  width: 90%;
  border-style:solid;
  border-width: 0px 0px 6px 0px;
  border-color: #0762d9;
  border-radius:6px 6px 6px 6px;
  box-shadow: 0px 0px 37px 0px rgba(0,0,0,0.2);

}

.history__btn{
    background-color: #0762d9;
    color: white;
    padding: 10px 20px ;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 1160px;
    bottom: 5px;
}

.history__btn:hover {
    background-color: #079141;
}
/*****END OF HISTORY*******/

.Page4{
    position: relative;
    background: url(images/children.jpg);
    gap: 0;
    height: 100%;
}

.overlay__clubs{
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0000CDD9;
  display: grid;
  flex-direction: column;
  justify-content: center; /* Put slider on left, text on right */
  padding: 40px; /* Adjust padding around the content */
  box-sizing: border-box; /* Include padding in width and height */
  text-align: left;
}

.Page4 h4{
    color:var(--color-white) ;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9em;
    gap: 2rem;
    letter-spacing: 2px;
    padding: 30px;
    text-align: center;
  }

  .Page4 p{
    color: var(--color-black);
    font-size: 1rem;
  }

  .Page4 p1{
    color: var(--color-white);
    font-size: 1rem;
    padding: 10px;
    text-align: center;
  }

  .clubs h2{
    color: #0762d9;
    letter-spacing: 2px;
  }

.separator2{
  width: 20%; /* Adjust width */
  height: 6px; /* Adjust thickness */
  background-color: var(--color-bg2); /* Adjust color */
  margin-bottom: 4px; /* Adjust top, horizontal, and bottom margins for spacing */
}

  .clubs__container{
    display: grid;
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-height: 100%;

}

.clubs{
  color: white;
  background:var(--color-white);
  align-content: center;
  align-items: center;
  padding: 50px;
  width: 80%;
  border-style: solid;
  border-width: 0px 0px 3px 0px;
  border:#079141;
  border-radius: 10px;
  transition: border 0.3s ease-in-out;
  box-shadow: 0 3rem 3rem rgba(0,0,0,0.3);
}

.clubs:hover{
  box-shadow: 0 3rem 3rem rgba(0,0,0,0.3);
}

.clubs__icon{
  font-size: 2rem;
  color: #0762d9;
}

.clubs__btn {
  display: inline-flex;
  align-items: center;
  background-color: #2ecc71;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: absolute;
  bottom: 2px;/*Adjustdistancefromthebottom*/
  right: 170px;
}

.clubs__btn:hover {
  background-color: #079141;
}

.clubs__btn .arrow {
  margin-left: 8px;
  font-size: 1.3em;
}
/*****END OF CLUBS*****/
.Page5{
  background: #1f2641;
  height: 50%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.motto__icon{
  font-size: 3rem;
  color: #7CFC00D9;
}

.Page5 h2{
    color:var(--color-white) ;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9em;
    gap: 2rem;
    letter-spacing: 2px;
}

.motto{
  background-size: cover;
  padding: 10vh 10%;
  display: flex;
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  gap: 1rem;
  flex-direction: column; /* Stack icon and text vertically, then center */
  text-align: center;
}
/***END OF MOTTO****/

.Page6{
    height: 60%;
    text-align: center;
    padding: 30px;
}

.content__icon{
  font-size: 2rem;
  color: var(--color-black);
}

.Page6 h4{
  color:var(--color-black) ;
  font-size: 2rem;
  font-weight: 300;
  line-height: 0.5em;
  gap: 2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem; /* Add some space below h4 */
}

.Page6 p1{
  color: #1f2641;
  font-size: 1rem;
  margin-bottom: 2rem; /* Add some space below p1 */
}

.Page6 h3{
  color: #1f2641;
  font-size: 1.0rem;
}

.study__section{
  padding: 10vh 10%;
  display: flex;
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  gap: 1rem;
  flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
}


.study__section a {
  display: flex; /* Enable flexbox for the content within each 'a' tag */
  flex-direction: column; /* Stack icon and h3 vertically */
  align-items: center;
  text-decoration: none;
  color: inherit; /* Inherit text color from parent */
  padding: 1rem; /* Add some padding around each link */
  border: 1px solid #ccc;
  border-radius: 5px;
}

.study__section a h3 {
  color: #1f2641;
  font-size: 1rem;
  text-align: center;
  margin: 0;
  transition: color 0.3s ease;
}

.study__section a:hover h3 {
  color: #0762d9;
}

/***END OF STUDY SECTION***/

.Page7 {
  padding: 10vh 10%;
  background: #f7f7f7; /* Light background for the section */
}

.calendar__container {
  display: flex;
  gap: 2rem; /* Space between left and right sections */
  max-width: 1200px; /* Limit container width */
  margin: 0 auto; /* Center the container */
  align-items: flex-start; /* Align top of left and right sections */
}

.calender__left {
  flex: 1; /* Takes up remaining space */
  padding: 2rem;
}

.calender__left h4 {
  color: #0762d9;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.line-separator2 {
  border-bottom: 10px solid var(--color-bg2); /* Green separator */
  width: 50px;
  margin-bottom: 1.5rem;
}

.calender__left p1 {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.calender__left p2 {
  color: #777;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.calender__btn {
  display: inline-flex;
  align-items: center;
  background-color: #0000;
  color: #0762d9;
  border: 1px solid #0762d9;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.calender__btn:hover {
  background-color: #0762d9;
  color: #fff;
}

.arrow {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

/* --- CRITICAL CHANGES FOR THE RIGHT SECTION --- */
.calender__right {
    background-color: #0762d9;
    color: white;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 4;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}



/* --- Dynamic Heading Styling --- */
#dynamic-events-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-top: 0;
    line-height: 1.2;
    border-bottom: 3px solid #00ff00;
    padding-bottom: 5px;
    width: fit-content;
}

#dynamic-events-container {
    display: flex;
    flex-direction: row; /* Arranges items horizontally */
    gap: 15px; /* Spacing between each event item */
    padding: 10px;
    width: 100%; /* Ensure the container takes up the full width */
}

/* --- Event List Styling (from JavaScript generated content) --- */
.events-list-simple {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    width: 100%;
}

.event-list-item {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.5;
    color: white;
    position: relative;
}


.event-list-item::before {
    content: '•'; /* Unicode character for a bullet point */
    color: white; /* Or a different color like light blue */
    font-weight: bold;
    display: inline-block; /* Allows control over margin */
    width: 1em; /* Space for the bullet */
    margin-left: -1em; /* Pull it back to the left */

}

/* Style for the initial loading/error message */
.calender__right p {
    color: white; /* Make sure loading message is visible */
    margin-top: 20px; /* Space below heading */
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calendar__container {
      flex-direction: column; /* Stack left and right sections on smaller screens */
  }

  .calender__right {
      grid-template-columns: 1fr; /* Single column on smaller screens */
  }
}
/*****END OF CALENDER OF EVENTS****/
footer {
  background: url(images/hon.jpg);
  background-size: cover;
}

.footer__overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #006400D9;
  justify-content: center;
  padding: 40px;
  text-align: left;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertically align items in the container */
  max-width: 1200px;
  margin: 0 auto; /* Center the container */
}

.footer__left {
  flex: 1;
  padding-right: 20px;
}

.left__footer h4 {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: left;
}

.left__footer p {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: left;
}

.separator3 {
  border-bottom: 10px solid var(--color-white);
  width: 50px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer__socials {
  font-size: 2rem;
  display: flex;
  gap: 2rem;
}

.footer__socials a {
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

/****END OF FOOTER***/

.last__page{
  background: rgb(230, 225, 225);
}
.copyright{
  color: var(--color-white);
  font-size: 1rem;
  display: flex;
  padding: 20px;
}

.copyright h4{
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 200;
}

/***********THE SCHOOL SECTION****/
.school__section {
  height: 300px; /* Adjust as needed, or set a specific height */
  background-image: url('images/hon.jpg');
  background-size: cover;
  background-position: center; /* Center the image */
}

.intro__school {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212327d9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
    text-align: left;
}


.intro__school h4 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}
/****END OF INTRO ON SCHOOL*****/

/*START OF PRAYER, ANTHEM AND SCHOOL CULTURE ON THE SCHOOL SECTION*/
.prayer__theme {
  padding: 40px 20px; /* Adjust vertical and horizontal padding */
  background-color: #f9f9f9; /* Light grey background */
}

.prayer__container {
  max-width: 960px; /* Limit container width for better readability */
  margin: 0 auto; /* Center the container */
  display: flex;
  flex-wrap: wrap; /* Allow content to wrap on smaller screens */
  align-items: center; /* Vertically align items in the container */
  gap: 30px; /* Spacing between the left and right sections */
}

.prayer__left {
  flex: 1; /* Allow the left side to take up available space */
  min-width: 300px; /* Minimum width for the image section */
}

.history__image {
  border-radius: 8px; /* Optional: Rounded corners for the image */
  overflow: hidden; /* Clip any part of the image that goes beyond the border-radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.history__image img {
  display: block; /* Remove any default inline spacing */
  width: 100%; /* Make the image responsive within its container */
  height: auto;
}

.prayer__right {
  flex: 1; /* Allow the right side to take up available space */
  min-width: 300px; /* Minimum width for the text section */
  padding: 20px;
}

.prayer__right h4 {
  color: #333; /* Dark grey heading color */
  font-size: 2.2rem; /* Adjust heading size */
  font-weight: bold;
  margin-bottom: 15px;
}

.line-separator {
  border-bottom: 2px solid #ddd; /* Light grey separator line */
  width: 50px;
  margin-bottom: 20px;
}

.prayer__right p {
  color: #555; /* Medium grey paragraph color */
  font-size: 1rem; /* Adjust paragraph size */
  line-height: 1.6; /* Improve readability */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .prayer__container {
      flex-direction: column; /* Stack left and right sections */
      align-items: stretch; /* Make items take full width */
  }

  .prayer__left,
  .prayer__right {
      min-width: auto; /* Allow full width on smaller screens */
  }

  .prayer__right {
      padding: 20px 0; /* Adjust padding for stacked layout */
  }
}
/*****END OF PRAYER SECTION****/
.anthem__theme {
  background: url(images/class.jpg);
  background-size: cover;
  height: 100%;
  display: flex;
  align-items:center;
  justify-content: center;
  text-align: center;
  margin-bottom: 3px;
}

.anthem__school {
  background-color: rgba(33, 35, 39, 0.7); /* Slightly transparent dark background */
  color: var(--color-white);
  padding: 80px 50px; /* Adjust padding for spacing */
  width: 100%; /* Limit the width of the content area */
  height: 100%;
  box-sizing: border-box;
}

.be-inspired {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.anthem-title {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
}

.separator4 {
  border-bottom: 3px solid var(--color-danger); /* Thinner separator */
  width: 80%; /* Slightly wider separator */
  margin: 20px auto; /* Center the separator */
}

.school__anthem {
  text-align: center;
  margin-top: 30px;
}

.school__anthem p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8; /* Improve readability */
  margin-bottom: 15px; /* Add spacing between paragraphs/verses */
}

.school__anthem .verse {
  font-size: 1.1rem; /* Slightly larger for the first verse */
  font-weight: 400;
  margin-bottom: 25px;
}

/* Optional: Style for the other verses if needed */
.school__anthem .other-verses p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .anthem__school {
      padding: 40px 30px;
      max-width: 100%;
  }

  .be-inspired {
      font-size: 1rem;
  }

  .anthem-title {
      font-size: 2.5rem;
  }

  .school__anthem p {
      font-size: 0.9rem;
      line-height: 1.6;
  }

  .school__anthem .verse {
      font-size: 1rem;
  }
}

/***START SCHOOL CULTURE SECTION****/

.school-section {
  display: flex;
  background-color: #222; /* Dark background */
  color: #fff; /* White text */
  padding: 40px;
  font-family: sans-serif;
}

.left-panel {
  flex: 0 0 40%; /* Adjust width as needed */
  padding-right: 30px;
  padding-top: 70px;
  padding-left: 30px;
  justify-content: center;
}

.left-panel h2{
  display: flex;
  justify-content: center;
  color: ghostwhite;
  margin: 10px;
  font-size: 2rem;
  font-weight: 700;
}

.left-panel p{
  display: flex;
  justify-content: center;
  color: gray;
  margin: 10px;
}

.right-panel {
  flex: 1;
  display: flex;
  gap: 20px; /* Space between the boxes */
}

.panel-box {
  background-color: var(--color-black); /* Darker background for boxes */
  padding: 20px;
  border-radius: 8px;
  flex: 1; /* Distribute space equally */
}

.panel-box .icon {
  font-size: 2.5em; /* Adjust icon size */
  margin-bottom: 10px;
  display: block;
}

.panel-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5em;
  color: var(--color-white);
}

.panel-box p {
  font-size: 0.9em;
  line-height: 1.6;
  color: var(--color-white);
}

/* Placeholder for the background image */
.right-panel {
  background-image: url('images/team.jpg'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  opacity: 0.8; /* Adjust opacity for the image */
  display: flex;
  gap: 30px;
  padding: 40px; /* Add some padding to contain the boxes within the image area */
}

.icon {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}
/*****END OF THE SCHOOL SECTION PRAYER THEME***/

/* --- Media Queries RESPONSIVNESS FOR SCHOOL CULTURE --- */

/* For screens smaller than 992px (e.g., larger tablets, smaller desktops) */
@media (max-width: 992px) {
    .school-section {
        padding: 30px;
        flex-direction: column; /* Stack left and right panels */
        gap: 30px; /* Space between stacked panels */
    }

    .left-panel {
        flex: auto; /* Allow left panel to take natural width */
        padding: 0; /* Remove specific padding for better mobile flow */
        text-align: center; /* Center text for the stacked layout */
    }

    .left-panel h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .left-panel p {
        font-size: 1,5rem;
        margin-bottom: 20px;
    }

    .right-panel {
        flex: auto; /* Allow right panel to take natural width */
        padding: 25px; /* Adjust padding for the right panel */
        gap: 15px; /* Reduce gap between panel boxes */
        flex-direction: column; /* Stack panel boxes vertically */
        /* To maintain the background image aspect ratio, you might need a fixed height or aspect-ratio */
        min-height: 400px; /* Ensure right panel has enough height for the image */
    }

    .panel-box {
        flex: none; /* Reset flex-grow/shrink to prevent unexpected sizing */
        width: 80%; /* Give boxes a specific width */
        max-width: 400px; /* Limit max width for readability */
        margin: 0 auto; /* Center individual boxes */
        padding: 15px; /* Reduce padding inside boxes */
    }

    .panel-box .icon {
        font-size: 2em; /* Adjust icon size */
    }

    .panel-box h3 {
        font-size: 1.3em;
    }

    .panel-box p {
        font-size: 0.85em;
    }
}

/* For screens smaller than 768px (e.g., tablets in portrait mode, larger mobile phones) */
@media (max-width: 768px) {
    .school-section {
        padding: 20px;
        gap: 20px;
    }

    .left-panel h2 {
        font-size: 1.6rem;
    }

    .left-panel p {
        font-size: 0.9rem;
    }

    .right-panel {
        padding: 20px;
        min-height: 350px; /* Further adjust min-height */
        gap: 10px; /* Further reduce gap between panel boxes */
    }

    .panel-box {
        width: 90%; /* Increase width for better fit on narrower screens */
        max-width: none; /* Remove max-width constraint */
        padding: 12px;
    }

    .panel-box .icon {
        font-size: 1.8em;
    }

    .panel-box h3 {
        font-size: 1.2em;
    }

    .panel-box p {
        font-size: 0.8em;
    }
}

/* For even smaller screens (e.g., mobile phones in portrait mode) */
@media (max-width: 480px) {
    .school-section {
        padding: 15px;
        gap: 15px;
    }

    .left-panel h2 {
        font-size: 1.4rem;
    }

    .left-panel p {
        font-size: 0.85rem;
    }

    .right-panel {
        padding: 15px;
        min-height: 300px; /* Smallest min-height for very small screens */
    }

    .panel-box {
        width: 100%; /* Take full width on very small screens */
        padding: 10px;
    }

    .panel-box .icon {
        font-size: 1.5em;
    }

    .panel-box h3 {
        font-size: 1em;
    }

    .panel-box p {
        font-size: 0.75em;
    }
}



/*START OF ABOUT SECTION*/
.about {
  height: 250px; /* Adjust as needed, or set a specific height */
  background-image: url('images/hon.jpg');
  background-size: cover;
  background-position: center; /* Center the image */
}

.about__school {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212327d9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
    text-align: left;
}


.about__school h4 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}


/*****ABOUUT****/
.history__school{
  position: relative;
  top: 5rem;
  overflow: hidden;
  height: 100%;
  margin-bottom: 5rem;
  padding: 2rem 8rem;
}

.hist__container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hist__container h4{
  color:#1559DA ;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9em;
  letter-spacing: 2px;
  margin-bottom:1rem ;
  grid-column: 1/ span2;
  padding-bottom: 0.5rem; /* Space below the line */
}


.history__section1 p{
  padding-top: 0;
  color:  rgb(67, 62, 62);
  font-weight: 700;
  font-size: 1rem;
  margin: 1rem 0 2.4rem;
}

.history__section2 p{
  color:  rgb(67, 62, 62);
  font-weight:200;
  font-size: 1rem;
  margin: 1rem 0 2.4rem;
}

.hist__image{
  display: block;
  height: 100%;
  width: 90%;
  border-style:solid;
  border-width: 0px 0px 6px 0px;
  border-color: #0762d9;
  border-radius:6px 6px 6px 6px;
  box-shadow: 0px 0px 37px 0px rgba(0,0,0,0.2);

}

/* --- Media Queries for the History In the Abot page --- */

/* For screens smaller than 992px (typical for tablets in landscape and smaller desktops) */
@media (max-width: 992px) {
    .history__school {
        padding: 2rem 4rem; /* Reduce horizontal padding */
        top: 3rem; /* Adjust top spacing */
        margin-bottom: 3rem; /* Adjust bottom spacing */
    }

    .hist__container {
        gap: 1.5rem; /* Reduce gap between columns */
    }

    .hist__container h4 {
        font-size: 2.5rem; /* Slightly smaller heading */
        text-align: center; /* Center the heading on smaller screens */
    }

    .history__section1 p,
    .history__section2 p {
        font-size: 0.95rem; /* Slightly smaller paragraph text */
        margin: 0.8rem 0 2rem;
    }
}

/* For screens smaller than 768px (typical for tablets in portrait and larger mobiles) */
@media (max-width: 768px) {
    .history__school {
        padding: 1.5rem 2rem; /* Further reduce padding */
        top: 2rem;
        margin-bottom: 2rem;
    }

    .hist__container {
        grid-template-columns: 1fr; /* Change to a single column for stacking */
        gap: 1.5rem; /* Keep gap consistent */
    }

    .hist__container h4 {
        grid-column: 1 / span 1; /* Now spans only one column */
        font-size: 2rem; /* Even smaller heading */
        line-height: 1.1em; /* Adjust line height for better readability */
        letter-spacing: 1px;
    }

    /* Ensure text content sections take full width */
    .history__section1,
    .hist__right {
        grid-column: 1 / span 1; /* Ensure these also span one column */
    }

    .hist__right {
        text-align: center; /* Center content within the right section */
    }

    .hist__image {
        width: 80%; /* Adjust image width for better fit on single column */
        margin: 0 auto 1.5rem auto; /* Center image and add bottom margin */
    }

    .history__section1 p,
    .history__section2 p {
        font-size: 0.9rem; /* Further reduce paragraph font size */
        margin: 0.6rem 0 1.5rem;
    }
}

/* For even smaller screens (e.g., mobile phones) */
@media (max-width: 480px) {
    .history__school {
        padding: 1rem 1rem; /* Minimum padding for small screens */
        top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hist__container h4 {
        font-size: 1.6rem; /* Smallest heading size */
        letter-spacing: 0.5px;
    }

    .history__section1 p,
    .history__section2 p {
        font-size: 0.85rem; /* Smallest paragraph font size */
        margin: 0.5rem 0 1.2rem;
    }

    .hist__image {
        width: 90%; /* Make image slightly wider again on very small screens */
        margin-bottom: 1rem;
    }
}


/****END OF HISTORY IN ABOUT PAGE***/

.about2 {
  height: 350px; /* Adjust as needed, or set a specific height */
  background-image: url('images/hon.jpg');
  background-size: cover;
  background-position: center; /* Center the image */
}

.about__school2 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212327d9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}


.about__school2 h4 {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  font-size: 3rem;
  font-weight: bold;
  top: 20px;
}

.about__school2 p {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: bold;
  margin: 1rem 0 2.4rem;
}


/****END OF BRIEF ABOUT PAGE3***/

.academics {
  padding: 5rem 10rem; /* Adjust padding as needed */
  background-color: #f9f9f9; /* Light background */
}

.academis__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; /* Adjust gap between text and image */
  align-items: center;
}

.academis__container h4 {
  color: #1f2641; /* Similar to the blue in the image */
  font-size: 2.5rem; /* Adjust font size */
  font-weight: bold;
  grid-column: 1 / span 2; /* Span both columns */
  text-align: left;
}

.academics__left p {
  margin-top: 0.5rem;
  padding-right: 2rem;
  font-size: 1.1rem; /* Adjust text size */
  color: #333; /* Darker text color */
  line-height: 1.6; /* Improve readability */
}

.academics__right {
  border-radius: 8px; /* Slightly rounded corners for the image container */
  overflow: hidden;
  box-shadow: #1559DA;
}

.academics__right img {
  display: block; /* Remove extra space below the image */
  width: 90%; /* Make the image fill its container */
  height: auto; /* Maintain aspect ratio */
}

/****END OF ACADEMICS 1***/

.academics2 {
  padding: 2rem;
  display: flex;
  justify-content: center; /* Center the table horizontally */
  align-items: center; /* Center the table vertically */
  background-color: #f4f6f8; /* Light background color */
}

.academic__container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  overflow-x: auto; /* Enable horizontal scrolling for smaller screens */
}

.academic__container h2 {
  color: #0056b3; /* Blue color for the main heading */
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}

.academic__container h3 {
  color: #0056b3; /* Blue color for the subheading */
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.academic__container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.academic__container th, .academic__container td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
}

.academic__container th {
  background-color: #f0f0f0;
  font-weight: bold;
  color: #333;
}

.academic__container tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.academic__container tbody tr:hover {
  background-color: #e0f7fa; /* Light hover effect */
}

/* Style for the >C+% column to match the blue color */
.academic__container th:last-child,
.academic__container td:last-child {
  color: #0056b3;
  font-weight: bold;
}
/*****END OF SECTION PERFORMANCE ON ACADEMICS***/


/* Content Section Styling in about page */
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: #024f0f;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    gap: 30px;
    flex-wrap: wrap;
}

/* Left Section Styling */
.left-section,
.right-section {
    flex: 1; /* Allows both sections to grow and shrink equally */
    min-width: 300px; /* Minimum width before wrapping to next line */
    padding: 20px; /* Internal padding for each section */
}

.left-section h2,
.right-section h3 {
    color: #ffffff; /* A deep blue, similar to the main theme */
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #0570e2; /* Underline effect for headings */
    padding-bottom: 10px;
    display: inline-block; /* Makes border-bottom apply only to the text width */
}

.left-section p,
.right-section p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-section {
        flex-direction: column; /* Stack columns vertically on smaller screens */
        padding: 20px;
        gap: 20px; /* Adjust gap for vertical stacking */
    }

    .left-section,
    .right-section {
        min-width: auto; /* Allow full width on small screens */
        padding: 15px;
    }

    .left-section h2,
    .right-section h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 15px;
    }

    .left-section h2,
    .right-section h3 {
        font-size: 1.4em;
    }

    .left-section p,
    .right-section p {
        font-size: 0.95em;
    }
}

/*****START OF ABOUT SCHOOL SECTION IN ABOUT PAGE******/
.about-school-section {
  font-family: sans-serif;
  padding: 40px;
  margin-top: 10px;
  background-color: whitesmoke;
  text-align: center;
}

.section-title {
  color: var(--color-black);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.title-separator {
  background-color: #0047AB; /* Dark blue */
  height: 5px;
  width: 50px;
  margin: 0 auto 20px;
}

.navigation-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.nav-button {
  background-color: #e0e0e0; /* Light grey button */
  color: #333; /* Dark grey text */
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button.active {
  background-image: linear-gradient(140deg, #5610a1, #2575fc);
  color: #fff;
}

.nav-button .icon {
  font-size: 1rem;
  font-weight: 600;
  gap: 4rem;
}

.section-content {
  background-color: #0047AB;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #555; /* Medium grey text */
  line-height: 1.6;
}

.section-content h3 {
  color: #0047AB; /* Dark blue heading */
  margin-top: 0;
  margin-bottom: 15px;
}

.section-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.section-content li {
  margin-bottom: 8px;
}

.section-content a {
  color: #007bff; /* Blue link color */
  text-decoration: none;
}

.section-content a:hover {
  text-decoration: underline;
}

/* Style for the active tab indicator */
.navigation-tabs {
  position: relative;
}

.tab-indicator {
  position: absolute;
  bottom: -5px; /* Adjust position as needed */
  left: 0;
  height: 5px;
  background-color: #1559DA;
  border-radius: 2px;
  width: auto;
  transition: all 0.3s ease-in-out;
  pointer-events: none; /* Make it non-interactive */
}

.tab-content {
  display: none; /* Initially hide all content areas */
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #555;
  line-height: 1.6;
  margin-top: 20px;
}

.tab-content.active {
  display: block; /* Show the active tab's content */
}

.tab-content h3 {
  color: #0047AB;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.tab-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.tab-content li {
  margin-bottom: 8px;
}

.tab-content p {
  margin-bottom: 15px;
  font-size: 1.2rem;
}
/*******END OF NAVIGATION TABS IN SCHOOL*******/



/***MANAGMENT SECTION***/
.manage__section {
  height: 250px; /* Adjust as needed, or set a specific height */
  background-image: url('images/hon.jpg');
  background-size: cover;
  background-position: center; /* Center the image */
}

.intro__manage {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212327d9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
    text-align: left;
}


.intro__manage h4 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}


/****BODY OF MANAGMENT ****SECTION***/
.manage__container {
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 40px 20px; /* Adding some padding */
}

.left-manage {
  display: grid;
}

.left-image {
  width: 100%;
  height: auto;
  position: relative;
  padding-top: 20rem;
  padding-right: 50px;
  padding-left: 5px;
  border-radius: 5px;
}

.main-heading {
  font-size: 2.5em;
  font-weight: 800;
  color: #333; /* Darker color for better readability */
  margin-bottom: 20px;
}

.sub-heading {
  color: #666; /* Adjusted color for a softer look */
  font-weight: 600;
  margin-bottom: 20px;
}

.management-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 30px;
  margin-bottom: 30px;
}

.management-section {
  border: 1px solid #e0e0e0; /* Soft border for better visibility */
  padding: 20px;
  border-radius: 5px;
  background-color: white; /* White background for sections */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

.section-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.section-content {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 15px;
  background-color: white;
}

.section-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Specific adjustments for the "Caucasus" section to span two columns within the right section */
.management-sections > div:nth-child(3) {
  grid-column: span 2; /* Span both columns */
}

.management-section p {
  line-height: 1.6; /* Improve readability */
}

.management-section h2 {
  color: #2c3e50; /* A more vibrant header color */
}



/* --- Media Queries for Magement Section --- */

/* For screens smaller than 992px (e.g., larger tablets, smaller desktops) */
@media (max-width: 992px) {
    .manage__container {
        padding: 30px 15px; /* Reduce overall padding */
        gap: 15px; /* Reduce gap */
    }

    .left-image {
        padding-right: 25px; /* Reduce padding on the image */
    }

    .main-heading {
        font-size: 2em; /* Smaller main heading */
    }

    .sub-heading {
        font-size: 0.95em; /* Smaller sub-heading */
    }

    .management-sections {
        gap: 20px; /* Reduce gap for management sections */
    }

    .section-title {
        font-size: 1.3em; /* Smaller section titles */
    }

    .section-content {
        font-size: 0.95rem; /* Smaller section content text */
    }
}


/* For screens smaller than 768px (e.g., tablets in portrait mode, larger mobile phones) */
@media (max-width: 768px) {
    .manage__container {
        grid-template-columns: 1fr; /* Stack main columns vertically */
        padding: 20px 15px; /* Further reduce padding */
        gap: 30px; /* Increase gap between stacked main sections */
    }

    .left-manage {
        text-align: center; /* Center the image if it's smaller than 100% width */
    }

    .left-image {
        width: 80%; /* Make image slightly smaller to have some side margin */
        padding-top: 0;
        padding-right: 0; /* Remove specific right padding */
        padding-left: 0; /* Remove specific left padding */
        margin: 0 auto; /* Center the image */
    }

    .right-manage {
        padding-top: 0; /* Ensure no top padding pushing content down */
    }

    .main-heading {
        font-size: 1.8em; /* Smaller main heading for mobile */
        text-align: center; /* Center main heading */
    }

    .sub-heading {
        font-size: 0.9em; /* Smaller sub-heading */
        text-align: center; /* Center sub-heading */
    }

    .management-sections {
        grid-template-columns: 1fr; /* Stack management sections vertically */
        gap: 25px; /* Adjust gap */
    }

    .section-title {
        font-size: 1.2em; /* Smaller section titles */
        text-align: center; /* Center section titles */
    }

    .section-content {
        font-size: 0.88rem; /* Smaller section content text */
        text-align: center; /* Center section content */
    }

    .section-image {
        max-height: 150px; /* Adjust max height for section images */
    }

    /* Override the specific span for the "School Administration" section */
    .management-sections > div:nth-child(3) {
        grid-column: span 1; /* Make it span only 1 column on mobile */
    }
}

/* For even smaller screens (e.g., mobile phones in portrait mode) */
@media (max-width: 480px) {
    .manage__container {
        padding: 15px 10px; /* Minimal padding */
        gap: 20px;
    }

    .left-image {
        width: 90%; /* Adjust image width for very small screens */
    }

    .main-heading {
        font-size: 1.5em; /* Smallest main heading */
    }

    .sub-heading {
        font-size: 0.85em; /* Smallest sub-heading */
    }

    .management-sections {
        gap: 15px; /* Smallest gap */
    }

    .section-title {
        font-size: 1em; /* Smallest section titles */
    }

    .section-content {
        font-size: 0.8rem; /* Smallest section content text */
    }

    .section-image {
        max-height: 120px; /* Further adjust max height for section images */
    }
}


/*****START OF GALLERY******/

.gallery-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: var(--color-black);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 15px;
}

.photo-item {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.photo-item img:hover {
  transform: scale(1.05);
}

/* Optional: Add a lightbox effect */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-content img {
  display: block;
  width: auto;
  max-height: 100%;
}

.lightbox-close {
  color: #fff;
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

/****CONTACT SECTION*****/
.contact-container {
  background-color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 3fr 1fr;
  max-width: 900px;
  margin: 20px;
}

/* Left Side: Map */
.map-section {
  background-color:whitesmoke;
  padding: 10px;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 100%; /* Adjust as needed for aspect ratio */
  position: relative;
  height: 0;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
  border-radius: 6px;
}

/* Right Side: Contact Information */
.info-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.contact-heading {
  color: #333;
  font-size: 2.5em;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 5px;
}

.contact-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 50px;
  background-color:#0056b3 ; /* Exam#ple accent color */
}


.social-links {
  margin-bottom: 30px;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  color: #333;
  font-size: 1.2em;
  text-decoration: none;
}

.social-links a:hover {
  color: #007bff; /* Example hover color */
}

.contact-details {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-icon {
  background-color: #007bff; /* Example icon background */
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 1em;
}

.contact-text strong {
  font-weight: bold;
  color: #333;
  display: block;
}

.contact-text span {
  color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
      grid-template-columns: 1fr; /* Stack sections on smaller screens */
  }

  .map-section {
      padding: 15px;
      border-bottom: 1px solid #ddd;
  }

  .info-section {
      padding: 20px;
      align-items: flex-start;
  }

  .contact-heading {
      font-size: 2em;
      margin-bottom: 8px;
  }

  .social-links {
      margin-bottom: 20px;
  }

  .social-links a {
      margin-right: 10px;
      font-size: 1em;
  }

  .contact-item {
      margin-bottom: 10px;
  }

  .contact-icon {
      width: 25px;
      height: 25px;
      font-size: 0.9em;
      margin-right: 10px;
  }
}


/*MEDIA VIEW FOR PAGE1 ON HOME PAGE FOLLOWED BY THE REST OF THE SECTION*/



/* For screens smaller than 768px (common breakpoint for tablets and mobiles) */
@media (max-width: 768px){

    .overlay-content {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background-color:#006400D9;
       display: flex;
       align-items: center; /* Vertically align content */
       justify-content: space-between; /* Put slider on left, text on right */
       padding: 40px; /* Adjust padding around the content */
       box-sizing: border-box; /* Allow height to adjust to content */
    }

    .image-container {
        max-height: none; /* Remove max-height restriction on small screens */
        height: auto; /* Crucial: Let its height be determined by its content */
    }

    .left__intro {
        text-align: center;
        padding-left: 0;
        margin-bottom: 20px;
        flex: unset;
        width: 100%; /* Ensure text block takes full width when stacked */
        box-sizing: border-box; /* Include padding in width */
    }

    .left__intro h4 {
        font-size: 2.2rem;
    }

    .left__intro p {
        font-size: 1.2em;
    }

    .separator1 {
        margin: 10px auto 20px auto;
    }

    .right__intro {
        width: 100%;
        height: auto; /* Ensure height adjusts */
        padding: 0;
        flex: unset;
        max-width: 400px; /* Optional: limit max width of slider on smaller screens */
    }

    .slideshow-container {
        /* height: 250px; - REMOVE or use aspect-ratio instead of fixed height */
        aspect-ratio: 4 / 3; /* Adjust aspect ratio for mobile slider, e.g., 4:3 */
        width: 90%; /* Give it a bit of margin on the sides */
    }

    .slide {
        position: relative; /* Change slide to relative for normal flow within container */
        height: auto; /* Let height adjust to image */
        width: 100%;
    }

    .slide img {
        width: 100%; /* Make images take full width of their slide */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain;
    }
}

/* For even smaller screens (e.g., mobile phones in portrait mode) */
@media (max-width: 480px) {
    .overlay-content {
        padding: 15px;
    }

    .left__intro h4 {
        font-size: 1.8rem;
    }

    .left__intro p {
        font-size: 1em;
    }

    .slideshow-container {
        aspect-ratio: 1 / 1; /* Or adjust to square for very small screens */
        width: 95%;
    }
}



/* Tablets (portrait and below) for the THEMES SECTION */
@media screen and (max-width: 768px) {
  .Page2 h2 {
    font-size: 2.5rem;
    text-align: center;
  }

  .Page2 p {
    font-size: 1.5rem;
    text-align: center;
  }

  .themes__container {
    grid-template-columns: repeat(2, 1fr); /* 2-column grid */
    gap: 1rem;
  }

  .theme {
    width: 100%;
    padding: 1.5em 0;
    margin: 0 auto;
  }

  .overlay__background {
    padding: 20px;
    height: auto;
    text-align: center;
    align-items: center;
  }

  .theme__info {
    padding: 2rem;
  }

  .theme__info p {
    font-size: 1rem;
  }
}

/* Phones */
@media screen and (max-width: 480px) {
  .Page2 {
    background-size: cover;
    background-position: center;
    height: auto;
  }

  .Page2 h2 {
    font-size: 2rem;
    text-align: center;
  }

  .Page2 p {
    font-size: 1.2rem;
    text-align: center;
  }

  .themes__container {
    grid-template-columns: 1fr;

  }

  .theme {
    width: 100%;
    padding: 1.2em;
  }

  .theme__icon {
    font-size: 30px;
    padding: 0.5em;
  }

  .theme__info {
    padding: 1.5rem;
  }

  .theme__info p {
    font-size: 0.95rem;
  }

  .overlay__background {
    padding: 20px;
    height: auto;
    text-align: center;
    align-items: center;
  }
}

/*****MEDIA RESPONSIVE SECTION FOR THE HISTORY SECTION ON HOME PAGE***/

/* Responsive Design */
@media (max-width: 1024px) {
  .Page3 {
    height: 100%;
    padding: 0 2rem; /* Reduced padding for medium screens */
  }

  .history__container {
    grid-template-columns: 1fr; /* Stack items in a single column */
    gap: 3rem;
  }

  .history__left h4 {
    font-size: 3rem; /* Adjust heading size */
    letter-spacing: 2px;
  }

  .history__image {
    width: 80%; /* Adjust image size */
  }

  .history__btn {
    right: 50%; /* Center the button */
    transform: translateX(50%);
    bottom: 2rem; /* Adjust button positioning */
  }
}

@media (max-width: 768px) {
  .Page3 {
    height: 100%;
    padding: 0 1rem; /* Further reduce padding for smaller screens */
  }

  .history__left h4 {
    font-size: 2.5rem; /* Adjust heading size */
    letter-spacing: 1px;
  }

  .history__left p {
    font-size: 0.9rem; /* Adjust paragraph font size */
  }

  .history__image {
    width: 100%; /* Make the image responsive */
  }

  .history__btn {
    width: 100%; /* Make button span full width */
    position: static; /* Reset absolute position */
    bottom: 0;
    transform: none;
    text-align: center;
  }
}


/* Media Queries for Responsiveness for clubs and societies section */
@media (max-width: 1024px) {
  .clubs__container {
      grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }

  .clubs__btn {
      right: 100px; /* Adjust button position */
  }
}

@media (max-width: 768px) {
  .clubs__container {
      grid-template-columns: 1fr; /* 1 column on small screens */
  }

  .overlay__clubs {
      padding: 20px; /* Reduce padding */
  }

  .Page4 h4 {
      font-size: 1.5rem; /* Smaller font size */
  }

  .Page4 p, .Page4 p1 {
      font-size: 0.9rem; /* Smaller font size */
  }

  .clubs__btn {
      right: 50px; /* Adjust button position */
  }
}

@media (max-width: 480px) {
  .Page4 h4 {
      font-size: 1.2rem; /* Further reduce font size */
  }

  .clubs {
      padding: 30px; /* Reduce padding */
  }

  .clubs__btn {
      padding: 8px 16px; /* Adjust button padding */
      font-size: 14px; /* Smaller font size */
  }
}


/* Media query for screens smaller than 1024px (typical for laptops/large tablets) for the ACADEMICS PERFORMANCE SECTION  */
@media (max-width: 1024px) {
  .academics {
    padding: 4rem 6rem; /* Slightly reduce padding */
  }

  .academis__container {
    gap: 3rem; /* Adjust gap */
  }

  .academis__container h4 {
    font-size: 2.2rem; /* Slightly smaller heading */
  }

  .academics__left p {
    font-size: 1rem;
    padding-right: 1rem;
  }

  .academics__right img {
    width: 100%; /* Make image take full width of its container */
  }
}

/* Media query for screens smaller than 768px (typical for tablets) */
@media (max-width: 768px) {
  .academics {
    padding: 3rem 4rem; /* Further reduce padding */
  }

  .academis__container {
    grid-template-columns: 1fr; /* Stack text and image */
    gap: 2rem;
  }

  .academis__container h4 {
    font-size: 2rem;
    text-align: center; /* Center heading */
    grid-column: 1; /* Reset grid column span */
  }

  .academics__left {
    padding-right: 0; /* Remove right padding */
    text-align: center; /* Center text */
  }

  .academics__right {
    order: -1; /* Move image above text */
  }
}

/* Media query for screens smaller than 576px (typical for mobile phones) */
@media (max-width: 576px) {
  .academics {
    padding: 2rem; /* Further reduce padding for small screens */
  }

  .academis__container h4 {
    font-size: 1.8rem;
  }

  .academics__left p {
    font-size: 0.9rem;
  }
}
/******* END OF MEDIA VIEW FOR ACADEMICS*************/


/******************START STYLING OF HAMBURGER MENU*************************/
@media screen and (max-width: 1024px){
    nav{
    padding: 1rem 2rem;
    background: whitesmoke;

    width: 100%;
    height: 5rem;
    position: relative;
    top: 0;

    }

    nav button{
        display: inline-block;
        background: transparent;
        font-size: 1.8rem;
        color: var(--color-black);
        cursor: pointer;
    }

  nav button#close-menu-btn{
    display: none;
    }

    .nav__menu{
        position: fixed;
        top: 5rem;
        right: 5%;
        height: calc(100vh - 5rem);
        width: 18rem;
        flex-direction: column;
        gap: 0;
        z-index: 100;
        display: none; /* Added this line to initially hide the menu */
        overflow-y: auto;
    }

    .nav__menu li{
        width: 100%;
        height: 6rem;
    }

    .nav__menu li a{
        background: #007bff;
        box-shadow: -4rem 6rem 10rem rgba(0,0,0,0.6);
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
    }

    .nav__menu li a:hover{
        background: #1f2641;
        color: var(--color-white);
    }
  }


/**** Media Queries for Header Section ****/

/* For smaller tablets and larger phones (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  header {
        display: none;
    }
  }

/**** Media Queries for Header Section ****/

/* For smaller tablets and larger phones (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .section__head {
    padding: 1rem 3rem;
    align-items: flex-start; /* Align items to the left */
    gap: 1.5rem;
  }

  .section__head p {
    font-size: 0.85rem; /* Slightly reduce font size */
  }

  .header__socials {
    gap: 0.8rem;
  }

  .header__socials li a {
    font-size: 1rem; /* Maintain icon size */
  }
}

/* For mobile devices (max-width: 600px) */
@media screen and (max-width: 600px) {
  .section__head {
    padding: 1rem 1.5rem; /* Further reduce padding for mobile */
    gap: 1rem; /* Adjust spacing for smaller screens */
  }

  .section__head p {
    font-size: 0.8rem; /* Further reduce font size for better readability */
    line-height: 1.4; /* Improve line height for smaller text */
  }

  .header__socials {
    font-size: 0.9rem; /* Slightly reduce icon size on mobile */
    gap: 0.6rem;
  }

  .header__socials li a {
    font-size: 0.9rem; /* Maintain consistency */
  }
}


/* Newsletter Section Styles */
.newsletter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 50px;
    height: 100vh;
    margin-bottom: 30px;
}

.newsletter-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Download Button Styles */
.download-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.download-button:hover {
    background-color: #218838;
}

.file-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}


.newsletter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px; /* Space between filter and grid */
}

#newsletter-filter {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

/* Updated styling for the main newsletter container to use Grid */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; /* Space between the newsletter cards */
    width: 100%;
    max-width: 1200px;
    padding: 0 15px; /* Add some padding on smaller screens */
}

/* Styling for each individual newsletter card */
.newsletter-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to the bottom */
    transition: transform 0.2s ease-in-out;
}

.newsletter-item:hover {
    transform: translateY(-5px);
}

.newsletter-item h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.newsletter-item p {
    font-size: 1em;
    color: #555;
}

.newsletter-item .file-info {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 15px;
}

/* The existing download button and image styles from your provided CSS will still apply */
.download-button {
    margin-top: auto; /* Pushes the button to the bottom of the card */
}

/* Hide the image section if you're not using it in this layout */
.newsletter-image {
    display: none;
}

/* --- Responsive Design for Desktop View --- */
@media (min-width: 768px) {
    .newsletter-section {
        flex-direction: row; /* Row for desktop */
        text-align: left;
        justify-content: space-around;
        align-items: flex-start; /* Align to top for better layout */
    }

    .newsletter-content {
        text-align: left;
        flex: 1; /* Allows content to take available space */
        padding-right: 30px; /* Space between content and image */
    }

    .newsletter-content h2 {
        font-size: 2.2em;
    }

    .newsletter-image {
        flex: 1; /* Allows image to take available space */
        max-width: 400px; /* Limit image size on larger screens */
    }
}


/* Curriculum Section */
.curriculum-section {
    position: relative;
    width: 100%;
    height: 200vh;
    background-image: url(images/DSC_0149.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0; /* This padding will help ensure content doesn't hit edges */
    margin-bottom: 20px;
    overflow: hidden; /* Keep this for containing floating children, if any */
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.curriculum-content {
    background-color: rgba(255, 255, 255, 0.1); /* SLIGHTLY INCREASED OPACITY: From 0.05 for better text contrast */
    padding: 50px;
    border-radius: 12px;
    max-width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff; /* CHANGED: To white for better contrast against the dark overlay */
    overflow: hidden;
    margin-top: 50px; /* NEW: Added top margin to push content down from the top */
    margin-bottom: 50px; /* NEW: Added bottom margin to push content up from the bottom */
}

.curriculum-content h1 {
    font-size: 3em;
    color: #ffffff; /* CHANGED: To white for better contrast */
    margin-bottom: 25px;
    font-weight: 700;
}

.curriculum-content .intro-text {
    font-size: 1.15em;
    margin-bottom: 40px;
    color: #fff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.curriculum-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    align-items: stretch; /* NEW: Ensures columns have the same height */
}

.curriculum-column {
    flex: 1;
    min-width: 320px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* CHANGED: More subtle, transparent border */
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* SLIGHTLY REDUCED OPACITY: From 0.65 to 0.1 for a more subtle frosted look. Also changed to white. */
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #fff;
    backdrop-filter: blur(5px);
}

.curriculum-column h2,
.curriculum-column h3 {
    font-size: 2em;
    color: #ffffff; /* CHANGED: To white for better contrast */
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.curriculum-column ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 15px;
}

.curriculum-column ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.cbc-curriculum strong {
    color: #e7c503; /* CHANGED: Gold color for a nice accent against the dark background */
}

.curriculum-column hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* CHANGED: Transparent border */
    margin: 30px 0;
}

.pathways-list {
    list-style-type: square !important;
    padding-left: 25px;
}

.subject-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Smaller gap between subject lists */
    justify-content: space-around;
    margin-top: 20px;
}

.subject-columns ul {
    list-style-type: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 180px; /* Adjust as needed */
}

.subject-columns li {
    margin-bottom: 8px;
    font-size: 0.98em;
}

.call-to-action {
    margin-top: 50px;
    font-size: 1.25em;
    color: #fff;
    font-style: italic;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* NEW: Added to ensure proper alignment */
    padding-bottom: 50px; /* NEW: Added to create space at the bottom of the section */
}

.site-footer {
    background-color: #0d0c0c; /* DARKER: For better contrast and a more modern look */
    font-size: 1.5rem; /* CHANGED: Reduced to a more standard size */
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .curriculum-content {
        padding: 25px; /* SLIGHTLY REDUCED: A bit less padding on mobile */
    }
    .curriculum-details {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px; /* NEW: Added horizontal padding to prevent cards from touching screen edges */
    }
    .curriculum-column {
        min-width: unset;
        width: 100%;
    }
}
