
/* Unified CSS overriding rules - updated with left-to-right fade overlay */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

body, h1, h2, h3, h4, h5, h6, a, p, span, li, button, input, select, textarea, .nav-link, .dropdown-item {
    font-family: 'Outfit', sans-serif !important;
}

:root {
    --primary-color: #0a8ea0;
    --secondary-color: #1d9e75;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
}

/* 1. Header, Top Bar & Navigation Centering */
header {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    border-bottom: 1px solid var(--border-color) !important;
    position: relative !important;
    z-index: 10000 !important;
}

.header-top-bar {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.header-top-bar, .header-top-bar a, .header-top-bar span, .header-top-bar li {
    color: #475569 !important;
}

.header-top-bar a:hover {
    color: #0a8ea0 !important;
}

.header-top-bar .btn-info {
    background: #0a8ea0 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 6px 16px !important;
    border: none !important;
}

.header-top-bar .btn-info:hover {
    background: #086d7c !important;
    transform: translateY(-1px) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.nav-link:after {
    display: none !important;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 60%;
}

.navbar-nav {
    align-items: center !important;
}

/* 2. Dropdown Badges */
.dropdown-menu, .blc-menu {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08) !important;
    padding: 24px !important;
    z-index: 1000 !important;
    min-width: 840px !important;
    max-width: 950px !important;
}

@media (min-width: 992px) {
    .blc-menu {
        min-width: 840px !important;
        gap: 24px !important;
    }
}

.blc-cat-head, .dropdown-category-label {
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--secondary-color) !important;
    border-bottom: 2px solid rgba(29, 158, 117, 0.15) !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    background: none !important;
    cursor: default !important;
    pointer-events: none !important;
}

.blc-cat-head span {
    display: none !important;
}

.blc-cat-list {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dropdown-item, .blc-cat-list li a {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin: 4px 6px 4px 0 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
    width: auto !important;
    float: none !important;
    text-decoration: none !important;
}

.dropdown-item:hover, .blc-cat-list li a:hover {
    background: #0a8ea0 !important;
    color: #ffffff !important;
    border-color: #0a8ea0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(10, 142, 160, 0.2) !important;
}

.dropdown-menu li, .blc-cat-list li {
    list-style: none !important;
    display: inline-block !important;
    width: auto !important;
}

.dropdown-menu .column {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    vertical-align: top !important;
    margin-right: 20px !important;
    min-width: 160px !important;
}

/* 3. Hero Section Styles & Left-to-Right Fading Backdrop */
.video-overlay {
    /* Fades from a dark backdrop on the left to completely transparent on the right */
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(15, 23, 42, 0) 75%) !important;
}

.video-overlay h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 3.6rem !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.video-overlay h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important; /* Thicker medium-bold weight */
    font-size: 1.25rem !important;
    color: #f8fafc !important; /* Pure off-white */
    line-height: 1.6 !important;
    margin-bottom: 32px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important; /* Soft text shadow */
}

body .btn-custom, body .btn-custom-2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

body .btn-custom {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

body .btn-custom:hover {
    background-color: #0369a1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

body .btn-custom-2 {
    background-color: #1d9e75 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

body .btn-custom-2:hover {
    background-color: #0f6e56 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(29, 158, 117, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

/* 4. General Section and Card Layout Styles */
section h2, .section-title h2, h2.text-center, .container h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}

section h2 + p, section h2 + div + p, .section-title p, h2.text-center + p {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.1rem !important;
    color: var(--text-muted) !important;
    max-width: 700px !important;
    margin: 0 auto 50px auto !important;
    text-align: center !important;
    line-height: 1.6 !important;
}

.bg-primary[style*="height: 5px"], .bg-primary[style*="height:5px"] {
    display: none !important;
}

body .service-card, body .card, body .feature-card, body .dept-card, body .service-box {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02) !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .service-card:hover, body .card:hover, body .feature-card:hover, body .dept-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06) !important;
    border-color: var(--primary-color) !important;
}

body .service-card h4, body .service-card p, body .service-card a {
    align-self: flex-start !important;
    text-align: left !important;
}

body .service-card img {
    display: none !important;
}

body .service-card::before {
    content: '' !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    background-color: var(--secondary-color) !important;
    border-radius: 50% !important;
    margin-bottom: 20px !important;
}

body .card h3, body .service-card h3, body .feature-card h3, body .dept-card h3, body .service-box h3,
body .card h4, body .service-card h4, body .feature-card h4, body .dept-card h4, body .service-box h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 10px !important;
}

