.about-us {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.02) 0%, transparent 70%);
}

.about-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 0px;
}

.about-intro p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(3, 37, 76, 0.9);
    margin-bottom: 20px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    animation: fadeInUp 700ms ease both;
}

.about-item {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-item.reverse {
    flex-direction: row-reverse;
}

.about-item-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-item-image img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(9, 30, 66, 0.15);
    transition: transform 320ms ease, box-shadow 320ms ease;
    transform-origin: center;
}

.about-item-image img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 26px 54px rgba(9, 30, 66, 0.2);
}

.about-item-text {
    flex: 1.2;
}

.history-section {
    text-align: center;
    max-width: 1000px;
    margin: 40px auto 0;
}

.history-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 80px auto 100px;
    padding: 0 40px;
}

.timeline-track {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 6px;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0.3) 50%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 10px;
    transform: translateY(-50%);
    z-index: 1;
    overflow: hidden;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 10px;
    transition: width 2.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
    z-index: 0;
}

.history-timeline.animated .timeline-track::before {
    width: 100%;
}

.timeline-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: trackShine 3s infinite linear;
}

@keyframes trackShine {
    to {
        left: 100%;
    }
}

.milestone {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.milestone-dot {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 3px solid #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1e40af;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Glow effect for active milestone */
.milestone.active .milestone-dot {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.5), 0 12px 28px rgba(30, 64, 175, 0.35);
    border-color: #3b82f6;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(30, 64, 175, 0.4), 0 12px 28px rgba(30, 64, 175, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.7), 0 12px 28px rgba(30, 64, 175, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(30, 64, 175, 0.4), 0 12px 28px rgba(30, 64, 175, 0.3);
    }
}

.milestone-dot span {
    font-size: 0.95rem;
}

.milestone.active .milestone-dot {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
}

.milestone.active .milestone-dot span {
    font-size: 1.5rem;
}

.milestone:hover .milestone-dot {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.milestone-label {
    position: absolute;
    top: 100%;
    margin-top: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    opacity: 0.9;
    transition: all 0.4s ease;
    padding: 8px 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Alternating positions for labels */
.milestone:nth-child(even) .milestone-label {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 25px;
}

.milestone:nth-child(even) .milestone-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.milestone:nth-child(odd) .milestone-label::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.milestone.active .milestone-label {
    opacity: 1;
    color: #fff;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
    transform: scale(1.05);
}

.milestone.active:nth-child(even) .milestone-label::after {
    border-top-color: #1e40af;
}

.milestone.active:nth-child(odd) .milestone-label::after {
    border-bottom-color: #1e40af;
}

.milestone-dot.current {
    border-style: solid;
    background: #f8fafc;
}

@media (max-width: 900px) {
    .about-us {
        padding: 50px 0;
    }

    .about-intro {
        margin-bottom: 30px;
    }

    .about-details {
        gap: 0px;
    }

    .about-text-content {
        gap: 40px;
    }

    .about-item {
        flex-direction: column !important;
        gap: 30px;
    }

    .about-item.reverse {
        flex-direction: column !important;
    }

    .history-timeline {
        flex-direction: column;
        gap: 55px;
        padding: 10px 0;
    }

    .timeline-track {
        left: 50%;
        top: 25px;
        bottom: 50px;
        width: 2px;
        height: auto;
        transform: translateX(-50%);
    }

    .timeline-track::before {
        width: 100%;
        height: 0%;
        transition: height 2.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
        background: linear-gradient(180deg, #1e40af, #3b82f6);
    }

    .history-timeline.animated .timeline-track::before {
        height: 100%;
        width: 100%;
    }

    .milestone-dot {
        width: 52px;
        height: 52px;
        border-width: 2.5px;
    }

    .milestone-dot span {
        font-size: 0.85rem;
    }

    .milestone.active .milestone-dot {
        width: 80px;
        height: 80px;
    }

    .milestone.active .milestone-dot span {
        font-size: 1.25rem;
    }

    .milestone-label {
        position: relative;
        top: 0 !important;
        bottom: auto !important;
        margin-top: 15px !important;
        margin-bottom: 0 !important;
        white-space: normal;
        text-align: center;
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .milestone-label::after {
        display: none;
    }

    .milestone.active .milestone-label {
        font-size: 0.95rem;
        transform: none;
    }
}

.achievements-wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.achievements-text {
    flex: 1.2;
    padding-right: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .achievements-text {
        text-align: center;
    }
}

.about-image-new {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 900ms ease both;
    width: 100%;
}

.about-image-new img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(9, 30, 66, 0.15);
    transition: transform 320ms ease, box-shadow 320ms ease;
    transform-origin: center;
}

.about-image-new img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 26px 54px rgba(9, 30, 66, 0.2);
}

/* Achievement Slider Styles */
.achievement-slider-wrap {
    max-width: 500px;
    width: 100%;
    flex: 1;
}

.achievement-slider {
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.achievement-slider .swiper-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.achievement-slider .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for the image itself */
}

/* Make navigation more premium */
.achievement-slider .swiper-button-next,
.achievement-slider .swiper-button-prev {
    color: #fff;
    background: var(--primary-blue);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%); /* Stable vertical centering */
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.achievement-slider:hover .swiper-button-next,
.achievement-slider:hover .swiper-button-prev {
    opacity: 1;
    background: var(--secondary-blue);
}

/* Fix SVG icon size */
.achievement-slider .swiper-button-next svg,
.achievement-slider .swiper-button-prev svg {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain;
}

/* Hide default pseudo-element if SVG is present */
.achievement-slider .swiper-button-next:after,
.achievement-slider .swiper-button-prev:after {
    display: none !important;
}

.achievement-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.achievement-slider .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 10px;
    opacity: 1;
    background: var(--primary-blue);
}

/* Premium Button Styling for Achievements */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #fff !important;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    margin-top: 20px;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
}

