/**
 * Theme Name:   SuspireX Theme
 * Theme URI:   https://suspirex.com
 * Author:       Babar Dogar
 * Author URI:   https://pinex.co.uk
 * Description:  The official, enterprise-grade public-facing theme for the SuspireX platform. This theme provides a high-performance, modern, and fully responsive marketing and information website that integrates seamlessly with the SuspireX Core plugin and Client Portal.
 * Version:      1.4.0 (Genesis Build)
 * License:      GNU General Public License v2 or later
 * License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  suspirex-theme
 * Tags:         custom-background, custom-logo, custom-menu, e-commerce, featured-images, full-width-template, one-column, two-columns, right-sidebar, theme-options, threaded-comments, translation-ready
 *
 * This file is required for WordPress to recognize the theme.
 * All functional CSS for this theme is compiled from SCSS source files
 * into the following enqueued stylesheets:
 * - /assets/css/public.css (for the public-facing website)
 * - /assets/css/portal.css (for the client portal application)
 */

/* ==========================================================================
   1. THEME VARIABLES (COLOR PALETTE & TYPOGRAPHY)
   ========================================================================== */
:root {
    /* Font System */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Primary Color Palette (Indigo) */
    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-primary-light: #EEF2FF;

    /* Enhanced Grayscale Palette for Better Contrast */
    --color-gray-900: #111827; /* For main headings */
    --color-gray-800: #1F2937; /* For darker body text */
    --color-gray-600: #4B5563; /* For darker subtitles */
    --color-gray-500: #6B7280; /* For medium-contrast meta text */
    --color-gray-400: #9CA3AF; /* For brighter footer links */
    --color-gray-200: #E5E7EB; /* For borders */
    --color-gray-100: #F3F4F6; /* For light section backgrounds */
    --color-gray-50: #F9FAFB;  /* For even lighter section backgrounds */
    
    /* System Feedback Colors */
    --color-success: #16A34A;
    --color-danger: #EF4444;
    
    /* Base Background & Text Colors */
    --color-background: #FFFFFF;
    --color-text: var(--color-gray-800); /* Using the new darker gray for body text */
}

/* ==========================================================================
   2. GLOBAL RESETS & BODY STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 16px; /* Enhanced base font size for perfect readability */
    font-weight: 500; /* Slightly bolder body text for better presence */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevents background scrolling when the mobile menu is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* ==========================================================================
   3. TYPOGRAPHY (REFINED HIERARCHY)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-gray-900);
    font-weight: 700; /* Bold */
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Refined heading sizes for a balanced, professional UI */
h1 { font-size: 2.25rem; }  /* Approx 36px */
h2 { font-size: 1.6rem; }   /* Approx 26px */
h3 { font-size: 1.2rem; }   /* Approx 19px */

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none; /* No underlines globally */
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-primary-hover);
}

/* Screen reader text for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   4. LAYOUT & CONTAINER (FULL WIDTH & HARMONIZED SPACING)
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1440px; /* Expansive full-width feel */
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 60px 0; /* Reduced vertical spacing for a tighter flow */
}

@media (min-width: 992px) {
    section {
        padding: 80px 0; /* Restore larger spacing on desktop for a premium feel */
    }
}

.section-title {
    font-size: 2rem; /* Adjusted to match new h2 size */
    text-align: center;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600); /* Using new darker subtitle color */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* ==========================================================================
   5. BUTTONS & FORMS
   ========================================================================== */
.button-primary, .button-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem; /* Slightly smaller button text */
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.button-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.button-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.button-primary:disabled {
    background-color: var(--color-gray-400);
    cursor: not-allowed;
}

.button-secondary {
    background-color: transparent;
    color: var(--color-gray-700);
    border-color: var(--color-gray-200);
}

.button-secondary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.button-primary.large, .button-secondary.large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* ==========================================================================
   6. HEADER & RESPONSIVE NAVIGATION
   ========================================================================== */

/**
 * Main site header block.
 * This is architected as a "sticky header" for a modern user experience.
 * It remains fixed to the top of the viewport as the user scrolls.
 */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-background);
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
    border-bottom: 1px solid var(--color-gray-200);
}

/**
 * Scrolled state for the sticky header.
 * This class is dynamically added via JavaScript (public.js) when the
 * user scrolls down the page (more than 10 pixels).
 * It adds a subtle shadow to visually "lift" the header off the page content.
 */
.site-header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom-color: transparent;
}

/**
 * The inner container for the header content.
 * Uses Flexbox to align the logo, navigation, and actions.
 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-branding .suspirex-logo text {
    font-weight: 800;
    fill: var(--color-gray-900); /* Ensures logo text is dark on the light header */
}

/**
 * Mobile-First Approach:
 * Desktop-specific elements are hidden by default and will be revealed
 * only at the specified desktop breakpoint.
 */
.main-navigation {
    display: none;
}
.header-actions {
    display: none;
}

/**
 * Mobile Hamburger Menu Toggle Button.
 * This is the only navigation control visible on mobile devices.
 */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001; /* Must be on top of the mobile menu panel */
}

