:root{
    --background-color:rgba(231, 217, 199, 0.703);
    --primary-color: #E7D9C7;
    --text-color: #135715;
    --accent-color: #135715;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    height: 100%;
}

body {
    font-family: 'Teachers';
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100%;
    display: flex; /*Made this flex so that the footer stays at the bottom when page is on a larger screen*/
    flex-direction: column;
}

main{
    flex: 1;
}

i{
  color: var(--text-color);
}

/* ====== Navigation Bar ====== */
.nav-container {
    font-family:'Teachers';
    background-color: var(--primary-color); /* Beige background as in design */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
}

#nav-logo {
    height: 50px;
    /* IMAGE PLACEHOLDER - Add school logo here */
}

#nav-logo:hover{
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-evenly; /* Spread items evenly */
    flex: 1; /* Take up available space */
    gap: 0; /* Remove fixed gap so spacing is even */
}

.nav-menu li {
    position: relative;
    flex-shrink: 0;
}

.nav-links, .dropdwn {
    font-family: 'Teachers';
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    height: 50px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links:active{
    background-color: var(--accent-color);
    opacity: 50%;
    border-radius: 3px;
    color: white;
}

.nav-links:hover{
    background-color: var(--accent-color);
    opacity: 50%;
    border-radius: 3px;
    color: white;
}

.nav-links:current{
    background-color: var(--accent-color);
    opacity: 50%;
    border-radius: 3px;
    color: white;
}


.dropdwn-content {
    font-family:'Teachers';
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--accent-color);
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 10;
}

.dropdwn-content a {
    font-family:'Teachers';
    display: block;
    font-weight: bold;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--primary-color);
}

.dropdwn-content a:hover {
    background: var(--primary-color);
    color: var(--accent-color);
}

li:hover .dropdwn-content {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ====== Intro Section ====== */
#intro-section {
    display: flex;
    flex-wrap: wrap; /* stack on smaller screens */
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 3rem;
    min-height: 80vh;
    width: 100%;
}

/* ====== Text Container ====== */
#intro-text-container {
    flex: 2; /* takes 2/3 of the space */
    max-width: 800px;
    position: relative; /* for logo positioning */
    text-align: center;
    padding: 1rem;
}

#intro-text-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url('images/intrologo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.2;
    z-index: 0;
}

#intro-text-container * {
    position: relative;
    z-index: 10;
}

#intro-text-container h2 {
    all: unset;
    font-family: 'Blaka Hollow';
    font-size: 4rem;
    color: var(--accent-color);
}

#intro-text-container p {
    font-family: 'Teachers';
    color: black;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.7; /* more breathing room */
    text-align: center;
}

#intro-text-container button {
    border: none;
    color: var(--text-color);
    background-color: var(--primary-color);
    border-radius: 50px;
    width: 97.93px;
    height: 30.7px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.398);
}

#intro-text-container button:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

/* ====== Image Container ====== */
#intro-image-container {
    flex: 1; 
    text-align: center; 
    border: none; 
}

#intro-image-container img {
    width: 100%; /* fill container width */
    height: auto; /* maintain aspect ratio */
    object-fit: contain;
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
    #intro-text-container,
    #intro-image-container {
        flex: 1 1 100%; /* full width each */
        max-width: 100%;
    }

    #intro-text-container::before {
        width: 250px;
        height: 250px;
        top: 40%;
    }

    #intro-text-container h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  .nav-menu.show {
    display: flex;
    background-color: var(--accent-color);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

   .nav-links, .dropdwn {
        width: 100%;
        height: auto;
        min-width: auto;
        padding: 15px 0;
        color: var(--primary-color);
        justify-content: center;
    }

  .dropdwn-content {
    width: 100%;
    position: static;
    box-shadow: none;
    min-width: auto;
  }

  .dropdwn-content a {
    display: block;
    padding: 8px 0;
    background-color: #E7D9C7;
    color: var(--text-color);
  }

  .dropdwn-content a:hover {
    background: var(--primary-color);
    color: var(--accent-color);
}

  .menu-toggle {
    display: block;
  }

  .nav-links{
    color: var(--primary-color);
  }

  .dropdwn{
    color: var(--primary-color);
  }
}


