/* ===================================================================
   CRM Public School - Premium Design System & Stylesheet Customizations
   Created to elevate Kidza template into a modern, professional public school
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-blue: #0c2e60;       /* Academic Navy Blue */
    --primary-dark: #071b36;       /* Deep Night Blue */
    --accent-orange: #f15f25;      /* Warm Orange */
    --accent-gold: #ff9f1c;        /* Premium gold for tags and borders */
    --accent-teal: #10b981;        /* Modern green for Success/Admissions */
    --bg-light: #f8fafc;           /* Elegant ultra-light blue/grey */
    --bg-white: #ffffff;
    --text-main: #334155;          /* Slate 700 body text */
    --text-dark: #0f172a;          /* Slate 900 headers */
    --text-muted: #64748b;         /* Slate 500 captions */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(12, 46, 96, 0.08), 0 4px 6px -2px rgba(12, 46, 96, 0.03);
    --shadow-premium: 0 20px 40px -15px rgba(12, 46, 96, 0.12);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(7, 27, 54, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-border-dark: rgba(255, 255, 255, 0.08);
}

/* 1. Global Typography & Core Overrides */
html {
    scroll-behavior: smooth !important;
}

body {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-main) !important;
    background-color: var(--bg-light) !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, 
.section-title h2, .sub-title, 
.page-heading h1, .homemenu-title a {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* 2. Premium Sticky Glassmorphic Navbar */
header.header-section {
    position: relative;
    z-index: 999;
}

#header-sticky {
    transition: var(--transition-normal);
}

#header-sticky.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.4s ease-out;
    padding: 10px 0;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Category dropdown hide when not active or clean layout */
.category-wrapper {
    display: none !important; /* Hide non-functional elements for premium cleanup */
}

.header-right-icon .cart-icon, 
.header-right-icon .search-toggler {
    display: none !important; /* Hide e-commerce shopping cart and non-functional items */
}

/* Clean Header Menu Styles */
.main-menu ul li a {
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--primary-blue) !important;
    text-transform: capitalize !important;
    padding: 24px 0 !important;
    position: relative;
    transition: var(--transition-fast);
}

.main-menu ul li a:hover,
.main-menu ul li.active > a {
    color: var(--accent-orange) !important;
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.main-menu ul li:hover > a::after,
.main-menu ul li.active > a::after {
    width: 100%;
}

/* Dropdown Menu styling styling */
.main-menu ul li .submenu {
    background: var(--bg-white) !important;
    box-shadow: var(--shadow-premium) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(12, 46, 96, 0.05) !important;
    padding: 12px 0 !important;
    overflow: hidden;
}

.main-menu ul li .submenu li a {
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
    display: block !important;
}

.main-menu ul li .submenu li a::after {
    display: none !important;
}

.main-menu ul li .submenu li a:hover {
    color: var(--accent-orange) !important;
    background-color: rgba(241, 95, 37, 0.04) !important;
    padding-left: 28px !important;
}

/* 3. Modern Button Elements */
.theme-btn, .border-btn {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    border-radius: 30px !important;
    padding: 14px 28px !important;
    transition: var(--transition-normal) !important;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.theme-btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff7e47 100%) !important;
    color: var(--bg-white) !important;
}

.theme-btn i {
    font-size: 12px;
    transition: var(--transition-fast);
}

.theme-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--bg-white) !important;
}

.theme-btn:hover i {
    transform: translateX(4px);
}

/* Premium blue secondary button */
.theme-btn.style-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%) !important;
}

.theme-btn.style-blue:hover {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff7e47 100%) !important;
}

.border-btn {
    background: transparent !important;
    border: 2px solid var(--primary-blue) !important;
    color: var(--primary-blue) !important;
}

.border-btn:hover {
    background: var(--primary-blue) !important;
    color: var(--bg-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 4. Glassmorphism Card and Hover Lift System */
.program-box-item, .classes-box-item, .team-card-item, .news-card-items, .little-blog-items, .team-box {
    background: var(--bg-white);
    border-radius: 20px !important;
    border: 1px solid rgba(12, 46, 96, 0.04) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 30px !important;
    transition: var(--transition-normal) !important;
    position: relative;
    overflow: hidden;
}

.program-box-item::before, .classes-box-item::before, .team-card-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.program-box-item:hover, .classes-box-item:hover, .team-card-item:hover, .news-card-items:hover, .team-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-premium) !important;
    border-color: rgba(12, 46, 96, 0.08) !important;
}

