
  .banner-carousel {
    position: relative;
    width: 100%;
    margin-top: 80px;
  }

  .carousel-item {
    height: 100vh;
    min-height: 400px;
    transition: opacity 1s ease-in-out !important; /* Smooth fade */
  }

  .carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1s;
    transition-property: opacity;
  }

  .carousel-fade .carousel-item.active {
    opacity: 1;
  }

  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 2rem;
    text-align: center;
  }

  .carousel-caption h5 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: white;
  }

  .carousel-caption h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
  }

  .carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  }

  .btn-orange {
    background-color: #ff8000;
    color: #fff;
    border: none;
  }

  .btn-orange:hover {
    background-color: #e67300;
  }

  .btn-white-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
  }

  .btn-white-outline:hover {
    background-color: #fff;
    color: #000;
  }

  .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 165, 0, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 10;
  }

  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    background-color: rgba(255, 165, 0, 1);
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
  


 @media (max-width: 768px) {
     
     .carousel-control-prev,
  .carousel-control-next {
    top: 60%; /* Move buttons lower on mobile */
  }
     
     .carousel-caption h5 {
      font-size: 1rem !important;
    }
    .carousel-caption h1 {
      font-size: 1.4rem !important;
    }
  .carousel-item {
    height: auto !important;        /* Allow carousel to shrink */
    min-height: unset !important;
    padding: 0 !important;
  }

  .carousel-item img {
    height: auto !important;        /* Let image define height */
    max-height: 100vh;              /* Avoid overly tall images */
    width: 100%;
    object-fit: cover;
    display: block;
  }

  .carousel-caption {
    position: absolute;             /* Overlay caption over image */
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}






/* Base Styles */
.school-features {
    padding: 40px 0;
    background-color: white;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header h2 span {
    color: #FF8C42;
    position: relative;
}

.section-header h2 span:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFB347;
    border-radius: 3px;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    perspective: auto;
    max-width: auto;
    margin: 0 auto;
}

.feature-card {
    width: 210px;
    height: 380px;
    position: relative;
    transition: all 0.5s ease;
    z-index: 1;
    flex: 1 0 auto;
    min-width: 250px;
    max-width: 270px;
}

.feature-card:hover {
    transform: translateY(-15px);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(255,140,66,0.2);
    border: 2px solid rgba(255,140,66,0.1);
}

.feature-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-front {
    color: #333;
}

.card-back {
    color: white;
    transform: rotateY(180deg);
}

.card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(255,140,66,0.3);
}

.card-icon i {
    transition: all 0.3s;
}

.feature-card:hover .card-icon i {
    transform: scale(1.2) rotate(10deg);
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #FF8C42;
    font-weight: 600;
}

