/* Modern Educational Theme - White Light */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: var(--headertext);
    background-color: #f4f6f9;
    line-height: 1.6;
}

/* =========================================
   Modern Header Styles
   ========================================= */
.modern-header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.modern-header .navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.modern-header .navbar-brand:hover img {
    transform: scale(1.02);
}

.modern-header .nav-link {
    color: var(--headertext) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 10px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.modern-header .nav-link:hover,
.modern-header .nav-link.active {
    color: var(--buttonbackground) !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.modern-header .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px;
    margin-top: 15px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-header .dropdown-item {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--headertext);
}

.modern-header .dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--buttonbackground);
}

.btn-modern {
    background: var(--buttonbackground);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern:hover {
    background: var(--hovercolor);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
}

/* Red Dot Pulse Animation for Admission Button */
.btn-pulse::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* =========================================
   Modern Footer Styles
   ========================================= */
.modern-footer {
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
    padding: 70px 0 30px;
    margin-top: 80px;
    font-size: 15px;
}

.modern-footer h5 {
    color: var(--headertext);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.modern-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer li {
    margin-bottom: 12px;
}

.modern-footer a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.modern-footer a:hover {
    color: var(--buttonbackground);
    transform: translateX(4px);
}

.modern-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f1f5f9;
    border-radius: 50%;
    color: var(--buttonbackground);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.modern-footer .social-links a:hover {
    background-color: var(--buttonbackground);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #edf2f7;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom a {
    color: #64748b;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #64748b;
}

.contact-item i {
    color: var(--buttonbackground);
    margin-top: 4px;
}

/* Utility Overrides for cleaner look */
.btn-primary {
    background-color: var(--buttonbackground);
    border-color: var(--buttonbackground);
}

.text-primary {
    color: var(--buttonbackground) !important;
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: var(--headertext);
}

.navbar-toggler:focus {
    box-shadow: none;
    background-color: #e9ecef;
}

/* Fixed Social Container Modern Styles */
.fixed-social-container {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fixed-social-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: var(--buttonbackground);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 20px;
}

.fixed-social-container a span {
    display: none;
    /* Hide text for a cleaner icon-only look */
}

.fixed-social-container a:hover {
    background-color: var(--buttonbackground);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
}

/* Floating Action Buttons Override */
#whatsappLink,
#phoneLink {
    z-index: 1000 !important;
    /* Ensure they stay on top */
}

/* =========================================
   Modern Section Styles - Home Page
   ========================================= */

/* General Section Spacing */
section {
    position: relative;
}

/* Creating alternating clean backgrounds */
.section-white {
    background-color: #ffffff;
    padding: 30px 0;
}

.section-light {
    background-color: #f8f9fa;
    /* Very subtle gray */
    padding: 30px 0;
}

/* Modern Section Titles */
.tl-4-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--headertext);
    font-size: 32px;
    margin-bottom: 0px;
    position: relative;
    display: inline-block;
}

.tl-4-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--buttonbackground);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: #64748b;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Modern Card Style */
.card-modern {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(13, 110, 253, 0.3);
}

.card-modern img {
    border-radius: 16px 16px 0 0;
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
}

.card-modern .card-body {
    padding: 25px;
}

.card-modern .card-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--headertext);
}

.card-modern .card-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Counter Section */
.counter-modern {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.counter-modern:hover {
    transform: translateY(-5px);
}

.counter-modern img {
    width: 60px;
    margin-bottom: 15px;
}

.counter-modern h2 {
    font-weight: 800;
    color: var(--buttonbackground);
    font-size: 36px;
}

.counter-modern p {
    color: var(--headertext);
    font-weight: 500;
}

/* Testimonial Modern */
.testimonial-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.testimonial-card-modern:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.testimonial-card-modern .avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.testimonial-card-modern h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--headertext);
}

.testimonial-card-modern p {
    font-style: italic;
    color: #64748b;
}

/* About Section */
.about-modern-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-modern-text {
    padding-left: 40px;
}

/* FAQ Modern */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--headertext);
    background-color: #fff;
    padding: 18px 25px;
}

.accordion-button:not(.collapsed) {
    color: var(--buttonbackground);
    background-color: #f8fbff;
    box-shadow: none;
}

.accordion-body {
    padding: 20px 25px;
    color: #64748b;
    background-color: #fff;
    line-height: 1.7;
}

/* Category Pills */
.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.category-card:hover {
    background: #fff;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--buttonbackground);
}

.category-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .program-name {
    font-weight: 700;
    color: var(--headertext);
    margin: 0;
    font-size: 18px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.category-card:hover .program-name {
    color: var(--buttonbackground);
}

/* Owl Carousel Navigation Styling for All Sliders */
.owl-theme .owl-nav button.owl-prev,
.owl-theme .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff !important;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--buttonbackground) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.owl-theme .owl-nav button.owl-prev:hover,
.owl-theme .owl-nav button.owl-next:hover {
    background-color: var(--buttonbackground) !important;
    color: #fff !important;
}

.owl-theme .owl-nav button.owl-prev {
    left: -20px;
}

.owl-theme .owl-nav button.owl-next {
    right: -20px;
}

.owl-theme .owl-nav {
    margin-top: 0 !important;
}

/* Ensure container has relative positioning */
.owl-theme {
    position: relative;
    padding: 0 20px;
    /* Add padding to prevent cut-off at edges if full width */
}