/* 
 * HealthOK Global - Consolidated Stylesheet
 * Optimized to work with Bootstrap 5.3.2
 */

/* ========== CSS VARIABLES ========== */
:root {
    /* === Typography System === */
    /* Font families */
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
    /* Font sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
  
    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 500;
    --font-weight-bold: 600;
    
    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-snug: 1.35;
    --line-height-heading: 1.3;
    --line-height-body: 1.6;
    --line-height-loose: 1.75;
  
    /* Letter spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
  
    /* === Color System === */
    /* Neutral Grayscale */
    --gray-50: #f9fafb;
    --gray-100: #f9fafb;
    --gray-200: #f3f4f6;
    --gray-300: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #1f2937;
    
    /* Brand Colors - HEX and RGB values for rgba() usage */
    --brand-orange: #C36530;         /* Muted Orange */
    --brand-orange-dark: #9C5128;    /* Deep Orange */
    --brand-orange-light: #E4A67A;   /* Light Orange */
    --brand-orange-rgb: 195, 101, 48;
    --brand-orange-dark-rgb: 165, 84, 40;
    --brand-orange-light-rgb: 212, 146, 92;
    
    /* Primary Colors (based on brand) */
    --primary: var(--brand-orange);
    --primary-dark: var(--brand-orange-dark);
    --primary-light: var(--brand-orange-light);
    --primary-rgb: var(--brand-orange-rgb);
    --primary-dark-rgb: var(--brand-orange-dark-rgb);

      /* Text Contexts */
  --text-on-light: #1f2937; /* deep gray for white/bg-card */
  --text-on-dark: #ffffff;  /* always white */
  --text-on-primary: #ffffff;

       /* Text Colors for brand*/
       --text-heading: var( --text-on-light);
       --text-body: var(--text-on-light);
       --text-muted: var(--gray-500);
    
    /* Background Colors */
    --bg-page: #f8f9fa;
    --bg-card: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Segment Colors - Doctors */
    --doctors-primary: #6B4FA3;      /* Softer Indigo */
    --doctors-secondary: #4E3A78;    /* Deep Indigo */
    --doctors-accent: #A78BFA;       /* Smoother Periwinkle */
    --doctors-color: var(--doctors-primary);
    --doctors-light: #E8ECF7;
    --doctors-dark: #4A3A70;
    
    /* Segment Colors - Seniors */
    --seniors-primary: #336B78;      /* Muted Teal */
    --seniors-secondary: #275A66;    /* Deep Teal */
    --seniors-accent: #4A8694;       /* Serene Teal */
    --seniors-color: var(--seniors-primary);
    --seniors-light: #EBF5F7;
    --seniors-dark: var(--seniors-accent);
    
    /* Segment Colors - Families */
    --families-primary: #5A6B75;     /* Slate Teal */
    --families-secondary: #48575F;   /* Deep Slate Teal */
    --families-accent: #7A8A94;      /* Muted Slate Teal */
    --families-color: var(--families-primary);
    --families-light: #F0F3F5;
    --families-dark: var(--families-accent);
    
    /* Segment Colors - Corporates */
    --corporates-primary: #364F6B;   /* Slate Blue */
    --corporates-secondary: #2A3D54; /* Charcoal Navy */
    --corporates-accent: #4A6783;    /* Steel Sky */
    --corporates-color: var(--corporates-primary);
    --corporates-light: #EEF2F6;
    --corporates-dark: var(--corporates-accent);
    
 
    
    /* Segment-specific text colors */
    --doctors-text-on: var(--text-on-dark);
    --seniors-text-on: var(--text-on-dark);
    --families-text-on: var(--text-on-dark);
    --corporates-text-on: var(--text-on-dark);
    

    
    /* Aliases for backward compatibility */
    --brand-accent: var(--brand-orange);
    --brand-accent-dark: var(--brand-orange-dark);
    --brand-accent-light: var(--brand-orange-light);
    --brand-primary: var(--primary);
    --brand-secondary: var(--primary-dark);
    --accent-color: var(--primary);
    --feature-header-bg: var(--primary-light);
    --step-number-bg: var(--brand-primary);
    --step-duration-bg: var(--gray-100);
    --border-color: var(--gray-300);
    
    /* Shadow System */
    --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --border-radius-sm: 0.2rem;
    --border-radius-md: 0.25rem;
    --border-radius-lg: 0.375rem;
    --border-radius-xl: 0.5rem;

/* Bootstrap Variables */
    --bs-primary: var(--primary);
    --bs-secondary: var(--primary-dark);
    --bs-info: var(--primary-light);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
    --bs-success: #20B2AA;      /* Teal for success - complementary color */
    --bs-success-rgb: var(--primary-light);      /* Teal for success - complementary color */
    --bs-info: #4A6B7C;         /* Your existing slate blue */
    --bs-warning: #FF8C00;      /* Lighter orange for warnings */
    --bs-danger: #DC3545;       /* Keep Bootstrap's red for danger */

  }
  
  /* ========== BASE STYLES ========== */
  /* Typography */
  body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    color: var(--text-body);
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin-bottom: 1rem;
    line-height: var(--line-height-heading);
  }
  
  h1 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-medium); }
  h2 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-medium); }
  h3 { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }
  h4 { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); }
  h5 { font-size: var(--font-size-md); font-weight: var(--font-weight-medium); }
  h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-medium); }
  
  /* Body text */
  body, p, span, li {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    color: var(--text-body);
  }
  
  /* Focus state accessibility */
  :focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  /* Responsive typography */
  @media (max-width: 768px) {
    h1 { font-size: calc(var(--font-size-2xl) + 0.25rem); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }
  }
  
  /* ========== UTILITY CLASSES ========== */
  /* Bootstrap class overrides */
  .h1 { font-size: var(--font-size-3xl) !important; font-weight: var(--font-weight-medium) !important; }
  .h2 { font-size: var(--font-size-2xl) !important; font-weight: var(--font-weight-medium) !important; }
  .h3 { font-size: var(--font-size-xl) !important; font-weight: var(--font-weight-semibold) !important; }
  .h4 { font-size: var(--font-size-lg) !important; font-weight: var(--font-weight-semibold) !important; }
  .h5 { font-size: var(--font-size-md) !important; font-weight: var(--font-weight-medium) !important; }
  .h6 { font-size: var(--font-size-base) !important; font-weight: var(--font-weight-medium) !important; }
  
  /* Text utilities */

  .text-brand {
    color: var(--primary);
  }

  .text-primary {
    color: var(--primary);
  }

  .text-success {
    color: var(--bs-success) !important;
  }

  .text-body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    color: var(--text-body);
  }
  
  .text-muted {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
  }
  
  .text-small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-tight);
  }
  
  .text-large {
    font-size: var(--font-size-md);
    line-height: var(--line-height-body);
  }
  
  
  /* Font weight utilities */
  .fw-normal { font-weight: var(--font-weight-normal); }
  .fw-medium { font-weight: var(--font-weight-medium); }
  .fw-semibold { font-weight: var(--font-weight-semibold); }
  .fw-bold { font-weight: var(--font-weight-bold); }
  
  /* Font size utilities */
  .fs-xs { font-size: var(--font-size-xs); }
  .fs-sm { font-size: var(--font-size-sm); }
  .fs-base { font-size: var(--font-size-base); }
  .fs-md { font-size: var(--font-size-md); }
  .fs-lg { font-size: var(--font-size-lg); }
  .fs-xl { font-size: var(--font-size-xl); }
  .fs-2xl { font-size: var(--font-size-2xl); }
  .fs-3xl { font-size: var(--font-size-3xl); }
  
  /* Spacing utilities */
  .tracking-tight { letter-spacing: var(--letter-spacing-tight); }
  .tracking-normal { letter-spacing: var(--letter-spacing-normal); }
  .tracking-wide { letter-spacing: var(--letter-spacing-wide); }
  
  /* Section wrappers */
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .section-sm {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section-lg {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  /* Vertical and horizontal padding */
  .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
  .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .py-3 { padding-top: 1rem; padding-bottom: 1rem; }
  .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .py-5 { padding-top: 2rem; padding-bottom: 2rem; }
  
  .px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
  .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
  .px-3 { padding-left: 1rem; padding-right: 1rem; }
  .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .px-5 { padding-left: 2rem; padding-right: 2rem; }
  
  /* Margin top and bottom */
  .mt-1 { margin-top: 0.25rem; }
  .mt-2 { margin-top: 0.5rem; }
  .mt-3 { margin-top: 1rem; }
  .mt-4 { margin-top: 1.5rem; }
  .mt-5 { margin-top: 2rem; }
  
  .mb-1 { margin-bottom: 0.25rem; }
  .mb-2 { margin-bottom: 0.5rem; }
  .mb-3 { margin-bottom: 1rem; }
  .mb-4 { margin-bottom: 1.5rem; }
  .mb-5 { margin-bottom: 2rem; }
  
  /* Gaps for flex or grid */
  .gap-1 { gap: 0.25rem; }
  .gap-2 { gap: 0.5rem; }
  .gap-3 { gap: 1rem; }
  .gap-4 { gap: 1.5rem; }
  .gap-5 { gap: 2rem; }
  
  /* Primary button override to match brand */
  .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  


  .text-heading { color: var(--text-heading); }
  .text-body { color: var(--text-body); }

    /* Text contrast helpers */
    .text-on-dark {
        color: var(--text-on-dark) !important;
      }
      .text-on-light {
        color: var(--text-on-light) !important;
      }
      .text-on-primary { color: var(--text-on-primary) !important; }
  /* Background color utilities */
      
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--bg-card); }
    
  /* Text color utilities */
  .text-doctors { color: var(--doctors-primary) !important; }
  .text-seniors { color: var(--seniors-primary) !important; }
  .text-families { color: var(--families-primary) !important; }
  .text-corporates { color: var(--corporates-primary) !important; }
 
  
  .text-doctors-on { color: var(--doctors-text-on) !important; }
  .text-seniors-on { color: var(--seniors-text-on) !important; }
  .text-families-on { color: var(--families-text-on) !important; }
  .text-corporates-on { color: var(--corporates-text-on) !important; }
  
  /* Background color utilities */
  .bg-doctors { background-color: var(--doctors-primary) !important; }
  .bg-seniors { background-color: var(--seniors-primary) !important; }
  .bg-families { background-color: var(--families-primary) !important; }
  .bg-corporates { background-color: var(--corporates-primary) !important; }
  .bg-page { background-color: var(--bg-page); }
  .bg-card { background-color: var(--bg-card); }
  
  .bg-doctors-light { background-color: var(--doctors-light); }
  .bg-seniors-light { background-color: var(--seniors-light); }
  .bg-families-light { background-color: var(--families-light); }
  .bg-corporates-light { background-color: var(--corporates-light); }
  
  /* Borders */
  .border-default {
    border: 1px solid var(--border-color);
  }
  
  /* Badge / Chip styles */
  .badge-pill {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }
  
  /* Optional contrast helpers */
  .badge-light {
    background-color: var(--gray-200);
    color: var(--text-heading);
  }
  
  .badge-dark {
    background-color: var(--text-heading);
    color: var(--text-on-dark);
  }
  
  /* ========== HEADER COMPONENTS ========== */
  /* Top Bar */
  .top-bar {
    background-color: var(--primary);
    font-size: 14px;
  }
  
  .top-bar a {
    text-decoration: none;
  }
  
  /* Social Media Buttons */
  .btn-sm-square {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-square {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Navbar */
  .navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .navbar-brand img {
    max-height: 60px;
    height: auto;
    width: auto;
    display:block;
  }
  
  .navbar-toggler {
    border: none;
    color: var(--primary);
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover, 
  .navbar-nav .nav-link.active {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 5px;
  }
  
  /* ========== CAROUSEL ========== */
  .carousel-item {
    height: 600px;
  }
  
  .carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
  }
  
  .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
  }
  
  /* ========== HERO SECTION ========== */
  .hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-on-dark);
    padding: 5rem 1rem;
    overflow: hidden;
  }
  
  .hero-section .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    z-index: 0;
  }
  
  .hero-section .container {
    position: relative;
    z-index: 1;
  }
  
  .hero-section h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-on-dark);
  }
  
  .hero-section p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    max-width: 540px;
    color: var(--text-on-dark);
    margin-bottom: 2rem;
  }
  
  .hero-section .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: background 0.3s ease;
  }
  
  .hero-section .btn-light {
    background-color: #ffffff;
    color: var(--text-dark);
    border: none;
  }
  
  .hero-section .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
  }
  
  .hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .hero-section .hero-image img {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .hero-compact::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: white;
    opacity: 0.2;
    z-index: 1;
}

