/*=============================================
=            RESET & BASE STYLES              =
=============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    padding-top: 0 !important;
}

/*=============================================
=            SIMPLIFIED ANIMATIONS            =
=============================================*/

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*=============================================
=            NAVBAR STYLES                     =
=============================================*/
.navbar {
    transition: background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/*=============================================
=            HERO CAROUSEL STYLES             =
=============================================*/
.hero-carousel {
    margin-top: 76px;
}

.carousel-item {
    height: 90vh;
    min-height: 600px;
    background: #f8f9fa;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.75);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    max-width: 700px;
    bottom: 20%;
    left: 10%;
    right: auto;
    text-align: left;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-caption h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    transition: all 0.2s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: #ffc107;
    transition: background-color 0.2s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 1.5rem;
    transition: background-color 0.2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(13, 110, 253, 0.8);
}

.card-container {
    perspective: 1500px;
    height: 100%;
}

.card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d;
}

.card-flip.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow-y: auto;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
}

/* Custom scrollbar */
.card-back::-webkit-scrollbar {
    width: 4px;
}

.card-back::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-back::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

/* Flip Button */
.flip-btn {
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.flip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.2);
}

/* Credentials Content */
.credentials-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.credentials-content p {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Ensure consistent height */
.card-container,
.card-flip,
.card-front,
.card-back {
    height: 100%;
    min-height: 550px;
}

.card-front .card-body,
.card-back .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .card-container,
    .card-flip,
    .card-front,
    .card-back {
        min-height: 500px;
    }
    
    .credentials-content p {
        font-size: 0.75rem;
    }
    
    .flip-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
}
.text-justify {
  text-align: justify !important;
}
/*=============================================
=            FEATURE CARDS                     =
=============================================*/
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15) !important;
}

.feature-icon i {
    font-size: 3rem;
    color: #0d6efd;
    transition: color 0.2s ease;
}

.feature-card:hover .feature-icon i {
    color: #ffc107;
}

/*=============================================
=            INSTRUCTOR CARDS                  =
=============================================*/
.instructors .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    
}

.instructors img {
    transition: transform 0.2s ease;
    border: 3px solid transparent;
}

.instructors .card:hover img {
    transform: scale(1.05);
    border-color: #0d6efd;
}

.badge {
    transition: background-color 0.2s ease;
}

.badge:hover {
    background-color: #0d6efd !important;
    color: white !important;
}

/*=============================================
=            CORE VALUES                       =
=============================================*/
.col-md-4 .text-center {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.col-md-4 .text-center:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.col-md-4 .bg-primary {
    transition: background-color 0.2s ease;
}

.col-md-4 .text-center:hover .bg-primary {
    background: #ffc107 !important;
}

/*=============================================
=            ABOUT SECTION                     =
=============================================*/
.about img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(13, 110, 253, 0.2);
}

/*=============================================
=            CONTACT SECTION                   =
=============================================*/
.contact-info {
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-info-list li:hover .icon-wrapper {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.1);
}
.contact-info:hover {
    transform: translateX(-5px);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.1);
}
.info-item:hover .icon {
    color: #ffc107 !important;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-container:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/*=============================================
=            PAYMENT SECTION                   =
=============================================*/
.bg-primary {
    position: relative;
    overflow: hidden;
    border-radius: 30px !important;
}

.bg-white {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 20px !important;
}

.bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/*=============================================
=            CTA SECTION                       =
=============================================*/
.bg-light {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 30px !important;
}

.bg-light:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 60px rgba(13, 110, 253, 0.15);
}

/*=============================================
=            BUTTON STYLES                     =
=============================================*/
.btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
}

