/* 
   Custom Design System for Shri Balaji International School
   Focus: Glassmorphism, 3D Look, and Professional School Aesthetics
*/

:root {
    --primary-color: #5D2D8F;
    /* Deep Royal Purple */
    --accent-color: #FFC107;
    /* Golden Yellow */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
    --font-main: 'Montserrat', sans-serif;
}

/* Global Aesthetics */
body {
    font-family: var(--font-main);
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Glassmorphism Header - Professional & Sleek */
.main-header-bar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(93, 45, 143, 0.1);
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo-img img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    /* Prevent logo stretching */
}

.main-header-bar .main-navigation a {
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-header-bar .main-navigation a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}


/* 3D Hero & Slider Refinement - Anti-Stretch & Unification */
.custom-hero-container,
.custom-slide {
    perspective: 1000px;
    background: linear-gradient(135deg, #5D2D8F 0%, #3a1c5d 100%);
    /* Professional Fallback Gradient */
    background-image: radial-gradient(circle at 20% 20%, rgba(93, 45, 143, 0.3) 0%, transparent 40%),
        linear-gradient(rgba(93, 45, 143, 0.4), rgba(58, 28, 93, 0.7)),
        var(--hero-bg, var(--slide-bg, none));
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    /* Enforced professional height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom 3D Slider Styles */
.custom-slider-container {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: #5D2D8F;
}

.custom-slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.custom-slide {
    flex: 0 0 33.333%;
    height: 100%;
    width: 100%;
    padding: 100px 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Custom 3D Slider Styles - Forced Height */
.custom-slider-container {
    position: relative;
    width: 100%;
    height: 600px !important;
    /* Aggressive Height Enforcement */
    min-height: 600px !important;
    overflow: hidden;
    background: #5D2D8F;
    z-index: 10;
}

.custom-slider-track {
    display: flex !important;
    width: 300% !important;
    height: 100% !important;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.custom-slide {
    flex: 0 0 33.333% !important;
    height: 100% !important;
    width: 100% !important;
    padding: 100px 0;
    opacity: 1 !important;
}

.slider-controls {
    position: absolute;
    top: 50% !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 20;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Visibility & Surgical Fixes */
.custom-hero-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) rotateX(5deg) !important;
    z-index: 5;
}

.hero-glass-card h1,
.hero-glass-card p {
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Hide Redundant Elementor Sections Across All Pages */
#n2-ss-2,
/* Broken Homepage Slider */
.ast-archive-description,
.elementor-element-c5464fe,
/* Redundant banner on Founder page */
.elementor-element-bff14b6,
/* Redundant banner on Contact page (Fixed) */
.elementor-element-c8efad3,
/* Placeholder Text */
.entry-header {
    display: none !important;
}

/* aggressive Course Image Replacement - Targeting Specific Live 404s */
img[src*="8.21.51-PM"],
.elementor-element-c23869b img {
    content: url('/wp-content/uploads/2026/03/smart_class_interactive_1772854799902.png') !important;
    border-radius: 20px;
}

img[src*="class-img-11"],
.elementor-element-059a941 img {
    content: url('/wp-content/uploads/2026/03/junior_library_kids_1772854830881.png') !important;
    border-radius: 20px;
}

img[src*="8.21.53-PM"],
.elementor-element-6c6a461 img {
    content: url('/wp-content/uploads/2026/03/pre_nursery_colorful_room_1772854815922.png') !important;
    border-radius: 20px;
}

/* Proper Casing for 'oUR cOURSES' */
.elementor-element-0f0490b .elementor-heading-title {
    text-transform: capitalize !important;
}

.custom-hero-container:hover .custom-hero-content {
    transform: rotateX(0deg) scale(1.01);
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 60px 80px;
    display: inline-block;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
    max-width: 1000px;
}

/* 3D Interactive Cards */
.school-feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.school-feature-card:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.school-feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transform: translateZ(30px);
}

/* Premium Footer */
.site-footer {
    background: var(--primary-color) !important;
    color: white !important;
    position: relative;
    padding-top: 50px;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%235D2D8F' fill-opacity='1' d='M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,154.7C960,160,1056,128,1152,112C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.footer-3d-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    transform: perspective(1px) translateZ(0);
}

.footer-3d-icon:hover {
    background: var(--accent-color);
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

/* Glassmorphism Buttons */
.btn-glass-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.btn-glass-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.5);
    background: #ffca2c;
}

/* Leadership & Message Pages - Professional Layout */
.leadership-profile-section {
    padding: 80px 0;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

.profile-image-wrapper {
    flex: 0 0 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    position: sticky;
    top: 120px;
    border: 8px solid white;
}

.profile-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.profile-image-wrapper:hover img {
    transform: scale(1.08);
}

.profile-message-content {
    flex: 1;
    min-width: 320px;
}

.profile-message-content h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 800;
}

.profile-message-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 5px;
}

.profile-message-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 28px;
}