.program-box-item:hover::before, .classes-box-item:hover::before, .team-card-item:hover::before {
    transform: scaleX(1);
}

/* Modern Card Layout Tweaks */
.program-icon {
    width: 70px !important;
    height: 70px !important;
    background: rgba(241, 95, 37, 0.06) !important;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.program-box-item:hover .program-icon {
    background: var(--accent-orange) !important;
}

.program-box-item:hover .program-icon img {
    filter: brightness(0) invert(1);
}

/* 5. Custom Scroll Reveal Animation System */
.reveal-fade, .reveal-slide-up, .reveal-slide-left, .reveal-slide-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-fade {
    transform: scale(0.97);
}

.reveal-slide-up {
    transform: translateY(40px);
}

.reveal-slide-left {
    transform: translateX(-40px);
}

.reveal-slide-right {
    transform: translateX(40px);
}

.reveal-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Delay modifiers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* 6. Modern Premium Hero Section Setup */
.hero-section.hero-bg {
    background-color: var(--primary-dark) !important;
    background-image: radial-gradient(circle at 10% 20%, rgba(12, 46, 96, 0.15) 0%, transparent 80%) !important;
    padding: 160px 0 100px 0 !important;
    overflow: hidden;
    position: relative;
}

.hero-content h1 {
    font-size: 54px !important;
    line-height: 1.15 !important;
    color: var(--bg-white) !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
}

.hero-content p {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 35px !important;
    line-height: 1.6 !important;
}

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.hero-img img {
    border-radius: 30px;
    transition: var(--transition-slow);
}

.hero-img:hover img {
    transform: scale(1.03);
}

/* Redundant kid-style floaters hidden for premium look */
.hero-section .car-shape,
.hero-section .crown-shape,
.hero-section .frame-shape,
.about-section .love-shape,
.about-section .star-shape,
.about-section .tubelight-shape {
    opacity: 0.3 !important; /* Soften the child cartoon shapes */
}

/* 7. Dedicated Call-To-Action (CTA) Banner */
.premium-cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-premium);
}

.premium-cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(241, 95, 37, 0.12) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
}

.premium-cta-section h2 {
    font-size: 38px !important;
    color: var(--bg-white) !important;
    font-weight: 800 !important;
    margin-bottom: 15px;
}

.premium-cta-section p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px;
    margin-bottom: 0;
}

/* 8. Dedicated Principal Message Layout */
.principal-message-container {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(12, 46, 96, 0.05);
    padding: 50px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.principal-profile-card {
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid rgba(12, 46, 96, 0.04);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.principal-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 5px solid var(--bg-white);
    box-shadow: var(--shadow-md);
    display: block;
}

.principal-name {
    font-size: 22px !important;
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    margin-bottom: 5px;
}

.principal-title {
    font-size: 14px !important;
    color: var(--accent-orange) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.principal-credentials {
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 15px;
}

.message-content-wrapper {
    padding-left: 20px;
}

.message-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--primary-blue);
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-orange);
}

.message-body p {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.message-signature {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
}

.signature-img {
    max-height: 60px;
    margin-bottom: 10px;
}

/* 9. Grid Gallery with Filter System */
.gallery-filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--primary-blue);
    border: 1px solid rgba(12, 46, 96, 0.08);
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--primary-blue);
    color: var(--bg-white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-normal);
}

.gallery-image-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 27, 54, 0.9) 0%, rgba(7, 27, 54, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-overlay h3 {
    color: var(--bg-white) !important;
    font-size: 18px !important;
    margin-bottom: 4px !important;
    transform: translateY(15px);
    transition: var(--transition-normal);
}

.gallery-overlay span {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateY(15px);
    transition: var(--transition-normal);
    transition-delay: 0.05s;
}

.gallery-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-orange);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover .gallery-image-box img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Filter animations */
.gallery-item.filtered-out {
    display: none;
}

.gallery-item.filtered-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 10. Responsiveness Adjustments */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 42px !important;
    }
    .main-menu ul li a {
        padding: 18px 0 !important;
    }
}

