* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Crucial for preventing layout issues */
}

/* =========================================================
   1. FONT-FACE DEFINITIONS
   ========================================================= */
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-Thin.eot');
    src: url('/source/fonts/Montserrat-Thin.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-Thin.woff2') format('woff2'),
         url('/source/fonts/Montserrat-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-ExtraLight.eot');
    src: url('/source/fonts/Montserrat-ExtraLight.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-ExtraLight.woff2') format('woff2'),
         url('/source/fonts/Montserrat-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-Light.eot');
    src: url('/source/fonts/Montserrat-Light.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-Light.woff2') format('woff2'),
         url('/source/fonts/Montserrat-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-Regular.eot');
    src: url('/source/fonts/Montserrat-Regular.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-Regular.woff2') format('woff2'),
         url('/source/fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-Medium.eot');
    src: url('/source/fonts/Montserrat-Medium.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-Medium.woff2') format('woff2'),
         url('/source/fonts/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-SemiBold.eot');
    src: url('/source/fonts/Montserrat-SemiBold.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-SemiBold.woff2') format('woff2'),
         url('/source/fonts/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-Bold.eot');
    src: url('/source/fonts/Montserrat-Bold.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-Bold.woff2') format('woff2'),
         url('/source/fonts/Montserrat-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-ExtraBold.eot');
    src: url('/source/fonts/Montserrat-ExtraBold.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-ExtraBold.woff2') format('woff2'),
         url('/source/fonts/Montserrat-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: url('/source/fonts/Montserrat-Black.eot');
    src: url('/source/fonts/Montserrat-Black.eot?#iefix') format('embedded-opentype'),
         url('/source/fonts/Montserrat-Black.woff2') format('woff2'),
         url('/source/fonts/Montserrat-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* =========================================================
   2. VARIABLES AND BASE STYLES
   ========================================================= */
:root {
    /* === Brand Colors === */
    --color-brand-orange: #FF6500;
    --color-orange-hover: #E65100;
    --color-orange-active: #DB5D0B;
    --color-brand-blue: #3857F1;
    --color-blue-hover: #2F47CC;
    --color-blue-active: #2536A3;

    /* Text Colors */
    --color-text-heading: #1C1C1C;      /* Strong titles, main headlines */
    --color-text-subheading: #212121;     /* Secondary headings */
    --color-text-body: #3F4347;     /* Paragraphs or general content */
    --color-text-light: #9AA0A6;    /* Placeholders, hints, muted text */

    /* --- Background Colors --- */
    --color-light-orange: #FFE8D5;
    --color-light-blue: #E8F0FE;

    /* --- Neutral Palette --- */
    --color-white: #FFFFFF;
    --color-light-gray: #F8F9FA;
    --color-neutral-gray: #F5F5F5;
    --color-mid-gray: #9AA0A6;
    --color-dark-gray: #5F6368;

    /* --- Status / Utility Colors --- */
    --color-success: #34A853;
    --color-warning: #FBBC05;
    --color-error: #EA4335;

    /* === Effects === */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-lg: 12px;

    /* === Spacing === */
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --color-card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ctrl-bottom: 40px;
    --font-family-primary: "Montserrat", sans-serif;
}

body {
    font-family: var(--font-family-primary);
    color: var(--color-text-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
a[href], button, [role="button"], .dropdown-toggle {
  cursor: pointer;
}

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem); font-weight: 800; }
h2 {font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);font-weight: 600;text-align: center;color: var(--color-text-heading);}
h3 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.75rem); font-weight: 500; color: var(--color-text-subheading); }
h4 { font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem); font-weight: 400; }
a:hover {
    color: var(--color-orange-hover);
}

.eyebrow {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    color: #5F6368; 
    display: block; 
    margin-bottom: 10px;
    margin-top: 0; 
    text-align: center;
 
}

/* GLOBAL ALIGNMENT CONTAINER (Ensures 1280px max-width and 20px side padding) */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NEW: Standardized Vertical Padding for Sections */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* =========================================================
   3. DESKTOP HEADER LAYOUT & STYLES (Logo Left, Nav/CTA Right)
   ========================================================= */

.main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.25s;
    font-family: var(--font-family-primary);
}

.main-header.scrolled {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto; 
    padding: 0 40px;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* Aligns logo left */
    gap: 12px; 
    height: 80px; 
    position: relative; 
    z-index: 1010; 
}

