@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libertinus+Math&family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Inter:700|Inter:400');

*, *::before, *::after {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html, body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: var(--background-color);
    max-width: 100%;
}

/* Light Theme */
:root {
    --primary-color: #1f1fb6;
    --secondary-color: #f0b422;
    --background-color: #f9f9f9;
    --nav-link-show: #ffffffb8;
    --home-blur: rgba(42, 92, 255, 0.675);
    --text-color: #000;
    --text-on-blue-color: #fff;
    --faint-text-on-blue-color: #cbc7c7;
    --hover-link-color: #797979;
    --bottom-background: url(/pics/overlay-bottom.png);
    --section-header: 'Inter', sans-serif;
    --text-font: 'Inter', sans-serif;
}
/* Dark Theme */
body.dark-theme {
    --primary-color: #3535c5;
    --secondary-color: #f0b422;
    --nav-link-show: #000000aa;
    --nav-link-hovercolor: #f0b422;
    --background-color: #121212;
    --home-blur: rgba(30, 64, 175, 0.6);
    --text-color: #e0e0e0;
    --text-on-blue-color: #ffffff;
    --faint-text-on-blue-color: #b0b0b0;
    --hover-link-color: #f0b422;
    --bottom-background: url(/pics/overlay-bottom-dark.png);
}



header {
    width: 100%;
    height: 80px;
    background-color:  var(--background-color);
    border-bottom: 2px solid black;
    position: fixed;
    top: 0;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    z-index: 10;
}
.logo {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content:flex-start;
    background-color: var(--background-color);
}
.agape-logo {
    width: 90px;
    height: 80px;
}
.title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    transition: 1.5s;
    width: 100%;
    min-width: 600px;
}

#nav-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-color);
    margin-left: 80px;
    z-index: 7;
}

.hamburger {
    display: none;
    font-size: 40px;
    cursor: pointer;
    z-index: 7;
    color: var(--primary-color);
}
/*theme button*/
.theme-btn {
    position: fixed; /* stays visible on scroll */
    background-color: transparent;
    color: var(--text-on-blue-color);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1000; /* above other elements */
    animation: fadeInOut 5s infinite;
}
@keyframes fadeInOut {
  0%, 40% { opacity: 0.8; }   /* visible */
  50%, 90% { opacity: 0; }  /* invisible */
  100% { opacity: 0.8; }      /* back visible */
}



/* Nav Links */
#nav-links {
    display: flex;
    gap: 20px;
    background-color: var(--background-color);
}

#nav-links li {
    list-style: none;
    width: 100%;
}

.nav-link {
    color: var(--text-color);
    font-weight: 530;
    font-family: sans-serif;
    font-size: 1.3rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--nav-link-hovercolor));
    transition: width 0.4s ease;
}

.nav-link:hover {
    color: var(--nav-link-hovercolor);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:focus,
.nav-link:active {
    outline: none;
    box-shadow: none;
    border: none;
}

#home {
    width: 100%;
    height: 100vh;
    max-height: 1000px;  
}
.fill {
    width: 100%;
    height: 100%;
}
.background {
    height: 100%;
    width: 100%;    
    background-image: url('/pics/group photo.jpg');
    background-repeat: repeat;
    z-index: 3;
}

.blur {
    background-color: var(--home-blur);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    opacity: 0.5;
}

.bottom {
    width: 100%;
    height: 70px;
    position: absolute;
    bottom: 0;
    margin-top: -72px;
    z-index: 4;
    background-image: var(--bottom-background);
    background-color: transparent;
    border: none;
}
.introduction {
    position: absolute;
    top: 150px;
    left: 50px;
    width: 70%;
    height: fit-content;
    font-family: var(--section-header), sans-serif;
    font-size: 1.4rem;
    color: var(--text-on-blue-color);
    font-weight: bold;
    z-index: 5;
    background-color: transparent;
    transition: 2s smooth;
}
.welcome-statement {
    font-size: 3rem;
    margin-bottom: -30px;
    font-family: "Libertinus Math", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.school-icon {
    margin-left: -36px;
}

#about {
    height: fit-content;
    width: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    margin-top: 80px;
}
.about-us {
    font-family: var(--text-font) , sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.3rem;
    text-align: center;
    padding-top: 20px;
    transition: 1s;
}
.top-left-text {
    padding-left: 20px;
    padding-right: 20px;
    left: 50px;
    font-size: 1.2rem;
    font-family: var(--text-font);
    color: var(--text-color);
    font-weight: 600;
}
.about-flexbox {
    display: flex;
    align-items: flex-start;   /* align top edges */
    gap: 20px;                /* space between pics and text */
    margin-top: 15px;
    margin-bottom: 50px;
}
.about-us-text {   
    flex: 2;
    width: 50%;
    max-width: 50%;
    padding: 20px;
    transition: max-height 0.5s ease;
    font-size: 1.5rem;
    font-family: "Lato", sans-serif;
    font-style: normal;
}