/* ====== Celebrating Section ====== */

#celebrating button {
    border: none;
    color: var(--text-color);
    background-color: var(--primary-color);
    border-radius: 50px;
    width: 97.93px;
    height: 30.7px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.398);    
}

#celebrating button:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

#celebrating {
  background-image: url("images/celebratingBG.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35%;
 aspect-ratio: 1200 / 263; /*Need to update this for smaller screens, can't read text*/
    width: 100%;
}


.frame-5,
.frame-5 * {
  box-sizing: border-box;
}

.frame-5 {
  position: relative;
  overflow: hidden;
  display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
}
.image-40 { 
    margin-top: 1rem; 
    width: 35%; 
    height: auto; 
    z-index: 10; 
    opacity: 0.9; 
}

@media (max-width: 768px) {
  #celebrating {
 aspect-ratio: 1200 / 660; 
}

.image-40{
  width: 85%;
  padding: 0.5rem;
}

}

.learn-more {
  color: #135715;
  text-align: left;
  font-family: "Teachers-Bold", sans-serif;
  font-size: 13px;
  font-weight: 700;
  position: absolute;
  left: 506.24px;
  top: 194.99px;
  width: 72.43px;
  height: 11.42px;
}

.btn-container{
        display: flex;
        justify-content: flex-end; /* pushes content to the right */
        align-items: center;
        padding-bottom: .5rem;
        padding-right: .5rem;
}

/* ====== Quick Links ====== */



#quick-links {
    flex-direction: column;
  display: flex;
  justify-content: center;
  margin:60px 0px;
  align-items: center;
}
#quick-links h2 {
    font-family: 'Teachers';
    font-size: 2rem;
    color: var(--accent-color);
    padding-bottom: 20px;
}

.Qlinks {
align-items: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));  
  gap: 50px; 
  padding: 30px;
  background-color: var(--primary-color);   
  border-radius: 12px;      
  width: 90%;       
  height: fit-content;           
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.363); 

}

.Qlinks a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--accent-color); /* link background */
  color: white;
  font-weight: bold;
  font-family: 'Teachers';
  border-radius: 8px;
  padding: 10px;
  transition: background 0.3s;
  height: 100px;
}

.Qlinks a:hover {
  background-color: #13571553;
  color: var(--text-color);
}


/* ====== Gallery Section ====== */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    overflow-x: auto;
    align-items: center;
}

.gallery h2{
    font-size: 2rem;
}

    #gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
    }
    #gallery img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

/* ====== Footer ====== */
footer {
    margin-top: 2rem;
    
}

footer ul{
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

footer img{
    padding-left: 1rem
}

.main-footer {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    flex-wrap: wrap;
}

#foot-logo {
    height: 60px;
}

#foot-logo:hover{
    cursor: pointer;
}

.foot-links {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 1rem;
    font-size: 1rem;
}

.amicis-footer {
    display: flex;
    justify-content: space-between; /* Push items to far left & far right */
    align-items: center; /* Keep them vertically aligned */
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.9rem;
}

.amicis-footer a {
    color: inherit; /* Keep the same text color */
    text-decoration: none;
}

.amicis-footer a:hover {
    text-decoration: underline; /* Optional hover effect */
}



/* ====== Responsive ====== */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: #e8d9c8;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
    }
    .nav-menu.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    #intro-section {
        flex-direction: column;
    }
}

#contact-main h1 {
  padding: 1rem;
}

/* Main container with flexbox */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin: 0 1rem;
  align-items: flex-start;
}


.contact-container .map {
  flex: 1 1 300px; /* Same flexible basis for balanced layout */
  max-width: 300px;
  height: auto;
  aspect-ratio: 4 / 3;
  max-width: 100%; /* Prevent overflow */
  margin-top: 0;
}

.contact-container .map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 0;
}

