/* ==========================================================================
   Central Medical Education & Research Council (CMRC India)
   Modern Theme Stylesheet - modern-home.css
   Features:
   - Full-width responsive layout
   - Typewriter banner styling
   - 180-degree hover image/icon spin & smooth card color transitions
   - 4-column responsive gallery & lightbox modal
   - Dual floating Call & WhatsApp action buttons
   ========================================================================== */

:root {
    --primary-color: #0b5d4b;
    --primary-dark: #074235;
    --primary-light: #0f766e;
    --accent-color: #0ea5e9;
    --accent-warm: #d97706;
    --accent-gold: #f59e0b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(11, 93, 75, 0.2);
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-spin: 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset full-width overrides for Default.aspx */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    background-color: #f1f5f9;
}

.fullwidth-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Full Width Fluid Container - Edge to Edge with Comfortable Gutters */
.fullwidth-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin: 0 auto !important;
}

@media (max-width: 1200px) {
    .fullwidth-container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 767px) {
    .fullwidth-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --------------------------------------------------------------------------
   Top Bar & Header
   -------------------------------------------------------------------------- */
.cmrc-topbar {
    background: linear-gradient(90deg, #074235 0%, #0b5d4b 50%, #0f766e 100%);
    color: #e2e8f0;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmrc-topbar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.cmrc-topbar a:hover {
    color: #38bdf8;
    text-decoration: none;
}

.cmrc-topbar-item {
    display: inline-block;
    margin-right: 20px;
}

.cmrc-topbar-item i {
    color: #38bdf8;
    margin-right: 5px;
}

.cmrc-header-main {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.cmrc-brand-logo img {
    max-height: 85px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.header-contact-badge {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 8px;
    margin-left: 10px;
    transition: var(--transition-fast);
}

.header-contact-badge:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.header-contact-badge .badge-icon {
    width: 36px;
    height: 36px;
    background: #0b5d4b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 15px;
}

.header-contact-badge .badge-text span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.header-contact-badge .badge-text strong {
    font-size: 14px;
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Modern Navigation
   -------------------------------------------------------------------------- */
nav.bootsnav.cmrc-navbar {
    background: linear-gradient(135deg, #0b5d4b 0%, #0f766e 50%, #155e75 100%) !important;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(11, 93, 75, 0.15);
}

nav.bootsnav.cmrc-navbar ul.nav > li > a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 16px;
    transition: all 0.25s ease;
}

nav.bootsnav.cmrc-navbar ul.nav > li > a:hover,
nav.bootsnav.cmrc-navbar ul.nav > li.active > a {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fef08a !important;
}

nav.bootsnav.cmrc-navbar li.dropdown ul.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    padding: 8px 0;
    background: #ffffff;
}

nav.bootsnav.cmrc-navbar li.dropdown ul.dropdown-menu > li > a {
    color: #334155 !important;
    font-size: 13.5px;
    padding: 9px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

nav.bootsnav.cmrc-navbar li.dropdown ul.dropdown-menu > li > a:hover {
    background: #f0fdfa !important;
    color: #0b5d4b !important;
    padding-left: 24px;
}

/* --------------------------------------------------------------------------
   Hero Banner & Auto-Writing Typewriter
   -------------------------------------------------------------------------- */
.cmrc-hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0b1e19;
}

.cmrc-hero-carousel {
    position: relative;
    width: 100%;
}

.cmrc-hero-carousel .carousel-inner .item {
    height: 540px;
    background-color: #0b1e19;
}

.cmrc-hero-carousel .carousel-inner .item img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.65);
}

/* Typewriter Overlay */
.cmrc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(7, 34, 27, 0.85) 0%, rgba(11, 70, 56, 0.65) 55%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.cmrc-hero-content {
    pointer-events: auto;
    color: #ffffff;
    max-width: 820px;
    padding: 20px;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fef08a;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-pill-badge i {
    margin-right: 8px;
    color: #38bdf8;
}

.hero-main-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-typewriter-wrapper {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    padding: 2px 10px;
    border-radius: 6px;
    border-bottom: 3px solid #38bdf8;
    display: inline-block;
}

.hero-typewriter-text {
    font-weight: 800;
}

.hero-typewriter-cursor {
    display: inline-block;
    color: #f59e0b;
    font-weight: 400;
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtext {
    font-size: 17px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 25px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    max-width: 680px;
}

.hero-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.hero-btn i {
    margin-right: 8px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.4);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-btn-outline:hover {
    background: #ffffff;
    color: #0b5d4b;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Slider Controls */
.cmrc-hero-carousel .carousel-control {
    width: 60px;
    height: 60px;
    top: 50%;
    margin-top: -30px;
    border-radius: 50%;
    background: rgba(11, 93, 75, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s;
}

.cmrc-hero-carousel .carousel-control.left {
    left: 20px;
}

.cmrc-hero-carousel .carousel-control.right {
    right: 20px;
}

.cmrc-hero-carousel .carousel-control:hover {
    background: #0b5d4b;
    opacity: 1;
}

.cmrc-hero-carousel .carousel-indicators {
    bottom: 20px;
}

.cmrc-hero-carousel .carousel-indicators li {
    width: 14px;
    height: 14px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #ffffff;
}

.cmrc-hero-carousel .carousel-indicators li.active {
    width: 32px;
    border-radius: 10px;
    background: #38bdf8;
    border-color: #38bdf8;
}

/* --------------------------------------------------------------------------
   Notification / Running Alert Banner
   -------------------------------------------------------------------------- */
.cmrc-ticker-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ticker-label {
    background: #dc2626;
    color: #ffffff;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.ticker-label i {
    margin-right: 6px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ticker-content {
    padding: 8px 15px;
    font-size: 14px;
    color: #334155;
}

/* --------------------------------------------------------------------------
   🔄 180° Hover Image/Icon Spin & Card Color Change Blocks
   -------------------------------------------------------------------------- */
.section-heading-block {
    text-align: center;
    margin-bottom: 45px;
}

.section-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #f0fdfa;
    color: var(--primary-color);
    border: 1px solid #ccfbf1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    position: relative;
}

.section-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #0b5d4b 0%, #0ea5e9 100%);
    margin: 12px auto 0;
    border-radius: 4px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Equal Flexbox Grid Management (Prevents Misalignment / Float Bugs)
   -------------------------------------------------------------------------- */
.equal-flex-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.equal-flex-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    float: none !important;
}

.equal-flex-row .spin-card {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   🔄 180° Hover Image/Icon Spin & Vibrant Colorful Card Themes
   -------------------------------------------------------------------------- */
.section-heading-block {
    text-align: center;
    margin-bottom: 45px;
}

.section-pill {
    display: inline-block;
    padding: 6px 18px;
    background: #f0fdfa;
    color: var(--primary-color);
    border: 1px solid #ccfbf1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    position: relative;
}

.section-divider {
    width: 75px;
    height: 4px;
    background: linear-gradient(90deg, #0b5d4b 0%, #0ea5e9 100%);
    margin: 12px auto 0;
    border-radius: 4px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 750px;
    margin: 14px auto 0;
    line-height: 1.6;
}

/* Base Spin Card Component */
.spin-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 330px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

/* Top Accent Stripe on Cards */
.spin-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #0b5d4b;
    border-radius: 16px 16px 0 0;
    z-index: 3;
    transition: height 0.3s ease;
}

/* Background overlay on hover for vibrant color change */
.spin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 15px;
}

/* Category Tag Pill */
.card-tag-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    transition: all 0.35s ease;
}

/* Icon Box with 180-deg Spin */
.spin-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s ease;
    perspective: 1000px;
}

.spin-icon-box img,
.spin-icon-box i {
    transition: transform var(--transition-spin);
    display: inline-block;
}

.spin-icon-box img {
    max-width: 46px;
    max-height: 46px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.spin-icon-box i {
    font-size: 34px;
    color: #ffffff;
}

.spin-card h3,
.spin-card h4 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.35;
    transition: color 0.35s ease;
}

.spin-card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    transition: color 0.35s ease;
}

.spin-card .card-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.35s ease;
    margin-top: auto;
    align-self: center;
}

.spin-card .card-cta-btn i {
    margin-left: 6px;
    transition: transform 0.25s ease;
}

/* Universal Hover Trigger: 180° Spin and Shadow */
.spin-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
    border-color: transparent !important;
}