.about-us-miniheaders {
    text-decoration: underline;
}

/* See More Button */
.see-more-container {
    text-align: center;
    margin-top: 15px;
}

.see-more {
    background: transparent;
    color: var(--text-color);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--text-font);
    animation: flash 3s infinite;

}

.see-more:hover {
    background: cream;
    border: 1px solid var(--primary-color);
}
.moreText { 
    max-height: 0;             /* start hidden */
    overflow: hidden;          /* hide content when collapsed */
    transition: max-height 1.6s ease;
}
.moreText.show {
    max-height: 1000px;         /* expand to show content */
    opacity: 1;            /* fade in */
    overflow: visible;         /* allow content to be visible */
}


.about-us-pics {
    flex: 1;
    max-width: 40%;       /* limit container width */
    margin-top: 30px;
    position: relative;   /* key: relative container */
}

.about-us-pics img {
    border-radius: 8px;
    display: block;
}

/* Background logo image */
.about-image:nth-of-type(1) {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;   /* stays in normal flow */
    z-index: 1;
}

/* Top-left overlay image */
.about-image:nth-of-type(2) {
    position: absolute;
    width: 50%;           /* half size */
    height: auto;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 2;
    }

    /* Bottom-right overlay image */
    .about-image:nth-of-type(3) {
    position: absolute;
    width: 50%;           /* half size */
    height: auto;
    object-fit: cover;
    bottom: 0;
    right: 0;
    z-index: 2;
}


/*Responsive movements*/
@media screen and (max-width: 768px) {
    .about-us-pics {
        position: absolute;
        width: 100%;
        height: 100vh;
        z-index: -1;
        filter: blur(8px);
    }
    .about-image:nth-of-type(2) {
        display: none;
    }
    .about-image:nth-of-type(3) {
        display: none;
    }
    
    .about-us-text {
        margin-left: 0;
        padding: 20px;
        position: relative;
        z-index: 1;
        background: var(--background-color);
    }

}
.about-us-video {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 50px auto;
    display: block;
    border-radius: 10px;
    margin-top: 200px;
}
.about-us-video-inside {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.about-theme {
    margin-top: 70px;
    height: 150px;
    width: 100%;
    text-align: center;
    position: relative;
    top: 0;
    color: var(--text-on-blue-color);
    z-index: 8;
}
.about-theme hr {
    width: 100%;
    height: 5px;
    background-color: var(--text-color);
    border: none;
    margin: 0 auto;
}
.quote-one {
    font-family: "Libertinus Math", system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    font-style: normal;
    transition: 3s;
    background-color: var(--primary-color);
    padding: 10px;
}



/* School Fees Section */
.fees-section {
    background: var(--background-color);
    padding: 60px 20px;
    text-align: center;
    box-shadow:  4px 5px #f0b422;
}

.fees-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 5px;
}

