/* Custom Styles for New Trimurti School */

/* Global Background for Subpages */
.subpage-wrapper {
    background-color: #f7f8fb !important;
    min-height: 50vh;
}

/* Subpage background (already applied via subpage-wrapper) */
.subpage-wrapper {
    background-color: #f7f8fb !important;
}

/* Header Fixes */
.header-section {
    z-index: 9999 !important;
}

/* Form Styling Consistency */
.contact-from-wrapper {
    background-color: #f7f8fb;
    border-radius: 30px;
    padding: 50px;
}

/* Centralized Form Wrapper */
.contact-from-wrapper {
    background-color: #0b6b3a !important;
    /* School Green */
    border-radius: 30px;
    padding: 50px;
}

/* Logo Sizing */
.header-logo-img,
.footer-logo-img {
    width: 60px;
}

/* Header Sections */
.header-section-main {
    position: relative;
    z-index: 9999;
}

.header-top-school {
    background-color: #0B6B3A !important;
    margin-bottom: 0;
}

.header-sticky-white {
    background-color: #fff !important;
    position: relative;
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
}

.whatsapp-btn:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 20px;
    vertical-align: middle;
}

/* Force WhatsApp Button to Show on Mobile */
@media (max-width: 1199px) {
    .header-right .whatsapp-btn {

        align-items: center;
        margin-right: 15px;
        padding: 10px 20px;
    }
}

@media (max-width: 575px) {
    .header-right .whatsapp-btn {
        padding: 10px 10px;
        margin-right: 15px;

        line-height: 1;
    }

    .whatsapp-btn i {
        font-size: 20px;

    }
}

/* Hamburger Margin */
.hamburger-margin {
    margin-left: 20px;
}

/* Footer Icons */
.footer-icon-green {
    color: #0B6B3A !important;
}

/* Footer Bottom Background Fix */
.footer-f-bottom-bg {
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* Gallery and Content Images */
.gallery-img-standard {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
}

.mfp-wrap {
    z-index: 999999;
}

/* Subpage Utility Classes */
.subpage-section-padding {
    padding: 60px 0 120px !important;
}

@media (max-width: 767px) {
    .subpage-section-padding {
        padding: 40px 0 80px !important;
    }
}

.subpage-section-padding-top-0 {
    padding: 0px 0 120px !important;
}

@media (max-width: 767px) {
    .subpage-section-padding-top-0 {
        padding: 0px 0 80px !important;
    }
}

/* Teacher Photos */
.teacher-photo-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Parent Speak Testimonials */
.parent-testimonial-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.star-rating-yellow {
    color: #FFC107 !important;
}


/* Footer Bottom Fix */
.footer-bottom .f-bottom-bg {
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* Mobile Responsiveness Tweaks */
@media (max-width: 768px) {
    .contact-from-wrapper {
        padding: 25px;
    }

    .section-padding {
        padding: 60px 0;
    }
}

/* Homepage Testimonials Fix */
.testimonial-client-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Slider Mobile Fix */
@media (max-width: 767px) {
    .hero-2 {
        height: 300px !important;
    }

    .hero-2 .hero-bg {
        background-size: 100% 100% !important;
    }
}

/* Remove Slider Image Border Radius on Desktop */
.hero-section-2,
.hero-2,
.hero-2 .hero-bg,
.banner-active,
.banner-active .swiper-slide {
    border-radius: 0 !important;
}

@media (max-width: 480px) {
    .hero-2 {
        height: 220px !important;
    }
}

/* Gallery Slider Styles */
.gallery-slider {
    padding-bottom: 20px;
}

.gallery-slider .swiper-slide {
    height: auto;
}

@media (max-width: 767px) {
    .learning-section .section-title-area {
        margin-bottom: 30px;
    }
}

/* Fix Menu Flash on Mobile */
@media (max-width: 1199px) {
    .main-menu {
        display: none !important;
    }
}

/* Ensure WhatsApp Icon Shows in Mobile Menu */
.mean-container .mean-nav ul li a i.fa-whatsapp {
    display: inline-block !important;
    font-size: 18px;
    margin-right: 8px;
}

/* Video Play Button & Wave Animation */
.wave-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass to the anchor */
}

.promo-video {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.waves-block .waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 0;
    animation: waves-anim 3s ease-in-out infinite;
}

.waves-block .wave-1 { animation-delay: 0s; }
.waves-block .wave-2 { animation-delay: 1s; }
.waves-block .wave-3 { animation-delay: 2s; }

@keyframes waves-anim {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.video-play-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: #ffcc00; /* School Yellow/Accent or match theme-color-2 */
    color: #0b3d91; /* School Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 11;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.video-play-icon:hover {
    transform: scale(1.1);
    background: #fff;
    color: #0b3d91;
}

.video-text {
    color: #fff;
    margin-top: 10px;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ensure the gallery/slider container has relative positioning */
.gallery-image-3, .hero-2, .swiper-slide {
    position: relative;
}

/* Magnific Popup Video Style */
.mfp-iframe-holder .mfp-content {
    max-width: 900px;
}