/* LOGO (LEFT) */
.header-logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    flex-shrink: 0; 
}

.logo-image {
    max-height: 50px;
    width: auto;
    transition: max-height 0.25s;
}
.main-header.scrolled .logo-image {
    max-height: 35px;
}
header.main-header.scrolled .header-container {
    height: 65px;
}
.logo-image.logoDark {
    display: none;
}

header.main-header.scrolled .logo-image.logoDark {
    display: block;
}

header.main-header.scrolled .logo-image.logoLight {
    display: none;
}
/* === Core Navigation Structure and Layout === */
.header-nav { 
    margin-left: auto;
    flex-grow: 0; 
    display: flex;
    align-items: center;
    justify-content: flex-end; /* This pushes the nav-list itself to the right within header-nav */
}

.nav-list {
    display: flex; 
    /* The key is to let margin-left: auto handle the separation.
       We can remove justify-content: flex-end; from here, as the CTA will push itself. */
    /* justify-content: flex-end; */ 
    gap: 30px;
    list-style: none; 
    margin: 0;
    padding: 0;
  
}

.nav-list .nav-item { 
    position: relative; 
    font-weight: 500; 
    /* Ensure nav-item doesn't interfere with flex distribution */
    flex-shrink: 0; 
}

.nav-list .nav-cta-item {
    display: flex;
    align-items: center;
    margin-left: auto; /* pushes CTA right */
}

.nav-list .nav-cta-item .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px !important; /* ensures spacing */
    box-sizing: border-box;
    text-decoration: none;
    background: var(--color-brand-orange);
    color: var(--color-white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-list .nav-cta-item .header-cta:hover {
    background: var(--color-orange-hover);
    color: var(--color-white) !important;
    text-decoration: none;
}


/* === Standard Link Coloring (Default & Scrolled States) === */
.main-header:not(.scrolled) .nav-link {
    color: var(--color-white);
    font-weight:600;
    padding: 10px 8px;
}
.main-header.scrolled .nav-link { 
    color: var(--color-text-body); 
    font-weight:600; 
    padding: 10px 10px; 
}

/* === Dropdown Toggle Button Styling (Fixes button color and padding) === */
.main-header:not(.scrolled) .dropdown-toggle {
    background: transparent;
    border: none;
    padding: 10px 0; 
    color: var(--color-white); 
    font-weight:600; 
    cursor: pointer; 
}
.main-header.scrolled .dropdown-toggle {
    background: transparent;
    border: none;
    padding: 10px 0; 
    color: var(--color-text-body); 
    font-weight:600; 
    cursor: pointer;
}


/* === Standard Link Hover Effect (Higher Specificity) === */
.main-header:not(.scrolled) .nav-link:hover,
.main-header:not(.scrolled) .dropdown-toggle:hover {
    color: var(--color-orange-hover);
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
    font-family: "Montserrat", sans-serif;
}
.main-header:not(.scrolled) .nav-link:focus,
.main-header:not(.scrolled) .dropdown-toggle:focus,
.main-header:not(.scrolled) .nav-link:active,
.main-header:not(.scrolled) .dropdown-toggle:active {
    outline: none;
    box-shadow: none;
    background: transparent;
    color: var(--color-orange-active) !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .dropdown-toggle:hover {
    color: var(--color-orange-hover);
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}
.main-header.scrolled .nav-link:focus,
.main-header.scrolled .dropdown-toggle:focus,
.main-header.scrolled .nav-link:active,
.main-header.scrolled .dropdown-toggle:active {
    outline: none;
    box-shadow: none;
    background: transparent;
    color: var(--color-orange-active) !important;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}

/* === Dropdown Menu Container Styles === */
.main-header.scrolled .dropdown-menu,
.main-header:not(.scrolled) .dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px; 
    list-style: none; 
    margin-top: 18px; 
    padding: 8px 0;
    background: var(--color-light-gray); 
    border-radius: var(--radius-sm); 
    box-shadow: 0 10px 22px rgba(0,0,0,0.12); 
    z-index: 30;
        padding: 0;
}
/* === Dropdown Menu Item Link Styles === */
.main-header .dropdown-menu .nav-link {
    color: var(--color-text-body);
    font-weight: 500;
    padding: 10px 16px;
    white-space: nowrap;
    border-bottom: 3px solid var(--color-neutral-gray) !important;
    display: block;
    cursor: pointer;
}
/* Dropdown Menu Item Link Hover Effect */
.main-header .dropdown-menu .nav-link:hover {
    color: var(--color-brand-orange) !important;
    background: #FAFAFA  ;
    cursor: pointer;
}
/* Removes the bottom border on the last item in the dropdown for a clean edge */
.main-header .dropdown-menu .nav-link:last-child {
    border-bottom: none;
}



/* === Dropdown Open State === */
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
}