.fees-title {
    font-size: 2.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.fees-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 30px;
}
.fees-card, .details-card {
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 12px;
    box-shadow:  4px 5px #f0b422;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}
.accdetails {
    color: var(--text-color) !important;
}
.bankname {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: underline
    var(--secondary-color) 2px;
    font-family: 'Merriweather', serif;
}

.fees-card ul {
    list-style: none;
    padding: 0;
}

.fees-card li {
    font-size: 1.4rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.fees-card li:last-child {
    border-bottom: none;
}

.note {
    font-size: 1.3rem;
    color: #888;
    margin-top: 10px;
}

.details-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.details-card p {
    font-size: 1.2rem;
    color: #555;
}

@media (max-width: 600px) {
    .fees-title {
    font-size: 1.5rem;
    }

    .fees-card, .details-card {
    padding: 15px;
    }
}

.subject-section {
    margin-top: 20px;
    padding: 50px 20px;
    background-color: var(--background-color);
    text-align: center;
}

.subject-section h2 {
    color: var(--text-color);
    font-size: 2em;
    margin-bottom: 30px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.program-card {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow:  4px 5px #f0b422;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    height: 60px;
    margin-bottom: 15px;
}

.program-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.program-card p {
    font-family: "Playwrite AU QLD", cursive;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    margin-left: 20px;
    margin-right: 20px;
    font-size: 1.5em;
    font-family: "Libertinus Math", system-ui;
    font-weight: 550;
    font-style: normal;
    color: var(--text-color);
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    margin-top: -50px;
    z-index: 10;
    background-color: transparent;
    color: var(--hover-link-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 0;
}
.scroll-btn:hover {
    background-color: blue;
}
.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}


#staff {
    height: auto;
    width: 100%;
    background-color: var(--primary-color);
    margin-top: 100px;
}
.our-teachers {
    font-family: var(--section-header), sans-serif;
    text-align: center;
    font-size: 1.6rem;
    padding-top: 10px;
    color: var(--text-on-blue-color);
}

.scroll-container {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
}

.scroll-box {
    flex: 0 0 auto;
    width: 90%; /* responsive width */
    max-width: 450px;
    min-width: 250px;
    height: 500px;
    color: var(--text-color);
    font-size: 1rem;
    scroll-snap-align: start;
    border-radius: 10px;
    margin-left: 10px;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}
.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Teacher image */
.member {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
}

/* Description overlay */
.teacher-description {
    position: relative;
    top: -180px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: #fbfbfbaa;
    color: #000;
    padding: 10px;
    width: 90%;
    margin: 0 auto;
    text-align: left;
    font-size: 1.2rem;
    font-family: var(--text-font), serif;
}

/* For specific smaller image */
.mandawala {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.kachimanga {
    object-fit: cover;
    object-position: 0 1px;
}
.banda {
    object-fit: cover;
    object-position: 0 5px;
}
.Sitima {
    object-fit: cover;
}
.staff-security {
    object-fit: cover;
    object-position: 0 3px;
}

.facilities-title {
    margin-top: 50px;
    text-align: center;
    font-size: 2.5rem;
    font-family: var(--section-header), serif;
    font-weight: 700;
    color: var(--text-color);
}
.facilities-box {
    padding: 50px 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    display: flex;
    flex-wrap: wrap;     /* allow cards to wrap on smaller screens */
    gap: 20px;           /* space between cards */
    justify-content: center;
    align-items: flex-start; 
}
.facilities-card {
     flex: 1 1 45%;        /* take about half the row each */
    min-width: 300px;     /* so they don’t get too small */
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 4px 5px var(--secondary-color);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
    align-self: flex-start;
}
.facilities-card:hover {
    background-color: var(--background-color);
}

.facilities-card h3 {
    margin: 0;
    font-size: 1.7em;
    color: var(--primary-color);
    text-align: center;
}
.arrow {
    font-size: 2.5em;
    transition: transform 0.3s ease;
}
.card-header {
    display: flex;
    align-items: center;      /* vertical middle */
    justify-content:center; /* arrow to right */
}

.facilities-card.active .arrow {
    transform: rotate(180deg);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-left: 30px;
}
.gallery-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}
.facilities-card.active .gallery-wrapper {
    max-height: 1500px;
    opacity: 1;
}

.gallery img {
    width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 1.s;
}
.gallery img:hover {
    transform: scale(1.1);
}
#school-life-activities {
    height: auto;
    width: 100%;
    background-color: var(--background-color);
}
.school-life-title {
    padding-top: 5px;
    font-size: 1.6rem;
    color: var(--text-color);
    font-family: var(--section-header),sans-serif;
    text-align: center;
}
.school-life {
    width: 100%;
    background-color: transparent;
    display: flex;
    overflow-x: scroll; 
    scroll-behavior: auto;
    padding: 5px;
}

.school-life-box {
    flex: 0 0 auto;
    max-width: 450px;
    min-width: 300px;
    height: 500px;
    color: var(--text-on-blue-color);
    font-size: 1rem;
    scroll-snap-align: start;
    border-radius: 10px;
    margin-left: 20px;
    background-color:var(--primary-color);
}

.school-life-box h3 {
    position: relative;
    top: -33px;
    height: 50px;
    text-align: center;
    font-size: 2rem;
    background-color: var(--primary-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-family: var(--section-header), sans-serif;
    font-weight: bold;
    font-style: normal;
}
.school-life-box p {
    position: relative;
    top: -90px;
    color: var(--text-on-blue-color);
    font-size: 1.5rem;
    padding: 10px;
    font-family: "Lato", sans-serif;
    text-align: left;
}

.school-life-box img {
    position: relative;
    top: -70px;
    width: 450px;
    height: 300px;
}


.achievements-section {
    background: var(--background-color);
    padding: 60px 20px;
    text-align: center;
}

.achievements-section h2 {
    font-size: 2.5em;
    font-family: var(--section-header), serif;
    margin-bottom: 40px;
    color: var(--text-color);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--background-color);
    padding: 20px;
    border-radius: 15px;
    width: 180px;
    box-shadow:  4px 5px var(--secondary-color);
    transition: transform 0.3s ease;
    
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card h3 {
    font-size: 2em; 
    color:var(--primary-color);
}
.stat-card p {
    font-size: 1.5rem;
    font-family: "Winky Rough", sans-serif;
    font-optical-sizing: auto;
    color: var(--text-color);
}
.awards-section h3,
.alumni-section h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-family: var(--section-header), serif;
    color: var(--text-color);
}

.awards-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.awards-grid img {
    height: 120px;
    transition: transform 0.3s;
}

.awards-grid img:hover {
    transform: rotate(10deg) scale(1.1);
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.alumni-card {
    background: var(--background-color);
    border-left: 5px solid #f0b422;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.alumni-card img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.alumni-card img:first-of-type {
    object-position: 0 2px;
}
.alumni-card blockquote {
    font-style: italic;
    color: var(--text-color);
    font-size: 1.4rem;
}
.alumni-card p {
    color: var(--text-color);
    margin-top: 5px;
    font-size: 1.3rem;
}

#news {
    background-color: var(--background-color);
    font-family: var(--text-font), sans-serif;
}
#news h2 {
    text-align: center;
    font-family: var(--section-header), sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--text-color);
}
.news-prompt {
    text-align: center;
    font-family: sans-serif;
    font-size: 1.5rem;
    color: var(--text-color);
}