.mobile-menu-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-gray-900);
    border-radius: 1px;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/**
 * Hamburger-to-"X" Animation.
 * This provides a polished, app-like feel when the mobile menu is opened.
 * This class is applied to the <body> tag by public.js.
 */
.mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/**
 * Mobile Menu Panel (The off-canvas menu itself).
 * This class is toggled by public.js.
 */
.main-navigation.toggled {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    z-index: 1000;
    padding-top: 120px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.primary-menu {
    list-style: none; /* No dots */
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin-bottom: 24px;
}

.primary-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-900);
    text-decoration: none; /* No underlines */
}

/**
 * Smart Hover Clock Widget (Desktop only)
 */
.header-clock {
    display: none; /* Hidden on mobile by default */
    position: relative;
    cursor: default;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

#clock-time {
    font-weight: 600;
    color: var(--color-gray-800);
}

.clock-date-full {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px; /* Added space */
    background-color: var(--color-background);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--color-gray-200);
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1010;
}

.header-clock:hover {
    background-color: var(--color-primary-light);
}

.header-clock:hover .clock-date-full {
    display: block;
}

/**
 * Desktop Header Styles (Breakpoint: 992px)
 * This media query switches the layout to the full desktop view.
 */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
    .main-navigation {
        display: block;
    }
    .header-actions {
        display: flex;
        gap: 16px;
        align-items: center;
    }
    .header-clock {
        display: block;
    }
    .main-navigation.toggled {
        display: block;
        position: static;
        height: auto;
        width: auto;
        background: none;
        padding: 0;
        animation: none;
    }
    .primary-menu {
        display: flex;
        flex-direction: row;
        gap: 36px;
    }
    .primary-menu li {
        margin-bottom: 0;
    }
    .primary-menu a {
        font-size: 0.95rem;
        color: var(--color-gray-700);
        position: relative;
    }
    /* Underline effect on hover for desktop menu for a subtle interactive cue */
    .primary-menu a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }
    .primary-menu a:hover::after {
        width: 100%;
    }
}

/* ==========================================================================
   7. FOOTER & RESPONSIVE GRID
   ========================================================================== */

.site-footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-400); /* Brighter base color for readability */
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.footer-menu {
    list-style: none; /* No dots */
    padding: 0;
    margin: 0;
}

.footer-column .footer-menu li {
    margin-bottom: 12px;
}

.footer-column .footer-menu a {
    color: var(--color-gray-400); /* Brighter links */
    font-weight: 500;
    text-decoration: none; /* No underlines */
    transition: color 0.2s ease;
}

.footer-column .footer-menu a:hover {
    color: #FFFFFF; /* Brightest on hover for clear feedback */
}

.footer-widget-title {
    color: #FFFFFF; /* Ensure headings are bright white */
    font-size: 0.9rem;
    font-weight: 700; /* Bolder for clarity */
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: var(--color-gray-400); /* Brighter color */
    margin-top: 16px;
    max-width: 280px;
}

.site-branding .suspirex-logo-footer text {
    fill: #FFFFFF; /* Ensures the footer logo text is white */
}

.site-info {
    border-top: 1px solid var(--color-gray-700); /* Darker border for subtlety */
    padding-top: 32px;
    margin-top: 60px;
}

.site-info-content {
    width: 100%;
    text-align: center;
}

.copyright {
    margin-bottom: 16px;
    color: var(--color-gray-500); /* Keep copyright slightly dimmer for hierarchy */
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    flex-direction: column; /* Mobile-first: stack links */
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal-links a:hover {
    color: #FFFFFF;
}

/* Tablet & Desktop Footer Grid Layout */
@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-info-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .copyright {
        margin-bottom: 0;
    }
    .footer-legal-links {
        flex-direction: row; /* Horizontal alignment for desktop */
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* ==========================================================================
   8. HOMEPAGE & CONTENT SECTIONS
   ========================================================================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0; /* Harmonized spacing */
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-gray-50) 100%);
}

.hero-title {
    font-size: 3.0rem; /* Refined for better balance */
    font-weight: 800; /* Extra Bold */
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 24px auto 40px;
    color: var(--color-gray-600); /* Darker for better contrast */
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap; /* Ensures buttons stack gracefully on smaller screens */
}

/* Ticker Section */
.ticker-wrap {
    background-color: var(--color-gray-900);
    color: #FFFFFF;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ticker {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%; /* Starts the animation off-screen to prevent initial gap */
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Logo Carousel Section */
.logo-carousel-section {
    background-color: var(--color-gray-50);
    padding: 60px 0;
    border-top: 1px solid var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-100);
}