@media (max-width: 991px) {
    .hero-section.hero-bg {
        padding: 120px 0 80px 0 !important;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h1 {
        font-size: 38px !important;
    }
    .hero-button {
        justify-content: center;
    }
    .principal-profile-card {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
    .message-content-wrapper {
        padding-left: 0;
    }
    .principal-message-container {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .premium-cta-section {
        padding: 30px;
        text-align: center;
    }
    .premium-cta-section h2 {
        font-size: 28px !important;
    }
    .theme-btn, .border-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-button {
        flex-direction: column;
        width: 100%;
    }
    .hero-button .wave-area {
        margin-top: 15px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets-wrapper {
        text-align: center;
    }
    .single-footer-widget .social-icon {
        justify-content: center;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-info .icon {
        margin-bottom: 12px;
    }
}

/* ====================================================
   HERO SLIDER — Full-Width Cinematic Carousel
   Mobile-First, Fully Responsive
   ==================================================== */

/* ── 1. Section wrapper ── */
.crm-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 960px;
    overflow: hidden;
    background: #071b36;
}

/* ── 2. Bootstrap carousel chain must fill wrapper height ── */
.crm-hero-slider .carousel,
.crm-hero-slider .carousel-inner {
    height: 100%;
    width: 100%;
}

/* ── 3. Each slide = full height, image as bg ── */
.crm-slide {
    height: 100% !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

/* ── 4. Dark gradient overlay ── */
.crm-slide-overlay {
    position: absolute;
    inset: 0;
    /* stronger at left-bottom for text legibility */
    background:
        linear-gradient(to right, rgba(4,12,30,0.88) 0%, rgba(4,12,30,0.55) 60%, rgba(4,12,30,0.20) 100%),
        linear-gradient(to top,   rgba(4,12,30,0.70) 0%, transparent 50%);
    z-index: 1;
}

/* ── 5. Container: absolute fill + flex-center ── */
.crm-slide > .container {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    padding-top: 80px;   /* clear sticky navbar (~70px) */
    z-index: 2;
}

/* ── 6. Content block ── */
.crm-slide-content {
    width: 100%;
    max-width: 680px;
    padding: 0 0 40px 0;   /* bottom padding keeps content off the dots */
    opacity: 0;
    transform: translateY(24px);
    transition: none;
}

/* Animate ONLY the active slide's content */
.carousel-item.active .crm-slide-content {
    animation: crmSlideIn 0.8s 0.20s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes crmSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Tag pill ── */
.crm-slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    /* prevent overflow on small screens */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-tag-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    background: #f15f25;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%,100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.65); opacity: 0.5; }
}

/* ── Main heading ── */
.crm-slide-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(28px, 5vw, 62px) !important;
    font-weight: 800 !important;
    line-height: 1.14 !important;
    color: #fff !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 28px !important;
    text-shadow: 0 4px 28px rgba(0,0,0,0.40);
}

/* ── Button row ── */
.crm-slide-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Orange primary */
.crm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    background: linear-gradient(135deg, #f15f25 0%, #ff8c47 100%);
    color: #fff !important;
    padding: 13px 26px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(241,95,37,0.42);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    min-width: 0;
}
.crm-btn-primary i { font-size: 12px; transition: transform 0.25s ease; }
.crm-btn-primary:hover {
    background: linear-gradient(135deg,#0c2e60 0%,#071b36 100%);
    box-shadow: 0 10px 28px rgba(12,46,96,0.48);
    transform: translateY(-3px);
    color: #fff !important;
}
.crm-btn-primary:hover i { transform: translateX(4px); }

/* Ghost outline */
.crm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: rgba(255,255,255,0.92) !important;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.40);
    text-decoration: none;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.28s ease;
    white-space: nowrap;
    min-width: 0;
}
.crm-btn-ghost:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.80);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ── Prev/Next arrows (desktop only) ── */
.crm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.crm-arrow:hover {
    background: #f15f25;
    border-color: #f15f25;
    transform: translateY(-50%) scale(1.1);
}
.crm-arrow-prev { left: 22px; }
.crm-arrow-next { right: 22px; }

/* ── Dot indicators ── */
.crm-slider-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 30;
}
.crm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
    border: none;
    cursor: pointer;
    transition: all 0.30s ease;
    padding: 0;
    flex-shrink: 0;
}
.crm-dot.active, .crm-dot:hover {
    background: #f15f25;
    width: 24px;
    border-radius: 5px;
}