.hero-compact .container {
    position: relative;
    z-index: 2;
}

.hero-compact {
    position: relative;
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.hero-compact .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: background 0.3s ease;
  }
  
  .hero-compact .btn-light {
    background-color: #ffffff;
    color: var(--text-dark);
    border: none;
  }
  
  .hero-compact .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
  }
  
  .hero-compact .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }
  
  /* ========== FLIP CARDS ========== */
  .flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  
  .flip-card {
    perspective: 1000px;
    height: 400px;
    transition: transform 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
  }
  
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
  }
  
  .flip-card-front {
    background-color: white;
    border-top: 5px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .flip-card-back {
    background-color: var(--primary);
    color: white;
    transform: rotateY(180deg);
  }
  
  /* Segment-specific flip card colors */
  .segment-seniors .flip-card-front { border-top-color: var(--seniors-color); }
  .segment-seniors .flip-card-back { background-color: var(--seniors-color); }
  
  .segment-families .flip-card-front { border-top-color: var(--families-color); }
  .segment-families .flip-card-back { background-color: var(--families-color); }
  
  .segment-doctors .flip-card-front { border-top-color: var(--doctors-color); }
  .segment-doctors .flip-card-back { background-color: var(--doctors-color); }
  
  .segment-corporates .flip-card-front { border-top-color: var(--corporates-color); }
  .segment-corporates .flip-card-back { background-color: var(--corporates-color); }
  
  .consumer-icon {
    font-size: 3rem;
    margin-bottom: 20px;
  }

  .icon-badge {
    background-color: var(--primary);
    color: var(--text-on-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    padding: 0 !important;          /* ADD THIS for consistency */
  }
  
  
  /* ========== FACTS SECTION ========== */
  .facts {
    background: linear-gradient(rgba(var(--primary-rgb), 0.9), rgba(var(--primary-dark-rgb), 0.8));
  }
  
  .fact-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
  }
  
  .fact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
  }
  
  .fact-item i {
    margin-bottom: 20px;
  }
  
  .fact-item h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  /* ========== TESTIMONIAL SECTION ========== */
  .testimonial-section {
    padding: 4rem 1rem;
    background-color: var(--gray-100);
  }
  
  .testimonial-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(255, 255, 255, 1) 80%);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px; /* Fixed height */
    border: none; /* Remove top border */
  }
  
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  
  .testimonial-icon {
    font-size: 2.5rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    display:none;
  }
  
  .testimonial-content p {
    font-size: var(--font-size-base);
    color: var(--text-body);
    line-height: var(--line-height-body);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
  }
  
  .testimonial-content p::before {
    content: '"';
    font-size: 1.5em;
    line-height: 0;
    position: relative;
    top: 0.25em;
    color: var(--primary);
  }
  
  .testimonial-author {
    font-weight: var(--font-weight-medium);
    color: var(--text-heading);
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    margin-top: auto; /* Push to bottom of card */
  }
  
  .testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-height-snug);
  }
  
  .testimonial-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-200); /* Override in doctors.css */
    margin: 0 auto 1rem auto;
    display:none;
  }
  
  .testimonial-footer {
    margin-top: auto; /* Pushes footer to bottom of card */
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding-top: 1rem;
  }
  
  .testimonial-card .testimonial-footer .testimonial-meta span{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
  }
  
  .testimonial-designation {
    font-weight: var(--font-weight-medium);
  }
  
  .testimonial-location:before {
    content: '•';
    margin-right: 0.5rem;
  }
  
  .testimonial-rating {
    margin-left: auto; /* Pushes rating to right side */
  }
  
  /* Swiper pagination style */
  .swiper-pagination-bullet {
    background-color: var(--gray-500);
    opacity: 0.6;
  }
  
  .swiper-pagination-bullet-active {
    background-color: var(--gray-700);
    opacity: 1;
  }
  
  /* ========== FAQ SECTION ========== */
  .faq-section {
    padding: 5rem 0;
  }
  
  .faq-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .faq-tabs-container::-webkit-scrollbar {
    display: none;
  }
  
  .faq-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }
  
  .faq-tabs .nav-link {
    white-space: nowrap;
    border-radius: 50px;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.3s ease;
  }
  
  .faq-tabs .nav-link.active {
    background-color: var(--primary);
    color: white;
  }
  
  /* Update search box for better accessibility and appearance */
  .faq-search {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .faq-search .form-control {
    height: 50px; /* Slightly larger input for better touch targets */
    font-size: var(--font-size-base);
    border-radius: 8px 0 0 8px; /* Less rounded for a more modern look */
    transition: all 0.3s ease;
    border: 1px solid var(--gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .faq-search .btn {
    border-radius: 0 8px 8px 0; /* Match input for consistency */
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .faq-section .faq-search .btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  
  .accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden; /* Keep child elements within border radius */
    transition: all 0.3s ease;
    border: 1px solid var(--gray-300);
  }
  
  .accordion-button {
    padding: 1.25rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    background-color: white;
    color: var(--text-heading);
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
   }
   
   .accordion-button:not(.collapsed) {
    background-color: white;
    color: var(--primary);
    box-shadow: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
   }
   
   .accordion-button:hover {
    background-color: var(--gray-100);
   }
   
   .accordion-button:focus {
    z-index: 3;
    border-color: var(--gray-300);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
   }
   
   .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C36530'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
   }
   
   .accordion-body {
    padding: 1.5rem;
    background-color: white;
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    color: var(--text-body);
   }
   
   /* Improve "No Results" message */
   #noFaqResults .alert {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background-color: var(--primary-light);
    border: 1px solid var(--gray-300);
   }
   
   #noFaqResults .fa-info-circle {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary);
   }
   
   /* ========== CTA SECTION ========== */
   .cta-section {
    padding: 2rem 1rem;
    background: linear-gradient(rgba(var(--primary-rgb), 0.9), rgba(var(--primary-dark-rgb), 0.8));
    color: var(--text-on-dark);
    text-align: center;
   }
   
   .cta-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
    color: var(--text-on-dark);

   }
   
   .cta-section p {
    font-size: var(--font-size-base);
    color: var(--text-on-dark);
    margin-bottom: .5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1rem;
   }
   
   .cta-button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0 3rem; /* Add horizontal padding */

   }
   
   .cta-section .btn {
    font-size: var(--font-size-base);
    padding: 0.75rem 1.5rem;
   }
   
   /* ========== FOOTER ========== */
   footer {
    background-color: #333;
    color: #9a9a9a;
    padding: 70px 0 20px;
    border-top: 5px solid var(--primary);
   }
   