.btn-premium i {
    transition: transform 0.3s ease;
}

.btn-premium:hover i {
    transform: translateX(5px);
}

/* Mobile Responsiveness for Slider */
@media (max-width: 768px) {
    .achievement-slider {
        height: auto;
        /* Shorter height on tablets */
    }
}

@media (max-width: 480px) {
    .achievement-slider {
        height: auto;
        /* Even shorter on small phones */
    }

    .achievement-slider .swiper-button-next,
    .achievement-slider .swiper-button-prev {
        display: none;
        /* Hide buttons on very small screens to save space */
    }
}

@media (max-width: 450px) {
    .achievement-slider {
        height: auto;
    }
}

/* Desktop Only: Move Image Beside Achievements */
@media (min-width: 901px) {
    .achievements-wrap {
        flex-direction: row;
        gap: 80px;
        align-items: center;
    }
}

/* Responsive adjustments for About Items */
@media (max-width: 900px) {

    .about-item,
    .about-item.reverse {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    .about-item-image {
        order: -1;
        align-self: flex-start;
        /* Image stays on top but aligned to start */
    }

    .about-details ul li {
        justify-content: flex-start;
    }
}

/* Typography tweaks */
.about-us .section-title {
    font-size: 2.25rem;
    color: var(--primary-blue);
    margin-bottom: 18px;
    text-align: center;
    /* center the section title */
}

.about-details h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    /* slightly larger for Mission/Vision */
    margin-top: 20px;
    margin-bottom: 8px;
}

.about-details p {
    color: rgba(3, 37, 76, 0.95);
    line-height: 1.8;
    font-size: 1.02rem;
}

/* List / values styling */
.about-details ul {
    margin-top: 12px;
    padding-left: 0;
}

.about-details ul li {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 10px 0;
}