.news-card-main {
    display: grid; 
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;  
    overflow-x: scroll;
}
/* Keyframes for flashing */
@keyframes flash {
    0%   { box-shadow: 0 0 10px var(--primary-color); }
    50%  { box-shadow: 0 0 10px var(--background-color); }
    100% { box-shadow: 0 0 10px var(--primary-color); }
}

/* Flashing iframe */
.facebook-embed:first-of-type {
    animation:  2s infinite;
    border: 1px solid #0000ff;
}



#contact {
    background: var(--primary-color);
    width: 100%;
    height: 100%;
    color: var(--text-on-blue-color);
}
.contact-title {
    text-align: center;
    font-size: 1.5rem;
    font-family: var(--section-header), sans-serif;
}
.content {
    background: rgba(0, 0, 0, 0.345); /* semi-transparent black */
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px); /* glass blur */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    color: white;
    margin-right: 100px;
    margin-left: 100px;
    padding: 10px;  
    height: fit-content;
    display: flex;
    align-content: space-around;
    gap: 30%;
}

.related-links-title, .related-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
}
.related-links a {
    text-decoration: none;
    color: var(--text-on-blue-color);
    width: fit-content;
    font-family: var(--text-font);
    font-size: 1.1rem;
}

.related-links a:hover {
    color: var(--hover-link-color);
    transition: 1s smooth;
}
.related-links-title h3 {
    margin-top: 0;
    margin-bottom: -5px;
    font-family: 'Poppins', sans-serif;
}
.embedded-map {
    display: flex;
    justify-content: center; 
    align-items: center;   
    width: auto;
    font-family: var(--text-font), sans-serif;
    font-size: 1.2rem;
    margin: 20px 0 20px 0; 
}
.embedded-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,2);
}
.map-content {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-on-blue-color);
    margin-top: 10px;
    background-color: #4444e662;
    padding: 0 30px 0 30px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding : 20px;
    padding-bottom: 30px;text-align: center;
}
.contact-link a {
    color: var(--text-on-blue-color);
    font-size: 1.3rem;
    font-family: var(--text-font), sans-serif;
    text-decoration: none;
    
}
.contact-link a:hover {
    color: var(--hover-link-color);
}
.contact-link-icons {
    display: flex;
    gap: 20px;
    flex-direction: row;
    justify-content: center;
}
.contact-link-icons a {
    text-decoration: none;
    color: var(--text-on-blue-color);
    font-size: 3.5rem;
}
.contact-link-icons a:hover {
    color: var(--hover-link-color);
    transition: 0.3s ease;
}

