html {
    scroll-behavior: smooth;
}

.hidden {
    display: none;
}

@font-face {
    font-family: 'FreightMacro';
    src: url('./fonts/FreightMacro\ W03\ Bold.ttf') format('truetype'),
        url('./fonts/FreightMacro\ W03\ Medium.ttf') format('truetype'),
        url('./fonts/FreightMacro\ W03\ Semibold.ttf') format('truetype');
}


@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'TitilliumWeb';
    src: url('./fonts/TitilliumWeb-Light.ttf') format('truetype');
}


/* CSS Variables using the themed colors */
:root {
    --primary: #002F64;
    /* Pantone 2738C */
    --accent: #EF3340;
    /* Pantone 032C */
    --accent-dark: #D72E3C;
    --light-bg: #f4f4f4;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

h3 {
    font-size: 22px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'FreightMacro', serif;

}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Montserrat', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Header */
header {
    background: var(--white);
    color: var(--primary);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
}

.nav-list {
    display: flex;
    list-style: none;
}

/* .nav-list li {
    margin-left: 20px;
} */

.nav-list li a {
    font-weight: bold;
    padding: 5px 10px;
    color: var(--primary);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-list li a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Hamburger Icon (shown on mobile) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

/* Mobile Navigation Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--primary);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1100;
    padding: 20px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu .close-btn {
    text-align: right;
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid white;
    width: 80%;
}

.modal-content {
    color: black;
}

.mobile-menu ul li a {
    font-size: 16px;
    color: var(--white);
}

/* Hero Slider Section with Animated Caption */
.hero-slider {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-slider video {
    width: 100%;
    aspect-ratio: auto;
    height: 100%;
    object-fit: contain;
    animation: zoomIn 10s infinite;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-slider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-caption {
    position: absolute;
    top: 75%;
    left: 70%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-align: end;
    z-index: 2;
    animation: captionAnimation 2sease-out forwards;
    width: 50%;
}

.hero-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.learn-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--white);
    font-size: 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.learn-more-btn:hover {
    background: var(--accent-dark);
}

@keyframes captionAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Section Base */
section {
    padding: 60px 40px;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admission Section */
.admission-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background: #f2f2f2;
}

.admission-content,
.admission-form {
    flex: 1;
    margin: 20px 30px;
}

.admission-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.admission-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.admission-form {
    border-radius: var(--border-radius);
    animation: slideIn 1s ease forwards;
    background-color: white;
    padding: 15px;
    margin: 0 auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.admission-form h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.admission-form label {
    display: block;
    /* margin: 10px 0 5px; */
    font-weight: bold;
}

.admission-form input,
.admission-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.admission-form input:focus,
.admission-form select:focus {
    border-color: var(--primary);
    outline: none;
}

.admission-form button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.admission-form button:hover {
    background: var(--accent-dark);
}

/* Core Values Section (3x2 Grid) */
.core-values {
    background: var(--white);
}

.core-values h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 2rem;
    font-weight: normal !important;
}

.core-values h4 {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
}

.core-values h3 {
    color: var(--primary) !important;
    font-size: 22px;
}

.core-values h5 {
    line-height: 1.1em;
    color: var(--primary) !important;
    font-size: 14px;
}

.core-values p {
    line-height: 1.1em;
    font-size: 14px;
}

.core-values-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.core-value-card {
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.core-value-card:hover {
    transform: translateY(-5px);
}

.core-value-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.core-value-card p {
    line-height: 1.6;
}

.core-value-card-box-1 {
    background-color: #C1DBDF;
}

.core-value-card-box-2 {
    background-color: #F9D0CD;
}

.core-value-card-box-3 {
    background-color: #F8D487;
}

.core-value-card-box-4 {
    background-color: #F79E70;
}

.core-value-card-box-5 {
    background-color: #aecbb8;
}

.core-value-card-box-6 {
    background-color: #d1a996;
}

/* Key Highlights Section as Carousel Flipbox (3x1 per slide) */
.key-highlights {
    background: #f2f2f2;
    text-align: center;
    padding: 60px 40px;
}

.key-highlights h2 {
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2rem;
}

/* General Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: auto;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.carousel-slide {
    flex: 0 0 100%;
    /* Mobile: 1 slide per view */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Flip Card Effect */
.flip-card {
    width: 100%;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 400px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 3px 3px 8px 0 #00000045;
}

.flip-card-back {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transform: rotateY(180deg);
}

.flip-card-back-bg-1 {
    background-color: #A36361;
}

.flip-card-back-bg-2 {
    background-color: #88895b;
}

.flip-card-back-bg-3 {
    background-color: #558e9b;
}

.flip-card-back-bg-4 {
    background-color: #a386a9;
    ;
}

.flip-card-back-bg-5 {
    background-color: #c96349;
    ;
}

.flip-card-back-bg-6 {
    background-color: #84A48B;
}


/* Navigation Buttons */
.carousel-nav {
    text-align: center;
    margin-top: 10px;
}

.prev,
.next {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.prev {
    left: 2%;
}

.next {
    right: 2%;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Fix for Mobile */
/* Desktop: Show 3 slides at once */
@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 33.33%;
        /* Show 3 slides */
    }
}

/* Mobile: Show 1 slide at once */
@media (max-width: 767px) {
    .carousel-slide {
        flex: 0 0 100%;
        /* Show 1 slide */
    }
}

/* Improved FAQ Section */
.faq-section {
    background: #f2f2f2;
    padding: 40px 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary);
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--accent);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    padding: 0 20px;
    border-top: 1px solid #ddd;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
    padding: 15px 20px;
    max-height: 100%;
}

.faq-answer p {
    margin: 0;
    color: #555;
}

.Our-Programes h3 {
    font-weight: 600;
    font-family: 'Montserrat', serif;
}

/* Footer Section */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 40px 20px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /* gap: 20px; */
    margin-bottom: 20px;
}

.footer-logo {
    flex: 1 1 150px;
}

.footer-logo img {
    height: 60px;
}

.footer-links {
    flex: 1 1 150px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: var(--white);
    font-size: 16px;
}

.footer-social {
    flex: 1 1 150px;
}

.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-social a {
    color: var(--white);
    margin-right: 10px;
    font-size: 1.6rem;
}

.footer-map {
    flex: 1 1 300px;
}

.footer-map h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: var(--border-radius);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
    font-size: 0.9rem;
}

