/* General Styles */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Secondary Header */
.secondary-header {
    background: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    position: relative;
    z-index: 1100;
    transition: top 0.3s ease;
}

.quick-links,
.social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a,
.social-media a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 5px 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar a {
    background: #0077cc;
    color: white;
    padding: 5px 10px;
    border-radius: 0 4px 4px 0;
    text-decoration: none;
}

.social-media a {
    width: 30px;
    height: 30px;
    background: #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Main Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 70px;
}

.logo h2 {
    color: #004080;
    font-size: 2.0rem;
}

/* Desktop Navigation */
.desktop-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.desktop-menu>li {
    position: relative;
}

.desktop-menu a {
    color: #003366;
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.desktop-menu a:hover {
    background: #f0f8ff;
}

.desktop-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.desktop-menu li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    padding: 10px 20px;
    color: #333;
}

.submenu a:hover {
    background: #e6f2ff;
    color: #004080;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #003366;
    cursor: pointer;
}



.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}



.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #09549e;
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    padding: 20px;
}

.mobile-nav li {
    margin-bottom: 10px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav .submenu-trigger {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 15px;
}

.mobile-submenu.active {
    max-height: 1000px;
}

.mobile-submenu a {
    padding: 10px 0;
    color: #555;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 2;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .logo h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .secondary-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .quick-links,
    .social-media {
        justify-content: center;
        width: 100%;
    }

    .search-bar {
        width: 100%;
        justify-content: center;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo h2 {
        font-size: 2.1rem;
    }
}



/* Animated Text Section */
.animated-text-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    background: #252839;
}

.animated-text {
    position: relative;
    font-size: 5vw;
    color: #252839;
    -webkit-text-stroke: 0.3vw #383d52;
    text-transform: uppercase;
}

.animated-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: #01fe87;
    -webkit-text-stroke: 0vw #383d52;
    border-right: 2px solid #01fe87;
    overflow: hidden;
    animation: animateText 6s linear infinite;
}

@keyframes animateText {

    0%,
    10%,
    100% {
        width: 0;
    }

    70%,
    90% {
        width: 100%;
    }
}

/* Responsive font increase for mobile devices */
@media (max-width: 768px) {
    .animated-text {
        font-size: 8vw;
        /* Increase font size on smaller screens */
    }
}



/* **********************LATEST NEWS AND UPDATE  ************************* */

.blog-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 4rem;
}

.blog-box {
    width: 100%;
    box-shadow: 0 0 3px rgba(60, 72, 88, 0.8);
}

.image-container {
    height: 20rem;
}

.image-container img {
    object-fit: cover;
    height: 25rem;
}

.blog-box .content {
    padding: 6rem 2rem;
}