/* Styles the link text inside the open dropdown */
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu .nav-link {
     color: var(--color-text-subheading);
}

/* Styles the Services button text when the dropdown is open (active state) */
.dropdown-toggle[aria-expanded="true"] {
    color: var(--color-orange-active) !important; 
}

/* Hamburger (mobile only) */
.menu-toggle {
    display: none; background: none; border: none;
    font-size: 28px; cursor: pointer; color: var(--color-text-heading);
    width: 44px; height: 44px; align-items: center; justify-content: center;
    z-index: 10;
}
.menu-toggle .menu-icon { display: inline-block; }
.menu-toggle .close-icon { display: none; }
.menu-toggle.active .menu-icon { display: none; }
.menu-toggle.active .close-icon { display: inline-block; }


/* =========================================================
   4. MOBILE STYLES (Below 900px)
   ========================================================= */

@media (max-width: 992px) {
    .main-header {
        position: static; 
        background-color: transparent;
        box-shadow: none;
    }
    .main-header.scrolled {
        background-color: transparent;
        box-shadow: none;
    }
    .main-header .dropdown-toggle {
        text-align: left;
             padding-left: 18px !important;
    }
    .nav-list .nav-cta-item .header-cta {
    border-radius: 0;
}

ul.dropdown-menu {
    display: block !important;
    transform: inherit !important;
    margin: 0 !important;
    border: none;
    border-top: 1px solid #ececec;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

ul.dropdown-menu li a {
    font-size: 15px;
    padding: 8px 20px !important;
}

ul.dropdown-menu li {
    border-bottom: 1px solid #e2e2e2ee;
}

ul.dropdown-menu li:last-child {
    border: none;
}

.dropdown-toggle::after {
    display: none;
}

header.main-header  .logo-image.logoDark {
    display: block;
}
.nav-list .nav-cta-item .header-cta {
    border-radius: 0;
}
header.main-header  .logo-image.logoLight {
    display: none;
}
    .header-container { 
        height: auto; 
        padding: 12px 16px; 
        justify-content: space-between; 
    }
    
    .header-logo {
        margin-right: 0;
    }

    .menu-toggle { 
        display: inline-flex; 
        color: var(--color-text-body); 
        font-weight: 600;
        text-align: left;
    }

    /* Mobile Menu Container */
    .header-nav {
        display: none; 
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        text-align: left;
        background: #F5F5F5;
        z-index: 999;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        

    }
    .header-nav.open { display: block; }

    .nav-list {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0; 
            padding: 8px 0 0;
    }
    .nav-item { 
        width: 100%; 
            border-bottom: 1px solid #ececec;
    }
    .nav-list .nav-cta-item {
    border-bottom: none;
}
    
    /* Mobile Link Styles */
    .nav-link { 
        padding: 12px 18px !important; 
        color: var(--color-text-heading) !important; 
        width: 100%; 
        display: block; 
    }

    /* Mobile Dropdown Styling */
    .dropdown-menu {
        position: static !important; 
        transform: none !important; 
        display: none;
        background: var(--color-neutral-gray) !important; 
        box-shadow: none; 
        padding-left: 0; 
        min-width: auto;
        text-align:left;
    }

    .has-dropdown.is-open-mobile > .dropdown-menu {
        display: block;
    }
    .dropdown-menu .nav-link {
        padding-left: 34px; 
        color: var(--color-text-body) !important;
        font-weight:600px;
        background: transparent;
    }
}

/* Prevent scroll when mobile menu open */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* --- Swiper / navigation styles (colors left semantic) --- */
.swiper {
    position: relative !important;
    background: transparent !important;
    padding-bottom: 100px !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.swiper-slide { width: 100%; }

/* Swiper arrows wrapper */
.swiper-button-prev,
.swiper-button-next {
    position: absolute !important;
    bottom: var(--ctrl-bottom) !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 999 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: var(--color-card-bg) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 16px rgba(11,37,74,0.06) !important;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transform: none !important;
    color: var(--color-text-heading) !important;
}
.swiper-button-prev { left: calc(50% - 100px) !important; right: auto !important; }
.swiper-button-next { right: calc(50% - 100px) !important; left: auto !important; }

/* Pagination fraction */
.swiper-pagination-fraction {
    position: absolute !important;
    bottom: var(--ctrl-bottom) !important;
    top: auto !important;
    transform: translateY(-10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 999 !important;
}

/* --- Case study card (colors kept semantic) --- */
.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-white); /* was #fff */
    box-shadow: 0 6px 30px rgba(11, 37, 74, 0.06);
    min-height: 400px;
}
.media-column { position: relative; overflow: hidden; padding: 0; height: 100%; }
.media-content {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
}
.case-study-card .media-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* stat badge uses neutral text on dark bg — keep contrast */
.stat-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.2;
}
.stat-number { font-size: 1.5rem; font-weight: 800; }