.news-ticker {
    width: 100%;                
    overflow: hidden;           
    background: rgba(0, 0, 0, 0.5); 
    filter: brightness(80%);       
    color: var(--text-on-blue-color);              
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    position: absolute;
    border: #000 1px solid;
}

.news-ticker p {
    display: inline-block;
    white-space: nowrap; 
    padding-left: 100%;         
    animation: slide 50s linear infinite; 
}

@keyframes slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.news-ticker p:hover {
    animation-play-state: paused;
}

.related-documents {
    width: 100%;
    height: auto;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.related-documents a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-family: var(--text-font);
    margin: 10px 0;
}
.related-documents a:hover {
    color: var(--hover-link-color);
    transition: 0.3s ease;
}

.ending {
    color: var(--text-color);
    font-family: var(--text-font);
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    padding-top: 20px;
    margin-top: 70px;
    background-color: var(--background-color);
}

.copyright, .report {
    margin-top: 20px;
    margin-left: 20px;
}
.report a {
    color: var(--text-color);
    text-decoration: none;
}
.report a:hover {
    color: var(--primary-color);
    transition: 2s smooth;
}



/* On other devices*/
/* Small devices (phones, less than 600px) */
@media  (min-width: 200px) and (max-width: 300px) {
    .title {
        font-size: 1rem !important;

    }
    .agape-logo {
        width: 70px !important;
    }
    
}
@media screen and (min-width: 150px) and (max-width: 600px)  {
    
    html {
        max-width: 100%; 
    }
    body {
        width: 100%;
        overflow-x: hidden;
    }
    header {
        height: 80px;
        max-height: 110px;
        width: 100%;
    }
    .logo {
        width: 100%;
        height: 75px;
    }
    .agape-logo {
        height: 100%;
        width: 100%;
    }
    .title {
        margin-top: 30px;
        font-size: 1.3rem;
        text-align: left;
        word-wrap: normal;
        min-width: 85%;
        height: 100%;
    }
    .theme-btn {
        position: fixed;
        top: 0px;
        right: 5px;
        z-index: 1000;
        font-size: 1.5rem;
    }
    #nav-bar {
        width: 0px;
    }
    .nav-link {
        font-size: 1.2rem;
        
    }
    #nav-links {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        pointer-events: none;
        position: absolute;
        top: 0px;
        right: 0;
        background: var(--nav-link-bgcolor);
        width: 220px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        border-radius: 8px;
        color: var(--text-color);
        margin: 0;
    }
    #nav-links.show {
        position: fixed;
        top: 0;
        opacity: 1;
        pointer-events: auto;
        display: flex;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        height: auto;
        min-height: 250px;
        padding: 0 0 0 0px;
        overflow: scroll;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        background-color: var(--nav-link-show);
    }
    .hamburger {
        display: block;
        position: absolute;
        top: 30px;
        right: 15px;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 20;
        transition: 0.3s ease;
    }

    .related-links-title {
        margin-top: -100px;
        font-weight: 800;
    }
    .logo {
        width: 300px;
    }
    
    #home {
        width: 100%;
        height: 100vh;
        min-height: 800px;
        max-height: 900px;
    }
    .fill {
        width: 100%;
        height: 100vh;
        min-height: 800px;
        max-height: 900px;
    }
    .background {
        margin-top: 80px;
        height: 100vh;
        min-height: 800px;
        max-height: 900px;
        background-image: url('/pics/group photo.jpg');
        background-position: -600px -60px;
    }
    .blur {
        height: 100vh;
        min-height: 800px;
        max-height: 900px;
        width: 100%;
        min-width: 100%;
        margin-top: 80px;
    }
    .bottom {
        position: relative; 
        width: 100%;
        height: 100px;
        z-index: 5;
        
    }
    .introduction {
        position: absolute;
        top: 500px;
        left: 10%;
        width: auto;
        height: auto;
        padding: 0;
        margin-top: -150px;
        transition: 3s ease ;
    }
    .welcome-statement {
        font-size: 2.2rem !important;
        margin-bottom: -20px;
    }
    
    #about {
        padding-bottom: 0;
    }
    .about-us-pics {
        display: none;
    }
    .about-us-text {
        min-width: 100%;
        font-size: 1.2rem;
    }
    .about-us-video {
        width: 90%;
        height: auto;
        max-height: 400px;
        position: relative;
    }
    .see-more {
        font-size: 1.3rem;
    }
    .about-us-video-inside {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: cover;
    }
    .school-life-title {
        font-size: 1.4rem;
    }
    .school-life-box {
        max-width: 350px;
        min-width: 300px;
        height: 350px;
    }
    .school-life-box h3 {
        height: 50px;
    }
    .school-life-box img {
        width: 350px;
        height: 200px;
    }
    /*teachers box*/
    #staff {
        height: 100%;
    }
    .scroll-box {
        flex: 0 0 auto;
        max-width: 250px;
        min-width: 200px;
        height: 300px;
        min-width: 220px;
        padding-left: 10px;
        scroll-snap-align: end;
    }

    .teacher-description {    
        left: -100px;
        width: 220px;
        margin-left: 20px;
        font-size: 1.4rem;
        /* top controls position of text box*/
        top: -170px;
        text-align: left;
    }

    .scroll-director {
        margin-left: 20px;
        padding-left: 60px;
        margin-right: 30px;
    }
    .director {
        margin-left: 20px;
    }
    .mandawala {
        height: 300px;
        width: 200px;
        object-fit:scale-down;
    }
    .member {
        height: 300px;
        width: 220px;
        object-fit: cover;
        margin-left: -80px;
    }
    .news-card {
        margin-left: 10px;
        width: 100%;
    }
    .news-title {
        margin-top: 0;
        width: 90%;
        font-weight: bold;
    }
    .news-date {
        position: relative;
        width: 100%;
    }
    .news-content {
        word-wrap: break-word;
        height: auto;
    }

    .gallery img {
        width: 100%;
        height: auto;
    }
    .alumni-card img {
        width: 250px;
        height: 250px;

    }

    #contact {
        background: var(--primary-color);
        text-align: center;
        height: 100%;
        width: 100%;
    }
    .contact-title {
        color: var(--text-on-blue-color);
        padding-top: 20px;
    }
    .content {
        display: block;
        height: fit-content !important;
        margin: 10px;
    }
    .related-links {
        padding: 0;
    }
    .related-links a {
        font-weight: 100;
        font-family: var(--text-font);
    }
    .related-links-title {
        text-align: left;
        margin-top: 20px;
        font-size: large;
    }
    .dissapearing-links {
        visibility: visible;
    }
    .embedded-map {
        width: 95%;
        margin: 10px;
    }
    /* Fonts */
    body p {
        font-size: 1.2rem !important;
    }
    .program-card {
        font-size: 1.3rem;
    }
    section h2 { font-size: 1.7rem !important;}
    .ending p {
        font-size: 0.8rem !important;
    }
}

