/* ============================================
   The Discovery World School - Ladwa
   Custom CSS Styles
   ============================================ */

/* Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #003153;
    --secondary-color: #0092cb;
    --accent-color: #0092cb;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Utility Classes
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition);
    text-transform: capitalize;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 146, 203, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 146, 203, 0.4);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-nav {
    padding: 10px 25px;
    font-size: 14px;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner-container {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: var(--white);
    padding: 3px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 3px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 80px;
    height: auto;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a87 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0 60px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.scroll-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    animation: bounce 2s infinite;
}

.scroll-link:hover {
    background: var(--white);
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--light-color);
}

.about-image-wrapper {
    position: relative;
}

.about-main-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--secondary-color), #003153);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.exp-text {
    font-size: 12px;
    color: var(--white);
    text-transform: uppercase;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #2d5a87);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--white);
    font-size: 20px;
}

.feature-content h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Modern Feature Cards (About Section)
   ============================================ */
.about-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-card-modern {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-card-modern .card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--secondary-color), #003153);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card-modern:hover .card-icon {
    transform: scale(1.1);
}

.feature-card-modern .card-icon i {
    font-size: 28px;
    color: var(--white);
}

.feature-card-modern .card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card-modern:hover .card-content h4 {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.feature-card-modern .card-content p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Responsive for feature cards */
@media (max-width: 991.98px) {
    .about-feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .about-feature-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card-modern {
        padding: 20px 15px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .feature-card-modern .card-icon {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }

    .feature-card-modern .card-icon i {
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    .feature-card-modern {
        flex-direction: column;
        text-align: center;
    }

    .feature-card-modern .card-icon {
        margin: 0 auto 15px;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    background: var(--white);
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 146, 203, 0.1), rgba(0, 146, 203, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--secondary-color);
}

.feature-card:hover .feature-icon-wrapper i {
    color: var(--white);
}

.feature-icon-wrapper i {
    font-size: 32px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover h4 {
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Academics Section
   ============================================ */
.academics-section {
    background: var(--light-color);
}

.academic-card {
    background: var(--white);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.academic-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.academic-content {
    padding: 25px 20px;
}

.academic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.academic-card:hover::before {
    transform: scaleX(1);
}

.academic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.academic-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #2d5a87);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.academic-icon i {
    color: var(--white);
    font-size: 28px;
}

.academic-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.academic-grade {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 146, 203, 0.1);
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
}

.academic-desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.subjects-offered {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.subjects-offered h4 {
    margin-bottom: 20px;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.subject-tag {
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    background: var(--white);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 30px;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a87 100%);
}

.testimonials-section .section-badge {
    background: rgba(255, 255, 255, 0.2);
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 18px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-info span {
    color: var(--text-light);
    font-size: 14px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: var(--shadow);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: none;
    font-size: 20px;
    color: var(--primary-color);
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
}

.carousel-indicators button.active {
    background: var(--secondary-color);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--light-color);
}

.contact-info {
    padding-right: 30px;
}

.contact-desc {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-info-cards .info-card {
    background: var(--light-color);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.contact-info-cards .info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-info-cards .info-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info-cards .info-card h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-info-cards .info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #003153);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 18px;
}

.contact-text h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-floating label {
    color: var(--text-light);
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: none;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--secondary-color);
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
    padding: 0;
}

.map-wrapper {
    overflow: hidden;
}

.map-wrapper iframe {
    filter: grayscale(30%);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #003153;
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 70px 0 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 100px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.footer-desc {
    font-size: 14px;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-widget p {
    font-size: 14px;
    margin-bottom: 15px;
}

.newsletter-form .input-group {
    border-radius: 30px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    padding: 12px 20px;
    border-radius: 0 30px 30px 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
}

.copyright {
    font-size: 14px;
    margin: 0;
}

.credits {
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #003153);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/* ============================================
   Mobile Sticky Bottom Bar
   ============================================ */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 10px 15px;
}

.sticky-bar-content {
    display: flex;
    gap: 15px;
}

.mobile-sticky-bar .btn {
    flex: 1;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-sticky-bar .btn-call {
    background: var(--accent-color);
    color: var(--white);
}

.mobile-sticky-bar .btn-call:hover {
    background: #219a52;
    color: var(--white);
}

.mobile-sticky-bar .btn-apply {
    background: var(--secondary-color);
    color: var(--white);
}

.mobile-sticky-bar .btn-apply:hover {
    background: #e0830b;
    color: var(--white);
}

/* Adjust body padding for sticky bar */
body {
    padding-bottom: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-top: 15px;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-image-wrapper {
        margin-bottom: 50px;
    }
    
    .about-experience {
        right: 0;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .scroll-down {
        display: none;
    }
    
    .about-experience {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 20px;
    }
    
    .feature-card,
    .academic-card {
        padding: 30px 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .carousel-control-prev {
        left: 0;
    }
    
    .carousel-control-next {
        right: 0;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .subject-tags {
        gap: 8px;
    }
    
    .subject-tag {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-form {
        margin-top: 15px;
    }
}

/* ============================================
   Animation Classes
   ============================================ */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   Form Validation Styles
   ============================================ */
.form-control.error,
.form-select.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-success.show {
    display: block;
}

/* ============================================
   Admission Modal Styles
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #2d5a87);
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 20px 30px;
    border-bottom: none;
}

.modal-title {
    font-size: 1.4rem;
    color: var(--white);
    display: flex;
    align-items: center;
}

.modal-title i {
    color: var(--secondary-color);
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition);
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.admission-form .form-floating {
    margin-bottom: 0;
}

.admission-form .form-control,
.admission-form .form-select {
    height: 55px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
}

.admission-form .form-control:focus,
.admission-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 146, 203, 0.15);
}

.admission-form textarea.form-control {
    height: auto;
    min-height: 80px;
}

.admission-form .form-check {
    padding-left: 25px;
    margin-top: 5px;
}

.admission-form .form-check-label a {
    color: var(--secondary-color);
    text-decoration: none;
}

.admission-form .form-check-label a:hover {
    text-decoration: underline;
}

#formMessage {
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

#formMessage.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formMessage.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admission-form .btn-primary {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 10px;
    margin-top: 10px;
}
.top-bar {
  background: #003153;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-weight: 600;
  letter-spacing: 1px;
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scroll 15s linear infinite;
}

.scroll-content {
  padding-right: 80px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
#mainNav{
    margin-top: 40px;
}
.navbar.scrolled {
  margin-top: 0px !important;
}
/* Responsive for modal */
@media (max-width: 575.98px) {
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
        padding-bottom: 90px;
    }
    
    .admission-form .form-control,
    .admission-form .form-select {
        height: 50px;
    }
}


.banner-form {
  background: #fff;
  padding:20px 20px 40px 20px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.banner-form h3 {
  margin-bottom: 30px !important;
  text-align: center;
}
/* APPLY SECTION */
.apply-section {
  width: 100%;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.apply-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apply-content {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a87 100%);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apply-content h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #fff;
}

.apply-sub {
  font-weight: 600;
  margin-bottom: 20px;
}

.apply-content p {
  margin-bottom: 25px;
  line-height: 1.6;
}

.apply-content .btn.btn-primary.btn-lg.px-5 {
  width: 200px;
}
.modal-header i {
  color: #fff;
}
#admissionForm .btn-primary{
    width: 220px !important;
}

/*========= Founder ==============*/

.card-founder img {
  height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}
.founder-section .section-title h2 {
  margin-bottom: 30px;
  font-size: 48px !important;
}
.founder-section {
  padding: 40px 0px;
  text-align: center;
}
.card-founder {
  background: linear-gradient(135deg, rgba(0, 146, 203, 0.1), rgba(0, 146, 203, 0.2));
  border-radius: 15px;
  height: 100%;
}
.founder-name {
  padding: 20px;
}
.founder-name h4 {
  font-size: 18px;
}


/* RESPONSIVE */
@media (max-width: 992px) {
  .apply-content {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-content {
    padding: 30px;
  }
  .navbar-logo{
    width: 60px;
  }
 .hero-content{
    padding: 130px 20px 60px 20px !important;
    text-align: left;
 }
 .hero-buttons .btn{
    max-width: 100% !important;
 }
 .banner-form{
    padding: 10px 10px 20px 10px;
    margin-top: 30px;
 }
 .banner-form h3 {
  margin-bottom: 13px !important;
  text-align: center;
  margin-top: 10px;
}
#admissionForm .btn-primary{
    width: 100% !important;
    margin-top: 0px !important;
}
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
}
.footer-bottom{
    padding: 25px 0px 90px 0px;
}
.founder-section .section-title h2{
    font-size: 32px !important;
}
.card-founder {
  height: inherit;
}

}