/* Content column */
.content-column {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}
.content-wrapper { max-width: 350px; margin: 0 auto; }
.brand-logo { width: 80px; height: auto; margin: 0 auto 20px; }
.testimonial-quote {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 15px 0 20px;
    padding: 0;
}
.citation { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 30px; }
.story-button {
    background: none;
    border: none;
    color: var(--color-brand-orange);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    width: 100%;
    padding: 0;
    text-decoration:none;
}
.play-icon { width: 24px; height: 24px; fill: var(--color-brand-orange); margin-right: 5px; }

/* Mobile tweaks */
@media (max-width: 768px) {
  :root { --ctrl-bottom: 20px; }
  .case-study-card { grid-template-columns: 1fr; min-height: auto; }
  .media-column { height: 200px; }
  .media-content { border-radius: 0; }
  .content-column { text-align: center; padding: 20px; height: auto; }
  .brand-logo { margin: 0 auto 20px; }
  .swiper-button-prev,
  .swiper-button-next { top: 135% !important; bottom: auto !important; transform: translateY(-50%) !important; width: 32px !important; height: 32px !important; }
  .swiper-button-prev::after, .swiper-button-next::after { font-size: 12px !important; }
  .swiper-pagination-fraction { top: 131% !important; font-size: 0.9rem !important; transform: translateY(0) !important; }
}

/* --- Section Padding--- */
.ptb-70 { padding-top: 70px; padding-bottom: 70px; }
@media (max-width: 768px) {
  .ptb-70 {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* Custom headings */
.custom_h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-dark);
}
.custom_h2 .text-accent { font-weight: 800; color: var(--color-dark); }

.lead { color: var(--color-muted); max-width: 500px; margin: 0 auto; }

/* --- Boxed Brand Grid --- */
.client__wrapper { background-color: var(--color-white); }

.brand__boxed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 5 cards per row */
  grid-auto-rows: 120px; /* uniform card height */
  gap: 18px;
  align-items: center;
  justify-items: center;
  max-width: 1024px;
  margin: 60px auto;
  padding: 0 16px;
  box-sizing: border-box;

  /* ensure at least 4 rows of height */
  min-height: calc((90px + 18px) * 4);
  place-content: center;
}

/* --- Brand Card --- */
.brand__item--boxed {
  background-color: #242424; /* Dark matte card */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: default;
  border: 1px solid rgba(255,255,255,0.05);
}

/* --- Hover Effect --- */
.brand__item--boxed:hover {
  background-color: #2E2E2E;
  border-color: #FF6500;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* --- Logo Image --- */
.brand__item--boxed img {
  max-width: 70%;
  max-height: 50%;
  object-fit: contain;
  filter: brightness(0) invert(1) contrast(0.8);
  transition: transform 0.2s ease, opacity 0.3s ease;
}
.brand__item--boxed:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .brand__boxed-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  }
}
@media (max-width: 768px) {
  .brand__boxed-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    .ptb-70  { padding-top: 40px; padding-bottom: 40px; }
  }
}
@media (max-width: 480px) {
  .brand__boxed-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    grid-auto-rows: 80px;
    min-height: calc((80px + 16px) * 4);
  }
  .brand__item--boxed img {
    max-height: 45%;
  }
}
/* =========================================================
   3. BLOG POSTS LAYOUT & STYLES 3X2 GRID (5 Cards)
   ========================================================= */