/* Medium devices (tablets, 500px to 899px) */
@media screen and (min-width: 500px) and
(max-width: 899px) {
    header {
        height: 80px;
    }
    .title {
        font-size: 2rem;
        text-align: left;
        word-wrap:  break-word;
        width: 100%;
        min-width: 360px;
        
    }
    .theme-btn {
        position: fixed;
        top: 10px;
        right: 70px;
        z-index: 1000;
        font-size: 1.5rem;
    }
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 0;
        font-size: 3rem;
        cursor: pointer;
        z-index: 20;
    }
    #nav-links {
        display: none; /* Hide nav links by default */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--nav-link-bgcolor);
        width: 220px;
        pointer-events: none;
        flex-direction: column;
    }
    #nav-links.show {
        display: flex; /* Show when toggled by hamburger */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--nav-link-show);
        width: 220px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        border-radius: 8px;
        opacity: 1;
        pointer-events: auto;
        font-size: 1.8rem;
        z-index: 19;
        transition: 3s;
        transform: translateY(0);
    }
    #nav-bar {
        width: 0;
    }
    
    #home {
        height: 100vh;
        min-height: 700px;
        max-height: 800px;
    }
    .fill {
        height: 100vh;
        min-height: 700px;
        max-height: 800px;
    }
    .background {
        height: 100vh;
        min-height: 700px;
        max-height: 800px;
    }
    .blur {
        height: 100vh;
        min-height: 700px;
        max-height: 800px;
    }
    .bottom {
        position: relative;
        top: 2px;
    }
    
    #about {
        padding-bottom: 0;
    }
    .about-us-text {
        min-width: 100%;
        font-size: 1.2rem;
    }

}
/* Fot the about us content*/
@media screen and (min-width: 767px) and (max-width: 899px) {
    .title {
        font-size: 2.5rem;
        text-align: left;
        word-wrap: normal;
        line-height: normal;
        width: 100%;
        min-width: 700px;
    }
    .bottom {
        position: relative;
        top: 2px;
    }
    .hamburger {
        display: block;
        position: absolute;
        right: 30px;
        top: 10px;
        font-size: 2.3rem;
        cursor: pointer;
        z-index: 20;
    }
    #nav-links {
        display: none; /* Hide nav links by default */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        position: absolute;
        top: 40px;
        right: 0;
        overflow: scroll;
        background: var(--nav-link-bgcolor);
        width: 220px;
        pointer-events: none;
        flex-direction: column;
    }
    #nav-links.show {
        display: flex; /* Show when toggled by hamburger */
        flex-direction: column;
        position: absolute;
        top: 0px;
        right: 10px;
        background: var(--nav-link-show);
        width: 320px;
        height: 50vh;
        max-height: 300px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        border-radius: 8px;
        opacity: 1;
        pointer-events: auto;
        font-size: 1.8rem;
        overflow: scroll;
        transition: 3s;
        transform: translateY(0);
    }
    #nav-bar {
        width: 0;
    }
    #about {
        width: 100%;
    }
    .about-us-pics {
        visibility: hidden;
    }
    .about-us-text {
        min-width: 100%;
        font-size: 1.2rem;
    }   
    .fees-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
    }
    .accdetails {
        color: var(--text-color) !important;
        font-size: 1.4rem !important;
        margin-left: 20px;
        line-height: 50px;
    }
    .content {
        gap: 10%;
    }
}
@media screen and (min-width: 899px) and (max-width: 1064px) {
    .title {
        font-size: 2.5rem;
        width: 100%;
        min-width: 700px;
    }
    .hamburger {
        display: block;
        position: absolute;
        right: 30px;
        top: 0;
        font-size: 4rem;
        cursor: pointer;
        z-index: 20;
    }
    #nav-links {
        display: none; /* Hide nav links by default */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--nav-link-bgcolor);
        width: 220px;
        pointer-events: none;
        flex-direction: column;
    }
    #nav-links.show {
        display: flex; /* Show when toggled by hamburger */
        flex-direction: column;
        position: absolute;
        top: 40px;
        right: 0;
        background: var(--nav-link-show);
        width: 220px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        border-radius: 8px;
        opacity: 1;
        pointer-events: auto;
        font-size: 1.8rem;
        z-index: 19;
        transition: 3s;
        transform: translateY(0);
    }
    #nav-bar {
        width: 0;
    }
    #home {
        min-height: 700px;
        max-height: 800px;
    }
    .fill {
        min-height: 700px;
        max-height: 800px;
    }
    .background {
        min-height: 700px;
        max-height: 800px;
    }
    .blur {
        min-height: 700px;
        max-height: 800px;
    }
    .bottom {
        position: relative;
        top: 2px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1064px) {
    .theme-btn {
        position: fixed;
        top: 20px;
        right: 100px;
        z-index: 1000;
        font-size: 1.5rem;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1500px) {
    
    #home {
        min-height: 900px;
        max-height: 900px;
    }
    .fill {
        height: auto;
        min-height: 900px;
        max-height: 900px;
    }
    .background {
        min-height: 900px;
        max-height: 900px;
    }
    .blur {
        height: auto;
        min-height: 900px;
        max-height: 900px;}
    .bottom {
        position: relative;
        top: 2px;
    }
    #nav-bar {
        position: absolute;
        right: 0;
        max-width: 600px;
    }
    #nav-links.show,.nav-link, ul .nav-link {
        background-color: var(--nav-link-show);
        border-color: #000;
        color: var(--text-color);
    }
    .logo-raw {
        display: none;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1500px) {
    header {
        height: 80px;
    }
    .title {
        font-size: 2.5rem;
        text-align: left;
        
    }
    .logo {
        width: 100%;
        max-width: 500px;
    }
    .theme-btn {
        position: fixed;
        z-index: 1000;
        font-size: 1.5rem;
    }
    .hamburger {
        display: none;
    }
    #nav-bar {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #nav-links {
        display: flex;
        gap: 30px;
        font-size: 1.3rem;
        position: static;
        background: none;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link {
        font-size: 1.3rem;
        margin-left: 0;
    }
    .bottom {
        position: relative;
        top: 3px;
    }
    .agape-logo {
        width: 90px;
        height: 80px;
    }
    
    .introduction {
        top: 150px;
        left: 50px;
        width: 50%;
        font-size: 1.7rem;
    }
    .welcome-statement {
        font-size: 3rem;
    }

    .school-life-title {
        font-size: 1.6rem;
    }
    .school-life-box h3 {
        font-size: 2rem;
    }
    .teacher-description {
        font-size: 1.2rem;
    }
    .facilities-title {
        font-size: 2.5rem;
    }
    .facilities-card h3 {
        font-size: 1.7em;
    }
    .achievements-section h2 {
        font-size: 2.5em;
    }
    .stat-card h3 {
        font-size: 2em;
    }
    .stat-card p {
        font-size: 1.6rem;
    }
    .awards-section h3,
    .alumni-section h3 {
        font-size: 1.8em;
    }
    .alumni-card blockquote {
        font-size: 1.4rem;
    }
    .alumni-card p {
        font-size: 1.3rem;
    }
    #news h2 {
        font-size: 2.5rem;
    }
    .news-prompt {
        font-size: 1.5rem;
    }
    .contact-title {
        font-size: 2rem;
    }
    .related-links-title,
    .related-links a {
        font-size: 1.5rem;
    }    
}