.social-media-links a {
  text-decoration: none;
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

/* Tablet and smaller laptop */
@media (max-width: 992px) {
  .contact-container {
    gap: 25px;
    margin: 0 1rem;
  }
  
  .contact-container .info,
  .contact-container .map {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .contact-container .map {
    margin-top: 0;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  #contact-main h1 {
    padding: 0.75rem 1rem;
    font-size: 1.75rem;
  }
  
  .contact-container {
    flex-direction: column;
    gap: 20px;
    margin: 0 0.75rem;
    padding: 0.5rem 0;
  }
  
  .contact-container .info h3 {
    font-size: 1.25rem;
    padding: 0.25rem 0;
  }
  
  .contact-container .map {
    aspect-ratio: 16 / 9; /* Better mobile aspect ratio */
  }
  
  .contact-container .info {
    order: 2; /* Optional: put info after map on mobile */
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  #contact-main h1 {
    padding: 0.5rem 0.75rem;
    font-size: 1.5rem;
  }
  
  .contact-container {
    gap: 15px;
    margin: 0 0.5rem;
  }
  
  .contact-container .map {
    aspect-ratio: 16 / 9;
  }
  
  .contact-container .info h3 {
    font-size: 1.1rem;
  }
  
  .contact-container .map iframe {
    border-radius: 6px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  
  .contact-container .info {
    flex: 1 1 100px;
  }
  
  .contact-container .map {
    margin-top: 50px;
    flex: 1 1 400px;
  }
}


/* ==== Admin Dashboard ==== */
.main-container-admin{
    padding: 1rem;
}

.main-container-admin button:not(.deleteBtn){
  background: #135715;
  color: var(--primary-color);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s, transform 0.2s;
}

#admin-gallery{
    padding: 0.5rem;
}

#admin-gallery h2{
    padding: 0.5rem;
}

#admin-gallery p{
    padding-bottom: 0.5rem;
}

#admin-resources{
    padding: 0.5rem;
}

#admin-resources h2{
    padding: 0.5rem;
}

#admin-resources p{
    padding-bottom: 0.5rem;
}

select {
  padding: 6px 36px 6px 10px;   /* extra right padding for the arrow */
  border: 2px solid #135715;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #135715;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

input[type="file"] {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid #135715;
  border-radius: 8px;
  background: var(--primary-color);
  cursor: pointer;
  margin-right: 10px;
}

input[type="file"]::file-selector-button{
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  color: var(--primary-color);
  padding: 0.4rem;
}

body{
    overflow-x: hidden;
}

.AboutUs {
    position: relative;
    width: 100vw;
    height: 30vh;
}

.AboutUs img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}

.AboutUs::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 84, 44, 0.295); /* Adjust opacity for desired tint */
    pointer-events: none; /* Allows clicks to pass through */
}

.AboutUs h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    z-index: 1;

}

@media (max-width: 768px) {
    .AboutUs h1{
        font-size: 3rem;
    }
  
}


.why-glen {
  background-color: #02542c;
  display: flex;
  align-items: center;          /* vertically center content */
  justify-content: space-between;
  width: 100vw;
  margin: 0 auto;
  gap: 40px;
  padding: 40px;
}

.why-glen h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color); 
  font-family: 'Teachers';              /* optional accent */
}

.why-glen p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  color: var(--primary-color);
  font-family: 'Teachers';
font-style: italic;
font-weight: 'semi-bold';
}

.why-glen img {
  width: 45%;
  height: auto;
  border-radius: 8px;          
}



.mission_val {
  display: flex;
  align-items: center;       /* vertically centers text with the image */
  justify-content: space-between;
  width: 100vw;
  margin: 0 auto;
  gap: 40px;                 /* space between image and text */
  padding: 40px;
}

.mission_val .imgcontainer img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;       
}

.text-container-beige {
  flex: 1;                   /* take remaining space */
}

.text-container-beige h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #02542D;            /* optional */
  text-align: center;
  font-family: 'Teachers';
}

.text-container-green {
  flex: 1;   
  background-color: #02542D;                /* take remaining space */
  padding: 2rem;
}

.text-container-green a{
  color: whitesmoke;
  text-decoration: underline;

}

.text-container-green h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);            /* optional */
  text-align: center;
  font-family: 'Teachers';
}