/* --- Blog / posts area --- */
.blog-wrapper { padding: 80px 0; background-color: var(--color-light-gray);} 
.blog-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 3x2 Grid Container --- */
.blog-posts-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    /* Explicitly define the two rows */
    grid-template-rows: repeat(2, minmax(180px, auto));
    gap: 30px;
    margin-bottom: 40px; 
}

/* --- Heading Column (now occupies only first cell) --- */
.blog-heading-column {
    /* Occupies Column 1, Row 1 only */
    grid-column: 1 / 2;
    grid-row: 1 / 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}


.blog-heading-column .blog-section-title { 
    text-align: center; 
    font-size: 42px;
    margin-bottom: 0px;
}
.blog-heading-column .blog-section-subtitle { 
    text-align: center; 
    font-size: 18px; 
    color: var(--color-text-body);
    margin-bottom: 25px;
}

/* CTA button inside the heading column */
.blog-heading-column .blog-section-cta { 
    text-align: center; 
    margin-top: 15px;
}

/* --- Blog Post Card Styles (For the 5 cards) --- */
.blog-post-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 8px;
    border: 1px solid rgba(224, 220, 224, 1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: box-shadow 0.3s ease;
}
.blog-post-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.blog-post-card .blog-post-link { display: block; text-decoration: none; color: inherit; }
.blog-post-card .blog-post-image { 
    width: 100%; 
    height: 180px; /* Slightly reduced height for better fit in 2 rows */
    object-fit: cover; 
    display: block; 
    transition: transform 0.5s ease; 
}
.blog-post-card:hover .blog-post-image { transform: scale(1.05); }
.blog-post-card .blog-post-content { display:flex; flex-direction:column;  flex: 1; align-items:center; justify-content:flex-start; gap:8px; padding:15px; }
.blog-post-card .blog-post-category {
    font-size: 14px;
    font-weight: 600;
    color: #5F6368;
    background-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 5px auto;
    display: inline-block;
    padding:4px 8px;
    line-height:1.7;
}
.blog-post-card .blog-post-title {
    text-align: center;
    font-size: 18px; /* Adjusted for tighter grid */
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-subheading);
    margin: 0;
}

.blog-card-cta {
    display: inline-block;
    padding: 30px 30px;
    margin-top: auto; /* pushes CTA to the bottom of .blog-post-content */
    align-self: center; /* keep it centered horizontally */
    background-color: transparent;
    color: var(--color-brand-orange);
    border: 0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.08s ease;
}

/* hover / active / focus */
.blog-card-cta:hover {
    transform: translateY(-1px);
    color: var(--color-orange-hover);
    }
.blog-card-cta:active { transform: translateY(0); }
.blog-card-cta:focus { outline: 3px solid rgba(21,156,228,0.18); outline-offset: 2px; }

/* ensure the button doesn't expand card height awkwardly on small cards */

/* CTA button style (Used inside the heading column) */
.blog-cta-button {
    display: inline-block;
    padding: 12px 30px;
     background-color: transparent;
    color: var(--color-brand-blue);
    border: 2px solid var(--color-brand-blue); 
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.3s ease;
}
.blog-cta-button:hover { background-color: var(--color-primary-dark); }

