/* Modern Redesign Styles for Prakash Laddha Group */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #d8232a;
    --accent-glow: rgba(216, 35, 42, 0.4);
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-light: #fdfdfd;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.4);
    /* More transparent */
    --glass-dark: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 40px 80px rgba(0, 0, 0, 0.1);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --radius-lg: 40px;
    --radius-md: 24px;
    --radius-sm: 16px;
}

/* Base Smoothing */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fixed Header Layout Adjustment */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-light);
    overflow-x: hidden;
    padding-top: 100px;
}

/* Hero pages shouldn't have top padding */
body.has-slider,
body.no-header-padding {
    padding-top: 0 !important;
}

h6 {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
}

/* 🧼 Rounded Utility */
.rounded-premium {
    border-radius: var(--radius-lg) !important;
}

/* 🌫 Sticky Blurred Navigation bar */
#header {
    background-color: transparent !important;
    transition: background-color 0.4s ease, height 0.4s ease;
    border: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    height: 100px !important;
    overflow: visible !important;
}

#header.sticky-header {
    height: 60px !important;
}

#header.sticky-header #header-wrap {
    height: 60px !important;
    background-color: var(--glass) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
}

#header-wrap,
#header-wrap .container {
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    background: transparent !important;
    transition: height 0.4s ease;
}

#logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 30px;
    height: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

#logo a img {
    height: 50px !important;
    width: auto !important;
    display: block !important;
    transition: all 0.4s ease;
}

#header.sticky-header #logo img {
    height: 35px !important;
}

#primary-menu,
#primary-menu>ul {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

#primary-menu>ul>li {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

#primary-menu>ul>li>a {
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 0 15px !important;
    height: 100px !important;
    line-height: 100px !important;
    transition: var(--transition);
    color: var(--primary) !important;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

#header.sticky-header #primary-menu>ul>li>a {
    height: 60px !important;
    line-height: 60px !important;
}

/* Accent Overrides */
.color,
.text-primary,
.accent-text {
    color: var(--accent) !important;
}

.i-plain.color i,
.i-plain.color {
    color: var(--accent) !important;
}

#primary-menu>ul>li>a:hover {
    background-color: rgba(216, 35, 42, 0.05);
    /* Red accent glow */
    color: var(--accent) !important;
}

#primary-menu>ul>li.current>a {
    color: var(--accent) !important;
    background-color: rgba(216, 35, 42, 0.08);
}

/* Hero Section - Maximum Readability */
.slider-caption {
    background: rgba(32, 39, 68, 0.2) !important;
    backdrop-filter: blur(5px) saturate(140%);
    -webkit-backdrop-filter: blur(5px) saturate(140%);
    padding: 40px 60px !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: auto !important;
    max-width: 85% !important;
    display: inline-block !important;
    /* Shrink-wrap to content */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-caption h2 {
    font-size: 4rem !important;
    /* Slightly smaller for better fit */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#slider .slider-caption p {
    font-size: 1.25rem !important;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Force centering for center-aligned captions */
.slider-caption.slider-caption-center {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center;
}

@media (max-width: 767px) {
    .slider-caption {
        padding: 30px !important;
        width: 90% !important;
    }

    .slider-caption h2 {
        font-size: 2.2rem !important;
    }
}

/* Animated Gradient Background for Sections */
.section-premium {
    position: relative;
    overflow: hidden;
}

.section-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Vertical Cards Redesign - Softer Corners */
.vertical-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.vertical-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-glow);
}

.vertical-card i {
    color: var(--accent) !important;
    font-size: 4rem !important;
    margin-bottom: 32px !important;
    transition: var(--transition);
}

.vertical-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Premium Buttons */
.button-premium {
    background: var(--primary);
    color: var(--white) !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.button-premium:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.4);
}

/* Counter Section Redesign */
.stats-section-premium {
    background-color: var(--primary) !important;
    padding: 80px 0 !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
}