.message-quote {
    background: rgba(93, 45, 143, 0.05);
    border-left: 6px solid var(--primary-color);
    padding: 40px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.3rem;
    border-radius: 0 20px 20px 0;
    color: var(--primary-color);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.02);
}

/* Professional School Tables - Fee Structure */
.sbis-fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
}

.sbis-fee-table th {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 700;
}

.sbis-fee-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.sbis-fee-table tr:last-child td {
    border-bottom: none;
}

.sbis-fee-table tr:hover {
    background: rgba(93, 45, 143, 0.02);
}

/* Curriculum Detail Cards */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.curriculum-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    border-top: 5px solid var(--primary-color);
}

.curriculum-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 50px rgba(93, 45, 143, 0.08);
}

.curriculum-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.curriculum-card ul {
    list-style: none;
    padding: 0;
}

.curriculum-card ul li {
    padding: 10px 0;
    position: relative;
    padding-left: 25px;
    color: #555;
    border-bottom: 1px dashed #eee;
}

.curriculum-card ul li:last-child {
    border-bottom: none;
}

.curriculum-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Admission Process - Step-by-Step Timeline */
.admission-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.timeline-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: 44px;
    top: 60px;
    width: 2px;
    height: calc(100% - 10px);
    background: var(--glass-border);
    z-index: 1;
}

.timeline-step:last-child::before {
    display: none;
}

.step-number {
    flex: 0 0 90px;
    height: 90px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    box-shadow: var(--shadow-3d);
    z-index: 2;
    border: 6px solid white;
}

.step-content {
    flex: 1;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-step:hover .step-content {
    transform: translateX(15px);
    box-shadow: 15px 15px 50px rgba(93, 45, 143, 0.1);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

.step-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Infrastructure Facility Grid */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.facility-card {
    border-radius: 30px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    border: 1px solid #f0f0f0;
}

.facility-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(93, 45, 143, 0.12);
}

.facility-image-container {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-info {
    padding: 40px;
}

.facility-label {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(93, 45, 143, 0.08);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.facility-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
}

.facility-info p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Premium Photo Gallery - Masonry Style */
.sbis-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:nth-child(2n) {
    grid-row: span 2;
}

.gallery-item:nth-child(3n) {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 45, 143, 0.2);
    z-index: 10;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(93, 45, 143, 0.8), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Premium Video Gallery Cards */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.video-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.video-thumbnail-container {
    position: relative;
    height: 220px;
    background: #000;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
    transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 50px rgba(255, 193, 7, 0.8);
}

/* Contact Us - Professional Form & Cards */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 60px 0;
}

.contact-info-cards {
    display: grid;
    gap: 30px;
}

.info-card-3d {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
}

.info-card-3d:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 15px 15px 50px rgba(93, 45, 143, 0.1);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(93, 45, 143, 0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-form-glass {
    background: white;
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid #f5f5f5;
}

.contact-form-glass input,
.contact-form-glass textarea {
    width: 100%;
    padding: 15px 25px;
    margin-bottom: 25px;
    background: #f9f9f9;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form-glass input:focus,
.contact-form-glass textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(93, 45, 143, 0.1);
}

/* About Us - Story & Advantage Section */
.about-story-section {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-story-text h2 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.about-story-text p {
    font-size: 1.25rem;
    line-height: 2;
    color: #444;
}

.about-story-image {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    border: 10px solid white;
}

.about-story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
}

.advantage-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.advantage-card-3d {
    background: white;
    padding: 45px 40px;
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
}

.advantage-card-3d:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 40px 80px rgba(93, 45, 143, 0.15);
}

.advantage-card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.2rem;
    box-shadow: 0 15px 30px rgba(93, 45, 143, 0.3);
}

.advantage-card-3d h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

.advantage-card-3d p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* =========================================
   Live Contact Us Page Redesign (Phase 7)
   ========================================= */
.page-id-16 .elementor-element-ba1af89>.e-con-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "info map"
        "form map";
    gap: 40px;
    align-items: start;
    padding: 0 !important;
}

/* Responsive grid for mobile */
@media (max-width: 921px) {
    .page-id-16 .elementor-element-ba1af89>.e-con-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "form"
            "map";
    }
}

