: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;
}

/* ====== 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;
}

.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;
}

.dropdwn-content {
    font-family:'Teachers';
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #13571571;
    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: #E7D9C7;
    color: var(--text-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;
    }
}



/* ====== 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; 
}

.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;   /* makes it responsive */
  gap: 20px;
  align-items: flex-start;
  margin-left: 1rem;
  flex-direction: row;
}

.contact-container .info h3{
    padding: 0.5rem;
}

/* Info on the left */
.contact-container .info {
  width: 50%;
}

.contact-container .map {
  width: 40%;
  height: auto;
  aspect-ratio: 4 / 3;   /* <-- forces square */    /* optional: stops it from getting too wide */
}

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

.social-media-links a{
    text-decoration: none;
}

/* ==== 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: 30vh;
    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;

}


.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-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: #000000;
    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;
}

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

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