.stats-section-premium::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 35, 42, 0.08) 0%, transparent 70%);
    top: -300px;
    right: -300px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
    min-height: 320px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 50%;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: rgba(216, 35, 42, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 3.5rem !important;
    margin-bottom: 0 !important;
    color: var(--accent) !important;
    opacity: 0.9;
    transition: var(--transition);
}

.stat-card:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.stat-card .counter {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat-card h5 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0;
}

/* Base Counter Styles Override */
.counter.counter-lined {
    border: none !important;
}

.counter.counter-lined::after {
    display: none !important;
}

.stat-card .stat-text,
.stat-card .stat-text .counter,
.stat-card .stat-text h5 {
    text-align: left !important;
}

.stat-card .counter.counter-lined+h5::before {
    margin: 15px 0 15px 0 !important;
}

/* Images & Media */
.portfolio-image,
.img-hover-zoom,
.image-reveal {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

/* Buttons */
.button-premium,
.btn,
.si-rounded {
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
}

/* Portfolio Masonry Enhancement */
.portfolio-item {
    border-radius: var(--radius-md);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(0.98);
}

.portfolio-overlay {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px);
}

/* Modern Footer */
#footer {
    padding: 80px 0 0;
    background-color: var(--primary) !important;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

#copyrights {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--accent), #ff4d4d);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Image Reveal Animation */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.image-reveal.active::after {
    transform: translateX(100%);
}

.image-reveal img {
    opacity: 0;
    transition: opacity 0.1s 0.4s;
}

.image-reveal.active img {
    opacity: 1;
}

/* Micro-animations for text */
.text-underline {
    position: relative;
    display: inline-block;
}

.text-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: var(--transition);
}

.text-underline:hover::after {
    width: 100%;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* UI Element Accent Overrides */
.divider i,
.accordion .acctitle i {
    color: var(--accent) !important;
}

.counter-lined span {
    color: var(--accent) !important;
}

#gotoTop:hover {
    background-color: var(--accent) !important;
}

.one-page-arrow i {
    color: var(--accent) !important;
}

/* Fix for start-state menu alignment */
@media (min-width: 992px) {
    #primary-menu>ul>li>a {
        line-height: 40px !important;
    }
}

/* Micro-interactions */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 20px;
}

.img-hover-zoom img {
    transition: transform 1s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Stats Section Mobile Optimization */
@media (max-width: 991px) {
    .stats-section-premium {
        padding: 60px 15px !important;
        border-radius: var(--radius-md) !important;
        margin: 20px 10px !important;
    }

    .stat-card {
        padding: 40px 20px !important;
        margin-bottom: 20px !important;
        min-height: 250px;
    }

    .stat-card .counter {
        font-size: 2.8rem !important;
    }

    .stat-card i {
        font-size: 2.5rem !important;
    }

    .stat-card h5 {
        font-size: 0.9rem !important;
    }
}

/* 📊 Grouped Bar Chart Layout 📊 */
.grouped-chart-container {
    padding: 60px 0;
    position: relative;
    margin-bottom: 40px;
}

.chart-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.chart-label {
    flex: 0 0 30%;
    width: 30%;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    padding: 10px 20px;
    text-align: center;
    line-height: 1.2;
    align-self: center;
}

.chart-bars-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 2px solid rgba(15, 23, 42, 0.1);
    /* Vertical Divider */
    padding-left: 25px;
}