.text-container-beige .vision-mission {
  display: flex;
  gap: 40px;                 /* spacing between Vision and Mission blocks */
}

.text-container-beige .vision-mission section {
  flex: 1;                   /* each block takes equal width */
}

.text-container-beige h3 {
    text-align: center;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #02542D;
    font-family: 'Teachers';
}

.text-container-beige p {
    text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: #02542D;
    font-family: 'Teachers';
}

.text-container-green h3 {
    text-align: center;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--primary-color);
    font-family: 'Teachers';
}

.text-container-green p {
    text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary-color);
    font-family: 'Teachers';
}



.lion {
  background-color: #02542D;
  display: flex;
  align-items: center;       /* vertically centers text next to the image */
  justify-content: space-between;
  width: 100vw;
  margin: 0 auto;
  gap: 40px;                 /* space between text and image */
  padding: 40px;
}

.lion h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color); 
  font-family: 'Teachers';           /* optional */
}

.lion p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  color: var(--primary-color);
    font-family: 'Teachers';
    font-style: italic;
}

.lion img {
  width: 45%;
  height: auto;
  border-radius: 8px;       
}





.song {
  display: flex;
  align-items: center;         /* vertically align image and text */
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  padding: 40px;
}

.song .img-container img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;          /* optional */
}

.song .text-container-beige {
  flex: 1;                     /* text takes remaining space */
}

.song h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #02542D;     
  font-family: 'Teachers';         /* optional */
}

.song p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  color: black;
  font-family: 'Teachers';
}

@media screen and (max-width: 768px) {
    .why-glen{
      flex-direction: column;
    }

    .why-glen img{
      width: 100%;
    }

    .mission_val{
      flex-direction: column;
    }

    .lion{
      flex-direction: column;
    }

    .lion img{
      width: 100%;
    }

    .song{
      flex-direction: column;
    }
}

/* === Modal Styling === */
dialog.modal-event {
  position: relative;
  z-index: 10;
  margin: 10% auto;
  padding: 2rem;
  width: min(90%, 500px); /* responsive width */
  background-color: var(--accent-color);
  border-radius: 12px;
  gap: 1.2rem; /* spacing between elements */
  color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-event h1 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* === Form Content === */
.event-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Labels */
.event-content label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--primary-color);
}

/* Inputs & Textarea */
.event-content input,
.event-content textarea {
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-content input::placeholder,
.event-content textarea::placeholder {
  color: var(--text-color);
}

.event-content input:focus,
.event-content textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* === Button === */
.btn-container1 {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

#event-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

#event-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

#event-btn:active {
  transform: translateY(0);
}

.deleteBtn{
  border: 1px solid red;
  color: red;
  font-weight: bold;
  background-color: transparent;
  font-family: 'Teachers';
  border-radius: 4px;
  font-size: 1rem;
  padding: 0.2rem;
}

.deleteBtn:hover{
  cursor: pointer;
  color: var(--primary-color);
  background-color: red;
}

#fileListGal li {
  display: flex;
  justify-content: space-between; /* puts file name left, button right */
  align-items: center;
  padding: 0.2rem 0;
}

.subList li {
  display: flex;
  justify-content: space-between; /* puts file name left, button right */
  align-items: center;
  padding: 0.2rem 0;
}

/* ==== RESOURCES PAGE =====*/
.Resources {
    position: relative;
    width: 100vw;
    height: 30vh;
}

.Resources img {
    width: 100vw;
    height: 30vh;
    object-fit: cover;
    display: block;
}

.Resources::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 84, 44, 0.295); /* Adjust opacity for desired tint */
    pointer-events: none; /* Allows clicks to pass through */
}

.Resources h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    z-index: 1;
}

.main-container-resources h2{
    margin-left: 1rem;
    margin-top: 0.5rem;
}

#exam-timetable{
  margin-top: 0.5rem;
  margin-left: 2rem;
  margin-bottom: 0.5rem;
}

#stationery-list{
  margin-top: 0.5rem;
  margin-left: 2rem;
  margin-bottom: 0.5rem;
}