.carousel-title {
    text-align: center;
    color: var(--color-gray-500);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.logo-carousel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.logo-carousel img {
    max-height: 40px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-carousel img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* "How It Works" Section */
.howitworks-section {
    background-color: var(--color-background);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    background-color: var(--color-gray-50);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.step-card h3 {
    margin-bottom: 16px;
    color: var(--color-primary);
}

/* "Why SuspireX" Section */
.why-suspirex-section {
    background-color: var(--color-gray-50);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.why-content ul {
    list-style: none;
    margin-top: 24px;
}
.why-content ul li {
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}
.why-content ul li::before {
    content: '✔';
    color: var(--color-success);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}
.why-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Features Overview Section */
.features-overview-section {
    margin-top: 60px; /* Harmonized spacing */
}

.features-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
    padding-bottom: 20px;
}

.feature-slide {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background-color: var(--color-gray-50);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-100);
}

/* Warehouses Visuals Section */
.warehouses-visuals-section {
    text-align: center;
    background-color: var(--color-gray-50);
}
.warehouse-map-interactive {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
}
.global-map { width: 100%; height: auto; opacity: 0.8; }
.warehouse-hotspot { position: absolute; cursor: pointer; transform: translate(-50%, -50%); z-index: 10; }
.hotspot-pin { display: block; width: 24px; height: 24px; background-color: var(--color-primary); border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 4px var(--color-primary); transition: transform 0.3s ease; animation: pulse 2s infinite; }
.hotspot-info { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background-color: #FFFFFF; padding: 15px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); width: 250px; text-align: left; margin-bottom: 15px; z-index: 20; }
.warehouse-hotspot:hover .hotspot-info { display: block; }
.warehouse-hotspot .hotspot-info h4 { font-size: 1rem; margin-bottom: 8px; color: var(--color-gray-900); }
.warehouse-hotspot .hotspot-info p { font-size: 0.9rem; line-height: 1.4; color: var(--color-gray-700); }

/* Client Testimonials Section */
.client-testimonials-section { background-color: var(--color-background); }
.testimonials-carousel-wrapper { overflow: hidden; }
.testimonials-carousel { display: flex; scroll-snap-type: x mandatory; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 32px; padding-bottom: 20px; }
.testimonial-card { flex: 0 0 90%; scroll-snap-align: start; background-color: var(--color-gray-50); padding: 32px; border-radius: 12px; border: 1px solid var(--color-gray-200); }
.testimonial-card p { font-size: 1.125rem; margin-bottom: 20px; line-height: 1.6; }
.testimonial-card footer { font-size: 0.9rem; color: var(--color-gray-600); }

/* Newsletter Section */
.newsletter-section { background-color: var(--color-primary-light); text-align: center; }
.newsletter-form { display: flex; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { padding: 12px 20px; border-radius: 8px; border: 1px solid var(--color-gray-200); width: 300px; max-width: 100%; }
.form-response { margin-top: 16px; font-weight: 600; width: 100%; }
.form-response.success { color: var(--color-success); }
.form-response.error { color: var(--color-danger); }


/* ==========================================================================
   9. GENERIC & SPECIFIC PAGE STYLES
   ========================================================================== */
.page-hero { padding: 60px 0; text-align: center; background: linear-gradient(180deg, var(--color-background) 0%, var(--color-gray-50) 100%); }
.page-title { font-size: 2.5rem; margin-bottom: 16px; }

/* Features & Integrations Pages */
.features-grid-section, .integrations-grid-section { padding: 60px 0; }
.features-grid, .integrations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

/* About Us & Timeline Pages */
.text-block-section { padding: 60px 0; }
.team-section { background-color: var(--color-gray-50); padding: 80px 0; }
.timeline-section { padding: 60px 0; }
.timeline-event { display: flex; align-items: flex-start; margin-bottom: 50px; position: relative; }
.timeline-date { flex: 0 0 100px; font-size: 1.5rem; font-weight: 700; color: var(--color-primary); text-align: right; padding-right: 30px; position: relative; }
.timeline-date::after { content: ''; position: absolute; right: -5px; top: 10px; width: 20px; height: 20px; background-color: var(--color-primary); border-radius: 50%; border: 4px solid var(--color-background); z-index: 1; }
.timeline-content { flex: 1; padding-left: 30px; border-left: 2px solid var(--color-gray-200); }


/* ==========================================================================
   10. INTERACTIVE MODULES & ANIMATIONS
   ========================================================================== */

/* Chatbot Widget */
.spx-chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
.spx-chat-toggle { width: 60px; height: 60px; background-color: var(--color-primary); border-radius: 50%; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; animation: pulse 2s infinite; z-index: 1001; }
.spx-chat-box { position: absolute; bottom: 90px; right: 0; width: 320px; background: #FFFFFF; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden; transform-origin: bottom right; z-index: 1000; }

/* On-Scroll Animations */
.anim-fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; transition-delay: var(--delay, 0s); }
.anim-fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

/* Keyframe Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   11. FINAL RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991px) {
    .header-actions { display: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .timeline-event { flex-direction: column; }
    .timeline-date { text-align: left; padding-right: 0; padding-bottom: 15px; font-size: 1.2rem; }
    .timeline-date::after { right: auto; left: 0; top: auto; bottom: 0; }
    .timeline-content { padding-left: 0; border-left: none; }
}

@media (min-width: 600px) {
    .testimonial-card { flex-basis: 45%; }
}

@media (min-width: 992px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-card { flex-basis: 31%; }
    .why-grid { grid-template-columns: 1fr 1fr; }
}