.chart-bar-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.chart-bar-link {
    display: block;
    width: 100%;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.chart-bar-link:hover {
    transform: translateX(5px);
}

.chart-bar-link:hover .chart-bar {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.chart-bar {
    height: 32px;
    position: relative;
    transition: width 3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
}

.chart-bar.bar-orange {
    background-color: var(--accent);
}

.chart-bar.bar-pink {
    background-color: var(--primary);
}

.chart-bar.bar-green {
    background-color: #64748b;
}

.chart-bar-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    opacity: 0.95;
    text-align: center;
}

.chart-bar-percent {
    position: absolute;
    right: 15px;
    font-size: 14px;
    font-weight: 800;
    color: #fff !important;
}

@media (max-width: 768px) {
    .chart-row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .chart-label {
        width: 100%;
        text-align: left;
        margin-bottom: 15px;
        padding-right: 0;
    }

    .chart-bars-wrapper {
        width: 100% !important;
        padding-left: 0 !important;
        border-left: none !important;
    }

    .chart-bar-percent {
        right: 10px;
        color: #fff;
    }
}/* =============================================
   MOBILE FIXES — Prakash Laddha Group
   Covers: all pages at <= 991px & <= 767px
   ============================================= */

/* ─── 1. BODY TOP PADDING ─────────────────── */
/* On mobile the theme's responsive.css zeroes body padding,
   but modern-redesign.css forces 100px. We restore proper
   header clearance for each mobile breakpoint. */
@media (max-width: 991.98px) {
  body {
    padding-top: 80px !important; /* Fixed header height */
  }

  /* Slider pages or pages with heroes handle their own padding */
  body.has-slider,
  body.no-header-padding {
    padding-top: 0 !important;
  }

  /* About / Values / Companies / Careers / CSR hero sections */
  .about-hero,
  .values-hero,
  .companies-hero,
  .careers-hero,
  .csr-hero,
  .verticals-hero {
    padding-top: 110px !important;
  }
}

/* ─── 2. HEADER MOBILE FIXES ─────────────── */
@media (max-width: 991.98px) {
  #header {
    height: 80px !important;
    min-height: 80px !important;
    background: #0f172a !important; /* Solid dark background for mobile to ensure readability */
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
  }

  #header-wrap {
    height: 80px !important;
    width: 100% !important;
    position: relative !important;
    overflow: visible !important;
  }

  #header-wrap .container {
    height: 80px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 24px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Logo sizing on mobile - Put on LEFT */
  #logo {
    margin: 0 !important;
    padding: 0 !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 220px !important;
    flex: 0 0 auto !important;
    position: relative !important;
    left: 0 !important;
    order: -1 !important; /* Force to Left */
  }

  #logo a img {
    height: 45px !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* Hamburger trigger - Put on RIGHT */
  #primary-menu-trigger {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 24px !important;
    cursor: pointer;
    z-index: 1001 !important;
    pointer-events: auto !important;
    order: 1 !important; /* Force to Right relative to logo */
    width: 50px !important;
    height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
  }

  #primary-menu-trigger * {
    pointer-events: none !important; /* Let click go through to parent */
  }

  /* Reset the desktop flex layout on mobile */
  #primary-menu {
    display: block !important;
    width: 100% !important;
    position: absolute !important;
    top: 80px !important;
    left: 0 !important;
    background: #0f172a !important;
    height: auto !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #primary-menu.mobile-menu-active {
    max-height: 100vh;
  }

  #primary-menu > ul {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    padding: 20px 0 !important;
    background: #0f172a !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
  }

  #primary-menu > ul > li {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border: none !important;
    margin: 0 !important;
  }

  #primary-menu > ul > li > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 15px 25px !important;
    color: #fff !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: transparent !important;
  }

  #primary-menu > ul > li.current > a {
    color: #dc2626 !important;
    background: rgba(255,255,255,0.05) !important;
  }

  /* Handle submenus on mobile */
  #primary-menu ul ul {
    display: none; /* Let functions.js toggle it with d-block */
    padding-left: 20px !important;
    background: rgba(255,255,255,0.03) !important;
  }

  #primary-menu ul ul.d-block {
    display: block !important;
  }

  #primary-menu ul ul li a {
    padding: 10px 25px !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
    color: rgba(255,255,255,0.8) !important;
  }
}