/* Assign Grid Areas */
.page-id-16 .elementor-element-83019ee {
    grid-area: info;
}

.page-id-16 .elementor-element-ba70ea2 {
    grid-area: form;
}

.page-id-16 .elementor-element-afc2b82 {
    grid-area: map;
    height: 100%;
    min-height: 500px;
}

/* 1. Address & Phone Info Cards */
.page-id-16 .elementor-element-83019ee .elementor-widget-container {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.page-id-16 .elementor-element-83019ee p {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.page-id-16 .elementor-element-83019ee p:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(93, 45, 143, 0.1);
}

/* 2. WPForms Glassmorphic 3D Card */
.page-id-16 .elementor-element-ba70ea2 {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px !important;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.page-id-16 .elementor-element-ba70ea2 input,
.page-id-16 .elementor-element-ba70ea2 textarea {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    padding: 18px 20px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    color: var(--primary-color) !important;
}

.page-id-16 .elementor-element-ba70ea2 input:focus,
.page-id-16 .elementor-element-ba70ea2 textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15) !important;
    background: #fff !important;
}

.page-id-16 .elementor-element-ba70ea2 button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), #3a1a6b) !important;
    border-radius: 30px !important;
    padding: 18px 50px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(93, 45, 143, 0.3) !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.page-id-16 .elementor-element-ba70ea2 button[type="submit"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(93, 45, 143, 0.4) !important;
}

/* 3. Google Maps Integration */
.page-id-16 .elementor-element-afc2b82 .elementor-widget-container {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 2px solid white;
}

.page-id-16 .elementor-element-afc2b82 .elementor-custom-embed {
    height: 100%;
}

.page-id-16 .elementor-element-afc2b82 iframe {
    height: 100% !important;
    min-height: 500px;
}

/* =========================================
   Live Gallery & Video Gallery Refinement (Phase 8)
   ========================================= */

/* 1. Global: Hide redundant Section Heroes (Elementor cloud headers) */
.page-id-14 .elementor-element-a3af6f5,
.page-id-886 .elementor-element-a3af6f5,
.page-id-905 .elementor-element-a3af6f5,
.page-id-904 .elementor-element-a3af6f5 {
    display: none !important;
}

/* 2. Photo Gallery (page-id-14) Premium Tab Styling */
.page-id-14 .elementor-gallery {
    padding: 40px 0;
}

.page-id-14 .elementor-gallery__titles {
    margin-bottom: 40px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.page-id-14 .elementor-gallery-title {
    background: #f8fafc !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer;
    font-size: 16px !important;
}

/* Specific target for the "All" tab if it exists natively in Elementor */
.page-id-14 .elementor-gallery-title.elementor-item-active,
.page-id-14 .elementor-gallery-title:hover {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2) !important;
    border-color: var(--accent-color) !important;
}

.page-id-14 .elementor-gallery-item {
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    background: white !important;
}

.page-id-14 .elementor-gallery-item:hover {
    transform: translateY(-15px) rotateX(2deg) rotateY(2deg) !important;
    box-shadow: 0 25px 50px rgba(93, 45, 143, 0.15) !important;
    z-index: 10;
}

/* 3. Video Gallery (page-id-886) CSS-Only Restructure */
/* Force all videos to act as a single grid under one heading */
.page-id-886 .elementor-widget-video {
    margin-bottom: 30px !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    border: 3px solid white !important;
    transition: all 0.4s ease !important;
}

.page-id-886 .elementor-widget-video:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 25px 60px rgba(93, 45, 143, 0.25) !important;
    border-color: var(--accent-color) !important;
}

/* Elementor structural overrides to group the videos */
.page-id-886 .elementor-element-2c5e53e {
    /* The container holding the "Holi Celebration" text/video - hide the text */
    display: none !important;
}

/* Override the built in Elementor Grid so both videos appear together */
.page-id-886 .elementor-element-f947e4c>.elementor-container,
.page-id-886 .elementor-element-d34e62a>.elementor-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}

/* Force the top-level section row to be a block container so the heading sits on top */
.page-id-886 .elementor-element-afb6afb {
    display: block !important;
    width: 100% !important;
}

/* Make sure the columns inside the row flow correctly */
.page-id-886 .elementor-element-f947e4c,
.page-id-886 .elementor-element-90ffaf4 {
    display: block !important;
    width: 100% !important;
}

/* Custom CSS-injected unified Heading "General Activity" */
.page-id-886 .elementor-element-afb6afb::before {
    content: "General Activity";
    display: block;
    text-align: center;
    margin: 40px auto 30px;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    width: 100%;
}