#what-to-learn{
  margin-top: 0.5rem;
  margin-left: 2rem;
  margin-bottom: 0.5rem;
}

/* ==== NEWS PAGE =====*/
.Newsletters {
    position: relative;
    width: 100vw;
    height: 30vh;
}

.Newsletters img {
    width: 100vw;
    height: 30vh;
    object-fit: cover;
    display: block;
}

.Newsletters::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 84, 44, 0.295); /* Adjust opacity for desired tint */
    pointer-events: none; /* Allows clicks to pass through */
}

.Newsletters h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    z-index: 1;
}

@media (max-width: 768px) {
    .Newsletters h1{
        font-size: 3rem;
    }
  
}



.main-container-news h2{
    margin-left: 1rem;
}

#newsletter{
  margin-top: 1rem;
  margin-left: 2rem;
}

/* ======= ADMISSIONS PAGE ======= */

#admissions{
  margin-left: 1rem;
  margin-top: 1rem;
}

#admission h1, h2, p{
  padding: 0.25rem;
}

.video-container{
  padding: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe{
  width: 80%;
  height: 80%
}


/* ======= Academics ======= */
.phase-green {
  background-color: #02542c;
  display: flex;
  align-items: center;          /* vertically center content */
  justify-content: space-between;
  width: 100vw;
  margin: 0 auto;
  gap: 40px;
  padding: 40px;
}
.phase-beige {
  background-color: #E7D9C7;
  display: flex;
  align-items: center;          /* vertically center content */
  justify-content: space-between;
  width: 100vw;
  margin: 0 auto;
  gap: 40px;
  padding: 40px;
}

.phase-green h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color); 
  font-family: 'Teachers';              /* optional accent */
}

.phase-green p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  color: var(--primary-color);
  font-family: 'Teachers';
font-style: italic;
font-weight: 'semi-bold';
}

.phase-green img {
  width: 45%;
  height: auto;
  border-radius: 8px;          
}
.phase-beige h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color); 
  font-family: 'Teachers';   
}

.phase-beige p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  color: var(--text-color);
  font-family: 'Teachers';
font-style: italic;
font-weight: 'semi-bold';
}

.phase-beige img {
  width: 45%;
  height: auto;
  border-radius: 8px;          
}

@media screen and (max-width: 768px) {
    .phase-beige{
      flex-direction: column;
    }

    .phase-green{
      flex-direction: column;
    }

    .phase-beige img{
      width: 100%;
    }

    .phase-green img{
      width: 100%;
    }
  }

.phase-intro {
  background-color: #E7D9C7;
  display: flex;
  align-items: center;          /* vertically center content */
  justify-content: space-between;
  width: 100vw;
  margin: 0 auto;
  gap: 40px;
  padding: 40px;
}

.HistoryHeader {
    position: relative;
    width: 100vw;
    height: 30vh;
}

.HistoryHeader img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}

.HistoryHeader::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 84, 44, 0.6); /* Adjust opacity for desired tint */
    pointer-events: none; /* Allows clicks to pass through */
}

.HistoryHeader h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    z-index: 20;

}

.fixed-background-section {
    background-image: url('images/IMG-20251003-WA0024.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /*keeps image fixed in place*/
    height: 40vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.fixed-background-section2 {
    background-image: url('images/IMG-20251003-WA0024.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /*keeps image fixed in place*/
    height: 40vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.fixed-background-section h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    z-index: 1;

}

/* ==== STAFF ==== */


#intro-section-staff {
    display: flex;
    flex-wrap: wrap; /* stack on smaller screens */
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 3rem;
    min-height: 80vh;
    width: 100%;
}

/* ====== Text Container ====== */
#intro-text-container-staff {
    flex: 1; /* takes 2/3 of the space */
    max-width: 800px;
    position: relative; /* for logo positioning */
    text-align: center;
    padding: 1rem;
}

#intro-text-container-staff::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url('images/intrologo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.2;
    z-index: 0;
}

#intro-text-container-staff * {
    position: relative;
    z-index: 10;
}

#intro-text-container-staff h2 {
    all: unset;
    font-family: 'Blaka Hollow';
    font-size: 4rem;
    color: var(--accent-color);
}