/* ─── 2.5 INDEX SLIDER MOBILE FIX ────────── */
@media (max-width: 767.98px) {
  #slider, 
  .swiper_wrapper, 
  .swiper-slide,
  .swiper_wrapper:not(.force-full-screen) .swiper-slide,
  .swiper_wrapper:not(.force-full-screen):not(.canvas-slider-grid) .swiper-slide {
    height: 450px !important; /* Fixed height for better visibility on mobile */
  }

  .slider-inner {
    height: 450px !important;
  }
  
  #slider .slider-caption {
    width: 90% !important;
    padding: 20px !important;
  }
}

@media (max-width: 575.98px) {
  #slider, 
  .swiper_wrapper, 
  .swiper-slide,
  .swiper_wrapper:not(.force-full-screen) .swiper-slide,
  .swiper_wrapper:not(.force-full-screen):not(.canvas-slider-grid) .swiper-slide,
  .slider-inner {
    height: 350px !important; /* Slightly smaller for very small phones but still visible */
  }
}

/* ─── 3. STATS BAR (About Page) ─────────── */
@media (max-width: 575.98px) {
  /* On very small phones the 2×2 grid can look cramped */
  .about-stats .stat-number {
    font-size: 1.6rem !important;
  }

  .about-stats .stat-label {
    font-size: 0.7rem !important;
  }

  .about-stats {
    padding: 24px 0 !important;
  }
}

/* ─── 4. ABOUT-HERO SECTION ─────────────── */
@media (max-width: 767.98px) {
  .about-hero {
    padding: 110px 0 50px !important;
  }

  .about-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    letter-spacing: -0.5px !important;
  }

  .about-hero p.lead {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }
}

/* ─── 5. ABOUT STORY SECTION ─────────────── */
@media (max-width: 991.98px) {
  .about-story {
    padding: 60px 0 !important;
  }

  /* Image shows after text on mobile */
  .story-image-wrapper img {
    height: 280px !important;
  }

  .story-image-badge {
    bottom: 16px !important;
    left: 16px !important;
    padding: 10px 14px !important;
  }

  .story-image-badge .badge-number {
    font-size: 1.4rem !important;
  }
}

/* ─── 6. VMP / FOUNDATION CARDS ─────────── */
@media (max-width: 767.98px) {
  .vmp-section {
    padding: 50px 0 !important;
  }

  .vmp-card {
    padding: 28px 24px !important;
    margin-bottom: 16px;
  }
}

/* ─── 7. EXPLORE CARDS ───────────────────── */
@media (max-width: 767.98px) {
  .explore-section {
    padding: 50px 0 !important;
  }

  .explore-card {
    height: 220px !important;
    margin-bottom: 16px;
  }

  .explore-card-body {
    padding: 20px !important;
  }

  .explore-card-body h3 {
    font-size: 1rem !important;
  }
}

/* ─── 8. CHAIRMAN SECTION ────────────────── */
@media (max-width: 767.98px) {
  .chairman-section {
    padding: 50px 0 !important;
  }

  .chairman-quote-mark {
    font-size: 80px !important;
    margin-bottom: -14px !important;
  }

  .chairman-quote {
    font-size: 1.05rem !important;
  }
}

/* ─── 9. VALUES PAGE ─────────────────────── */
@media (max-width: 991.98px) {
  .values-hero {
    padding: 110px 0 60px !important;
  }

  .values-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
  }

  .values-hero .lead {
    font-size: 1rem !important;
  }

  .section-padding {
    padding: 60px 0 !important;
  }

  .culture-intro {
    padding: 36px 24px !important;
    margin-bottom: 48px !important;
    border-radius: 20px !important;
  }

  .value-card {
    padding: 28px 24px !important;
    margin-bottom: 16px !important;
  }

  .nav-link-card {
    padding: 20px !important;
    margin-bottom: 12px !important;
  }
}

/* ─── 10. COMPANIES PAGE ──────────────────── */
@media (max-width: 991.98px) {
  .companies-hero {
    padding: 110px 0 60px !important;
  }

  .company-card {
    padding: 28px 24px !important;
    margin-bottom: 16px !important;
  }
}