footer p,
footer span,
footer div,
footer a
 {
    color: #9a9a9a;
}

.footer-contact
 {
    color: #9a9a9a;
}

   .footer-logo img {
    height: 50px;
    margin-bottom: 20px;
   }
   
   .footer-contact i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
   }
   
   .footer-links h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
   }
   
   .footer-links h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    bottom: -10px;
   }
   
   .footer-links ul {
    list-style: none;
    padding: 0;
   }
   
   .footer-links ul li {
    margin-bottom: 15px;
   }
   
   .footer-links ul li a {
    color: #9a9a9a;
    text-decoration: none;
    transition: all 0.3s ease;
   }
   
   .footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
   }
   
   .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
   }
   
   .social-links a:hover {
    background-color: var(--primary);
   }
   
   .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
   }
   
   /* ========== COOKIE CONSENT ========== */
   .cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-align: center;
    display: none;
    animation: slideUp 0.5s forwards;
   }
   
   @keyframes slideUp {
    from {
      bottom: -100px;
      opacity: 0;
    }
    to {
      bottom: 20px;
      opacity: 1;
    }
   }
   
   .cookie-consent h4 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
   }
   
   .cookie-consent p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
   }
   
   .cookie-accept-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
   }
   
   .cookie-accept-btn:hover {
    background-color: var(--primary-dark);
   }
   
   /* ========== WHATSAPP BUTTON ========== */
   .whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    display: none;
   }
   
   .whatsapp-button:hover {
    transform: scale(1.1);
    animation: none;
   }
   
   .whatsapp-icon {
    width: 55px;
    height: 55px;
    fill: white;
   }
   
   @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
   }
   
   /* ========== MOBILE OPTIMIZATIONS ========== */
   /* Add new component for mobile-first horizontal scrolling */
   .mobile-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -1rem;
    padding: 0 1rem;
   }
   
   .mobile-scroller::-webkit-scrollbar {
    display: none;
   }
   
   .mobile-scroller > * {
    scroll-snap-align: start;
    flex: 0 0 85%;
    min-width: 260px;
   }
   
   @media (min-width: 768px) {
    .mobile-scroller {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      overflow-x: visible;
      margin: 0;
      padding: 0;
    }
    
    .mobile-scroller > * {
      flex: none;
      min-width: 0;
    }
   }
   
   /* WhatsApp button mobile adjustments */
   @media (max-width: 768px) {
    .cookie-consent {
      width: 90%;
      max-width: none;
      bottom: 0;
      left: 0;
      right: 0;
      transform: none;
      border-radius: 10px 10px 0 0;
      animation: slideUpMobile 0.5s forwards;
    }
    
    @keyframes slideUpMobile {
      from {
        bottom: -100px;
        opacity: 0;
      }
      to {
        bottom: 0;
        opacity: 1;
      }
    }
    
    .whatsapp-button {
      width: 50px;
      height: 50px;
      bottom: 15px;
      right: 15px;
    }
    
    .whatsapp-icon {
      width: 30px;
      height: 30px;
    }
    
    .testimonial-author {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .testimonial-image {
      margin-bottom: 10px;
    }
   
    /* Add this to hide connector lines on mobile */
    .implementation-card::after {
      display: none;
    }
   }
   
   /* Responsive adjustments for larger screens */
   @media (max-width: 991px) {
    .carousel-item {
      height: 500px;
    }
    
    .fact-item h2 {
      font-size: 2.5rem;
    }
   }
   
   @media (max-width: 767px) {
    .carousel-item {
      height: 400px;
    }
    
    .cta-section h2 {
      font-size: 1.8rem;
    }
    
    .fact-item h2 {
      font-size: 2rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
      display: none;
    }
   }


   .swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background: var(--bg-card);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    color: var(--text-on-primary);
}
   .contact-method-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}