/* --- Responsiveness --- */
@media (max-width: 992px) {
    /* Change to a 2x3 grid: Heading spans both columns, then cards fill below */
    .blog-posts-grid-3x2 { 
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: auto; /* Allow rows to be dynamic */
        gap: 20px;
    }
    .blog-heading-column { 
        /* Span the first two columns in the first logical row */
        grid-column: 1 / 3; 
        grid-row: auto; /* Remove fixed row span */
        text-align: center;
        padding-right: 0;
        padding-bottom: 20px;
    }
    .blog-heading-column .blog-section-title,
    .blog-heading-column .blog-section-subtitle,
    .blog-heading-column .eyebrow,
    .blog-heading-column .blog-section-cta { 
        text-align: center; 
    }
    .blog-heading-column .blog-section-title { 
        font-size: 36px;
    }
}
@media (max-width: 600px) {
    /* Single column stack for mobile */
    .blog-posts-grid-3x2 { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .blog-heading-column { 
        /* Span the single column */
        grid-column: 1 / 2; 
    }
    .blog-heading-column .blog-section-title { 
        font-size: 32px; 
    }
    .blog-post-card .blog-post-image { 
        height: 150px; 
    }
}

/* Optional: small visual debug borders while developing */
/* .blog-posts-grid-3x2 > * { outline: 1px dashed rgba(0,0,0,0.04); } */



/* Prefooter */
.prefooter-banner {
    background-color: var(--color-text-heading);
    color: var(--color-white);
    padding: 120px 0;
}
.prefooter-banner .prefooter-banner-heading { color: var(--color-white); }
.prefooter-banner .prefooter-banner-subheading { color: var(--color-white); }
.prefooter-banner .btn-cta-primary {
    background-color: var(--color-brand-orange);
    border-color: var(--color-brand-orange);
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: var(--color-white);
    padding: 15px 15px;
    font-size: 18px;
    font-weight: 600;
    display:inline-block;
}
.prefooter-banner .btn-cta-primary:hover { background-color: var(--color-orange-hover); border-color: var(--color-white); }

/* Footer */
.footer_wrapper { background-color: var(--color-white); border-top: 1px solid #eeeeee; }
.footer__widget-title {font-size: 1.15rem;font-weight: 600;color: var(--color-text-heading);margin-bottom: 1.25rem;position: relative;padding-bottom: 0.5rem;}
.footer__widget-title::after { content: ''; display: block; width: 40px; height: 3px; background-color: var(--color-primary); position: absolute; bottom: 0; left: 0; }
.footer-logo{height:57px; }
.footer__widget-title a {font-size: 1.15rem;font-weight: 600;color: var(--color-text-heading);margin-bottom: 1.25rem;position: relative;padding-bottom: 0.5rem;text-decoration: none;}
.footer__widget-title a:hover { text-decoration: none; }
.footer-about-text { font-size: 0.95rem; line-height: 1.6; color: var(--color-text-body); }
.footer__link { padding-left: 0; }
.footer__link li { margin-bottom: 0.5rem; }
.footer__link a { color: var(--color-text-body); font-weight:400; text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease-in-out; }
.footer__link a:hover {color: var(--color-orange-hover);font-weight:600;text-decoration: none;}
.footer__link .fa-solid { font-size: 1.1rem; min-width: 25px; text-align: center; }
.footer__social-wrapper { margin-top: 1.5rem; }
.footer__social li { margin-right: 1.5rem !important;  font-size: 1.5rem; min-width: 25px; text-align: center;}
.footer__social a { color: var(--color-text-body); transition: color 0.3s ease-in-out; }
.footer__social a:hover {color: var(--color-orange-hover);}
.footer-bottom { border-top: 1px solid var(--color-mid-gray); background-color: var(--color-white); }
.footer__copyright { font-size: 0.85rem; color: var(--color-text-body);     text-transform: uppercase;}
.swiper.business-slider { max-width: 100%;}
/* Responsiveness for brand grid */
@media (max-width: 900px) {
    .brand__boxed-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 576px) {
    .brand__boxed-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brand__item--boxed { height: 70px; }
}

/* --- Base Structure --- */
/* ===========================
   Services � Tab / Card Layout
   =========================== */
/* Services � 3-column tab layout (Tabs | Image | Content) */

/* Section base */
/* --- Base Structure --- */
.services-section {
    padding: 72px 20px;
    background: #ffffff;
    font-family: "Montserrat", "Google Sans", Roboto, Arial, sans-serif;
}

/* White card container: three columns */
.services-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    /* Adjusted columns: Tabs | Image | Content */
    grid-template-columns: 0.8fr 1.2fr 1fr; /* e.g., 25% | 40% | 35% */
    gap: 32px; /* Increased gap for better separation */
    background: #ffffff;
    border-radius: 16px; /* Slightly rounder */
    padding: 30px; /* Increased padding */
    box-shadow: 0 16px 40px rgba(11,37,74,0.0); /* Removed soft shadow for flat look */
    align-items: center;
    overflow: hidden; /* Contains any overflowing elements nicely */
    min-height: 450px; /* Ensure main container has a minimum height */
}

/* ------------------------
   Column 1: Tabs (vertical)
   ------------------------ */
.tabs-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Slightly tighter spacing */
    align-self: flex-start; /* Keep tabs at the top */
    padding: 6px 0; /* Padding inside the list */
    align-items: center; 
}