/* ─── 11. CAREERS PAGE ────────────────────── */
@media (max-width: 991.98px) {
  .careers-hero {
    padding: 110px 0 60px !important;
  }

  .careers-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
  }

  .careers-hero .lead {
    font-size: 1rem !important;
    max-width: 100% !important;
  }

  .apply-card {
    padding: 32px 24px !important;
    border-radius: 20px !important;
  }
}

/* ─── 12. FOOTER MOBILE ───────────────────── */
@media (max-width: 767.98px) {
  #footer {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    padding: 50px 0 0 !important;
    margin-top: -20px !important;
  }

  #copyrights {
    text-align: center !important;
  }

  #copyrights .col_half {
    width: 100% !important;
    text-align: center !important;
    float: none !important;
    margin-bottom: 16px !important;
  }

  #copyrights .col_half.tright {
    text-align: center !important;
  }

  #copyrights .fright {
    float: none !important;
    display: inline-flex !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
  }
}

/* ─── 13. SECTION HEADING SCALES ─────────── */
@media (max-width: 767.98px) {
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    margin-bottom: 14px !important;
  }

  .section-eyebrow {
    font-size: 0.7rem !important;
  }
}

/* ─── 14. GENERAL CONTAINER PADDING ─────── */
@media (max-width: 575.98px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ─── 15. INDEX PAGE STATS SECTION ──────── */
@media (max-width: 767.98px) {
  .stats-section-premium {
    padding: 40px 10px !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .stat-card {
    padding: 28px 20px !important;
    min-height: auto !important;
    margin-bottom: 12px !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .stat-card i {
    font-size: 2rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  .stat-card .counter {
    font-size: 2rem !important;
    margin-bottom: 6px !important;
  }

  .stat-card h5 {
    font-size: 0.8rem !important;
  }

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

/* ─── 16. INDEX PAGE WELCOME SECTION ────── */
@media (max-width: 767.98px) {
  .col_one_third,
  .col_two_third {
    margin-bottom: 24px !important;
  }

  .image-reveal img {
    max-width: 180px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

/* ─── 17. PREVENT HORIZONTAL OVERFLOW ───── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 991.98px) {
  #wrapper {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
}

/* ─── 18. RESPONSIVE BREADCRUMBS ─────────── */
@media (max-width: 767.98px) {
  .breadcrumb-modern {
    flex-wrap: wrap !important;
    font-size: 0.75rem !important;
  }

  .breadcrumb {
    font-size: 0.8rem !important;
  }
}

/* ─── 19. ROW GAP REDUCTION ON MOBILE ───── */
@media (max-width: 767.98px) {
  .g-5 {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1.5rem !important;
  }

  .g-4 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 1rem !important;
  }
}

/* ─── 20. HERO BADGE PILLS – MOBILE ─────── */
@media (max-width: 767.98px) {
  .about-hero-badges {
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .hero-badge {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
}

/* ─── 21. ABOUT HIGHLIGHTS SECTION ──────── */
@media (max-width: 767.98px) {
  .highlight-item {
    padding: 14px 16px !important;
    gap: 12px !important;
  }

  .highlight-icon {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
  }

  .highlight-text h5 {
    font-size: 0.82rem !important;
  }

  .highlight-text p {
    font-size: 0.78rem !important;
  }
}

/* ─── 22. HEADING-MODERN (Careers) ──────── */
@media (max-width: 767.98px) {
  .heading-modern {
    font-size: 1.8rem !important;
    margin-bottom: 28px !important;
  }
}

/* ─── 23. CLIENTS CAROUSEL OVERLAP FIX ─────── */
/* Prevents the footer (which has a -40px top margin for the curved overlay design)
   from overlapping and cutting off the client logos at the bottom of the homepage. */
#oc-clients {
  padding-bottom: 50px !important;
}

