/* Root Variables for Colors & Typography */
:root {
  --green: #1E7F4F;
  --green-light: #2FAE66;
  --orange: #F97316;
  --orange-dark: #EA580C;
  --bg: #F8FAFC;
  --text: #0F172A;

  /* Global Typography Sizes */
  --text-base: 1rem;
  --text-small: 0.875rem;
  --text-hero: 4.2rem;
  --text-heading: 2.2rem;
  --text-subheading: 1.5rem;
  --text-stats: 1.4rem;
  --text-button: 0.85rem;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--text);
    padding-top: 76px; /* Offset for fixed-top navbar */
}

h1, .h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
h2, .h2, .section-title {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    margin-bottom: 1rem;
    font-size: var(--text-heading);
}
h3, .h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    margin-bottom: 1rem;
    font-size: var(--text-subheading);
}
h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    margin-bottom: 1rem;
}

.text-primary { color: var(--orange) !important; }
.text-success { color: var(--green) !important; }
.text-dark { color: #111 !important; }
.text-muted { color: #334155 !important; } /* Darker slate gray for better readability */
.bg-primary { background-color: var(--orange) !important; }
.bg-success { background-color: var(--green) !important; }
.bg-light { background-color: var(--bg) !important; }
.bg-white { background-color: #fff !important; }
.bg-dark { background-color: #111 !important; }

/* Global Buttons */
.btn:not(.btn-close):not(.navbar-toggler) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    padding: 0 1.25rem !important;
    border-radius: 6px !important;
    height: 42px !important;
    transition: all 0.3s ease-in-out !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    border: none !important;
    background-color: var(--orange) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.btn:not(.btn-close):not(.navbar-toggler)::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 0% !important;
    height: 100% !important;
    background-color: #eab308 !important; /* Yellow logo color */
    transition: width 0.25s ease-out !important; /* Faster transition so it fills on quick taps */
    z-index: -1 !important;
    border-radius: 8px !important;
}

.btn:not(.btn-close):not(.navbar-toggler):hover::before,
.btn:not(.btn-close):not(.navbar-toggler):focus::before,
.btn:not(.btn-close):not(.navbar-toggler):active::before {
    width: 100% !important;
}

.btn:not(.btn-close):not(.navbar-toggler):active::before {
    transition: none !important; /* Instant fill when clicked */
}

.btn:not(.btn-close):not(.navbar-toggler):hover,
.btn:not(.btn-close):not(.navbar-toggler):focus,
.btn:not(.btn-close):not(.navbar-toggler):active {
    color: #111 !important; /* Dark text on yellow background */
    box-shadow: 0 8px 15px rgba(234, 179, 8, 0.4) !important;
    transform: translateY(-2px) !important;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1050 !important;
}
.navbar .btn {
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}
.navachar-title {
    font-family: 'Poppins', sans-serif;
}
.navachar-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}
.nav-logo {
    height: 70px;
    object-fit: contain;
}
.nav-links-custom .nav-link {
    color: var(--text);
    font-size: 1.1rem; /* Increased slightly for better visibility */
    font-weight: 500;
    margin: 0 5px; /* Reduced from 18px to let justify-content-evenly manage the spacing perfectly */
    padding: 8px 0 !important;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.nav-links-custom .nav-link:hover, .nav-links-custom .nav-link.active {
    color: var(--orange) !important;
}
.nav-links-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}
.nav-links-custom .nav-link:hover::after, .nav-links-custom .nav-link.active::after {
    width: 100%;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-links-custom .nav-link {
        margin: 0 5px;
        font-size: 0.85rem;
    }
    .navbar .btn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
}
@media (min-width: 1400px) {
    .navbar .btn {
        white-space: nowrap;
    }
}

/* Dropdown items styling */
.dropdown-item:hover, .dropdown-item:focus {
    color: var(--orange) !important;
    background-color: #f8f9fa !important;
}
.dropdown-item.active, .dropdown-item:active {
    color: #fff !important;
    background-color: var(--orange) !important;
}
.btn-apply {
    border-radius: 8px;
    padding: 10px 24px;
}

/* Animations & Transitions */
.transition-hover {
    transition: all 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
}

/* Hero Section */
.hero-slider-section {
    position: relative;
}
.hero-slider-section .carousel-item {
    height: 75vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #fff0e0 0%, rgba(255,240,224,0.85) 45%, rgba(249,115,22,0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    margin-top: -60px; /* Pull text up to reduce gap */
}

.hero-image-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: left center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
}
@media (min-width: 992px) {
    .hero-image-right {
        width: 60%;
    }
}



.hero-badge {
    background-color: transparent !important;
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: var(--orange) !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 5px 12px;
}

.hero-title {
    font-size: var(--text-hero);
    line-height: 1.1;
    letter-spacing: -1.2px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: var(--text-base);
    color: var(--text);
    max-width: 85%;
    line-height: 1.6;
    margin-top: 1rem;
}

.hero-btn {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px !important;
}

/* Carousel Controls & Indicators */
.carousel-indicators {
    margin-bottom: 2.5rem;
    padding: 0;
    justify-content: center;
}
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    border: none;
    margin: 0 6px;
    opacity: 1;
}
.carousel-indicators .active {
    background-color: var(--orange);
    width: 24px;
    border-radius: 10px;
}