/* Each tab button */
.tab-button {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 12px;
    padding: 14px 20px;
    border: 4px solid var(--color-light-gray);
    background: transparent;
    color: #5f6368;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 24px;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, color .16s ease;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap; 
    max-width: 250px; 

}

/* small icon */
.tab-button .icon {
    font-size: 1.25rem; /* Larger icon */
    flex: 0 0 auto;
}
.tab-button .icon svg {
    width: 1.25rem; /* Set SVG size */
    height: 1.25rem;
    display: block; 
}

/* hover for inactive */
.tab-button:hover:not(.active),
.tab-button:focus:not(.active) {
    background: rgb(157 157 157 / 20%);
    transform: none;
    color: #202124; /* Hover text color (icons inherit this) */
    outline: none;
}

/* Active floating pill adjustment */
.tab-button.active {
    background: var(--color-text-heading);
    color: #ffffff; /* Active text color (icons inherit this and become white) */
    font-weight: 600;
    border-radius: 24px;
    box-shadow: 0 6px 16px rgba(32,33,36,0.14);
    width: 100%;
    transform: none;
    position: relative;
    z-index: 10;
}

/* Active icon becomes white */
.tab-button.active .icon {
    color: #fff;
}

/* ------------------------
   Column 2: Image area
   ------------------------ */
.tabs-image-area {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%; /* Important for alignment */
    min-height: 400px; /* Increased minimum height for stability */
}

/* image panels (swap via JS with .hidden) */
.tab-image {
    width: 100%;
    max-width: 70%; 
    height: 400px; /* Increased height for prominence */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #none;
    box-shadow: 0 8px 22px rgba(11,37,74,0.06);
    animation: contentIn .4s ease;
}

/* image inside */
.tab-image img {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* hide panels */
.hidden { display: none !important; }

/* ------------------------
   Column 3: Content
   ------------------------ */
.tabs-content {
    padding: 0 6px;
    min-height: 380px;
    text-align: left; /* make all inline text left-aligned */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align content vertically to top */
    align-items: flex-start;     /* align items horizontally to the left */
}

/* content panels swap with .hidden */
.tab-panel {
    display: block;
    animation: contentIn .3s ease;

}

.tab-panel h3 {
    margin-top: 0;
    color: var(--color-text-subheading);
    margin-bottom: 12px;
}

.tab-panel p {
    color: #5f6368;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* =============== Circle CTA =============== */
.circle-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #FF6500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.circle-cta .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.circle-cta .icon svg {
  width: 38px;               /* balanced size */
  height: 38px;
  vertical-align: middle;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.circle-cta:hover .icon svg {
  transform: translateX(4px);
  filter: drop-shadow(0 0 8px rgba(255, 101, 0, 0.4));
}

.circle-cta:hover {
  color: #E65100;            /* deeper orange on hover */
  transform: translateX(2px); /* subtle forward motion */
}

.circle-cta:hover .icon svg circle,
.circle-cta:hover .icon svg path {
  stroke: #E65100;           /* arrow & circle change on hover */
}

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

/* ------------------------
   Responsive: stack columns
   ------------------------ */

/* REMOVED @media (max-width: 1100px) override.
   The 3-column grid should be stable until 768px. */


/* ------------------------
   Responsive: stack columns
   ------------------------ */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
        min-height: auto;
    }
    
    .tabs-list {
        flex-direction: row; /* Horizontal tabs */
        overflow-x: auto;
        gap: 6px; 
        padding-bottom: 8px;
        align-items: center;
                

        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Ensure left alignment for horizontal scrolling */
    }
    
    /* FIX: Constrain width and tighten padding for compact horizontal scrolling */
    .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 10px; 
        border-radius: 20px;
        /* Implemented your successful fix, using a generous max-width for 768px */
        max-width: 250px; 
        font-size: 0.9rem;
    }

    .tab-button .icon {
        font-size: 1rem;
        margin-right: 4px;
    }
    .tab-button .icon svg {
        width: 1rem;
        height: 1rem;
    }

   .tabs-content {
    padding: 0 6px;
    min-height: 380px;
    text-align:center;
    margin:0 auto;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    
}

    
}