.blog-box .content h4 {
    font-weight: 500;
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

.blog-box .content p {
    color: #222;
    margin-bottom: 1rem;
    margin-top: auto;

}

.blog-box a:link,
.blog-box a:visited {
    display: inline-block;
    padding: 0.7rem 0;
    color: var(--customColor);
    border-bottom: 2px solid var(--customColor);
}

.blog-slider {
    max-width: 1200px;
    margin: 0 auto;
    /* Centers the slider */
    padding: 0 1rem;
    /* Adds breathing room on the sides */
}

.glide__slides {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.blog-slider,
.glide {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}


.glide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.glide__arrow--left {
    left: -1rem;
}

.glide__arrow--right {
    right: -1rem;
}

/* Default arrow styles */
.glide__arrow {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease-in-out;
}

/* Position arrows */
.glide__arrow--left {
    left: 10px;
}

.glide__arrow--right {
    right: 10px;
}

/* Adjust arrow visibility and placement on mobile */
@media screen and (max-width: 567px) {
    .glide__arrow--left {
        left: 5px;
    }

    .glide__arrow--right {
        right: 5px;
    }

    .glide__arrow {
        padding: 0.7rem;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 567px) {
    .glide__slides {
        justify-content: center;
    }

    .glide__slide {
        display: flex;
        justify-content: center;
    }

    .blog-box {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 567px) {
    .image-container {
        width: 100%;
        height: 200px;
        /* adjust height as needed */
        overflow: hidden;
    }

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .blog-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 567px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }
}

.read-more-btn {
    display: inline-block;
    padding: 15px 50px;
    background-color: #622edb;
    /* Black button */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(38, 24, 90, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.read-more-btn:hover {
    background-color: rgb(232, 231, 241);
    color: white;
    transform: scale(1.05);
    box-shadow: 5px 5px 20px rgba(29, 41, 201, 0.6);
}



/* Style for Scroll-to-Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 50px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
}

#scrollTopBtn:hover {
    background-color: #0056b3;
}


*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container: 100vw;
    /* Changed from 120rem to viewport width */
    --m-auto: 0 auto;
    --white: #fff;
    --bg: rgb(238, 238, 241);
    --arrow-bg: rgb(254, 254, 254);
    --dot: rgb(206, 206, 206);
    --dot-active: rgb(135, 89, 214);
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-size: 1.6rem;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

.hero-slider {
    width: 100%;
    /* Full width */
    max-width: 100vw;
    /* Ensure it doesn't exceed viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 51rem;
    position: relative;
    margin: 3rem auto;
    overflow: hidden;
    /* Hide any potential overflow */
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        /* Let height be determined by content */
        min-height: 40vh;
        /* Minimum height for mobile */
        aspect-ratio: 16/9;
        /* Maintain aspect ratio */
        margin: 0;
        /* Remove margin on mobile */
    }
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: var(--arrow-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    opacity: 0.8;
    /* Slightly transparent */
    transition: opacity 0.3s ease;
}

.arrow:hover {
    opacity: 1;
}

.arrow ion-icon {
    font-size: 2.5rem;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

@media (max-width: 480px) {
    .arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .arrow ion-icon {
        font-size: 1.8rem;
    }
}

.slider-container {
    width: 100%;
    /* Full width */
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Ensure image is centered */
    user-select: none;
    pointer-events: none;
}

.slide-content {
    position: absolute;
    top: 20%;
    left: 5%;
    z-index: 10;
    color: white;
    text-align: left;
    max-width: 50%;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    /* Modern blur effect */
}

.slide-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.slide-content a.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #8759d6;
    color: #fff;
    text-decoration: none;
    border-radius: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.slide-content a.download-btn:hover {
    background-color: #6d45c6;
    transform: translateY(-2px);
}

.slider-controler {
    margin-top: 1rem;
    text-align: center;
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10;
}

.slider-controler .dot {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: var(--dot);
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

.dot.active {
    width: 2.7rem;
    background: var(--dot-active);
    transition: all 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .slide-content {
        max-width: 90%;
        padding: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        left: 5%;
        right: 5%;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .slider-controler {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 1rem;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .slide-content a.download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.4rem;
    }
}

/* Animation styles */
.slide-content {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideFadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.slide-content h2 {
    animation: fadeSlideLeft 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.slide-content p {
    animation: fadeSlideLeft 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.slide-content a.download-btn {
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

/* Keyframes */
@keyframes fadeSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}





/* FOOTER*/
.footer-area {
    margin-top: 100px;
    padding: 100px 0;
    background: #062f68;

    color: #fff;
    position: relative;
    text-align: left;
    /* Center align content for smaller screens */
}

.main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;

}

.footer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}


.single-footer {
    width: 230px;
}

.single-footer:first-child {
    width: 400px;
}

.single-footer h4 {

    font-size: 22px;
    margin-bottom: 20px;

}

.footer-social a {
    color: #fff;
    border: 1px solid #fff;
    width: 40px;
    height: 40px;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}



.single-footer ul {
    list-style: none;
    padding: 0;
}

.single-footer ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.single-footer ul li a {
    color: #fff;
    text-transform: capitalize;
    text-decoration: none;
    position: relative;
    /* Add this line */
    padding-left: 20px;
    /* Add this to make space for the icon */
}


.single-footer ul li a:hover {
    text-decoration: underline;
}


/* Style for the powered by text */
.copy .powered-by {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    text-align: center;
}

.copy .powered-by a {
    color: #ffab00;
    /* Customize the link color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    text-align: center;
}

.copy .powered-by a:hover {
    color: #f39c12;
    /* Hover effect color */
}

.copy {
    text-align: center;
    text-transform: capitalize;
    margin-top: 50px;
    margin-left: 0;
    width: 100%;
}

/* Center the school logo */
.logo-footer {
    width: 230px;
    /* Same width as other sections */
    text-align: center;
    margin: 0 auto;
    /* Centers the logo horizontally */
}

.footer-logo {
    max-width: 180px;
    /* Adjust the size if needed */
    width: 100%;
    height: auto;
}

/* Center the social media icons */
.footer-social-container {
    display: flex;
    justify-content: center;
    /* Center the social media icons */
    align-items: center;
    margin-top: 30px;
    /* Add margin for spacing if needed */
}

.footer-social {
    text-align: center;
    /* Ensures social icons are centered inside the container */
}

/* Mobile View Adjustments */
@media (max-width: 992px) {
    .footer {
        flex-direction: column;
        align-items: center;
        /* Center all footer content */
    }

    .single-footer {
        width: 100%;
        text-align: left;
        /* Center the text on mobile */
    }

    /* Center the logo and social icons on mobile */
    .logo-footer,
    .footer-social-container {
        width: 100%;
        /* Take full width on mobile */
        text-align: center;
        /* Align content to the center */
    }

    .footer-logo {
        max-width: 150px;
        /* Make logo smaller on mobile */
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }

    /* Shift h4 to the right on mobile */
    .single-footer h4 {
        font-size: 22px;
        margin-bottom: 20px;
        padding-left: 50px;
        /* Add padding to shift h4 slightly to the right */
        text-align: left;
        /* Ensure text aligns left */
    }
}


/* Optional: Logo size adjustment for smaller screens */
@media (max-width: 576px) {
    .footer-logo {
        max-width: 120px;
        /* Even smaller logo on extra small screens */
    }
}

/* Style for the logo image with a round circle */
.logo-footer img {
    width: 150px;
    /* Adjust the size of the logo */
    height: 150px;
    /* Keep the height equal to width for a perfect circle */
    object-fit: cover;
    /* Ensure the image fits within the circle */
    border-radius: 50%;
    /* Creates the circular shape */
    border: 5px solid #fff;
    /* Add a white border around the logo */
    padding: 10px;
    /* Optional: Adds space between the logo and the border */
    transition: all 0.3s ease;
    /* Smooth transition for hover effect */
}

/* Hover effect for the logo */
.logo-footer img:hover {
    transform: scale(1.1);
    /* Slightly enlarge the logo on hover */
    border-color: #ffab00;
    /* Change border color on hover (you can customize the color) */
}

/* Mobile View Adjustments */
@media (max-width: 992px) {
    .logo-footer img {
        width: 120px;
        /* Adjust logo size for mobile */
        height: 120px;
        /* Keep it square for a perfect circle */
        padding: 8px;
        /* Adjust padding for mobile */
    }

    .footer-social-container {
        flex-direction: column;
        /* Stack the social icons vertically on mobile */
        margin-top: 15px;
        /* Add space between logo and icons */
    }

    .footer-social a {
        width: 35px;
        /* Adjust icon size */
        height: 35px;
        line-height: 35px;
    }
}


body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
    transition: background 0.4s, color 0.4s;
}

#theme-toggle {
    position: fixed;
    top: 150px;
    right: 10px;
    background: #007BFF;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1000;
}

.activities-section {
    display: flex;
    flex-wrap: wrap;
    padding: 60px 20px 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
}

.activity-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.activity-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 2s ease;
}

.activity-image img+img {
    margin-top: 100px;
}


.activity-timeline {
    flex: 2;
    min-width: 300px;
    padding: 20px;
}

.timeline-item {
    background: white;
    margin-bottom: 20px;
    padding: 20px;
    border-left: 5px solid #007BFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease;
    border-radius: 8px;
}

.timeline-item h3 {
    margin: 0 0 10px;
    color: #007BFF;
}

.timeline-item p {
    margin: 0 0 10px;
}

.timeline-item.in-view {
    opacity: 1;
    transform: translateX(0);
}


/* Responsive */
@media (max-width: 768px) {
    .activities-section {
        flex-direction: column;
    }

    .activity-image,
    .activity-timeline {
        width: 100%;
    }
}