/* Slider Styles */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;    
    margin-top: -39px;        
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 570px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    /* background: rgba(0,0,0,0.5); */
    padding: 2rem;
    border-radius: 10px;
    /* backdrop-filter: blur(5px); */
    z-index: 5;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 15;
}

.slider-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}              

 #demo2 {
       background: linear-gradient(60deg,#ffffff,#ffffff);
 }
        
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.btn-primary-custom {
    background-color: var(--accent-blue);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
        
/* Section Styles */
.section {
    padding: 80px 0;
        opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;         
    width: 50px;
    height: 3px;
    background-color: var(--gold);
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
}

#classes, #facilities, #contact {
    background-color: var(--light-blue);
}
        
/* About Section */
#about{
    margin-top:-40px;
}

.feature-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
     
/* Classes Section */
.class-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.class-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.class-card .card-body {
    padding: 25px;
}

.class-card .card-title {
    color: var(--primary-blue);
    font-weight: 600;
}
        
/* Enhanced Flashing Admission Banner - Fixed horizontal scroll */
.admission-banner {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--primary-blue));
    background-size: 200% 100%;
    color: white;
    padding: 35px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    animation: 
        gradientShift 3s ease infinite,
        pulse 2s ease-in-out infinite,
        glow 1.5s ease-in-out infinite alternate;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.admission-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

.admission-banner i {
    animation: iconPulse 1.5s ease-in-out infinite;
}

.admission-text {
    display: inline-block;
    animation: textPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.7);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    }
    to {
        box-shadow: 0 4px 25px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes textPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Teachers Section */        
.teacher-card {
    text-align: center;
    margin-bottom: 30px;
}

.teacher-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.teacher-card:hover .teacher-img {
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.teacher-name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.teacher-position {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.teacher-social a {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.teacher-social a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}
        
/* Facilities Section */
.card-header i{
    font-size: 3rem;
}

.facility-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.facility-img {
    height: 200px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
}

.facility-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.facility-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.facility-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}
        
/* Contact Section */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}        

/* WhatsApp Button */
.whatsapp-container {
    text-align: center;
    margin-top: 30px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    background-color: var(--whatsapp-green-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-text {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .teacher-img {
        width: 150px;
        height: 150px;
    }
}