.spin-card:hover::after {
    height: 7px;
}

.spin-card:hover::before {
    opacity: 1;
}

.spin-card:hover .spin-icon-box {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.spin-card:hover .spin-icon-box img,
.spin-card:hover .spin-icon-box i {
    transform: rotate(180deg) scale(1.18); /* Exact 180° rotation on hover */
    color: #ffffff !important;
}

.spin-card:hover h3,
.spin-card:hover h4 {
    color: #ffffff !important;
}

.spin-card:hover p {
    color: #f1f5f9 !important;
}

.spin-card:hover .card-tag-pill {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spin-card:hover .card-cta-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.spin-card:hover .card-cta-btn i {
    transform: translateX(4px);
    color: #0f172a !important;
}

/* ==========================================================================
   12 VIBRANT COLORFUL THEMES FOR COURSE & PORTAL BLOCKS
   ========================================================================== */

/* 1. Theme Emerald / Teal */
.theme-emerald {
    background: #f0fdf9;
    border: 1.5px solid #a7f3d0;
}
.theme-emerald::after { background: #059669; }
.theme-emerald::before { background: linear-gradient(135deg, #064e3b 0%, #059669 60%, #10b981 100%); }
.theme-emerald .card-tag-pill { background: #d1fae5; color: #047857; }
.theme-emerald .spin-icon-box {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}
.theme-emerald .card-cta-btn { background: #d1fae5; color: #065f46; }

/* 2. Theme Royal Sapphire Blue */
.theme-blue {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}
.theme-blue::after { background: #2563eb; }
.theme-blue::before { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%); }
.theme-blue .card-tag-pill { background: #dbeafe; color: #1d4ed8; }
.theme-blue .spin-icon-box {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.theme-blue .card-cta-btn { background: #dbeafe; color: #1e40af; }

/* 3. Theme Ruby Rose / Crimson */
.theme-rose {
    background: #fff1f2;
    border: 1.5px solid #fecdd3;
}
.theme-rose::after { background: #e11d48; }
.theme-rose::before { background: linear-gradient(135deg, #881337 0%, #be123c 60%, #f43f5e 100%); }
.theme-rose .card-tag-pill { background: #ffe4e6; color: #be123c; }
.theme-rose .spin-icon-box {
    background: linear-gradient(135deg, #be123c 0%, #f43f5e 100%);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}
.theme-rose .card-cta-btn { background: #ffe4e6; color: #9f1239; }

/* 4. Theme Deep Amethyst Purple */
.theme-purple {
    background: #faf5ff;
    border: 1.5px solid #e9d5ff;
}
.theme-purple::after { background: #7e22ce; }
.theme-purple::before { background: linear-gradient(135deg, #581c87 0%, #7e22ce 60%, #a855f7 100%); }
.theme-purple .card-tag-pill { background: #f3e8ff; color: #7e22ce; }
.theme-purple .spin-icon-box {
    background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}
.theme-purple .card-cta-btn { background: #f3e8ff; color: #6b21a8; }

/* 5. Theme Warm Amber & Gold */
.theme-amber {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
}
.theme-amber::after { background: #d97706; }
.theme-amber::before { background: linear-gradient(135deg, #92400e 0%, #d97706 60%, #f59e0b 100%); }
.theme-amber .card-tag-pill { background: #fef3c7; color: #b45309; }
.theme-amber .spin-icon-box {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}
.theme-amber .card-cta-btn { background: #fef3c7; color: #92400e; }

/* 6. Theme Emergency Crimson Red */
.theme-crimson {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
}
.theme-crimson::after { background: #dc2626; }
.theme-crimson::before { background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 60%, #ef4444 100%); }
.theme-crimson .card-tag-pill { background: #fee2e2; color: #b91c1c; }
.theme-crimson .spin-icon-box {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}
.theme-crimson .card-cta-btn { background: #fee2e2; color: #991b1b; }

/* 7. Theme Vibrant Cyan & Ocean */
.theme-cyan {
    background: #ecfeff;
    border: 1.5px solid #a5f3fc;
}
.theme-cyan::after { background: #0891b2; }
.theme-cyan::before { background: linear-gradient(135deg, #155e75 0%, #0891b2 60%, #06b6d4 100%); }
.theme-cyan .card-tag-pill { background: #cffafe; color: #0e7490; }
.theme-cyan .spin-icon-box {
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}
.theme-cyan .card-cta-btn { background: #cffafe; color: #155e75; }

/* 8. Theme Deep Indigo / Royal Navy */
.theme-indigo {
    background: #eef2ff;
    border: 1.5px solid #c7d2fe;
}
.theme-indigo::after { background: #4338ca; }
.theme-indigo::before { background: linear-gradient(135deg, #312e81 0%, #4338ca 60%, #6366f1 100%); }
.theme-indigo .card-tag-pill { background: #e0e7ff; color: #3730a3; }
.theme-indigo .spin-icon-box {
    background: linear-gradient(135deg, #3730a3 0%, #6366f1 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.theme-indigo .card-cta-btn { background: #e0e7ff; color: #312e81; }

/* 9. Theme Deep Pine Teal */
.theme-teal {
    background: #f0fdfa;
    border: 1.5px solid #99f6e4;
}
.theme-teal::after { background: #0d9488; }
.theme-teal::before { background: linear-gradient(135deg, #115e59 0%, #0d9488 60%, #14b8a6 100%); }
.theme-teal .card-tag-pill { background: #ccfbf1; color: #0f766e; }
.theme-teal .spin-icon-box {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}
.theme-teal .card-cta-btn { background: #ccfbf1; color: #115e59; }

/* 10. Theme Bright Ocean Sapphire */
.theme-sapphire {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
}
.theme-sapphire::after { background: #0284c7; }
.theme-sapphire::before { background: linear-gradient(135deg, #075985 0%, #0284c7 60%, #0ea5e9 100%); }
.theme-sapphire .card-tag-pill { background: #e0f2fe; color: #0369a1; }
.theme-sapphire .spin-icon-box {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}
.theme-sapphire .card-cta-btn { background: #e0f2fe; color: #075985; }

/* 11. Theme Sunset Orange */
.theme-orange {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
}
.theme-orange::after { background: #ea580c; }
.theme-orange::before { background: linear-gradient(135deg, #9a3412 0%, #ea580c 60%, #f97316 100%); }
.theme-orange .card-tag-pill { background: #ffedd5; color: #c2410c; }
.theme-orange .spin-icon-box {
    background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}
.theme-orange .card-cta-btn { background: #ffedd5; color: #9a3412; }

/* 12. Theme Spring Forest Green */
.theme-green {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}
.theme-green::after { background: #16a34a; }
.theme-green::before { background: linear-gradient(135deg, #14532d 0%, #16a34a 60%, #22c55e 100%); }
.theme-green .card-tag-pill { background: #dcfce7; color: #15803d; }
.theme-green .spin-icon-box {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}
.theme-green .card-cta-btn { background: #dcfce7; color: #14532d; }


/* --------------------------------------------------------------------------
   Interactive Stats Counter Section
   -------------------------------------------------------------------------- */
.cmrc-stats-strip {
    background: linear-gradient(135deg, #074235 0%, #0b5d4b 50%, #0f766e 100%);
    color: #ffffff;
    padding: 45px 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-item .stat-icon {
    font-size: 32px;
    color: #38bdf8;
    margin-bottom: 8px;
}

.stat-item .stat-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-item .stat-label {
    font-size: 13px;
    color: #ccfbf1;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   🖼️ 4-Column Gallery with Click-to-View Lightbox
   -------------------------------------------------------------------------- */
.cmrc-gallery-section {
    background: #f8fafc;
    padding: 70px 0;
}

.gallery-grid {
    margin-top: 15px;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.35s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.gallery-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0f172a;
}

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

.gallery-card:hover .gallery-thumb-wrapper img {
    transform: scale(1.1);
}

/* Hover overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 93, 75, 0.92) 0%, rgba(15, 118, 110, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.35s ease;
    padding: 15px;
    text-align: center;
}

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

.gallery-overlay-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 12px;
    transform: scale(0.8);
    transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-overlay-icon {
    transform: scale(1);
}

.gallery-card-info {
    padding: 14px 16px;
    background: #ffffff;
}

.gallery-card-info h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Database Dynamic Albums Grid & Cards
   -------------------------------------------------------------------------- */
.album-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px 30px -12px;
    width: calc(100% + 24px);
}

.album-grid-wrapper .album {
    flex: 0 0 calc(25% - 24px);
    max-width: calc(25% - 24px);
    margin: 12px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.35s ease;
    text-align: center;
    position: relative;
}

.album-grid-wrapper .album:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.album-grid-wrapper .album img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.album-grid-wrapper .album:hover img {
    transform: scale(1.08);
}

.album-grid-wrapper .album h3 {
    margin: 0;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 991px) {
    .album-grid-wrapper .album {
        flex: 0 0 calc(33.333% - 24px);
        max-width: calc(33.333% - 24px);
    }
}

@media (max-width: 767px) {
    .album-grid-wrapper .album {
        flex: 0 0 calc(50% - 24px);
        max-width: calc(50% - 24px);
    }
}

@media (max-width: 480px) {
    .album-grid-wrapper .album {
        flex: 0 0 calc(100% - 24px);
        max-width: calc(100% - 24px);
    }
}

/* Modern Lightbox Modal */
.cmrc-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 20, 16, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cmrc-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomModal {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-main-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.lightbox-caption-bar {
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    padding: 0 10px;
}

.lightbox-caption-text {
    font-size: 16px;
    font-weight: 600;
}

.lightbox-counter {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    color: #ccfbf1;
}

.lightbox-close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.25s ease;
    z-index: 999999 !important;
}

.lightbox-close-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: rotate(90deg);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    z-index: 100000;
}

.lightbox-nav-btn:hover {
    background: #0b5d4b;
    border-color: #0b5d4b;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev-btn {
    left: 25px;
}

.lightbox-next-btn {
    right: 25px;
}

/* --------------------------------------------------------------------------
   📞 Dual Floating Call & WhatsApp Buttons
   -------------------------------------------------------------------------- */
.cmrc-floating-actions {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 27px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/* WhatsApp Floating Button */
.floating-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* Call Floating Button */
.floating-call {
    background: linear-gradient(135deg, #0ea5e9 0%, #0b5d4b 100%);
}

.floating-call::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: pulseCall 2s infinite 0.7s;
}

@keyframes pulseCall {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* Floating Tooltip */
.floating-tooltip {
    position: absolute;
    right: 70px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   About Section & Media Styling
   -------------------------------------------------------------------------- */
.cmrc-about-section {
    padding: 70px 0;
    background: #ffffff;
}

.about-feature-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.about-feature-box h4 {
    margin: 0 0 6px 0;
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 700;
}

.about-feature-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Blog Marquee & Notice Board
   -------------------------------------------------------------------------- */
.notice-board-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.notice-board-header {
    background: linear-gradient(135deg, #0b5d4b 0%, #0f766e 100%);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-board-body {
    padding: 18px;
    height: 290px;
    overflow: hidden;
}

.news-item-pill {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.news-item-pill:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    transform: translateX(4px);
}

.news-item-pill a {
    color: #1e293b !important;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
}

.news-item-pill:hover a {
    color: #0b5d4b !important;
}

/* --------------------------------------------------------------------------
   Course Carousel Modern Overrides
   -------------------------------------------------------------------------- */
.cmrc-courses-section {
    padding: 70px 0;
    background: #f8fafc;
}

.course-item-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

.course-item-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(11, 93, 75, 0.15);
    border-color: #99f6e4;
}

.course-item-box .tmb img {
    max-height: 80px;
    margin: 15px auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.course-item-box:hover .tmb img {
    transform: scale(1.1) rotate(5deg);
}

/* --------------------------------------------------------------------------
   Pre-Footer Action Bar (Helpline, WhatsApp, Quick Connect)
   -------------------------------------------------------------------------- */
.cmrc-prefooter {
    background: linear-gradient(135deg, #074235 0%, #0b5d4b 45%, #0284c7 100%);
    color: #ffffff;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.prefooter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.prefooter-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.prefooter-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #38bdf8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.prefooter-text span {
    display: block;
    font-size: 13px;
    color: #ccfbf1;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.prefooter-text strong {
    font-size: 20px;
    color: #ffffff;
    font-weight: 800;
}

.prefooter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-prefooter-wa {
    display: inline-flex;
    align-items: center;
    background: #25d366;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.3s;
}

.btn-prefooter-wa:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.45);
}

.btn-prefooter-wa i {
    font-size: 18px;
    margin-right: 8px;
}

.btn-prefooter-call {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s;
}

.btn-prefooter-call:hover {
    background: #ffffff;
    color: #0b5d4b !important;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-prefooter-call i {
    margin-right: 8px;
}

/* --------------------------------------------------------------------------
   Quick Enquiry & Modern Footer (Best Look with Icons)
   -------------------------------------------------------------------------- */
.cmrc-footer {
    background: #061512;
    color: #cbd5e1;
    padding: 65px 0 0 0;
    position: relative;
    border-top: 3px solid #0f766e;
}

.cmrc-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.footer-col-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-col-title i {
    color: #38bdf8;
    margin-right: 10px;
    font-size: 20px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    border-radius: 2px;
}

/* Brand Box */
.footer-brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 10px;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
    border-radius: 8px;
}

.footer-brand-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-brand-text span {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}

.footer-desc-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 18px;
}

/* Badges in Footer */
.footer-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.f-badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 118, 110, 0.25);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #ccfbf1;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
}

.f-badge-pill i {
    color: #2dd4bf;
    margin-right: 8px;
}

/* Social Buttons */
.footer-social-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.f-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 15px;
    transition: all 0.3s;
}

.f-social-btn:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

.f-social-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.f-social-btn.wa:hover { background: #25d366; border-color: #25d366; }
.f-social-btn.yt:hover { background: #ff0000; border-color: #ff0000; }
.f-social-btn.tw:hover { background: #1da1f2; border-color: #1da1f2; }

/* Interactive Links List with Icons */
.footer-icon-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-icon-links li {
    margin-bottom: 11px;
}

.footer-icon-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.footer-icon-links li a i {
    width: 24px;
    font-size: 14px;
    margin-right: 8px;
    color: #38bdf8;
    transition: transform 0.25s ease;
}

.footer-icon-links li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-icon-links li a:hover i {
    transform: scale(1.2);
    color: #fef08a;
}

/* Quick Enquiry Form Card in Footer */
.footer-enquiry-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.f-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.f-input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 12px;
    color: #38bdf8;
    font-size: 14px;
    pointer-events: none;
}

.f-input-wrapper .form-control {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 8px;
    padding-left: 38px;
    font-size: 13px;
    height: 42px;
    transition: all 0.25s;
}

.f-input-wrapper textarea.form-control {
    height: auto;
    padding-top: 10px;
}

.f-input-wrapper .form-control:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    color: #ffffff;
}

.f-input-wrapper select.form-control option {
    background: #0f172a;
    color: #ffffff;
}

.footer-submit-btn-glow {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
    border: none;
    color: #ffffff;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 8px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 13.5px;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
    transition: all 0.3s;
    cursor: pointer;
}

.footer-submit-btn-glow:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.55);
    transform: translateY(-2px);
}

.footer-direct-contact {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.f-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #cbd5e1;
}

.f-contact-row i {
    color: #38bdf8;
    margin-top: 3px;
    font-size: 14px;
}

/* Bottom Strip */
.footer-bottom-strip {
    background: #030a08;
    padding: 22px 0;
    margin-top: 55px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-ssl-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.footer-ssl-badge i {
    margin-right: 6px;
    color: #22c55e;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-legal-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12.5px;
    transition: color 0.2s;
}

.footer-legal-links li a:hover {
    color: #38bdf8;
}

.admin-login-pill {
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #38bdf8 !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.admin-login-pill:hover {
    background: #0ea5e9;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
    .cmrc-hero-carousel .carousel-inner .item,
    .cmrc-hero-carousel .carousel-inner .item img {
        height: 440px;
    }
    .hero-main-title {
        font-size: 30px;
    }
    .hero-subtext {
        font-size: 15px;
    }
    .floating-tooltip {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .cmrc-hero-carousel .carousel-inner .item,
    .cmrc-hero-carousel .carousel-inner .item img {
        height: 380px;
    }
    .hero-main-title {
        font-size: 24px;
    }
    .hero-pill-badge {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    .hero-subtext {
        display: none;
    }
    .hero-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
    .cmrc-floating-actions {
        bottom: 18px;
        right: 18px;
        gap: 10px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .gallery-thumb-wrapper {
        height: 180px;
    }
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .lightbox-prev-btn { left: 10px; }
    .lightbox-next-btn { right: 10px; }
    .lightbox-close-btn { top: 15px; right: 15px; }
}

/* ==========================================================================
   Inner Pages (MasterPage & Inherited Views) Modern Theme Extensions
   ========================================================================== */

/* Inner Page Hero Banner */
.irs-inner-page-heading {
    position: relative !important;
    background: linear-gradient(135deg, #074235 0%, #0b5d4b 55%, #0f766e 100%) !important;
    padding: 45px 0 50px 0 !important;
    margin-bottom: 35px !important;
    color: #ffffff !important;
    overflow: hidden !important;
    border-bottom: 4px solid #0ea5e9 !important;
    box-shadow: 0 10px 25px -5px rgba(7, 66, 53, 0.25) !important;
}

.irs-inner-page-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.irs-inner-heading {
    position: relative;
    z-index: 2;
}

.irs-inner-heading h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
    text-transform: capitalize !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
    display: inline-block;
    position: relative;
}

.irs-inner-heading h2::after {
    content: '';
    display: block;
    width: 55px;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #34d399);
    border-radius: 2px;
    margin-top: 8px;
}

.irs-inner-heading p {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.irs-inner-heading p a {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12.5px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.irs-inner-heading p a:hover {
    background: #0ea5e9;
    border-color: #38bdf8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

/* Master page body wrapper */
.master-page-body {
    min-height: 520px;
    background-color: #f8fafc;
    padding-bottom: 50px;
}

/* Content cards for inner pages */
.cmrc-card-elevated,
.irs-contact-col,
.irs-account-col,
.cat_list_con,
.irs-teacher-biography {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 32px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 30px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.cmrc-card-elevated:hover,
.irs-contact-col:hover,
.irs-account-col:hover {
    box-shadow: 0 18px 35px -5px rgba(11, 93, 75, 0.12) !important;
}

/* Inner Page Headings & Typography */
.irs-teacher-biography h3,
.irs-teacher-biography h4,
.irs-contact-col h3,
.irs-account-col h3,
.cat_list_con h4 {
    font-family: 'Outfit', sans-serif !important;
    color: #0f172a !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.irs-teacher-biography p,
.irs-about-field p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    margin-bottom: 18px !important;
}

/* Modern Form Controls across all inner pages */
.form-control {
    height: 46px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 10px 16px !important;
    font-size: 14.5px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    margin-bottom: 16px !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 110px !important;
}

.form-control:focus {
    border-color: #0b5d4b !important;
    box-shadow: 0 0 0 4px rgba(11, 93, 75, 0.12) !important;
    outline: none !important;
}

/* Modern Inner Page Buttons */
.btn1,
.btn_red2,
.irs-big-btn,
.btn-submit-modern {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0b5d4b 0%, #0f766e 100%) !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    padding: 12px 30px !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(11, 93, 75, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-transform: uppercase !important;
}

.btn1:hover,
.btn_red2:hover,
.irs-big-btn:hover,
.btn-submit-modern:hover {
    background: linear-gradient(135deg, #074235 0%, #0b5d4b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(11, 93, 75, 0.35) !important;
    color: #ffffff !important;
}

/* Contact Info Modern Card */
.contact-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon-bubble {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #0b5d4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon-bubble {
    background: #0b5d4b;
    color: #ffffff;
    transform: rotateY(180deg);
}

.contact-info-details h5 {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.contact-info-details p {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.contact-info-details p a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-details p a:hover {
    color: #0b5d4b;
}

/* Modern Map Container */
.map-card-wrapper {
    background: #ffffff;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 20px;
}

.map-card-wrapper iframe {
    border-radius: 12px;
    display: block;
}

/* Modern Table / GridView Enhancement */
.grid-container,
.table-responsive {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin: 20px 0;
}

table.gv,
.table-modern {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: none !important;
}

table.gv thead th,
.table-modern thead th {
    background: linear-gradient(135deg, #074235 0%, #0b5d4b 100%) !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    padding: 14px 18px !important;
    border: none !important;
    text-transform: uppercase !important;
}

table.gv tbody td,
.table-modern tbody td {
    padding: 13px 18px !important;
    font-size: 14.5px !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

table.gv tbody tr:nth-child(even),
.table-modern tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}

table.gv tbody tr:hover,
.table-modern tbody tr:hover {
    background-color: #f0fdfa !important;
    transition: background-color 0.15s ease-in-out !important;
}

/* Feature Badge Pills for Inner Pages */
.cmrc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.cmrc-badge-teal { background: #ccfbf1; color: #0f766e; }
.cmrc-badge-blue { background: #dbeafe; color: #1e40af; }
.cmrc-badge-amber { background: #fef3c7; color: #92400e; }
.cmrc-badge-purple { background: #f3e8ff; color: #6b21a8; }