.about-details ul li i {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.14);
    font-size: 0.9rem;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.about-text ul li:hover i {
    transform: translateY(-4px) rotate(-4deg) scale(1.03);
    box-shadow: 0 12px 26px rgba(30, 64, 175, 0.18);
}

/* Subtle card accent */
.about-details .about-text-content {
    position: relative;
    padding: 18px 6px 6px 6px;
}

.about-details .about-text-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 6px;

    border-radius: 6px;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-details .about-text-content::before {
        left: 12px;
        top: 12px;
        bottom: auto;
        height: 44px;
        width: 6px;
    }
}

/* Join Us / CTA Section Design */
.cta-section {
    position: relative;
    padding: 100px 0;
    margin: 60px 0;
    background-image: url('../images/index/slider3.jpg');
    /* Fixed Path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(59, 130, 246, 0.85));
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    color: var(--primary-blue);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.cta-btn i {
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(5px);
}

/* Add some floating shapes for visual interest */
.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    animation: floatRotate 20s infinite linear;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes floatRotate {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}


@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
        background-attachment: scroll;
        /* Fix for mobile */
    }

    .cta-section h3 {
        font-size: 2.2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

/* Dark Mode Styles for CTA Section */

body.dark-mode .cta-section h3 {
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .cta-section p {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .cta-btn {
    background-color: var(--primary-blue);

}


body.dark-mode .cta-btn:hover {
    background-color: #f0f0f0;
    color: var(--primary-blue);
}

/* Admissions Section */
.admissions-wrapper {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    /* Cool gradient background */
    padding: 80px 20px;
    /* add horizontal padding so cards don't touch screen edges */
    width: 100%;
    box-sizing: border-box;
}

.admissions {
    background-color: #dbeafe;
    /* Blue shade background */
    max-width: 1200px;
    /* Limits the width so content fits nicely */
    margin: 0 auto;
    /* Centers the box */
    width: 100%;
    /* allow it to scale within wrapper padding */
    padding: 40px;
    /* Adjusted padding for neat spacing */
    border-radius: 20px;
    /* Rounded corners */
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    /* Remove any default scaling */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1s ease-out;
    /* Cool entrance animation */
}

.admissions h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    position: relative;
}

.admissions h2::before {
    content: "\f19d";
    /* Graduation cap icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 2rem;
}

.admissions p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--dark-blue);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Subtle text shadow for depth */
}

.admissions-button .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(59, 130, 246, 0.3);
    /* Added blue glow */
}

.admissions-button .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--secondary-blue), var(--primary-blue));
}

.admissions:hover {
    transform: translateY(-5px);
    /* Add hover effect */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    /* Add shadow on hover */
    color: var(--primary-blue);
    /* Change text color on hover */
}

/* Night Mode Adjustments for Admissions Section */
body.night-mode .admissions-wrapper,
body.night-mode .admissions {
    background: var(--night-background);
    /* Specific override for gradient */
    color: var(--night-text);
}

body.night-mode .admissions {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--night-accent);
}

body.night-mode .admissions h2 {
    color: var(--secondary-blue);
}

body.night-mode .admissions p {
    color: var(--night-text);
}

body.night-mode .admissions-button .btn {
    background: var(--night-primary);
    color: var(--white-text);
    border: 1px solid var(--night-accent);
}

body.night-mode .admissions-button .btn:hover {
    background: var(--night-secondary);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive design for admissions section */
@media (max-width: 768px) {
    .admissions-wrapper {
        padding: 40px 10px;
    }

    .admissions {
        padding: 20px;
        border-radius: 15px;
    }

    .admissions h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .admissions h2::before {
        position: static;
        /* Position inline with the text */
        left: auto;
        top: auto;
        transform: none;
        margin-right: 10px;
        /* Space between icon and text */
    }

    .admissions p {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .admissions-button .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .admissions h2 {
        font-size: 1.8rem;
    }

    .admissions p {
        font-size: 0.95rem;
    }

    .admissions-button .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