@media (max-width: 480px) {
    .tab-button {
        padding: 16px 0px; /* Tiniest viable padding */
        font-size: 0.85rem;
        
        /* Your tested fix for 480px and smaller screens */
        max-width: 220px; 
    }
    .tab-button .icon {
        margin-right: 3px;
    }
    .tab-button .icon svg {
        width: 0.9rem;
        height: 0.9rem;
    }

    /* ... (rest of the mobile layout remains the same) ... */
}

/* HERO SECTION STYLING */
.hero-section {
    padding: 100px 0; 
    position: relative;
    overflow: hidden;
    min-height: 100vh;  
    
    /* Core Background Styling (URL comes from inline HTML style) */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    
    /* Centering Content */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay for text readability (remains the same) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent overlay */
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2; /* Bring content above the overlay */
    padding: 20px;
}

.hero-content {
    flex: none;
    max-width: 100%;
}

.hero-headline {
    font-size: clamp(36px, 5vw + 1rem, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff; /* White text for contrast */
    margin-bottom: 20px;
}

/* Highlight "Converting" */
.hero-headline strong {
    color: var(--color-primary); 
}

.hero-subtext {
    font-size: clamp(18px, 2vw, 24px);
    color: rgba(255, 255, 255, 1);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #FF6500;
  border: none;
  border-radius: 8px; /* keep it clean, not too rounded */
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(255, 101, 0, 0.3);
}

.hero-cta svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
  transition: transform 0.25s ease;
}

.hero-cta:hover {
  background-color: #E65100; /* deeper orange hover */
  box-shadow: 0 3px 6px rgba(255, 101, 0, 0.25);
  transform: translateY(-2px); /* subtle lift effect */
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.hero-cta:hover svg {
  transform: translateX(5px);
}

/* CTA button colors for the dark background */
.primary-cta {
    background-color: var(--color-brand-orange);
    color: #ffffff;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--color-brand-orange);
}
.primary-cta:hover {
    background-color: var(--color-orange-hover);
    color: #ffffff;
    font-weight: 600;
    border: 2px solid white;
}

.secondary-cta {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff; 
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.secondary-cta:hover {
    background-color: #ffffff;
    color: var(--color-dark);
}
.solution-card.gmail-card {
    background: #fff;
    border-radius: 15px;
    padding: 8px;
    border: 1px solid #d1d1d1;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
}
.business-slider .swiper-slide {
    height: auto;
}
.solution-image {
    position: relative;
}

.solution-image img {
    width: 100%;
    border-radius: 15px;
}

.solution-card.gmail-card:hover {
    background: var(--color-brand-orange);
    border-color: var(--color-brand-orange);
}

.solution-content {
    padding: 30px 22px;
}

.solution-content .solution-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    padding-bottom: 7px;
}
.business-slider .swiper-slide.swiper-slide-active:nth-child(1) {
    margin-left: 80px;
}
.solution-card :hover .solution-title,.solution-card:hover p,.solution-card:hover .solution-link{
    color: #fff;
}

.solution-link {
    color: var(--color-brand-orange);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.story-button svg {
    margin-left: 10px;
    max-width: 25px;
    position: relative;
    top: 2px;
}

.solution-link:before {content: "";position: absolute;width: 100%;height: 100%;top: 0;left: 0;border-radius: 17px;}


/* Responsive adjustments */
@media (min-width: 992px) {
    .tab-panel h3 {
        font-size: 2.1rem;
    }
    .prefooter-banner .prefooter-banner-heading {
    font-size: 48px;
}
}
@media (max-width: 992px) {
    .hero-section {
        min-height: 500px;
        padding: 80px 0;
    }

    .hero-container {
        padding: 15px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }
    .business-slider .swiper-slide.swiper-slide-active:nth-child(1) {
    margin-left: 0;
}
.swiper.business-slider {
    max-width: 90%;
    padding: 0 0px;
}
}

@media (max-width: 600px) {
    .hero-headline {
        font-size: 32px;
    }
    .hero-subtext {
        font-size: 16px;
    }
    .prefooter-banner {
    padding: 60px 0;
}
}
/* Responsive header/hero */
@media (max-width: 992px) {
    .header-nav, .header-cta { display: none; }
    .menu-toggle { display: block; background: none; border: none; font-size: 30px; cursor: pointer; color: var(--color-dark); }
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-content { max-width: 100%; order: 2; }
    .hero-visual { max-width: 80%; margin-bottom: 40px; order: 1; }
    .hero-cta-group { justify-content: center; flex-direction: column; gap: 10px; }
}