body .card p, body .service-card p, body .feature-card p, body .dept-card p, body .service-box p {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

body .card .btn-primary, body .service-card .btn-primary, body .feature-card .btn-primary,
body .card a.btn, body .service-card a.btn, body .feature-card a.btn, body .service-box a.btn {
    align-self: flex-start !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    margin-top: auto !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

body .card .btn-primary:hover, body .service-card .btn-primary:hover, body .card a.btn:hover, body .service-card a.btn:hover {
    background: #086d7c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(10, 142, 160, 0.2) !important;
}

.btn-primary, .btn-info, .btn-success {
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

/* 5. Cohesive Glow Layouts */
.services-section, .why-section, .dept-section, .testimonials-section {
    position: relative !important;
    overflow: hidden !important;
}

.services-section {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.testimonials-section {
    background: #ffffff !important;
}

@media (min-width: 1200px) {
    body .services-section .container, 
    body .why-section .container,
    body .dept-section .container,
    body .testimonials-section .container {
        max-width: 1380px !important;
    }
}

/* Animations, transitions, and hover scale tweaks */
html {
    scroll-behavior: smooth !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-section, .why-section, .dept-section, .testimonials-section, .header-top-bar, nav.navbar {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.btn-primary:hover, .btn-info:hover, .btn-success:hover, .dept-btn:hover, .card a.btn:hover, .service-card a.btn:hover {
    transform: scale(1.03) translateY(-1px) !important;
}

/* Shift the hero text block to the left side of the container */
body .video-overlay .block {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Shift the hero container further to the left side of the viewport */
body .video-overlay .container {
    max-width: 100% !important;
    padding-left: 6% !important;
    padding-right: 6% !important;
}

/* ==========================================================================
   RESTORED: Dynamic Alternating Background Glows & Floating Animations
   ========================================================================== */

/* Base glow layout rules */
.services-section::before, .why-section::before, .dept-section::before, .testimonials-section::before,
.services-section::after, .why-section::after, .dept-section::after, .testimonials-section::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    width: 600px !important;
    height: 600px !important;
    filter: blur(50px) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.services-section::before, .why-section::before, .dept-section::before, .testimonials-section::before {
    left: -150px !important;
}

.services-section::after, .why-section::after, .dept-section::after, .testimonials-section::after {
    right: -150px !important;
}

/* --- 1. Our Services: Teal & Green --- */
.services-section::before {
    background: radial-gradient(circle, rgba(10, 142, 160, 0.16) 0%, rgba(10, 142, 160, 0) 70%) !important;
}
.services-section::after {
    background: radial-gradient(circle, rgba(29, 158, 117, 0.14) 0%, rgba(29, 158, 117, 0) 70%) !important;
}

/* --- 2. Why Choose Us: Sky Blue & Warm Purple --- */
.why-section::before {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%) !important;
}
.why-section::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0) 70%) !important;
}

/* --- 3. Departments: Green & Teal (Swapped) --- */
.dept-section::before {
    background: radial-gradient(circle, rgba(29, 158, 117, 0.14) 0%, rgba(29, 158, 117, 0) 70%) !important;
}
.dept-section::after {
    background: radial-gradient(circle, rgba(10, 142, 160, 0.16) 0%, rgba(10, 142, 160, 0) 70%) !important;
}

/* --- 4. Testimonials: Warm Purple & Sky Blue (Swapped) --- */
.testimonials-section::before {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0) 70%) !important;
}
.testimonials-section::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%) !important;
}