/* Floating CTA Buttons */
.cta-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}

.cta-button {
    background-color: #ce1434;
    color: white;
    border-radius: 0 5px 5px 0;
    transition: .5s;
    padding: .8rem .8rem;
    font-size: .825rem;
    -webkit-box-shadow: 0 0 13px 0 rgb(0 0 0 / 29%);
    -moz-box-shadow: 0 0 13px 0 rgb(0 0 0 / 29%);
    box-shadow: 0 0 13px 0 rgb(0 0 0 / 29%);
    font-weight: 700;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-decoration: none;
    list-style: none;
}

.cta-button:hover {
    background: var(--primary);
    color: var(--white);
    /* transform: scale(1.05); */
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        align-items: flex-start;
    }

    .nav-list {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .admission-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .core-values-container {
        grid-template-columns: repeat(1, 1fr);

    }

    .hero-caption {
        /* width: 100%;
        left: 50%;
        top: 75%;
        text-align: center;
        padding: 20px 0; */

        display: none;
    }

    .admission-content,
    .admission-form {
        margin: 0 auto !important
    }

    .footer-logo {
        flex: 1 1 90px;
    }

    .box-card {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 20px;
        flex-direction: row;
    }

    .hero-caption h1 {
        font-size: 18px;
    }

    .hero-caption p {
        font-size: 14px;
        margin: 0;
        line-height: 1.2;
    }

    .learn-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: none;
    }

    section {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links,
    .footer-social,
    .footer-map {
        text-align: center;
    }

    .admission-content p {
        font-size: 16px;
        line-height: 1.4;
    }

    .flip-card-inner {
        height: 330px;
    }

    .cta-buttons {
        display: none;
    }

    #custom-popup {
        top: -10% !important;
    }
}


.mobile-menu img {
    height: auto;
    width: 100%;
}

/* Our project section */

.course-list-wrapper {
    /* padding: 20px; */
    background: #f2f2f2;
    border-radius: 10px;
    box-shadow: 0 4px 10px #00000040;
}

.course-list-img {
    width: 100%;
    height: auto;
}

.course-list-img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.course-list-img a:hover img {
    transform: scale(1.1);
    /* Zoom in on hover */
}

.course-list-content {
    overflow: hidden;
    padding: 15px;
    height: auto;
    min-height: 300px;
}

.course-list-area h4 {
    font-size: 20px;
}

.course-list-area p {
    text-align: justify;
    line-height: 20px;
    font-size: 16px;
}

/* Learn More Button */
.course-list-content>a {
    background: var(--accent, #001b68);
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: 10px 15px;
    position: relative;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
    font-size: 14px;
}

.learn-more-btn:hover {
    background-color: var(--primary, #0044cc);
    color: var(--white, #fff);
}

/* Button Hover Effect */
.course-list-content>a::before {
    background: var(--accent, #001b68);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform: scaleY(0);
    transform-origin: 50% 0 0;
    transition: transform 0.3s ease-out;
    z-index: -1;
    border-radius: 5px;
}

.our-project {
    background-color: #fff;
}

.footer-social ul li {
    text-decoration: none;
    list-style: none;
}

.footer-social ul li a {
    font-size: 16px;
}

.pgm-border {
    border-left: 10px solid #002f64;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.marquee {
    font-size: 25px;
    color: #fff;
    height: 45px;
    overflow: hidden;
    background-color: #002f64;
    position: relative;
}

.marquee div {
    display: block;
    width: 200%;
    position: absolute;
    overflow: hidden;
    animation: marquee 12s linear infinite;
}

.marquee span {
    float: left;
    width: 50%;
}

/* keyframe */
@keyframes marquee {
    0% {
        left: 0;
    }

    100% {
        left: -100%;
    }
}



.custom-values-color {
    color: #FBB731;
}

.image-clip {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.image-clip img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.custom-values-list {
    list-style: none;
    padding-left: 0;
}

.custom-values-list li {
    position: relative;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.85);
}

.custom-values-list h5 {
    color: #ffffff;
}

.bullet-point {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.Sets-values h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 2rem;
    font-weight: normal !important;
}


.curriculum-card {
    background-color: var(--primary);
    border: none;
}

.curriculum-card .card-content {
    background-color: var(--secondary);
}

.curriculum-card h3 {
    color: #ffffff;
    line-height: 1.3;
}

.curriculum-card p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.1em;
}

.arrow-btn-lg {
    width: 50px;
    height: 50px;
    background-color: #FBB731;
    border-color: #FBB731;
    color: var(--primary);
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}


.curriculum-card img {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}