#intro-text-container-staff p {
    font-family: 'Teachers';
    color: black;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.7; /* more breathing room */
    text-align: center;
}
/* ====== Image Container ====== */
#intro-image-container-staff {
    flex: 1; 
    text-align: center; 
    border: none; 
}

#intro-image-container-staff img {
    width: 100%; /* fill container width */
    height: auto; /* maintain aspect ratio */
    object-fit: contain;
    border-radius: 8px;
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
    #intro-text-container-staff,
    #intro-image-container-staff {
        flex: 1 1 100%; /* full width each */
        max-width: 100%;
    }

    #intro-text-container-staff::before {
        width: 250px;
        height: 250px;
        top: 40%;
    }

    #intro-text-container-staff h2 {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .resource-box {
        height: auto;
        min-height: 250px;
        margin: 20px 10px;
    }
    
    .resource-content {
        padding: 20px;
        margin: 15px;
    }
    
    .resource-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .resource-content h2 {
        font-size: 18px;
    }
}

.staff-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  justify-items: center;
  padding: 0 20px;
}

.staff-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 200px;
  transition: transform 0.3s ease;
  text-align: center;
  padding: 15px;
}

.staff-card:hover {
  transform: scale(1.05);
}

.staff-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.staff-card h3 {
  margin-top: 10px;
  color: var(--accent-color);
}

.staff-card p {
  color: var(--accent-color);
  font-size: 0.9em;
}

/* Header row */
thead tr {
  background-color: #f5f5f5;
  text-align: left;
  color: #333;
  font-weight: bold;
}

/* Header and data cells */
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

/* Zebra striping for rows */
tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Hover effect for rows */
tbody tr:hover {
  background-color: #f0f8ff;
  transition: background-color 0.2s ease-in-out;
}

#our-lions{
  display: flex;
  flex-direction: row;
}

#our-lions .text-container-beige{
  padding-top: 0.8rem;
  padding-left: 0.8rem;
}

#theHistory .text-container-beige{
  padding: 1.2rem;
}

.img-container-lions {
  display: flex;
  align-items: center;
  align-self: start;
  justify-content: center;
  width: 35%;
  padding: 0.8rem;
}

.img-container-lions img{
  height: 60vh;
  border-radius: 10px;
}

@media (max-width: 768px) {
  #our-lions{
    flex-direction: column;
  }

  .img-container-lions{
    width: 100%;
  }

}

table{
  width: 75%;
  height: 50%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
}
th{
  color: white;
  padding: 10px;
  text-align: left;
  height: 50px;
  background-color: #02542c;
}
td {
  padding: 10px;
  text-align: left;
  height: 50px;
  background-color: #fafafa;
}
.fees-text p, h3{
  font-family: 'Teachers';
    font-size: 1.1rem;
    line-height: 1.7; /* more breathing room */
    text-align: left;
    padding-left: 10%;
}

.fees-text ul{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-family: 'Teachers';
  font-size: 1.1rem;
}

.bank-table{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-family: 'Teachers';
  font-size: 1.1rem;
  width: 50%;
}


.resource-box {
    position: relative;
    height: 300px;
    margin: 30px 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #02542c;
}


.resource-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #02542c;
}

.resource-content {
    position: relative;
    z-index: 2;
    background-color: white;
    margin: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* vertical scroll when the content overflows */
}

.resource-content h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.resource-content ul {
    list-style-type: none;
    flex-grow: 1;
}

.resource-content li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.resource-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.resource-content a:hover {
    color: #1e7c22;
    text-decoration: underline;
}

.resource-content a i {
    margin-right: 8px;
    font-size: 14px;
}

#login{
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login img{
  width: 15%;
  padding: 1rem;
  margin: 0.5rem;
}

#login h2{
  margin-bottom: 0.5rem;
}

#login input{
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  box-sizing: border-box;
  width: 50%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#login button{
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

#login button:hover{
  background-color: var(--primary-color);
  color: var(--accent-color);
}

.close-btn i{
  color: var(--primary-color);
}