.card-back h3 {
    color: white;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

.card-back p {
    color: white;
}

.card-btn {
    padding: 10px 25px;
    background: white;
    color: #FF8C42;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-btn:hover {
    background: #FFF5E6;
    color: #E67300;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Kid Animations */
.card-kid {
    position: absolute;
    width: 70px;
    height: 90px;
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

.card-kid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kid-1 {
    bottom: -35px;
    left: -25px;
    transform: rotate(-15deg) scaleX(-1);
}

.kid-2 {
    bottom: -30px;
    right: -20px;
    transform: rotate(10deg);
}

.kid-3 {
    top: -30px;
    left: -20px;
    transform: rotate(15deg) scaleX(-1);
}

.kid-4 {
    top: -35px;
    right: -25px;
    transform: rotate(-10deg);
}

.feature-card:hover .kid-1 {
    transform: translateX(-20px) translateY(15px) rotate(-25deg) scaleX(-1);
}

.feature-card:hover .kid-2 {
    transform: translateX(20px) translateY(15px) rotate(20deg);
}

.feature-card:hover .kid-3 {
    transform: translateX(-20px) translateY(-15px) rotate(25deg) scaleX(-1);
}

.feature-card:hover .kid-4 {
    transform: translateX(20px) translateY(-15px) rotate(-20deg);
}

/* Card stretching animation */
@keyframes cardBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card {
    animation: cardBounce 4s infinite ease-in-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.9s;
}

/* Pencil Border Animation */
.feature-card:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed #FFB347;
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: all 0.5s;
}

.feature-card:hover:before {
    opacity: 1;
    animation: pencilSpin 2s linear infinite;
}

@keyframes pencilSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-container {
        gap: 20px;
    }
    
    .feature-card {
        width: 23%;
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .feature-card {
        min-width: 200px;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-card {
        width: 45%;
        min-width: 250px;
        margin-bottom: 60px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .feature-card {
        width: 100%;
        max-width: 280px;
    }
}



* {
    box-sizing: border-box;
    
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
    /* Orange Theme Colors */
    .text-orange { color: #FF6B35; }
    .bg-orange { background-color: #FF6B35; }
    .bg-light-orange { background-color: #FFF5F1; }
    .btn-orange {
        background-color: #FF6B35;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 50px;
        transition: all 0.3s ease;
    }
    .btn-orange:hover {
        background-color: #E55627;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    }
    
.section-padding {
    padding: 20px 0;
    background-color: white;
    overflow: hidden;
    }
    .section-subtitle {
        
        display: inline-block;
        color: #FF6B35;
        font-weight: 600;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 14px;
    }
    .section-title {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    /* Image Area Styling */
    .about-img-wrapper {
        position: relative;
        padding: 15px;
        background: white;
        border-radius: 10px;
    }
    .floating-shapes {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 0;
    }
    .shape {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 107, 53, 0.1);
    }
    .orange-shape-1 {
        width: 100px;
        height: 100px;
        top: -20px;
        right: -20px;
        animation: floatAnimation 6s infinite ease-in-out;
    }
    .orange-shape-2 {
        width: 60px;
        height: 60px;
        bottom: -15px;
        left: -15px;
        animation: floatAnimation 4s infinite ease-in-out reverse;
    }
    
    /* Achievement Badge */
    .achievement-badge {
        position: absolute;
        bottom: -20px;
        right: 20px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
        z-index: 1;
        animation: pulse 2s infinite;
    }
    .badge-content {
        text-align: center;
    }
    .badge-content span {
        font-size: 32px;
        font-weight: 700;
        display: block;
        line-height: 1;
    }
    .badge-content small {
        font-size: 12px;
        display: block;
        margin-top: 5px;
    }
    
    /* Facts Grid */
    .facts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 0;
    }
    .fact-item {
        display: flex;
        align-items: flex-start;
        padding: 15px;
        border-radius: 8px;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }
    .fact-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .fact-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        color: white;
        font-size: 18px;
        flex-shrink: 0;
    }
    .fact-text h5 {
        font-size: 16px;
        margin-bottom: 5px;
        color: #333;
    }
    .fact-text p {
        font-size: 13px;
        color: #666;
        margin: 0;
    }
    
    /* Content Transition */
    .historical-content,
    .content-full {
        display: none;
        animation: fadeIn 0.5s ease-out;
    }
    
    /* Animations */
    @keyframes floatAnimation {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Responsive Adjustments */
    @media (max-width: 991px) {
        .section-title { font-size: 30px; }
        .facts-grid { grid-template-columns: 1fr; }
    }



    /* Orange Theme Colors */
    .text-orange { color: #FF6B35; }
    .bg-orange { background-color: #FF6B35; }
    .bg-light-orange { background-color: #FFF5F1; }
    
    /* Section Styling */
    .section-padding { padding: 40px 0; }
    .section-title {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    /* Letter Animation */
    @keyframes letterFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    .letter-animation {
        display: inline-block;
        animation: letterFloat 3s ease-in-out infinite;
    }
    
    /* Floating Shapes */
    .floating-shape {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 107, 53, 0.1);
        z-index: 0;
    }
    .shape-1 {
        width: 80px;
        height: 80px;
        top: -20px;
        right: -20px;
        animation: floatAnimation 6s infinite ease-in-out;
    }
    .shape-2 {
        width: 40px;
        height: 40px;
        bottom: -15px;
        left: -15px;
        animation: floatAnimation 4s infinite ease-in-out reverse;
    }
    .shape-3 {
        width: 60px;
        height: 60px;
        top: 50%;
        right: -30px;
        animation: floatAnimation 5s infinite ease-in-out;
    }
    
    /* Animations */
    @keyframes floatAnimation {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
    
    /* Values Grid */
    .values-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Mission Highlight */
    .mission-highlight {
        border-left: 3px solid #FF6B35;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 991px) {
        .section-title { font-size: 30px; }
        .values-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 767px) {
        .section-padding { padding: 60px 0; }
    }




        .gallery-section {
            padding: 40px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .gallery-title {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            aspect-ratio: 1/1;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

        .gallery-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }

        .gallery-item:hover .gallery-img {
            transform: scale(1.05);
        }

        .gallery-name {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(255, 102, 0, 0.9), transparent);
            color: white;
            padding: 15px 10px;
            font-weight: bold;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .gallery-name {
            transform: translateY(0);
        }

        .view-more-btn {
            display: block;
            width: 200px;
            margin: 0 auto;
            padding: 12px 20px;
            background-color: #FF6600;
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
        }

        .view-more-btn:hover {
            background-color: #e65c00;
            transform: translateY(-2px);
        }

        .view-more-btn.loading {
            background-color: #e65c00;
            position: relative;
        }

        .view-more-btn.loading::after {
            content: "";
            position: absolute;
            width: 16px;
            height: 16px;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            border: 3px solid transparent;
            border-top-color: white;
            border-radius: 50%;
            animation: button-loading-spinner 1s ease infinite;
        }

        @keyframes button-loading-spinner {
            from {
                transform: rotate(0turn);
            }
            to {
                transform: rotate(1turn);
            }
        }

        /* Modal styles - Improved version */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            position: relative;
            max-width: 80%;
            max-height: 90vh;
            background-color: #fff;
            border-radius: 12px;
            overflow: hidden;
            animation: modalFadeIn 0.4s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
        }

        @keyframes modalFadeIn {
            from {
                transform: scale(0.9);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-img-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background-color: #f8f8f8;
            max-height: 80vh;
        }

        .modal-img {
            max-width: 100%;
            max-height: calc(80vh - 40px);
            object-fit: contain;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .modal-info {
            padding: 20px;
            text-align: center;
            background-color: white;
            border-top: 1px solid #eee;
        }

        .modal-name {
            font-size: 22px;
            color: #FF6600;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .modal-close:hover {
            background-color: #FF6600;
            transform: rotate(90deg);
        }

        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
            
            .modal-content {
                max-width: 90%;
                max-height: 90vh;
            }
            
            .modal-img-container {
                padding: 15px;
            }
            
            .modal-img {
                max-height: calc(90vh - 30px);
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 15px;
            }
            
            .modal-content {
                max-width: 95%;
                border-radius: 8px;
            }
            
            .modal-img-container {
                padding: 10px;
            }
            
            .modal-name {
                font-size: 18px;
            }
        }