/* Stats Section */
.stats-section {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}
.stats-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
}
.stat-icon {
    width: 55px;
    height: 55px;
    background-color: #f0fdf4 !important;
}
.stat-item h2 {
    font-size: var(--text-stats);
    letter-spacing: -0.5px;
}
.border-end {
    border-color: #eaeaea !important;
}

/* Utilities */
.letter-spacing-1 { letter-spacing: 1px; }

@media (max-width: 991px) {
    .stats-section { margin-top: -40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { max-width: 100%; font-size: 1rem; }
    .border-end { border: none !important; }
    .carousel-indicators { padding-left: 0; justify-content: center; bottom: 15px !important; margin-bottom: 0 !important; }
    .hero-slider-section .carousel-item { min-height: 400px; height: 60vh; }
    
    /* Light overlay for mobile slider to match design */
    .carousel-overlay {
        background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%) !important;
    }
    
    /* Make text vibrant, bright on light background for mobile */
    .hero-slider-section .text-success { color: #15803d !important; text-shadow: none !important; } 
    .hero-slider-section .text-primary { color: #f97316 !important; text-shadow: none !important; } 
    .hero-subtitle { color: #111 !important; text-shadow: none !important; font-weight: 500 !important; }
    
    /* Fix about-banner-v3 text and padding for all mobile/tablet screens */
    .about-banner-v3 {
        padding: 40px 0 60px 0 !important;
        min-height: 220px !important;
    }
    .about-banner-v3 h1 {
        font-size: 1.5rem !important; /* Reduced from 2rem to prevent long lab names from wrapping under content */
    }
    .page-banner {
        padding: 5px 0 !important;
        min-height: 0 !important;
    }
    .page-banner .container {
        padding: 5px 15px !important;
    }
    .page-banner h1, .page-banner h1.display-4 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
    }
    .page-banner nav {
        margin-top: 0 !important;
    }
    .page-banner .breadcrumb {
        font-size: 0.75rem !important;
        padding: 3px 12px !important;
        margin-bottom: 0 !important;
    }
    
    /* Reduce stats font and icon sizes on mobile */
    .stat-item h2 {
        font-size: 1.2rem !important;
    }
    .stat-item .small {
        font-size: 0.75rem !important;
    }
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .stat-icon i {
        font-size: 1.1rem !important;
    }
    
    /* Navbar menu button alignment */
    .navbar-collapse .btn-primary {
        margin-top: 15px;
        width: max-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure padding scales down gracefully */
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .pt-5 { padding-top: 2rem !important; }
    .pb-5 { padding-bottom: 2rem !important; }
    .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
    .mt-5 { margin-top: 2rem !important; }
    .mb-5 { margin-bottom: 2rem !important; }
    
    /* Team / Leadership cards */
    .message-content { padding: 1.5rem !important; }
}

/* Ensure the mobile/tablet dropdown menu is scrollable where navbar collapses (xl = 1200px) */
@media (max-width: 1199px) {
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding-bottom: 20px;
    }
    
    /* Make menu items smaller and closer together on mobile/tablet */
    .nav-links-custom {
        gap: 0 !important;
    }
    .nav-links-custom .nav-link {
        font-size: 0.95rem !important;
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; letter-spacing: -0.5px; }
    
    /* Reduce slider button size on mobile for both buttons */
    .hero-btn, .hero-btn-outline {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Make button gap smaller on mobile */
    .hero-content .gap-4 {
        gap: 0.5rem !important;
    }
    
    /* Fix Navbar toggler breaking to next line */
    .navbar .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .navbar-brand {
        margin-right: 0.5rem;
    }
    .nav-logo {
        height: 45px;
    }
    .navachar-title {
        font-size: 1.25rem !important;
    }
    .navachar-subtitle {
        font-size: 0.55rem;
    }
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* =========================================
       UNIFIED MOBILE TYPOGRAPHY SCALE
       ========================================= */
    :root {
        --text-hero: 2.2rem;
        --text-heading: 1.35rem;
        --text-subheading: 1.2rem;
        --text-stats: 1.1rem;
        --text-base: 0.9rem;
    }

    /* Enforce consistent heading sizes globally on mobile (excluding special banners) */
    h1:not(.page-banner h1):not(.about-banner-v3 h1), .h1:not(.page-banner h1):not(.about-banner-v3 h1) { 
        font-size: 1.6rem !important; 
        line-height: 1.2 !important; 
    }
    h2, .h2, .section-title { 
        font-size: 1.35rem !important; 
        line-height: 1.3 !important; 
        margin-bottom: 0.5rem !important; 
    }
    
    /* Reduce gap between orange pre-heading and black main heading */
    .text-uppercase.mb-2 {
        margin-bottom: 0.2rem !important;
    }
    h3, .h3 { 
        font-size: 1.5rem !important; 
        line-height: 1.4 !important; 
    }
    h4, .h4 { 
        font-size: 1.25rem !important; 
        line-height: 1.4 !important; 
    }
    h5, .h5 { 
        font-size: 1.1rem !important; 
    }
    h6, .h6 { 
        font-size: 1rem !important; 
    }
    
    p { 
        font-size: 0.95rem; 
        line-height: 1.6; 
    }
    
    /* Reduce large spacing gaps globally for mobile */
    .mb-5 { margin-bottom: 1.5rem !important; }
    .mb-4 { margin-bottom: 1rem !important; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .pb-5 { padding-bottom: 2rem !important; }
    .pb-3 { padding-bottom: 0.5rem !important; }
    
    /* Make flex containers for headers stack and center on mobile */
    .labs-section .d-flex {
        align-items: center !important;
        text-align: center !important;
    }
}

/* Unified Page Banner (Overrides Inline Styles) */
.page-banner {
    background: linear-gradient(135deg, #f99839 0%, #EA580C 100%) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: auto !important;
    border: none !important;
}
.page-banner .container {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}
.page-banner h1 {
    font-size: 1.75rem !important;
    margin-bottom: 0.25rem !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
.page-banner .breadcrumb {
    margin-top: 0 !important;
    padding: 0.15rem 1rem !important;
    font-size: 0.75rem !important;
    background: rgba(0,0,0,0.15) !important;
    border-radius: 50px !important;
    display: inline-flex !important;
}
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
}
.page-banner .breadcrumb-item.active {
    color: #fff !important;
    font-weight: 600 !important;
}
.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6) !important;
}

/* Unified Card Styling */
.equip-card, .premium-card {
    background: #fff;
    border-radius: 1rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.premium-card {
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.equip-card:hover, .premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.equip-img-wrap {
    background: #f8f9fa;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
}
.gallery-img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.05);
}
.logo-placeholder {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}
.tier-icon i {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 1rem;
    display: block;
}
.equip-card:hover, .premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.equip-img-wrap {
    background: #f8f9fa;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.equip-img-wrap i {
    font-size: 3rem;
    color: var(--orange) !important;
}
.equip-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.equip-card-title, .gallery-title, .logo-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.equip-desc, .gallery-desc, .tier-card p {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.8;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden;
}
.tier-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
}
.equip-desc.expanded {
    -webkit-line-clamp: unset !important;
}
.read-more-link {
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-block;
}



/* Extracted Inline Styles */
.section-subtitle { font-size: 0.85rem; letter-spacing: 1.5px; }
.container-custom { max-width: 1100px; margin-left: auto; margin-right: auto; }
.card-img-overlay-gradient { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%); }
.feature-icon-box { width: 50px; height: 50px; }
.feature-icon-circle { width: 35px; height: 35px; background-color: rgba(234, 179, 8, 0.15); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.min-h-45 { min-height: 45px; }
.banner-gradient { background: linear-gradient(135deg, #0b110e, #111827); overflow: hidden; }
.cta-gradient { background: linear-gradient(135deg, #e87b2b 0%, #efa454 100%); }

/* === Internal CSS Extracted from about.php === */
.img-hover-effect { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.img-hover-effect:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important; }
.team-card { transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; }
.team-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important; }
.team-img { transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); width: 100%; }
.team-card:hover .team-img { transform: scale(1.08); }
.team-info-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); transform: translateY(100%); opacity: 0; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.team-card:hover .team-info-overlay { transform: translateY(0); opacity: 1; }
@media (max-width: 991px) { .message-content p.text-muted { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; font-size: 0.95rem; } .message-content { padding: 1.5rem !important; } }

/* === Internal CSS Extracted from gallery.php === */
.gallery-filter-btn { padding: 8px 20px; border-radius: 50px; border: 1px solid var(--orange); background: transparent; color: var(--orange); font-weight: 600; transition: all 0.3s ease; }
.gallery-filter-btn.active, .gallery-filter-btn:hover { background: var(--orange); color: #fff; }
.gallery-img-wrap { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 15px; }
.gallery-img-wrap img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.1); }
.gallery-category-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; z-index: 2; backdrop-filter: blur(4px); }

p { line-height: 1.65; }
.premium-card { transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); border: 1px solid rgba(0,0,0,0.05); }
.premium-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(249, 115, 22, 0.08) !important; border-color: rgba(249, 115, 22, 0.2); }
.shadow-sm { box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; }
.shadow-lg { box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important; }
/* Labs Swiper */
.labs-swiper .card-img-overlay-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}
.lab-card {
    transition: transform 0.3s ease;
}
.lab-card:hover {
    transform: translateY(-5px);
}
/* --- ABOUT PAGE SPECIFIC FIXES --- */
.about-banner-v2 {
    position: relative;
    background: linear-gradient(135deg, #f99839 0%, #EA580C 100%);
    padding: 60px 0 100px 0;
    overflow: hidden;
}
.about-banner-text-col {
    position: relative;
    z-index: 2;
    padding-top: 0;
}
.about-banner-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.about-content-overlap {
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}
.about-banner-img-curve {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    border-radius: 80% 0 0 0 / 100% 0 0 0;
    z-index: 1;
}

/* Home Page Slider Orange Effect */
.hero-slider-section .carousel-item {
    background: linear-gradient(to right, #fed7aa 0%, #ffedd5 30%, #ffffff 100%) !important;
}

/* --- RESTORE ABOUT BANNER V2 CSS --- */
.about-banner-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.2) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1;
}
.breadcrumb-pill-v2 {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.breadcrumb-pill-v2 i {
    color: #ea580c;
    margin-right: 5px;
}
.breadcrumb-pill-v2 .separator {
    margin: 0 10px;
    color: #cbd5e1;
}
.breadcrumb-pill-v2 .text-muted {
    color: #64748b !important;
}
.about-banner-img-curve {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    border-radius: 80% 0 0 0 / 100% 0 0 0;
    z-index: 1;
}

/* --- ABOUT BANNER V3 CSS (Exact Match) --- */
.about-banner-v3 {
    position: relative;
    background: linear-gradient(to right, #f59e0b 0%, #ea580c 100%);
    min-height: 280px;
    padding: 60px 0 130px 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    z-index: 1 !important; /* Ensure banner stays below the overlapping content */
}

/* Global rule to ensure a clean fixed layout under the banner on all pages */
.about-banner-v3 + section {
    background-color: #ffffff !important;
    position: relative !important;
    z-index: 10 !important;
    padding-top: 4rem !important; /* Add some padding so content doesn't hit the top */
    /* Disable any animations (like AOS fade-up) for consistency across all pages */
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
    padding-bottom: 4rem !important;
}

.about-banner-v3 .container, .about-banner-v3 .row {
    height: auto !important;
}

/* Add dots universally to all banners */
.about-banner-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: 1;
}

/* Shift the content up slightly across all banners - removed as we now use flex-start */
.about-banner-v3 .container > .row {
    margin-top: 0;
}

/* Hide legacy manual dots div */
.about-banner-dots {
    display: none !important;
}
.breadcrumb-pill-v3 {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.about-banner-img-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}
.about-banner-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 80% 0 0 0 / 100% 0 0 0;
    z-index: 2;
}
.about-banner-img-backdrop {
    position: absolute;
    top: -5%;
    right: 0;
    width: 105%;
    height: 110%;
    background: rgba(255, 255, 255, 0.15); /* Light translucent band */
    border-radius: 80% 0 0 0 / 100% 0 0 0;
    z-index: 1;
}