/* Office Locations Section Styling */

.region-title {
    color: var(--text-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    position: relative;
}

.region-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.region-description {
    font-size: var(--font-size-md);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.office-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.office-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gray-300), var(--gray-200));
    transition: all 0.3s ease;
}

.office-card.border-primary::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    height: 5px;
}

.office-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.office-card:hover::before {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    height: 5px;
}

.office-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.office-city {
    color: var(--text-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
}

.office-location {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    margin-bottom: 1rem;
}

.office-card .badge.bg-primary {
    background-color: var(--primary) !important;
    color: var(--text-on-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-lg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.office-services h6 {
    color: var(--text-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.services-tags .badge {
    background: linear-gradient(135deg, var(--primary-light), rgba(var(--primary-rgb), 0.1)) !important;
    color: var(--primary-dark) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
    cursor: default;
}

.services-tags .badge:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: var(--text-on-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.3);
}

/* Primary office special styling */
.office-card.border-primary {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.1);
}

.office-card.border-primary .office-city {
    color: var(--primary-dark);
}

.office-card.border-primary:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .office-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .region-title {
        font-size: var(--font-size-lg);
        text-align: center;
    }
    
    .region-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .region-description {
        text-align: center;
        font-size: var(--font-size-base);
    }
    
    .services-tags {
        justify-content: center;
    }
    
    .office-header {
        text-align: center;
    }
}

/* Animation for cards appearing */
.office-card[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
}

.office-card[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

#categories {
  border-top: 1px solid var(--gray-400);
}