/* Smooth slide transition */
.crm-hero-slider .carousel-item {
    transition: transform 0.70s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── Static fallback hero ── */
.crm-hero-static {
    background-size: cover !important;
    background-position: center center !important;
    display: flex;
    align-items: center;
}
.crm-hero-static > .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}
.crm-hero-static .crm-slide-content {
    opacity: 1;
    transform: none;
    animation: none;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* Large tablets (≤1024px) */
@media (max-width: 1024px) {
    .crm-hero-slider {
        height: 85vh;
    }
    .crm-slide > .container {
        max-width: 100%;
    }
}

/* Tablets (≤991px) — centre-align content */
@media (max-width: 991px) {
    .crm-hero-slider {
        height: 80vh;
        min-height: 520px;
    }
    .crm-slide > .container {
        justify-content: center;
        text-align: center;
        padding-top: 70px;
    }
    .crm-slide-content {
        max-width: 600px;
        margin: 0 auto;
    }
    .crm-slide-tag {
        margin-left: auto;
        margin-right: auto;
    }
    .crm-slide-actions {
        justify-content: center;
    }
    /* Darken overlay slightly for tablet (bg often centered on faces) */
    .crm-slide-overlay {
        background:
            linear-gradient(to bottom, rgba(4,12,30,0.75) 0%, rgba(4,12,30,0.65) 100%);
    }
    /* Hide side arrows — swipe works instead */
    .crm-arrow { display: none !important; }
}

/* Small tablets / large phones (≤767px) */
@media (max-width: 767px) {
    .crm-hero-slider {
        height: 75vh;
        min-height: 460px;
    }
    .crm-slide {
        /* Pull image to top-center for portrait crops */
        background-position: top center !important;
    }
    .crm-slide > .container {
        padding-top: 65px;
        align-items: flex-end;   /* push content toward bottom on small screens */
        padding-bottom: 60px;
    }
    .crm-slide-content {
        max-width: 100%;
        padding: 0;
    }
    .crm-slide-title {
        font-size: clamp(24px, 6.5vw, 36px) !important;
        margin-bottom: 20px !important;
    }
    .crm-slide-tag {
        font-size: 10.5px;
        padding: 6px 13px;
        margin-bottom: 14px;
    }
    .crm-slide-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .crm-btn-primary,
    .crm-btn-ghost {
        font-size: 13.5px;
        padding: 11px 20px;
    }
    /* Dots closer to bottom edge */
    .crm-slider-indicators {
        bottom: 16px;
    }
}

/* Phones (≤575px) */
@media (max-width: 575px) {
    .crm-hero-slider {
        height: 70vh;
        min-height: 400px;
    }
    .crm-slide {
        background-position: 60% center !important; /* favour right-side of image where faces usually are */
    }
    .crm-slide > .container {
        padding-top: 60px;
        padding-bottom: 56px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .crm-slide-content {
        text-align: center;
    }
    .crm-slide-tag {
        font-size: 10px;
        padding: 5px 12px;
        letter-spacing: 0.08em;
        margin-left: auto;
        margin-right: auto;
    }
    .crm-slide-title {
        font-size: clamp(22px, 7.5vw, 30px) !important;
        margin-bottom: 18px !important;
        text-shadow: 0 3px 20px rgba(0,0,0,0.55);
    }
    .crm-slide-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .crm-btn-primary,
    .crm-btn-ghost {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
    .crm-slider-indicators { bottom: 14px; }
    .crm-dot { width: 8px; height: 8px; }
    .crm-dot.active { width: 20px; }
}

/* Very small phones (≤375px) */
@media (max-width: 375px) {
    .crm-hero-slider {
        min-height: 360px;
    }
    .crm-slide-title {
        font-size: 21px !important;
    }
}


.crm-about-section {
    padding: 90px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.crm-about-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(241,95,37,0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.crm-about-row {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px -15px rgba(12, 46, 96, 0.10);
    border: 1px solid rgba(12, 46, 96, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ── Image column ── */
.crm-about-image-col {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: linear-gradient(145deg, #0c2e60 0%, #071b36 100%);
}

.crm-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0.85;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-about-image-col:hover .crm-about-img {
    transform: scale(1.04);
}

/* Experience badge */
.crm-exp-badge {
    position: absolute;
    bottom: 28px;
    right: 28px;
    background: #f15f25;
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(241, 95, 37, 0.45);
    min-width: 140px;
}

.crm-exp-number {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.crm-exp-plus {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.crm-exp-label {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.90);
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Content column ── */
.crm-about-content-col {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

/* Section tag */
.crm-section-tag {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f15f25;
    background: rgba(241, 95, 37, 0.08);
    border: 1px solid rgba(241, 95, 37, 0.20);
    padding: 6px 16px;
    border-radius: 50px;
    width: fit-content;
}

/* Main heading */
.crm-about-heading {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800 !important;
    color: #071b36 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    margin: 0;
}

.crm-about-heading em {
    font-style: normal;
    color: #f15f25;
}

/* Description paragraph */
.crm-about-desc {
    font-size: 15.5px;
    line-height: 1.75;
    color: #475569;
    margin: 0;
}

/* Feature pills */
.crm-about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crm-feat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    transition: all 0.25s ease;
    cursor: default;
}

.crm-feat-pill:hover {
    background: #0c2e60;
    color: #fff;
    border-color: #0c2e60;
}

.crm-feat-icon {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f15f25;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.crm-feat-pill:hover .crm-feat-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Stats bar */
.crm-about-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e8eef7;
    padding: 22px 28px;
}

.crm-stat-item {
    flex: 1;
    text-align: center;
}

.crm-stat-item h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0c2e60 !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: -0.02em;
}

.crm-stat-item p {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.crm-stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    flex-shrink: 0;
    margin: 0 8px;
}

/* Action buttons */
.crm-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 4px;
}

.crm-btn-primary-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #f15f25 0%, #ff8c47 100%);
    color: #fff !important;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(241, 95, 37, 0.35);
    transition: all 0.3s ease;
}

.crm-btn-primary-solid:hover {
    background: linear-gradient(135deg, #0c2e60 0%, #071b36 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(12, 46, 96, 0.35);
    color: #fff !important;
}

.crm-btn-primary-solid i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.crm-btn-primary-solid:hover i {
    transform: translateX(4px);
}

.crm-btn-outline-blue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #0c2e60 !important;
    padding: 12px 26px;
    border-radius: 50px;
    border: 2px solid #0c2e60;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
}

.crm-btn-outline-blue:hover {
    background: #0c2e60;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ── Responsive tweaks ── */
@media (max-width: 991px) {
    .crm-about-image-col {
        min-height: 340px;
    }
    .crm-about-content-col {
        padding: 42px 36px;
    }
    .crm-about-section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .crm-about-image-col {
        min-height: 280px;
        border-radius: 0;
    }
    .crm-exp-badge {
        bottom: 20px;
        right: 20px;
        padding: 14px 18px;
    }
    .crm-exp-number {
        font-size: 28px;
    }
    .crm-about-content-col {
        padding: 32px 24px;
        gap: 18px;
    }
    .crm-about-stats {
        padding: 16px 18px;
    }
    .crm-stat-item h3 {
        font-size: 22px !important;
    }
    .crm-about-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .crm-btn-primary-solid,
    .crm-btn-outline-blue {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .crm-about-features {
        gap: 8px;
    }
    .crm-feat-pill {
        font-size: 12.5px;
        padding: 7px 13px;
    }
    .crm-about-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .crm-stat-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
    .crm-about-section {
        padding: 40px 0;
    }
}

.crm-choose-school-photo {
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(12, 46, 96, 0.16);
}

.crm-choose-school-main {
    width: 310px;
    height: 310px;
}

.crm-choose-school-wide {
    width: 390px;
    height: 270px;
}

.crm-choose-school-small {
    width: 230px;
    height: 230px;
}

.team-card-item .crm-home-teacher-image {
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    background: #2f3032;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-item .crm-home-teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crm-home-teacher-meta {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 575px) {
    .choose-us-wrapper .choose-img-box .crm-choose-school-main {
        margin-left: 0;
    }

    .crm-choose-school-main,
    .crm-choose-school-wide {
        width: 100%;
        height: 250px;
    }

    .crm-choose-school-small {
        width: 190px;
        height: 190px;
    }
}

/* ====================================================
   DECOUPLING LAYOUTS — Prevent Overlaps between Grid sections
   ==================================================== */

.program-section {
    position: relative;
    z-index: 10;
    margin-bottom: 60px !important;
}

.classes-section {
    position: relative;
    z-index: 5;
    margin-top: 40px !important;
    padding-top: 100px !important; /* Extra padding top to push contents away from top SVG wave mask */
}

/* On mobile/tablet, ensure absolute decorations do not overlap stacking contents */
@media (max-width: 991px) {
    .program-section {
        margin-bottom: 30px !important;
    }
    .classes-section {
        margin-top: 20px !important;
        padding-top: 60px !important;
    }
    .classes-section .perasute-shape,
    .classes-section .crown-shape,
    .classes-section .star-shape,
    .classes-section .zikzak-shape,
    .classes-section .border-shape {
        display: none !important; /* Hide floating decorative background elements to prevent mobile collision */
    }
}