/* White overlapping section background */
.about-content-overlap {
    background-color: #ffffff;
    border-top-left-radius: 80px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-top: 40px;
}

/* Premium Team Card Effects */
.team-card-premium {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center bottom;
}
.team-card-premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15) !important;
}
.team-card-premium .img-container {
    overflow: hidden;
}
.team-card-premium .img-container img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.team-card-premium:hover .img-container img {
    transform: scale(1.1);
}
.team-card-premium .social-icon {
    transition: all 0.3s ease;
}
.team-card-premium .social-icon:hover {
    transform: translateY(-3px);
    background-color: #0369a1 !important;
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.4);
}

/* Override Bootstrap Primary Buttons */
.btn-primary {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #e0600a !important;
    border-color: #e0600a !important;
}
.btn-outline-primary {
    color: var(--orange) !important;
    border-color: var(--orange) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--orange) !important;
    color: #fff !important;
    border-color: var(--orange) !important;
}

/* Service Card Hover Animations */
.service-hover-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
}
.service-hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.12) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}
.service-hover-card:hover i {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* --- ABOUT PAGE MOBILE RESPONSIVENESS --- */
.about-title-hero {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}
.section-title-mobile {
    font-size: 2.2rem;
}

@media (max-width: 767px) {
    .about-banner-v3 {
        height: auto;
        padding: 40px 0;
    }
    .about-banner-v3 .container {
        padding-top: 20px;
    }
    .about-title-hero {
        font-size: 2.2rem !important;
    }
    .section-title-mobile {
        font-size: 1.8rem !important;
    }
    .about-banner-img-wrapper {
        width: 100%;
        opacity: 0.15;
    }
    .about-content-overlap {
        border-top-left-radius: 40px;
        margin-top: -20px;
        padding-top: 30px;
    }
    .about-banner-img-curve, .about-banner-img, .about-banner-img-backdrop {
        border-radius: 0;
    }
}
@media (max-width: 576px) {
    .about-banner-v3 {
        height: auto;
        padding: 30px 0;
    }
    .team-card-premium .img-container {
        min-height: 250px !important;
    }
}

/* --- GLOBAL MOBILE TYPOGRAPHY --- */
@media (max-width: 991px) {
    html {
        font-size: 15px; /* Slightly reduce base rem size for mobile to scale down spacing/paddings proportionally */
    }
    h1, .h1 { font-size: 2rem !important; line-height: 1.2 !important; }
    h2, .h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
    h3, .h3 { font-size: 1.5rem !important; line-height: 1.4 !important; }
    h4, .h4 { font-size: 1.25rem !important; line-height: 1.4 !important; }
    h5, .h5 { font-size: 1.1rem !important; line-height: 1.4 !important; }
    h6, .h6 { font-size: 1rem !important; line-height: 1.4 !important; }

    .display-1 { font-size: 3.5rem !important; line-height: 1.1 !important; }
    .display-2 { font-size: 3rem !important; line-height: 1.1 !important; }
    .display-3 { font-size: 2.5rem !important; line-height: 1.2 !important; }
    .display-4 { font-size: 2.25rem !important; line-height: 1.2 !important; }
    .display-5 { font-size: 2rem !important; line-height: 1.2 !important; }
    .display-6 { font-size: 1.75rem !important; line-height: 1.3 !important; }

    .fs-1 { font-size: 2rem !important; }
    .fs-2 { font-size: 1.75rem !important; }
    .fs-3 { font-size: 1.5rem !important; }
    .fs-4 { font-size: 1.25rem !important; }
    .fs-5 { font-size: 1.1rem !important; }
    .fs-6 { font-size: 1rem !important; }
    
    .lead { font-size: 1.1rem !important; }
}

@media (max-width: 576px) {
    html {
        font-size: 14px; /* Further reduce base size on very small screens */
    }
    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    
    .display-1 { font-size: 3rem !important; }
    .display-2 { font-size: 2.5rem !important; }
    .display-3 { font-size: 2.25rem !important; }
    .display-4 { font-size: 2rem !important; }
    .display-5 { font-size: 1.75rem !important; }
    .display-6 { font-size: 1.5rem !important; }
}


/* --- DESKTOP TYPOGRAPHY (Increase Base Font Size by 1px) --- */
@media (min-width: 769px) {
    html {
        font-size: 17px !important;
    }
}


/* About Page Typography */
.about-text-justify { font-size: 0.95rem; text-align: justify; }
.about-text-sm { font-size: 0.95rem; }


/* Mobile Hero Slider Overrides */
.badge-outline-primary { border: 1px solid #f97316; color: #f97316; background-color: transparent; }
.hero-subtitle-card { background-color: white; border-radius: 12px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); border: none; }
.hero-subtitle-card .text-dark { color: #111 !important; text-shadow: none !important; }
.hero-subtitle-card-icon { width: 50px; height: 50px; background-color: #ffedd5; color: #f97316; flex-shrink: 0; }
.scroll-indicator-container { position: absolute; bottom: 100px; left: 0; right: 0; text-align: center; z-index: 10; }
.scroll-indicator-icon { width: 35px; height: 35px; border: 1px solid rgba(0,0,0,0.2); border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.carousel-indicators-custom button { width: 10px !important; height: 10px !important; border-radius: 50% !important; background-color: #ccc !important; border: none !important; opacity: 1 !important; margin: 0 4px !important; }
.carousel-indicators-custom button.active { width: 30px !important; border-radius: 10px !important; background-color: #f97316 !important; }
.stat-divider { width: 40px; height: 2px; background-color: #10b981; margin: 10px auto 0; display: block; }
.hero-wave-overlay { position: absolute; bottom: -2px; left: 0; width: 100%; height: auto; z-index: 10; pointer-events: none; }


@media (max-width: 767px) {
    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        top: auto !important;
        bottom: 35px !important;
        height: 50px !important;
        opacity: 1 !important;
    }
}
/* User Provided Mobile Slider Custom CSS */
.mobile-slide-custom {
    position: relative;
    width: 100%;
    min-height: 700px;
    padding-top: 20px; /* Reduced to push content up slightly */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.mobile-slide-custom .overlay-custom {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 100%);
    z-index: 1;
}
.mobile-slide-custom .content-custom {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    max-width: 95%;
}
.mobile-slide-custom .tag-custom {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--orange);
    border-radius: 40px;
    color: var(--orange);
    font-size: 11px;
    margin-bottom: 20px;
    font-weight: 700;
}
.mobile-slide-custom h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.05;
    color: #111;
}
.mobile-slide-custom .green { color: var(--green); }
.mobile-slide-custom .orange { color: var(--orange); }

.mobile-slide-custom .info-box-custom {
    margin-top: 20px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    max-width: 65%;
}
.mobile-slide-custom .icon-custom {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffedd5;
    color: var(--orange);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}
.mobile-slide-custom .info-box-custom p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
.mobile-slide-custom .buttons-custom {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    max-width: 100%;
    flex-wrap: nowrap;
}
.mobile-slide-custom .btn-orange-custom {
    background: var(--orange);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.mobile-slide-custom .btn-orange-custom:hover {
    background: #e06512;
    color: #fff;
}
.mobile-slide-custom .btn-white-custom {
    background: #fff;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.mobile-slide-custom .btn-white-custom:hover {
    background: var(--orange);
    color: #fff;
}
@media(max-width:991px) {
    .hero-slider-section .carousel-item { min-height: 480px; height: auto !important; }
}
@media(max-width:576px){
    .mobile-slide-custom { min-height: 500px; padding-bottom: 40px; }
    .mobile-slide-custom h1 { font-size: 36px; }
    .mobile-slide-custom .info-box-custom { max-width: 80%; margin-top: 15px; }
    .mobile-slide-custom .buttons-custom { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
    .mobile-slide-custom .btn-orange-custom, .mobile-slide-custom .btn-white-custom {
        padding: 10px 12px;
        font-size: 11px;
        gap: 4px;
        flex: 1 1 auto;
        justify-content: center;
    }
    .carousel-indicators-custom { bottom: 8px !important; z-index: 20; }
    .carousel-control-prev, .carousel-control-next { top: auto; bottom: 30px; height: auto; z-index: 25; }
}


/* Global Typography Override for All Pages */
body p, 
body .text-muted, 
body .small, 
body small {
    font-size: 15px !important;
    color: #334155 !important;
    line-height: 1.6 !important;
}

/* Ensure headings have a consistent color */
body h1, body h2, body h3, body h4, body h5, body h6 {
    color: #0F172A;
}

/* Let specific text colors still work for headings */
body .text-primary { color: var(--orange) !important; }
body .text-success { color: var(--green) !important; }
body .text-white { color: #ffffff !important; }


/* Mobile Navbar Dropdown Fix */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid #f1f5f9;
        z-index: 9999;
    }
    
    .navbar-collapse .nav-item {
        margin-bottom: 5px;
    }
    
    .navbar-collapse .nav-link {
        padding: 10px 15px !important;
        border-radius: 8px;
    }
    
    .navbar-collapse .nav-link:hover {
        background-color: #f8fafc;
    }
}

/* Fix for mobile white card text */
.mobile-slide-custom .info-box-custom p {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

/* Ensure mobile slider buttons are visible and positioned */
@media (max-width: 767px) {
    .hero-slider-section .carousel-control-prev, 
    .hero-slider-section .carousel-control-next {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%);
        opacity: 0.8;
    }
    .hero-slider-section .carousel-control-prev {
        justify-content: flex-start !important;
        padding-left: 10px !important;
    }
    .hero-slider-section .carousel-control-next {
        justify-content: flex-end !important;
        padding-right: 10px !important;
    }
    .hero-slider-section .carousel-control-prev div,
    .hero-slider-section .carousel-control-next div {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Position slider prev/next buttons below the link buttons on mobile */
@media (max-width: 767px) {
    .hero-slider-section .carousel-control-prev, 
    .hero-slider-section .carousel-control-next {
        top: auto !important;
        bottom: 25px !important;
        transform: none;
        opacity: 0.9;
    }
    .hero-slider-section .carousel-control-prev {
        justify-content: flex-start !important;
        left: 20px !important;
    }
    .hero-slider-section .carousel-control-next {
        justify-content: flex-start !important;
        left: 70px !important; /* Position next to the prev button */
    }
    .hero-slider-section .carousel-control-prev div,
    .hero-slider-section .carousel-control-next div {
        width: 40px !important;
        height: 40px !important;
        background-color: #f97316 !important; /* Orange background to match buttons */
    }
    .hero-slider-section .carousel-control-prev i,
    .hero-slider-section .carousel-control-next i {
        color: #ffffff !important;
    }
}

/* Spread mobile slider buttons apart */
@media (max-width: 767px) {
    .hero-slider-section .carousel-control-prev {
        left: 15px !important;
        justify-content: flex-start !important;
    }
    .hero-slider-section .carousel-control-next {
        left: auto !important;
        right: 15px !important;
        justify-content: flex-end !important;
    }
}

/* Fix for director images on mobile view */
@media (max-width: 991px) {
    .director-img-custom, .team-img-custom {
        object-fit: cover !important;
        background-color: transparent !important;
        height: 400px !important;
        max-height: none !important;
        object-position: top center !important;
        width: 100% !important;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1050;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    color: #fff;
}

.call-btn {
    background-color: #007bff; /* Blue for call */
}

.call-btn:hover {
    background-color: #0056b3;
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}

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

/* Move floating actions to left on mobile so they don't block scrollbar/content */
@media (max-width: 576px) {
    .floating-actions {
        right: 15px;
        bottom: 15px;
        transform: scale(0.9);
        transform-origin: bottom right;
    }
}