.page-id-886 .elementor-element-afb6afb::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    display: block;
    margin: -15px auto 40px;
    border-radius: 2px;
}

/* =========================================
   Phase 9: Admissions, Academics, & About Redesign
   ========================================= */

/* Hide Default Cloud Headers on Target Pages */
.page-id-859 .elementor-element-a3af6f5,
.page-id-634 .elementor-element-a3af6f5,
.page-id-831 .elementor-element-a3af6f5,
.page-id-557 .elementor-element-a3af6f5,
.page-id-759 .elementor-element-a3af6f5 {
    display: none !important;
}

/* Premium Glassmorphic Styling for Main Content Areas (About, Academic, Admission) */
.page-id-859 .elementor-widget-text-editor,
.page-id-831 .elementor-widget-text-editor,
.page-id-557 .elementor-widget-text-editor,
.page-id-859 .elementor-widget-heading,
.page-id-831 .elementor-widget-heading,
.page-id-557 .elementor-widget-heading,
.page-id-759 .elementor-widget-text-editor {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.page-id-859 .elementor-widget-text-editor:hover,
.page-id-831 .elementor-widget-text-editor:hover,
.page-id-557 .elementor-widget-text-editor:hover,
.page-id-759 .elementor-widget-text-editor:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(93, 45, 143, 0.1);
}

/* Custom List Styling */
.page-id-859 .elementor-widget-text-editor ul,
.page-id-831 .elementor-widget-text-editor ul,
.page-id-557 .elementor-widget-text-editor ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.page-id-859 .elementor-widget-text-editor ul li,
.page-id-831 .elementor-widget-text-editor ul li,
.page-id-557 .elementor-widget-text-editor ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-id-859 .elementor-widget-text-editor ul li::before,
.page-id-831 .elementor-widget-text-editor ul li::before,
.page-id-557 .elementor-widget-text-editor ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Fee Structure Table Premium Look */
.page-id-759 .elementor-widget-text-editor table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    background: white;
}

.page-id-759 .elementor-widget-text-editor th {
    background: var(--primary-color);
    color: white;
    padding: 18px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.page-id-759 .elementor-widget-text-editor td {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    font-weight: 500;
}

.page-id-759 .elementor-widget-text-editor tr:last-child td {
    border-bottom: none;
}

.page-id-759 .elementor-widget-text-editor tr:nth-child(even) {
    background-color: #f8fafc;
}

.page-id-759 .elementor-widget-text-editor tr:hover td {
    background-color: #f1f5f9;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

/* Admission Enquiry Form Wrapper */
.page-id-634 .wpforms-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* =========================================
   Phase 10: Header & Leadership Redesign
   ========================================= */

/* Global Header Slimming */
#masthead .ast-main-header-wrap,
#ast-desktop-header .ast-main-header-wrap {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

#ast-desktop-header .site-logo-img img {
    max-height: 45px !important;
    transition: all 0.3s ease;
}

/* Make sticky header even slimmer on scroll */
#ast-desktop-header.ast-header-sticked .ast-main-header-wrap {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

#ast-desktop-header.ast-header-sticked .site-logo-img img {
    max-height: 38px !important;
}

/* Vertically center the main menu items if they weren't already */
#ast-desktop-header .main-header-menu>.menu-item>.menu-link {
    height: 100%;
    align-items: center;
}

/* Hide Default Cloud Headers on Target Pages (Founder, Director, Principal, Vision) */
.page-id-709 .elementor-element-a3af6f5,
.page-id-714 .elementor-element-a3af6f5,
.page-id-725 .elementor-element-a3af6f5,
.page-id-733 .elementor-element-a3af6f5 {
    display: none !important;
}

/* Premium Glassmorphic Styling for Leadership Main Content */
.page-id-709 .elementor-widget-text-editor,
.page-id-714 .elementor-widget-text-editor,
.page-id-725 .elementor-widget-text-editor,
.page-id-733 .elementor-widget-text-editor {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.page-id-709 .elementor-widget-text-editor:hover,
.page-id-714 .elementor-widget-text-editor:hover,
.page-id-725 .elementor-widget-text-editor:hover,
.page-id-733 .elementor-widget-text-editor:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(93, 45, 143, 0.1);
}

/* Vision/Mission specific list styling */
.page-id-733 .elementor-widget-text-editor ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.page-id-733 .elementor-widget-text-editor ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-id-733 .elementor-widget-text-editor ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}