/* Slow-motion Organic Aurora Glow Animations */
@keyframes floatLeftGlow {
    0% {
        transform: translateY(-50%) translate(0, 0) scale(1);
    }
    50% {
        transform: translateY(-50%) translate(40px, -20px) scale(1.08);
    }
    100% {
        transform: translateY(-50%) translate(0, 0) scale(1);
    }
}

@keyframes floatRightGlow {
    0% {
        transform: translateY(-50%) translate(0, 0) scale(1);
    }
    50% {
        transform: translateY(-50%) translate(-40px, 20px) scale(1.08);
    }
    100% {
        transform: translateY(-50%) translate(0, 0) scale(1);
    }
}

/* Apply floating animations to the left side glows */
.services-section::before, 
.why-section::before, 
.dept-section::before, 
.testimonials-section::before {
    animation: floatLeftGlow 25s ease-in-out infinite !important;
}

/* Apply floating animations to the right side glows (unsynchronized time) */
.services-section::after, 
.why-section::after, 
.dept-section::after, 
.testimonials-section::after {
    animation: floatRightGlow 28s ease-in-out infinite !important;
}

/* Ensure container elements sit on top of the background glows */
.services-section .container, 
.why-section .container, 
.dept-section .container, 
.testimonials-section .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Floating Stats Trust Bar Design */
.trust-card-bar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    padding: 20px 24px !important;
    width: 100% !important;
    display: flex !important;
}

.stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    padding: 8px 16px !important;
}

.stat-icon {
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(10, 142, 160, 0.05) !important; /* Soft Teal background */
    border-radius: 10px !important;
}

.stat-info {
    text-align: left !important;
}

.stat-num {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.stat-label {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.stat-divider {
    width: 1px !important;
    height: 36px !important;
    background: #e2e8f0 !important;
    align-self: center !important;
}

@media (max-width: 767px) {
    .trust-card-bar {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 24px !important;
    }
    .stat-divider {
        display: none !important;
    }
    .stat-item {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* Force stats bar to sit on one line on desktop screens */
@media (min-width: 992px) {
    .trust-card-bar {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    .stat-item {
        flex: 1 1 0px !important;
        white-space: nowrap !important;
    }
}

/* Force stats bar to sit on one line on desktop screens */
@media (min-width: 992px) {
    .trust-card-bar {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    .stat-item {
        flex: 1 1 0px !important;
        white-space: nowrap !important;
    }
}


/* Tablet and desktop single-line row support */
@media (min-width: 768px) {
    .trust-card-bar {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    .stat-item {
        flex: 1 1 0px !important;
        white-space: nowrap !important;
    }
    .stat-divider {
        display: block !important;
    }
}

/* Refined spacing to prevent text overflow in stats card */
@media (min-width: 992px) {
    .trust-card-bar {
        padding: 20px 32px !important; /* Wider padding inside the card */
    }
    .stat-item {
        flex: 0 1 auto !important; /* Allow items to size naturally based on content length */
        padding: 8px 10px !important; /* Tighter padding to save space */
    }
    .stat-label {
        font-size: 0.76rem !important; /* Tighter text size for stats label */
    }
}

/* Append explore-section to wide-container grid and glows */
.explore-section {
    position: relative !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

@media (min-width: 1200px) {
    body .explore-section .container {
        max-width: 1380px !important;
    }
}

.explore-section::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: -150px !important;
    transform: translateY(-50%) !important;
    width: 600px !important;
    height: 600px !important;
    background: radial-gradient(circle, rgba(10, 142, 160, 0.16) 0%, rgba(10, 142, 160, 0) 70%) !important;
    filter: blur(50px) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: floatLeftGlow 25s ease-in-out infinite !important;
}

.explore-section::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: -150px !important;
    transform: translateY(-50%) !important;
    width: 600px !important;
    height: 600px !important;
    background: radial-gradient(circle, rgba(29, 158, 117, 0.14) 0%, rgba(29, 158, 117, 0) 70%) !important;
    filter: blur(50px) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: floatRightGlow 28s ease-in-out infinite !important;
}