/* Need to adjust the HOME */
@media screen and (min-width: 1500px) and (max-width: 3400px) {
    body {
        font-size: 1.4rem;
    }
    .title {
        font-size: 3rem;
    }
    .nav-link {
        font-size: 1.7rem;
    }
    #nav-bar {
        position: absolute;
        right: 0;
        max-width: 800px;
    }
    #home {
        width: 100%;
        min-height: 900px;
        max-height: 900px;
    }
    .blur {
        width: 100%;
        min-height: 900px;
        max-height: 900px;
    }
    .fill {
        width: 100%;
        min-height: 900px;
        max-height: 900px;
    }
    .background {
        width: 100%;
        min-height: 900px;
        max-height: 900px;
    }
    .bottom {
        width: 100%;
        position: relative;
        top: 10px;
    }
    .introduction {
        top: 200px;
        left: 100px;
        width: 1000px;
        font-size: 3rem;
    }
    .school-icon {
        margin-left: -60px;
        width: 50px;
    }
    .welcome-statement {
        font-size: 4rem;
    }
    #about p {
        font-size: 2rem !important;
    }
    .school-life-title {
        font-size: 2.2rem;
    }
    .school-life-box h3 {
        font-size: 2.5rem;
    }
    .teacher-description {
        font-size: 1.8rem;
    }
    .facilities-title {
        font-size: 3.5rem;
    }
    .facilities-card h3 {
        font-size: 2.5em;
    }
    .achievements-section h2 {
        font-size: 3.5em;
    }
    .stat-card h3 {
        font-size: 2.5em;
    }
    .stat-card p {
        font-size: 2rem;
    }
    .awards-section h3,
    .alumni-section h3 {
        font-size: 2.5em;
    }
    .alumni-card blockquote {
        font-size: 2rem;
    }
    .alumni-card p {
        font-size: 1.8rem;
    }
    #news h2 {
        font-size: 3.5rem;
    }
    .news-prompt {
        font-size: 2rem;
    }
    .contact-title {
        font-size: 2.5rem;
    }
    .related-links-title,
    .related-links a {
        font-size: 2rem;
    }
    .embedded-map iframe {
        width: 100%;
        height: 600px;
    }
    .embedded-map, .contact-link a {
        font-size: 2rem;
    }
    .ending {
        font-size: 1.5rem;
    }
    
}