/*=============================================
=            FOOTER STYLES                     =
=============================================*/
.footer {
    background: linear-gradient(135deg, #1a1e24 0%, #2d343c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.footer ul li:hover {
    transform: translateX(5px);
}

.footer ul li a {
    transition: color 0.2s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
}

.footer ul li a:hover {
    color: #ffc107 !important;
}

/*=============================================
=            UTILITY CLASSES                   =
=============================================*/
.hover-glow {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
    transform: scale(1.02);
}

img {
    transition: opacity 0.2s ease;
}

img:hover {
    opacity: 0.95;
}

/*=============================================
=            MOBILE RESPONSIVENESS            =
=============================================*/
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero-carousel {
        margin-top: 0;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 20px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(13, 110, 253, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 1.5rem;
        left: 5%;
        right: 5%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}
/* Mobile-specific fixes */
        @media (max-width: 576px) {
            .about {
                padding-top: 90px !important;
            }
            
            .display-4 {
                font-size: 2rem;
            }
            
            .lead {
                font-size: 1rem;
            }
            
            .about h3 {
                font-size: 1.5rem;
            }
            
            .card-body.p-4.p-md-5 {
                padding: 1.5rem !important;
            }
            
            .card .fs-5 {
                font-size: 0.95rem !important;
            }
            
            .bg-light.p-5 {
                padding: 2rem 1rem !important;
            }
            
            .btn-lg {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
                margin-bottom: 0.5rem;
            }
            
            .me-3 {
                margin-right: 0.5rem !important;
            }
            
            .px-5 {
                padding-left: 1.5rem !important;
                padding-right: 1.5rem !important;
            }
            
            .mt-7 {
                margin-top: 4rem;
            }
            
            /* Fix for vision/mission cards */
            .col-md-6:first-child {
                margin-bottom: 1rem;
            }
            
            /* Core values adjustments */
            .col-md-4 .text-center {
                padding: 1rem !important;
            }
            
            .col-md-4 h4 {
                font-size: 1.2rem;
            }
            
            .col-md-4 p {
                font-size: 0.9rem;
            }
            
            /* Footer adjustments */
            .footer {
                text-align: center;
            }
            
            .footer h5 {
                margin-top: 1rem;
            }
            
            .social-icons {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                background: rgba(255, 255, 255, 0.1);
                border-radius: 50%;
                color: #fff;
                transition: all 0.3s ease;
                text-decoration: none;
            }
            
            .footer hr {
                margin: 2rem 0;
            }
            
            /* Navbar brand text fix */
            .navbar-brand .d-none.d-sm-inline-block {
                font-size: 0.9rem;
            }
        }
        
        @media (min-width: 577px) and (max-width: 768px) {
            .display-4 {
                font-size: 2.5rem;
            }
            
            .about {
                padding-top: 100px !important;
            }
        }
        
        /* Fix for tablet */
        @media (max-width: 991px) {
            .navbar-collapse {
                max-height: 80vh;
                overflow-y: auto;
                padding: 1rem;
                background: white;
                border-radius: 10px;
                margin-top: 0.5rem;
                box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            }
            
            .nav-link {
                padding: 0.75rem 1rem !important;
            }
            
            .mt-7 {
                margin-top: 5rem;
            }
        }
/*=============================================
=            ABOUT SECTION                     =
=============================================*/
.about {
    padding: 100px !important;
   margin-top: 0 !important;
}

.about h2 {
    animation: fadeInUp 1s ease;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #ffc107);
    animation: expandWidth 1s ease forwards 1s;
}

.about .lead {
    animation: fadeInUp 1s ease 0.2s both;
}

.about img {
    animation: slideInLeft 1s ease;
    transition: all 0.5s ease;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about img:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 30px 60px rgba(13, 110, 253, 0.2);
}

.about h3 {
    animation: slideInRight 1s ease;
    position: relative;
    display: inline-block;
}

.about h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0d6efd;
    transition: width 0.3s ease;
}

.about h3:hover::after {
    width: 100%;
}

.about p {
    animation: fadeInUp 1s ease 0.4s both;
}
/*=============================================
=            PROGRAM CARDS                     =
=============================================*/
.program {
    padding-top: 100px !important; 
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.program h2 {
    animation: fadeInUp 1s ease;
    position: relative;
    display: inline-block;
}

.program h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #ffc107);
    animation: expandWidth 1s ease forwards 1s;
}

.program .lead {
    animation: fadeInUp 1s ease 0.2s both;
}

.program .card {
    transition: all 0.5s ease;
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
    border: none !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.program .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.program .card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}
