*{
    
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
    background-color: white;
}
/* styles for image sliding */
.swiper{
    width:100%;
    margin: 0 auto;
    height: 80vh;
    z-index: 1;
    position: relative;
}
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; 
}   
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    border-radius: 10px;
}

/* Carousel Overlay with Gradient */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 50px 20px;
    z-index: 10;
    pointer-events: none;
}

.carousel-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s ease;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.carousel-subtitle {
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-top: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px){
    .swiper{
        max-height: 70vh;
        width:100%;
       height: 40vh;
        
    }
    .swiper-slide img{
        width: 100%;
        height: 100%;
    }
    .carousel-title {
        font-size: 2rem;
    }
    .carousel-subtitle {
        font-size: 1rem;
    }
    .carousel-overlay {
        padding: 30px 15px;
    }
}
.container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
    max-width: 90%;
    margin: 4% auto;
    background-color:aliceblue;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(15, 103, 255, 0.277);
}

.container img {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}
span{
    color: rgb(1, 63, 249);
    font-size: 1.25rem;
    padding-right: 2px;
}
.about-us img{
    max-width: 350px;
    height: auto;
}

.inf{
    flex: 1;
    max-width: 700px;
}
.inf h2{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: rgb(1, 63, 249);
}
.inf p, h2{
  flex: 1;
  text-align: left;
  line-height: 1.6;
}
/*features section */
.features{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.feature-box{
    background: white;
    max-width: 350px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(15, 103, 255, 0.277);
    text-align: left;
}

.feature-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
}

.feature-box p {
    font-size: 1rem;
}
.feature-box i{
    font-size: 28px;
    color: #1d4ed8
}
.features a{
    text-decoration: none;
    color:unset;
    font-style: unset;
    transition: transform 0.3s ease;
}
.features a:hover{
    transform: scale(0.9);
}
/* programs and academics */
.programs, .academics{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}
 .academics h2, .s-features h2, .programs h2{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 27px;
    font-weight: 700;
}
.s-features h2{
    text-align: center;
}
.academics h3, .feature-box h3{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
/* campus section*/
.campus{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 90%;
    margin: auto;
    padding: 40px 20px;
    background-color: aliceblue;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(15, 103, 255, 0.277);
}
.info{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
}
.info div{
    flex: 1;
    text-align: left;
    min-width: 300px;
}
.info p{
    text-align: left;
}
.info img{
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.campus h2, .join-us h2{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 800;
    font-size: 27px;
    color: rgb(1, 63, 249);
}
.campus h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}
.campus p{
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}
@media (max-width: 768px) {
    .container{
        width: 100%;
        flex-direction: column;
    }
    .container img{
        max-width: 100%;
    }
    /* Info Section */
    .inf {
        flex-direction: column;
        text-align: center;
    }
    .inf p {
        text-align: justify;
        padding: 10px;
    }

    /* Campus Info Section */
    .info {
        flex-direction: column;
        text-align: center;
    }

    .info img {
        max-width: 100%;
        
    }
    .campus p {
        font-size: 1rem;
    }
    .features{
        flex-direction: column;
        align-items: center;
    }
    .feature-box {
        width: 90%;
        padding: 15px;
        margin: auto;
    }
}
.choose-us, .join-us{
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 90%;
    margin: auto;
    padding-left: 5%;
    padding-right: 5%;
}
.join-us{
    background-color: aliceblue;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(15, 103, 255, 0.277);
    padding-left: 5%;
    padding-right: 5%;
}
.choose-us h2, .intro h2 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 27px;
}
.s-features {
    padding: 40px 20px;
    content: center;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}
.f-box {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0 50px;
    text-align: left;
    max-width: 90%;
    margin-left: 8%;
    justify-content: center;
}
.intro{
    width: 90%;
    margin: auto;
    padding: 40px 20px;
}
.intro h2, .intro p{
    text-align: center;
}
.f-box ul {
    list-style-type: disc;
    padding: 0;
    width: 300px;
    min-width: 250px;
}

.f-box ul li {
    padding: 10px 0;
    font-size: 1rem;
    color: #333;
    position: relative;
}

.f-box ul li::marker {
    color: rgb(1, 63, 249);
    font-size: 1.5em;
}
/* Responsive: Convert to a single column on small screens */
@media (max-width: 900px) {
    .f-box {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        margin-left: 0;
    }

    .f-box ul {
        width: 100%; /* Make each list take full width */
        max-width: 500px;
    }
}

/* ==================== STATS COUNTER SECTION ==================== */
.stats-section {
    padding: 40px 20px;
    margin: 50px auto;
    width: 90%;
    padding-top: 0;
    margin-top: 0;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    color: white;
    min-width: 200px;
    flex: 1;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
}

.stat-box i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .stats-container {
        gap: 30px;
    }
    .stat-box {
        min-width: 150px;
    }
    .stat-box i {
        font-size: 2.5rem;
    }
    .stat-number {
        font-size: 3rem;
    }
    .stat-label {
        font-size: 1rem;
    }
}

/* ==================== 3D TILT EFFECT FOR ACADEMIC PROGRAMS ==================== */
.academics .feature-box {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.1s ease-out;
    cursor: pointer;
    will-change: transform;
    background: white;
}

.academics .feature-box:hover {
    box-shadow: 0 25px 50px rgba(1, 63, 249, 0.5);
}

/* Glare/Shine effect that follows mouse */
.academics .feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        transparent 60%
    );
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.academics .feature-box:hover::before {
    opacity: 1;
}

/* Inner glow effect */
.academics .feature-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle,
        rgba(1, 63, 249, 0.15) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 10px;
}

.academics .feature-box:hover::after {
    opacity: 1;
}

/* Ensure content stays on top */
.academics .feature-box i,
.academics .feature-box h3,
.academics .feature-box p {
    position: relative;
    z-index: 2;
}

/* Custom Scrollbar for WebKit browsers */
::-webkit-scrollbar {
  width: 3px; /* vertical scrollbar width */
  height: 8px; /* horizontal scrollbar height */
}

::-webkit-scrollbar-track {
  background: white; /* track color */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #007bff; /* thumb color */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3; /* thumb hover color */
}

/* Slide-up Animation */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Staggered animation for child elements */
.features .slide-up:nth-child(1) { transition-delay: 0s; }
.features .slide-up:nth-child(2) { transition-delay: 0.1s; }
.features .slide-up:nth-child(3) { transition-delay: 0.2s; }
.features .slide-up:nth-child(4) { transition-delay: 0.3s; }
.features .slide-up:nth-child(5) { transition-delay: 0.4s; }
.features .slide-up:nth-child(6) { transition-delay: 0.5s; }