/*
Theme Name: EdgeWrapper Theme
Theme URI: https://edgewrapper.com
Author: EdgeWrapper Team
Author URI: https://edgewrapper.com
Description: A modern, professional WordPress theme with custom page templates for homepage, career, blog, and about us pages. Features a dynamic header and footer with responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edgewrapper-theme
Tags: custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio
*/

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

html {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE UTILITY CLASSES
   ======================================== */

.section-title {
    font-size: clamp(1.375rem, 5vw + 0.25rem, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-desc {
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

.centered-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    text-align: center;
}

.section-tag-green {
    display: inline-block;
    background-color: rgba(55, 192, 40, 0.1);
    color: #37C028;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.mt-md {
    margin-top: var(--spacing-md, 1.5rem) !important;
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

/* ========================================
   VIDEO SECTION STYLES
   ======================================== */

.video-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.video-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.video-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.video-slide video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

/* Enhanced responsive accuracy for small devices (iPhone SE, XR, Samsung) */
@media (max-width: 480px) {

    .container,
    .container-wide {
        padding: 0 12px;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-sm {
        padding: var(--spacing-lg) 0;
    }
}

/* ========================================
   HEADER STYLES
   ======================================== */

.site-header {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

/* Adjust header position when WordPress Admin Bar is present */
.admin-bar .site-header {
    width: 100%;
    max-width: 100%;
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        width: 100%;
        max-width: 100%;
        top: 46px;
    }
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}


/* Header Layout */
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
    /* Fixed height for consistency */
}

/* Branding/Logo */
.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 40px;
    /* Adjust based on actual logo aspect ratio */
    width: auto;
    transition: transform var(--transition-base);
}

/* Main Navigation (Centered) */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    /* Center the menu items */
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xl);
    /* Increased gap for better spacing */
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    padding: var(--spacing-xs) 0;
    transition: color var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #37C028;
    transition: width 0.3s ease;
}

.main-navigation a:hover::before,
.main-navigation .current-menu-item>a::before {
    width: 100%;
}

/* Dropdown arrow indication */
.menu-item-has-children>a::after {
    content: '';
    border: solid var(--text-primary);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 8px;
    vertical-align: middle;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover>a::after {
    transform: rotate(225deg);
    border-color: #37C028;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: #37C028;
}

/* ============================================================
   MEGAMENU — Services Dropdown (Desktop)
   ============================================================ */
@media (min-width: 769px) {

    /* Make parent static so dropdown anchors to header */
    .main-navigation li.menu-item-has-children {
        position: static;
    }

    /* Invisible hover bridge prevents dropdown closing when
       cursor moves from nav link down to the panel */
    .main-navigation li.menu-item-has-children::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 20px;
        background: transparent;
    }

    /* The dropdown panel */
    .main-navigation ul ul {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(12px);
        background: #ffffff;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
        min-width: 450px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
        grid-auto-flow: column;
        gap: 8px 16px;
        padding: 20px;
        border-radius: 16px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
        z-index: 9999;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-top: 3px solid #37C028;
        pointer-events: none;
    }

    /* Show dropdown on hover */
    .main-navigation li.menu-item-has-children:hover>ul {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    /* Individual dropdown items */
    .main-navigation ul ul li {
        width: 100%;
        border: none;
    }

    /* Label row */
    .main-navigation ul ul a {
        display: block;
        padding: 10px 18px;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
        border-radius: 10px;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        border-bottom: none;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
    }

    .main-navigation ul ul a:hover {
        background: rgba(55, 192, 40, 0.07);
        color: #37C028;
        transform: scale(1.02);
    }
}

/* Header CTA / Contact Button */
.header-contact-btn {
    flex: 0 0 auto;
    display: inline-block;
    background: #37C028;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(55, 192, 40, 0.25);
}

.header-contact-btn:hover {
    background: #2da822;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(55, 192, 40, 0.35);
}

.btn-primary {
    background-color: #4ade80;
    /* Light green base */
    background-image: linear-gradient(to right, #4ade80, #22c55e);
    /* Gradient green */
    color: white;
    box-shadow: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
}

.btn-primary:hover {
    background-image: linear-gradient(to right, #22c55e, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
    background: #111827;
    /* Dark blue/black specific to design */
    color: #e5e7eb;
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-xl);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.site-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 -10px 30px rgba(59, 130, 246, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--spacing-xl);
    transition: transform 0.2s ease;
}

.site-footer:hover .footer-grid {
    transform: translateY(-1px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--spacing-xl);
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-tagline {
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--spacing-sm);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.2);
    background: rgba(59, 130, 246, 0.2);
}

.footer-widget h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf 0%, #3b82f6 100%);
    transition: width 0.3s ease;
}

.footer-widget h3:hover::after {
    width: 100%;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: var(--spacing-md);
    transition: transform 0.2s ease, padding-left 0.2s ease;
    padding-left: 0;
}

.footer-widget li:hover {
    transform: translateX(5px);
    padding-left: 0.5rem;
}

.footer-widget a {
    color: #d1d5db;
    text-decoration: none;
    transition: color var(--transition-fast), transform 0.2s ease, background-color 0.2s ease;
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-widget a:hover {
    color: white;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(3px);
}





/* Contact List specific styles */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: #d1d5db;
    transition: transform 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: 8px;
    padding-left: 0;
}

.footer-contact-list li:hover {
    transform: translateX(5px);
    padding-left: 0.5rem;
    background: rgba(59, 130, 246, 0.08);
}

.footer-contact-list a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-contact-list a:hover {
    color: white;
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(3px);
}

.footer-contact-list img {
    width: 20px;
    height: auto;
    margin-top: 4px;
    /* Align icon with text */
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-contact-list li:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: #9ca3af;
    margin-top: var(--spacing-3xl);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-branding {
        align-items: flex-start;
    }
}

.site-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.btn-secondary:hover {
    background: var(--success-color);
    color: white;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-image-container {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.1);
    /* Subtle background in case of transparency */
    backdrop-filter: blur(5px);
}

/* ========================================
   BLOG STYLES
   ======================================== */

/* Blog Search Section */
.blog-search-section {
    margin-bottom: var(--spacing-lg);
}

.blog-search-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
}

.blog-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.blog-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.blog-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.blog-search-btn svg {
    flex-shrink: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: var(--spacing-md);
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card-title a {
    color: var(--text-primary);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   CAREER PAGE STYLES
   ======================================== */

.job-listing {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-base);
}

.job-listing:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.job-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.job-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.job-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.team-member {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--primary-color);
}

.team-member-name {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.team-member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation.toggled ul ul {
        display: flex;
        /* Ensure submenus are also visible */
        position: static;
        /* Stack vertically */
        box-shadow: none;
        /* No shadow for nested items */
        padding-left: var(--spacing-lg);
        /* Indent */
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled ul ul a {
        padding: var(--spacing-xs) 0;
        font-size: 0.9em;
    }

    .menu-toggle {
        display: block;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 480px) {

    .container,
    .container-wide {
        padding: 0 12px;
    }

    .header-container {
        width: 100%;
        padding: var(--spacing-sm);
    }
}

/* ========================================
   SCROLL ANIMATIONS (NEW SYSTEM)
   ======================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

/* Scale animation for circle */
.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Service Item Animations - Entrance Override */
.service-item {
    /* Removed default animation to let JS handle it */
    transition: all 0.3s ease;
    /* For hover effects */
}

/* Center Circle Animation - Entrance Override */
.center-circle {
    /* Removed default animation */
    transition: all 0.3s ease;
}

.circle-content {
    /* Removed default animation */
}

/* Enhanced Hover Effects for Cards */
.capability-card,
.build-card,
.comparison-card,
.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover,
.build-card:hover,
.comparison-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes circlePop {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    50% {
        transform: scale(1.05) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0);
    }
}

@keyframes gentleRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced hover effects with animation */
.service-item:hover {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s ease;
}

/* Circle subtle floating animation after load */
.center-circle:hover {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s ease;
}

/* Continuous animations for service items - separate from entrance animation */
.service-item.animate-on-scroll.is-visible {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
    /* Wait for slide-up entrance to finish */
}

/* Stagger the floating animation so they don't move in unison */
.service-item.animate-on-scroll.is-visible:nth-child(odd) {
    animation-delay: 1s;
}

.service-item.animate-on-scroll.is-visible:nth-child(even) {
    animation-delay: 2.5s;
}

/* Keep the icon pulsing too */
.service-item.animate-on-scroll.is-visible .service-icon {
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Optional: Subtle text pulse for "text boxes" emphasis */
.service-item.animate-on-scroll.is-visible .service-text {
    animation: breathe 5s ease-in-out infinite;
    display: inline-block;
    /* Required for transform to work on span */
}

/* Continuous floating animation for center circle - separate from entrance animation */
.center-circle.animate-scale.is-visible {
    animation: float 3s ease-in-out infinite, pulseBorder 4s ease-in-out infinite;
    /* Ensure transform doesn't conflict with scale animation */
    /* We need to combine scale(1) with float */
}

/* Fix for Center Circle Animation Conflict */
@keyframes floatAndScale {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

.center-circle.animate-scale.is-visible {
    animation: floatAndScale 4s ease-in-out infinite;
    animation-delay: 1s;
    /* Wait for entrance to finish */
}

/* Subtle rotation for circle content - separate from entrance animation */
.center-circle.animate-scale.is-visible .circle-content {
    animation: gentleRotate 20s linear infinite;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.bg-light {
    background-color: var(--bg-secondary);
}

.bg-dark {
    background-color: var(--bg-dark);
}

/* ========================================
   HOME PAGE - SERVICE MAP SECTION
   ======================================== */
.service-map-section {
    background: #ffffff;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.service-map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Connectors Background (simplistic approach) */
.service-map-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
    opacity: 0.5;
    display: none;
    /* Hidden for now, can implement complex SVG lines if needed */
}

.service-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    z-index: 1;
    flex: 1;
}

.service-column.left {
    align-items: flex-end;
}

.service-column.right {
    align-items: flex-start;
}

.service-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: white;
    border: 2px solid #000;
    padding: 0.5rem 1rem;
    position: relative;
    transition: transform var(--transition-base);
    min-width: 250px;
}

.service-item:hover {
    transform: scale(1.02);
}

.service-column.left .service-item {
    flex-direction: row;
    justify-content: flex-end;
}

.service-column.right .service-item {
    flex-direction: row-reverse;
    justify-content: flex-end;
    /* Keeps content near icon */
}

/* ========================================
   WHAT WE BUILD SECTION
   ======================================== */

.what-we-build-section {
    background-color: #ffffff;
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.build-card {
    background-color: #0F172A;
    /* Dark blue/black */
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    color: white;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.build-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.build-card-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
    color: white;
    line-height: 1.2;
}

.build-card-subtitle {
    font-size: 0.9rem;
    color: #94A3B8;
    /* Slate 400 */
    margin-bottom: var(--spacing-lg);
}

.build-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.build-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    color: #E2E8F0;
    /* Slate 200 */
    line-height: 1.5;
}

.build-list li:last-child {
    margin-bottom: 0;
}

.build-list li img {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .build-grid {
        gap: var(--spacing-md);
    }

    .build-card {
        padding: var(--spacing-md);
    }

    .build-card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .build-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .build-card {
        padding: var(--spacing-md);
    }

    .build-card-title {
        font-size: 1.5rem;
    }
}

.service-text {
    font-weight: 700;
    color: #000;
    font-size: 1rem;
    flex: 1;
    text-align: right;
}

.service-column.right .service-text {
    text-align: left;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    flex-shrink: 0;
}

.service-icon img {
    max-width: 24px;
    max-height: 24px;
    /* filter: invert(1); Removed as new SVGs are white */
}

/* Specific styling for icon container logic if needed. 
   Assuming icons are solid. If some have backgrounds, might need adjustment. */

.center-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 0, 0.2);
    /* Light yellow border */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    margin: 0 var(--spacing-md);
}

.circle-content h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 0;
    color: #000;
}

/* ========================================
   HOME PAGE - INTRO SECTION
   ======================================== */
.intro-section {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #bbf7d0;
    /* Light green */
    color: #166534;
    /* Dark green text */
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.intro-content .section-title {
    font-size: 2.25rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: #000;
}

.intro-content .section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    max-width: 90%;
    line-height: 1.5;
}

.button-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: white;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.intro-image img {
    width: 100%;
    max-width: 500px;
    /* Limit width to keep it compact */
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin: 0 auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .service-map-wrapper {
        flex-direction: column;
    }

    .service-column {
        width: 100%;
        gap: var(--spacing-sm);
    }

    .service-column.left,
    .service-column.right {
        align-items: center;
    }

    .service-item {
        width: 100%;
        max-width: 400px;
        justify-content: flex-start !important;
        flex-direction: row !important;
    }

    .service-text {
        text-align: left !important;
    }

    .center-circle {
        margin: var(--spacing-xl) 0;
        width: 250px;
        height: 250px;
    }

    .circle-content h2 {
        font-size: 1.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro-content .section-desc {
        margin: 0 auto var(--spacing-md);
    }

    .button-group {
        justify-content: center;
    }
}

/* ========================================
   HOME PAGE - STATS SECTION
   ======================================== */
.bg-light-green {
    background-color: #ecfdf5;
    /* Very light green background */
}

.stats-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    align-items: flex-start;
    text-align: left;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    color: #000;
}

.stat-label {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 1rem;
}

.map-item {
    display: flex;
    flex-direction: column;
}

.map-icon-wrapper {
    margin-bottom: var(--spacing-sm);
}

.map-icon {
    height: 50px;
    width: auto;
}

/* Responsive stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .map-item {
        align-items: center;
    }
}

/* ========================================
   HOME PAGE - CORE CAPABILITIES
   ======================================== */
.capability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffe4e6;
    /* Fallback light pink */
    color: #9d174d;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.capability-badge .icon-sm {
    width: 14px;
    height: 14px;
}

.gradient-text {
    background: linear-gradient(90deg, #2dd4bf 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.centered-desc {
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.capability-card {
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.capability-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}

.capability-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-blue {
    background-color: #eff6ff;
    /* Light blue/lavender */
}

.card-pink {
    background-color: #fff1f2;
    /* Light pink/peach */
}

.card-purple {
    background-color: #fce7f3;
    /* Light purple */
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: transform 0.4s ease;
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #1e293b;
    line-height: 1.2;
}

.card-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin-top: auto;
    /* Pushes text to align if heights differ */
}

/* Entrance Animations for Cards */
.capability-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.capability-card.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance */
.capability-card.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.capability-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.3s;
}

.capability-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.5s;
}

@media (max-width: 900px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .capability-card {
        padding: var(--spacing-lg);
    }
}

/* ========================================
   HOME PAGE - AI AGENT SECTION
   ======================================== */
.ai-agent-section {
    padding-top: var(--spacing-xl);
}

.ai-banner {
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 300px;
    /* Reduced height for better balance */
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-2xl);
    isolation: isolate;
    /* Create stacking context */
}

/* Gradient Overlay */
.ai-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* Background Zoom Animation Effect */
@keyframes subtl-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* We can't target the background-image directly easily if it's inline style on the div. 
   Ideally, we'd have a wrapper or pseudo-element for the image. 
   But we can animate the container content instead or just accept the static bg. 
   Let's try to animate the container size? No, that breaks layout.
   Let's stick to a nice overlay and content animation. */

.banner-content {
    max-width: 450px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    /* Glassmorphism base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Animation */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-banner.animate-on-scroll.is-visible .banner-content {
    opacity: 1;
    transform: translateX(0);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-desc {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Button Styles */
.btn-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #000 0%, #000 100%);
}

.btn-blue {
    /* Keeping strictly for legacy/fallback if used elsewhere */
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
}

.btn-blue:hover {
    background-color: #1d4ed8;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    /* Increased gap */
}

.comparison-card {
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-problem {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.card-solution {
    background: linear-gradient(135deg, #f3f0ff 0%, #f0eaff 100%);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.comparison-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.text-red {
    color: #ef4444;
}

.text-dark {
    color: #1f2937;
}

.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-list li {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.custom-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
    top: -2px;
}

.list-red li::before {
    color: #ef4444;
}

.list-dark li::before {
    color: #1f2937;
}

@media (max-width: 768px) {
    .ai-banner {
        justify-content: center;
        text-align: center;
        padding: var(--spacing-xl);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HOW AGENT WORKS SECTION
   ======================================== */

.agent-works-section {
    background-color: #ffffff;
    padding-bottom: var(--spacing-3xl);
}

.architecture-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fbcfe8;
    /* Pink-ish background matches image */
    color: #9d174d;
    /* Dark pink text */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.text-green {
    color: #10b981;
    /* Green color for 'Agent Works' */
}

/* Process Flow */
.process-flow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.process-node {
    display: flex;
    justify-content: center;
    align-items: center;
}

.node-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #0c4a6e 100%);
    /* Deep blue gradient */
    border: 4px solid #3b82f6;
    /* Lighter blue border */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: float 6s ease-in-out infinite;
}

.node-circle:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.process-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tech Stack Pill */
.tech-stack-container {
    display: flex;
    justify-content: center;
}

.tech-stack-pill {
    background: #f3f4f6;
    /* Light gray background */
    border-radius: 100px;
    padding: var(--spacing-lg) var(--spacing-2xl);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.tech-item {
    display: flex;
    justify-content: center;
}

.tech-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: white;
    border: 3px solid #60a5fa;
    /* Blue border */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    padding: var(--spacing-xs);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), border-color var(--transition-base);
    animation: bounce 3s ease-in-out infinite;
}

.tech-circle:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .node-circle {
        width: 180px;
        height: 180px;
        font-size: 1.25rem;
    }

    .process-flow-wrapper {
        gap: var(--spacing-md);
    }

    .tech-stack-pill {
        padding: var(--spacing-lg);
        border-radius: var(--radius-xl);
        gap: var(--spacing-md);
    }

    .tech-circle {
        width: 90px;
        height: 90px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .process-flow-wrapper {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .tech-stack-pill {
        border-radius: var(--radius-xl);
        padding: var(--spacing-md);
    }
}

/* ========================================
   START AUTOMATING SECTION
   ======================================== */

.start-automating-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.start-automating-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Darkens the background slightly */
    z-index: 1;
}

/* Ensure the container inside the section allows full width usage and alignment */
.start-automating-section .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align content to the right */
}

.automating-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    max-width: 600px;
    /* margin-left: auto; Removed in favor of parent flex-end */
    padding-right: var(--spacing-xl);
    animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.automating-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    /* Pure white */
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-automating {
    background-color: #2563eb;
    color: white;
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color var(--transition-fast);
}

.btn-automating:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    /* Make arrow white */
}

/* Responsive */
@media (max-width: 768px) {
    .start-automating-section {
        min-height: 400px;
    }

    .automating-content {
        align-items: center;
        text-align: center;
        margin-left: 0;
        max-width: 100%;
    }

    .automating-title {
        font-size: 2.5rem;
    }
}

/* ========================================
   WHY EDGEWRAPPER SECTION
   ======================================== */

.why-wrapper-section {
    background-color: #ffffff;
    padding: var(--spacing-3xl) 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Left Column - Image & Badges */
.why-image-col {
    position: relative;
    padding-bottom: var(--spacing-xl);
    /* Space for startup badge */
}

.why-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 10;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.efficiency-badge {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
}

.badge-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    /* Blue/Cyan gradient */
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.badge-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Startup Badge */
.startup-badge {
    position: absolute;
    bottom: -30px;
    /* Overlap or just below */
    left: 0;
    background: #f3f4f6;
    /* Light gray */
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-md);
    width: 90%;
    /* Slight offset width */
    animation: fadeInUp 1s ease-out;
}

.startup-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.startup-text {
    display: flex;
    flex-direction: column;
}

.startup-year {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
}

.startup-label {
    font-size: 0.875rem;
    color: #4b5563;
}


/* Right Column - Features */
.why-content-col {
    padding-left: var(--spacing-xl);
}

.text-gradient-purple {
    background: linear-gradient(90deg, #10b981 0%, #a855f7 100%);
    /* Green to Purple */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: #f3f0ff;
    /* Light purple tint similar to design */
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    transition: transform var(--transition-base);
    animation: fadeInUp 0.8s ease-out;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature-info {
    flex: 1;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.feature-desc {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: #4b5563;
    line-height: 1.5;
}


/* Responsive */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .why-content-col {
        padding-left: 0;
    }

    .startup-badge {
        position: static;
        margin-top: var(--spacing-lg);
        width: 100%;
    }
}

/* ========================================
   READY TO TRANSFORM SECTION
   ======================================== */

.transform-cta-section {
    padding: var(--spacing-3xl) 0;
    background-color: #ffffff;
}

.transform-box {
    background: linear-gradient(135deg, #fceceb 0%, #eef2ff 100%);
    /* Soft Pink to Light Blue */
    padding: var(--spacing-3xl) var(--spacing-xl);
    border-radius: 40px;
    /* Large rounded corners as per design */
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transform-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.text-purple-gradient {
    background: linear-gradient(90deg, #a855f7 0%, #d946ef 100%);
    /* Purple to Magenta */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transform-desc {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.btn-green {
    background-color: #37C028;
    /* Green color */
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.btn-green:hover {
    background-color: #2da021;
    color: #ffffff;
    transform: translateY(-2px);
}


/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    background-color: #e0e7ff;
    /* Light Periwinkle Blue */
    padding: 80px 0;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.newsletter-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-3xl);
}

.newsletter-header {
    flex: 1;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.newsletter-desc {
    font-size: 1.125rem;
    color: #374151;
    max-width: 480px;
    line-height: 1.5;
}

.newsletter-form-wrapper {
    flex: 1;
    max-width: 500px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.newsletter-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    background-color: rgba(255, 255, 255, 0.5);
    /* Semi-transparent white */
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.newsletter-input:focus {
    border-color: #000000;
    background-color: #ffffff;
}

.btn-black {
    background-color: #000000;
    color: #ffffff;
    font-weight: 500;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-align: center;
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.btn-black:hover {
    background-color: #333333;
}

.newsletter-meta {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .transform-box {
        padding: var(--spacing-xl);
        border-radius: var(--radius-xl);
    }

    .transform-title {
        font-size: 1.875rem;
    }

    .newsletter-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xl);
    }

    .newsletter-form-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .newsletter-title {
        font-size: 2rem;
    }
}

/* ========================================
   CONTACT US PAGE STYLES
   ======================================== */

.contact-page-wrapper {
    background-color: #ffffff;
    padding: var(--spacing-xl) 0;
}

.contact-page-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
    margin-bottom: var(--spacing-md);
}

.contact-page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
    margin-top: var(--spacing-lg);
    border: 1px solid #f3f4f6;
}

/* Left Column: Contact Info */
.contact-info-col {
    background: #000000;
    color: white;
    padding: var(--spacing-xl);
    width: 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-header h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.info-header p {
    color: #9ca3af;
    font-size: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    color: white;
}

.info-list li img {
    width: 24px;
    height: auto;
    flex-shrink: 0;
    margin-top: 4px;
}

.info-list a {
    color: white;
    font-weight: 400;
}

.info-list a:hover {
    text-decoration: underline;
}

.address-item span {
    line-height: 1.5;
}

.contact-social {
    display: flex;
    gap: var(--spacing-md);
}

.contact-social a img {
    width: 32px;
    height: 32px;
    filter: invert(1);
    /* Make icons white if they aren't already */
}

/* Right Column: Form */
.contact-form-col {
    padding: var(--spacing-xl);
    width: 60%;
}

.clean-contact-form {
    display: flex;
    flex-direction: column;

}

.form-row {
    display: flex;
    gap: var(--spacing-l);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.half {
    flex: 1;
}

.form-group.full {
    width: 100%;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: var(--spacing-xs);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0.4rem;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    border-color: #000000;
}

/* Checkbox Grid */
.section-label {
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: var(--spacing-xs) !important;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.checkbox-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-box input {
    accent-color: #000;
    /* Or custom standard styling needed */
}

/* Responsive */
@media (max-width: 992px) {
    .contact-card {
        flex-direction: column;
    }

    .contact-info-col,
    .contact-form-col {
        width: 100%;
        padding: var(--spacing-xl);
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-title {
        font-size: 2rem;
    }
}

/* ========================================
   ABOUT US PAGE STYLES
   ======================================== */

/* Header Card */
.about-header-card {
    /* Gradient: Light Peach/Pink to Light Blue */
    background: linear-gradient(90deg, #FFF0E6 0%, #E6F7FF 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.about-header-card .subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--spacing-md);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: #000;
}

.about-desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How We Work */
.how-we-work-section .split-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-2xl);
}

.work-content {
    flex: 2;
}

.work-action {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.section-title-large {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: #000;
}

/* Core Values */
.section-title-medium {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #000;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.value-card {
    background: #f9fafb;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.value-icon-wrapper img {
    width: 32px;
    height: 32px;
}

.value-icon-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Team Section */
.subtitle-small {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.team-member-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-image {
    width: 120px;
    height: 120px;
    margin-bottom: var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: #000;
}

.member-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    min-height: 2.5em;
    /* Align cards */
}

.member-social img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.member-social:hover img {
    opacity: 1;
}

/* Global Reach */
.global-map {
    max-width: 100%;
    height: auto;
    margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .how-we-work-section .split-layout {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .work-action {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   NEW PAGE STYLES (Privacy, Services, Blog)
   ======================================== */

/* Page Headers */
/* ===== Blog Hero Section ===== */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blog-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: var(--primary-color);
}

.blog-hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
    animation: heroFloat 8s ease-in-out infinite;
}

.blog-hero-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -60px;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

.blog-hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 60%;
    animation: heroFloat 6s ease-in-out infinite 2s;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Breadcrumb */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: white;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Content */
.blog-hero-content {
    max-width: 700px;
    margin-bottom: 2rem;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 80, 0.15);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(76, 175, 80, 0.25);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-hero-highlight {
    background: linear-gradient(90deg, var(--primary-color), #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Stats Row */
.blog-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.75rem;
    backdrop-filter: blur(10px);
}

.blog-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.blog-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.blog-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
}

/* Category Filter Pills */
.blog-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.blog-cat-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.blog-cat-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-cat-pill .cat-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 7px;
    border-radius: 50px;
    font-weight: 600;
}

.blog-cat-pill.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive Blog Hero */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 0 1.5rem;
    }

    .blog-hero-title {
        font-size: 1.8rem;
    }

    .blog-hero-description {
        font-size: 0.95rem;
    }

    .blog-hero-stats {
        gap: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .blog-stat-number {
        font-size: 1.1rem;
    }

    .blog-hero-categories {
        gap: 6px;
    }

    .blog-cat-pill {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

/* Legacy page hero (other pages) */
.page-hero {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: var(--spacing-3xl) 0;
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Page Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card .service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55, 192, 40, 0.1);
    /* Light green bg */
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
}

.service-card .service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Blog Listing Styles */
.blog-section {
    padding-top: 2rem;
    padding-bottom: var(--spacing-3xl);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns, 4 rows per page */
    gap: var(--spacing-xl);
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-card-image-wrapper a {
    display: block;
}

.blog-card-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
}

.blog-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.blog-card-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-sm);
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    color: #888;
}

.blog-date-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-date-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.blog-date-updated {
    color: var(--primary-color);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}

.btn-text:hover {
    gap: 0.5rem;
    color: var(--primary-dark);
}

/* Pagination */
.pagination-wrapper {
    margin-top: var(--spacing-2xl);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid #e5e7eb;
    margin: 0 4px;
    transition: all var(--transition-fast);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers.dots {
    border: none;
    background: transparent;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Meta Updates */
.blog-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-card-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-meta a:hover {
    color: var(--primary-color);
}

.meta-sep {
    margin: 0 5px;
    color: #ccc;
}

/* Single Post Styles */
.single-post-article .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.single-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.entry-meta {
    font-size: 1rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-meta-top {
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 600;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Blog Meta Updates */
.blog-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-card-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-meta a:hover {
    color: var(--primary-color);
}

.meta-sep {
    margin: 0 5px;
    color: #ccc;
}

/* Single Post Styles */
.single-post-article .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.single-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.entry-meta {
    font-size: 1rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-meta-top {
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 600;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Comments Section */
#comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.comment-body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-left: 80px;
    margin-bottom: 2.5rem;
    background: #f9f9f9;
    padding: 1.5rem 1.5rem 1.5rem 80px;
    border-radius: 8px;
}

.comment-meta {
    margin-bottom: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: #111;
    font-size: 1rem;
    display: block;
}

.author-email {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.comment-author .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-right: 1rem;
    flex-shrink: 0;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}

.comment-metadata a {
    color: #888;
    text-decoration: none;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.reply {
    margin-top: 0.5rem;
}

.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Toggle Replies functionality removed - comments now show all replies by default */

/* Nested Comments - Hidden by default */
.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
    position: relative;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, display 0.3s ease;
}

.comment-list .children.show-replies {
    display: block;
    opacity: 1;
}

.comment-list .children .comment-item {
    margin-top: 1rem;
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.comment-list .children.show-replies .comment-item {
    transform: translateY(0);
    opacity: 1;
}

.comment-list .children .comment-body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-left: 80px;
    margin-bottom: 2.5rem;
    background: #f9f9f9;
    padding: 1.5rem 1.5rem 1.5rem 80px;
    border-radius: 8px;
}

.comment-list .children .comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-list .children .comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: #111;
    font-size: 1rem;
    display: inline;
}

.comment-list .children .comment-metadata {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}

.comment-list .children .comment-metadata a {
    color: #888;
    text-decoration: none;
}

.comment-list .children .comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.comment-list .depth-2 {
    margin-left: 0;
}

.comment-list .depth-3 {
    margin-left: 0;
}

.comment-list .depth-4 {
    margin-left: 0;
}

.comment-list .depth-5 {
    margin-left: 0;
}

/* Nested comment avatar positioning - same as regular comments */
.comment-list .children .comment-author .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .comment-list .children {
        padding-left: 1rem;
        margin-left: 0.25rem;
    }
    
    .comment-list .children .comment-item::before {
        font-size: 0.55rem;
        padding: 1px 6px;
        left: 15px;
    }
    
    .comment-list .children .comment-item::after {
        left: -6px;
        border-right-width: 6px;
    }
    
    .toggle-replies {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Comment Form */
.comment-respond {
    background: #fdfdfd;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    /* Assuming primary is blue-ish */
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.form-submit .submit {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit .submit:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .comment-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comment-body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
        padding-left: 0;
    }

    .comment-author .avatar {
        position: static;
        margin-bottom: 1rem;
    }
}

/* Author Bio Box */
.author-bio-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f6;
}

.author-avatar img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #111;
}

.author-description {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.author-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.author-links a:hover {
    text-decoration: underline;
}

/* Post Navigation */
.single-post-navigation {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .author-bio-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
}

/* Utility Classes for Page Templates */
.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f8f9fa;
}

.section {
    padding: 2.5rem 0;
}

.section-sm {
    padding: 2rem 0;
}

.mb-xl {
    margin-bottom: 3rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

.mt-lg {
    margin-top: 2rem;
}

.mt-xl {
    margin-top: 3rem;
}

/* Page Hero Styles */
.page-hero {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Grid Styles (used in page-services.php) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-icon img {
    height: 60px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Us Page Specific Styles */

/* Hero */
.about-hero-section {
    padding: 0;
    /* Reduced from 100px 0 80px */
    background: linear-gradient(180deg, #fff0f0 0%, #fff 100%);
    /* Subtle pinkish hint matching screenshot */
    position: relative;
    overflow: hidden;
    padding-top: 1rem;
}

.about-hero-section .container-narrow {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-subtitle-small {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #111;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

/* Clients Approach */
.clients-approach-section {
    padding: 30px 0;
    /* Reduced from 100px */
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.2;
}

.approach-content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.btn-green-gradient {
    background-color: #4cd964;
    background: #34c759;
    /* iOS Green */
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-green-gradient:hover {
    transform: translateY(-2px);
    color: #fff;
    background: #2ebd4e;
    box-shadow: 0 5px 15px rgba(46, 189, 78, 0.3);
}

.arrow-icon {
    margin-left: 8px;
}

/* Core Values */
.core-values-section {
    padding: 30px 0 20px;
    /* Reduced top from 100px */
    background-color: #fff;
    /* Screenshot looks white */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    background: #f8f9fa;
    /* Light grey card bg */
    padding: 2.5rem;
    border-radius: 4px;
}

.value-icon {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.value-icon img {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
}

.value-icon h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    color: #000;
}

.value-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Team Section */
.team-section {
    padding: 20px 0 30px;
    /* Reduced bottom from 80px */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    text-align: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.member-image-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: #000;
}

.member-role {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-linkedin {
    display: inline-block;
    margin-top: 0.5rem;
}

.member-linkedin img {
    width: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.member-linkedin:hover img {
    opacity: 1;
}

/* Global Reach */
.global-reach-section {
    padding: 30px 0 60px;
    /* Reduced from 80/100 */
}

.global-map-img {
    max-width: 80%;
    height: auto;
    margin-top: 2rem;
}

/* Responsive Customizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .clients-approach-section .text-right {
        text-align: left !important;
        margin-top: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Refined Apply Now Page Styles with Premium Flourishes */
.apply-hero {
    padding: 50px 0 30px;
    /* Reduced from 80px */
    background-color: #fff;
    text-align: center;
}

.sunburst-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
}

.sunburst-graphic {
    position: relative;
    width: 220px;
    /* Reduced */
    height: 130px;
    /* Reduced */
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-badge {
    border: 2px solid #000;
    padding: 8px 22px;
    /* Reduced */
    font-weight: 900;
    font-size: 1.2rem;
    /* Reduced from 1.5rem */
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.sunburst-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.sunburst-lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    /* Reduced from 220px */
    height: 180px;
    /* Reduced from 220px */
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg,
            #000 0deg 1deg,
            transparent 1deg 30deg);
    opacity: 0.1;
    animation: sunburstRotate 60s linear infinite;
}

@keyframes sunburstRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.apply-main-title {
    font-size: 2.22rem;
    /* Reduced from 3rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: #111;
    letter-spacing: -1px;
}

.apply-subline {
    font-size: 1.05rem;
    /* Reduced */
    color: #555;
    max-width: 550px;
    margin: 0 auto;
}

/* Split Layout - More Compact */
.apply-split-section {
    border-top: 1px solid #f0f0f0;
}

.apply-split-container {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 1200px;
}

.apply-info-side {
    flex: 1;
    min-width: 300px;
    background: #000;
    color: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
}

.apply-form-side {
    flex: 1.5;
    min-width: 400px;
    background-color: #fff;
    padding: 20px 13px;
    /* Matches user request 13px margin/padding concept */
}

/* Premium Form Layout - Rows for Name and Contact */
.apply-innovation-form .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 5px;
}

.apply-innovation-form .wpcf7-form>p {
    grid-column: span 2;
    margin-bottom: 15px;
}

/* First 4 fields in 2 columns (First Name, Last Name, Email, Phone) */
.apply-innovation-form .wpcf7-form>p:nth-of-type(1),
.apply-innovation-form .wpcf7-form>p:nth-of-type(2),
.apply-innovation-form .wpcf7-form>p:nth-of-type(3),
.apply-innovation-form .wpcf7-form>p:nth-of-type(4) {
    grid-column: span 1;
}

/* Ensure mobile responsiveness */
@media (max-width: 600px) {
    .apply-innovation-form .wpcf7-form {
        grid-template-columns: 1fr;
    }

    .apply-innovation-form .wpcf7-form>p {
        grid-column: span 1 !important;
    }
}

@media (max-width: 1200px) {
    .apply-form-side {
        padding: 50px 30px;
    }
}

@media (max-width: 992px) {

    .apply-info-side,
    .apply-form-side {
        flex: 100%;
        padding: 40px 20px;
    }
}

.side-heading {
    font-size: 1.8rem;
    /* Reduced from 2.4rem */
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -1px;
}

.side-text {
    font-size: 0.95rem;
    /* Reduced */
    color: #888;
    margin-bottom: 30px;
    line-height: 1.5;
}

.apply-contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.apply-contact-line:hover {
    transform: translateX(5px);
    color: #34c759;
}

.apply-contact-line img {
    width: 16px;
    height: 16px;
    filter: invert(1);
    opacity: 0.6;
}

.apply-feature-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.apply-feature-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 500;
}

.apply-feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-feature-icon img {
    max-width: 100%;
    max-height: 100%;
    filter: invert(1);
}

.apply-socials-row {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: auto;
    padding-top: 40px;
}

.apply-socials-row a img,
.apply-socials-row svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.apply-socials-row a:hover img,
.apply-socials-row a:hover svg {
    transform: translateY(-3px);
    opacity: 1;
}

/* Premium Form UI - Tighter Spacing */
.apply-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0.8rem;
}

.apply-form-col {
    flex: 1;
}

@media (max-width: 640px) {
    .apply-form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

.apply-form-group {
    margin-bottom: 1.5rem;
}

.apply-form-group label,
.apply-innovation-form label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.apply-innovation-form input:not([type="submit"]):not([type="file"]),
.apply-innovation-form select,
.apply-innovation-form textarea,
.apply-innovation-form .wpcf7-text,
.apply-innovation-form .wpcf7-textarea,
.apply-innovation-form .wpcf7-select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s;
    color: #111;
}

.apply-innovation-form input::placeholder,
.apply-innovation-form textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.apply-innovation-form input:focus,
.apply-innovation-form select:focus,
.apply-innovation-form textarea:focus,
.apply-innovation-form .wpcf7-text:focus,
.apply-innovation-form .wpcf7-textarea:focus {
    outline: none;
    border-color: #37C028;
    box-shadow: 0 0 0 4px rgba(55, 192, 40, 0.1);
    background: #fff;
}

.apply-innovation-form textarea {
    border-radius: 10px;
    height: 100px;
}

.apply-innovation-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%207.5L10%2012.5L15%207.5%22%20stroke%3D%22%23666%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 20px center;
}

/* Custom File Upload */
.apply-innovation-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.apply-file-upload-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 0;
    border: none;
    margin-top: 10px;
}

.apply-attach-btn {
    background: #007bff;
    /* Vibrant Blue from screenshot */
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
}

.apply-attach-btn::before {
    content: '\f0c6';
    /* Paperclip icon if fontawesome is available, else we rely on text */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: none;
    /* Hide if not sure about FA */
}

.apply-file-upload-box:hover .apply-attach-btn {
    background: #0056b3;
}

.apply-attach-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.file-name-info,
.file-upload-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.file-size-info {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 5px;
}

.apply-submit-container {
    margin-top: 1.5rem;
}

.apply-submit-btn,
.apply-innovation-form .wpcf7-submit {
    background: #28a745;
    /* Vibrant Green from screenshot */
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 20px 0 0;
    width: auto;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.apply-submit-btn:hover,
.apply-innovation-form .wpcf7-submit:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.apply-submit-btn:hover,
.apply-innovation-form .wpcf7-submit:hover {
    background: #2da822;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 192, 40, 0.3);
}

.apply-innovation-form .wpcf7-spinner {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
}

/* Validation messages */
.apply-innovation-form .wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: var(--error-color, #ef4444);
    margin-top: 5px;
    display: block;
}

.apply-innovation-form .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
    font-size: 0.95rem !important;
    text-align: center;
    box-shadow: 0 15px 30px rgba(52, 199, 89, 0.2);
}

.apply-submit-btn:hover::before {
    left: 150%;
    opacity: 1;
    transition: all 0.8s ease;
    /* Shimmer effect */
}

/* ========================================
   SERVICES REFINED DESIGN
   ======================================== */

.services-hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0f9ff 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Atmospheric decorative blobs */
.services-hero-section::before,
.services-hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.services-hero-section::before {
    background: #22c55e;
    top: -100px;
    left: -100px;
}

.services-hero-section::after {
    background: #3b82f6;
    bottom: -100px;
    right: -100px;
}

.hero-content-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.text-green {
    color: #22c55e;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #475569;
    max-width: 500px;
    margin: var(--spacing-xs) auto 0;
    line-height: 1.6;
}

.hero-stats-row {
    display: flex;
    justify-content: space-around;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg) !important;
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    background: white;
    border-color: #22c55e;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.05);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-tag-green {
    color: #166534;
    font-weight: 700;
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-large {
    font-size: 2.25rem;
    /* Reduced from 2.75rem */
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card-detailed {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card-detailed:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.service-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-detailed:hover .service-thumbnail img {
    transform: scale(1.05);
}

.service-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #0f172a;
}

.service-card-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.learn-more-green {
    color: #22c55e;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
}

/* Portfolio Refined */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.btn-see-all {
    background: #22c55e;
    color: white;
    padding: 8px 18px;
    /* Slightly reduced */
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-see-all:hover {
    background: #16a34a;
}

.works-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.work-portfolio-card {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.work-portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.work-thumbnail img {
    width: 100%;
    height: 180px;
    /* Reduced from 200px */
    object-fit: cover;
}

.work-info {
    padding: var(--spacing-lg);
}

.work-info h3 {
    font-size: 1.1rem;
    /* Reduced from 1.25rem */
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.clients-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-md) 0;
}

.client-logo img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.client-logo img:hover {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .services-detailed-grid {
        grid-template-columns: 1fr;
    }

    .works-portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .works-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-card-detailed {
        flex-direction: column;
        text-align: center;
    }

    .service-card-visual {
        order: -1;
        width: 120px;
    }
}

/* Improved Centered Contact Form */
.services-contact-section {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.max-width-md {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-sm);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.services-contact-form-improved {
    margin-top: var(--spacing-xl);
}

.form-row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

/* Pill Selection Grid */
.services-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.pill-checkbox {
    cursor: pointer;
}

.pill-checkbox input {
    display: none;
}

.pill-checkbox span {
    display: inline-block;
    padding: 8px 20px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.pill-checkbox:hover span {
    border-color: #cbd5e1;
    background: #eef2f6;
}

.pill-checkbox input:checked+span {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 10px 15px rgba(34, 197, 94, 0.2);
}

.btn-submit-improved {
    background: #22c55e;
    color: #ffffff;
    padding: 14px 50px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.btn-submit-improved:hover {
    background: #16a34a;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.3);
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
}



/* Service Detail Pages */
.service-detail-hero {
    padding: var(--spacing-3xl) 0;
    background-color: #f8fafc;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.service-hero-visual {
    text-align: center;
    position: relative;
}

.hero-image-tag {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
    animation: fadeInDown 0.8s ease-out;
}

.hero-image-medium {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.service-hero-content {
    text-align: left;
}

.service-grid-three {
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: var(--spacing-xl);
}

.ai-collaboration-column {
    display: flex;
    align-items: center;
}

.ai-collaboration-box {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.ai-meta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    color: #475569;
}

.ai-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.ai-meta-item svg {
    stroke: #94a3b8;
}

.ai-content-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 24px;
    width: 100%;
    /* Ensure full width */
}

.ai-content-body p:last-child {
    margin-bottom: 0;
}

/* Premium Features Grid */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card-premium {
    background: #f8fafc;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-card-premium:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: #22c55e;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}

.feature-card-premium:hover .feature-icon-wrapper {
    background: #22c55e;
    color: white;
    transform: scale(1.05);
}

.feature-card-premium h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.feature-card-premium p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid-premium {
        grid-template-columns: 1fr;
    }
}

.section-title-gradient {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.section-subtitle-centered {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-title-gradient {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .service-hero-content {
        text-align: center;
    }

    .service-hero-visual {
        order: -1;
    }

    .service-grid-three {
        grid-template-columns: 1fr;
    }

    .ai-collaboration-column {
        grid-column: span 1;
        order: 2;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 1rem;
    color: #475569;
}

.service-visual img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.bg-green {
    background-color: #22c55e;
}

.btn-primary-white {
    background: white;
    color: #22c55e;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.tech-tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin: 4px;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.process-item {
    position: relative;
    padding: var(--spacing-lg);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e2e8f0;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.icon-check::before {

    color: #22c55e;
    font-weight: 800;
    margin-right: 5px;
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-visual {
        order: -1;
        text-align: center;
    }

    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Manual responsive overrides for Web Development page removed - superseded by global fluid classes */

/* --- Base Fluid Styles --- */
.service-detail-hero .service-hero-grid,
.service-detail-hero .service-hero-content,
.service-detail-hero .service-hero-visual,
.service-detail-content .ai-collaboration-box,
.service-detail-content .service-grid,
.tech-stack-section,
.tech-stack-section .tech-tags-container {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fluid hero title for service hero pages */
.service-hero-content .hero-title {
    font-size: clamp(1.25rem, 4vw + 0.5rem, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fluid hero subtitle */
.service-hero-content .hero-subtitle {
    font-size: clamp(0.78rem, 1.5vw + 0.3rem, 0.95rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fluid section gradient title */
.section-title-gradient {
    font-size: clamp(1.15rem, 3.5vw + 0.4rem, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fluid section subtitle */
.section-subtitle-centered {
    font-size: clamp(0.78rem, 1.2vw + 0.3rem, 1.1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fluid ai-content-body text */
.ai-content-body p {
    font-size: clamp(0.85rem, 1.5vw + 0.3rem, 1.125rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Tech tags container - always flex-wrap */
.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Hero image - fluid max width */
.hero-image-medium {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* --- Desktop Large (max-width: 1200px) --- */
@media (max-width: 1200px) {
    .service-hero-grid {
        gap: var(--spacing-2xl);
    }

    .service-hero-content .hero-title {
        font-size: 2.2rem;
    }

    .hero-image-tag {
        font-size: 1rem;
    }

    .ai-content-body p {
        font-size: 1.05rem;
    }

    .section-title-gradient {
        font-size: 2.2rem;
    }

    .section-subtitle-centered {
        font-size: 1rem;
    }

    .features-grid-premium {
        gap: var(--spacing-md);
    }
}

/* --- Tablet Landscape (max-width: 992px) --- */
@media (max-width: 992px) {

    /* Hero grid goes single column (already exists, reinforce) */
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .service-hero-visual {
        order: -1;
    }

    .service-hero-content {
        text-align: center;
    }

    .service-hero-content .hero-title {
        font-size: 1.9rem;
    }

    .service-hero-content .hero-subtitle {
        font-size: 0.9rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-tag {
        font-size: 0.95rem;
    }

    .hero-image-medium {
        max-width: 450px;
    }

    /* AI Collaboration Box */
    .ai-collaboration-box {
        padding: 0;
    }

    .ai-content-body p {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 20px;
    }

    .ai-meta-item {
        font-size: 0.85rem;
    }

    /* Section Title Gradient */
    .section-title-gradient {
        font-size: 2rem;
    }

    .section-subtitle-centered {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Service grid - single column */
    .service-detail-content .service-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .service-detail-content .service-visual {
        order: -1;
        text-align: center;
    }

    .service-visual img {
        max-width: 300px;
    }

    /* Feature Cards */
    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .feature-card-premium {
        padding: var(--spacing-md);
    }

    .feature-card-premium h3 {
        font-size: 1.1rem;
    }

    .feature-card-premium p {
        font-size: 0.88rem;
    }

    /* Tech Stack section */
    .tech-stack-section .section-title {
        font-size: 1.75rem;
    }

    .tech-tag {
        font-size: 0.82rem;
        padding: 5px 14px;
    }
}

/* --- Tablet Portrait (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Hero Section */
    .service-detail-hero {
        padding: var(--spacing-xl) 0 var(--spacing-2xl);
    }

    .service-hero-content .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .service-hero-content .hero-subtitle {
        font-size: 0.85rem;
        max-width: 100%;
        line-height: 1.7;
    }

    .hero-image-tag {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        margin-bottom: 12px;
    }

    .hero-image-medium {
        max-width: 380px;
        border-radius: var(--radius-md);
    }

    /* AI Collaboration */
    .ai-meta-row {
        gap: 8px;
        margin-bottom: 18px;
    }

    .ai-meta-item {
        font-size: 0.8rem;
    }

    .ai-content-body p {
        font-size: 0.92rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    /* Section Headers */
    .section-title-gradient {
        font-size: 1.65rem;
    }

    .section-subtitle-centered {
        font-size: 0.88rem;
    }

    /* Feature Cards - single column */
    .features-grid-premium {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .feature-card-premium {
        padding: var(--spacing-md);
        gap: 12px;
    }

    .feature-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .feature-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

    .feature-card-premium h3 {
        font-size: 1.05rem;
    }

    .feature-card-premium p {
        font-size: 0.85rem;
    }

    /* Service visual image smaller */
    .service-visual img {
        max-width: 250px;
    }

    /* Tech Stack Section */
    .tech-stack-section {
        padding: var(--spacing-xl) 0;
    }

    .tech-stack-section .section-title {
        font-size: 1.5rem;
    }

    .tech-tags-container {
        gap: 6px;
    }

    .tech-tag {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    /* Section Tag */
    .section-tag-green {
        font-size: 0.7rem;
    }

    /* mb utilities */
    .mb-3xl {
        margin-bottom: var(--spacing-2xl) !important;
    }

    .mb-2xl {
        margin-bottom: var(--spacing-xl) !important;
    }
}

/* --- Small Tablet / Large Phone (max-width: 600px) --- */
@media (max-width: 600px) {
    .service-detail-hero {
        padding: var(--spacing-lg) 0 var(--spacing-xl);
    }

    .service-detail-hero .container,
    .service-detail-content .container,
    .tech-stack-section .container,
    .process-section .container {
        padding: 0 12px;
    }

    .service-hero-content .hero-title {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .service-hero-content .hero-subtitle {
        font-size: 0.82rem;
    }

    .hero-image-tag {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .hero-image-medium {
        max-width: 100%;
    }

    /* AI content */
    .ai-content-body p {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .ai-meta-item {
        font-size: 0.75rem;
    }

    /* Section Headers */
    .section-title-gradient {
        font-size: 1.4rem;
    }

    .section-subtitle-centered {
        font-size: 0.82rem;
    }

    /* Feature cards */
    .feature-card-premium {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: 10px;
    }

    .feature-icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .feature-icon-wrapper svg {
        width: 28px;
        height: 28px;
    }

    .feature-card-premium h3 {
        font-size: 1rem;
    }

    .feature-card-premium p {
        font-size: 0.8rem;
    }

    /* Tech Stack */
    .tech-stack-section {
        padding: var(--spacing-lg) 0;
    }

    .tech-stack-section .section-title {
        font-size: 1.35rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* Process section already handled by AI page responsive */

    .section-tag-green {
        font-size: 0.65rem;
        letter-spacing: 0.8px;
    }

    .mb-3xl {
        margin-bottom: var(--spacing-xl) !important;
    }

    .mb-2xl {
        margin-bottom: var(--spacing-lg) !important;
    }
}

/* --- Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
    .service-detail-hero {
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }

    .service-hero-grid {
        gap: var(--spacing-lg);
    }

    .service-hero-content .hero-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .service-hero-content .hero-subtitle {
        font-size: 0.78rem;
        line-height: 1.65;
    }

    .hero-image-tag {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    /* AI content */
    .ai-meta-row {
        gap: 6px;
        margin-bottom: 14px;
    }

    .ai-meta-item {
        font-size: 0.72rem;
    }

    .ai-content-body p {
        font-size: 0.82rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* Section Headers */
    .section-title-gradient {
        font-size: 1.2rem;
    }

    .section-subtitle-centered {
        font-size: 0.78rem;
    }

    /* Feature cards */
    .feature-card-premium {
        padding: var(--spacing-sm);
        gap: 8px;
    }

    .feature-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .feature-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .feature-card-premium h3 {
        font-size: 0.95rem;
    }

    .feature-card-premium p {
        font-size: 0.78rem;
    }

    /* Tech Stack */
    .tech-stack-section .section-title {
        font-size: 1.2rem;
    }

    .tech-tag {
        font-size: 0.72rem;
        padding: 3px 9px;
        margin: 3px;
    }
}

/* --- Small Mobile (max-width: 375px) --- */
@media (max-width: 375px) {
    .service-detail-hero {
        padding: var(--spacing-sm) 0 var(--spacing-md);
    }

    .service-detail-hero .container,
    .service-detail-content .container,
    .tech-stack-section .container,
    .process-section .container {
        padding: 0 12px;
    }

    .service-hero-content .hero-title {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .service-hero-content .hero-subtitle {
        font-size: 0.74rem;
        line-height: 1.6;
    }

    .hero-image-tag {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    /* AI content */
    .ai-meta-item {
        font-size: 0.68rem;
    }

    .ai-content-body p {
        font-size: 0.78rem;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    /* Section Headers */
    .section-title-gradient {
        font-size: 1.05rem;
    }

    .section-subtitle-centered {
        font-size: 0.72rem;
    }

    /* Feature cards */
    .feature-card-premium {
        padding: 12px;
    }

    .feature-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .feature-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .feature-card-premium h3 {
        font-size: 0.88rem;
    }

    .feature-card-premium p {
        font-size: 0.72rem;
    }

    /* Tech Stack */
    .tech-stack-section .section-title {
        font-size: 1.05rem;
    }

    .tech-tag {
        font-size: 0.65rem;
        padding: 3px 7px;
        margin: 2px;
    }
}

/* --- Extra Small Mobile (max-width: 320px) --- */
@media (max-width: 320px) {

    .service-detail-hero .container,
    .service-detail-content .container,
    .tech-stack-section .container,
    .process-section .container {
        padding: 0 8px;
    }

    .service-hero-content .hero-title {
        font-size: 1rem;
    }

    .service-hero-content .hero-subtitle {
        font-size: 0.68rem;
    }

    .hero-image-tag {
        font-size: 0.58rem;
    }

    .ai-content-body p {
        font-size: 0.72rem;
    }

    .section-title-gradient {
        font-size: 0.95rem;
    }

    .section-subtitle-centered {
        font-size: 0.68rem;
    }

    .feature-card-premium h3 {
        font-size: 0.82rem;
    }

    .feature-card-premium p {
        font-size: 0.68rem;
    }

    .feature-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .feature-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }

    .tech-stack-section .section-title {
        font-size: 0.95rem;
    }

    .tech-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    /* About Us - Approach */
    /* About Us - Approach */
    .clients-approach-section .row {
        flex-direction: column;
        text-align: center;
    }

    .clients-approach-section .col-md-8,
    .clients-approach-section .col-md-4 {
        width: 100%;
    }

    .clients-approach-section .col-md-4.text-right {
        text-align: center !important;
        margin-top: 2rem;
    }

    /* Grids to 2 Columns */
    .blog-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Policy Grids to 2 Columns (Privacy/Dev) */
    .pc-mini-grid,
    .dp-two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Tablet Portrait (max-width: 768px) --- */
@media (max-width: 768px) {

    /* About Us */
    .about-hero-section {
        padding: 60px 0 30px;
    }

    .section-heading {
        margin-bottom: var(--spacing-md);
    }

    /* Blog Hero */
    .blog-hero {
        padding: 40px 0 30px;
    }

    .blog-hero-stats {
        gap: 15px;
        padding: 12px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Policies Hero */
    .privacy-hero,
    .dp-hero {
        padding: 60px 20px 50px;
        min-height: auto;
    }

    .privacy-badge,
    .dp-badge {
        font-size: 0.75rem;
    }

    /* Policy Content */
    .privacy-content-section,
    .dp-content-section {
        padding: 40px 16px 60px;
    }

    .pc-card,
    .dp-card,
    .dp-half-card {
        padding: 24px;
        flex-direction: column;
        gap: 16px;
    }

    .pc-card-icon,
    .dp-card-icon {
        width: 45px;
        height: 45px;
    }

    .pc-usage-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Small Tablet / Large Phone (max-width: 600px) --- */
@media (max-width: 600px) {

    /* All Grids to 1 Column */
    .blog-grid,
    .team-grid,
    .values-grid,
    .pc-mini-grid,
    .dp-two-col {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* About Us specific */
    .value-card {
        padding: var(--spacing-md);
    }

    .team-member-card {
        padding: var(--spacing-sm);
    }

    /* Blog */
    .blog-stat-divider {
        display: none;
    }

    .blog-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Policy Call to Actions */
    .pc-contact-footer,
    .dp-contact-footer {
        padding: 30px 20px;
    }
}

/* --- Mobile (max-width: 480px) --- */
@media (max-width: 480px) {

    /* Heroes */
    .about-hero-section {
        padding: 40px 15px 20px;
    }

    .privacy-hero,
    .dp-hero {
        padding: 40px 15px 30px;
    }

    /* Font Sizes for dense sections */
    .section-subtitle-small {
        font-size: 0.8rem;
    }

    .pc-card-title,
    .dp-card-title,
    .dp-half-title {
        font-size: 1.1rem;
    }

    .pc-card-text,
    .dp-card-text,
    .dp-half-text {
        font-size: 0.9rem;
    }

    .pc-mini-card {
        padding: 16px;
    }

    .pc-mini-card h3 {
        font-size: 0.95rem;
    }

    .pc-contact-title,
    .dp-contact-title {
        font-size: 1.25rem;
    }

    .pc-contact-text,
    .dp-contact-text {
        font-size: 0.85rem;
    }

    /* Map scaling */
    .global-map-img {
        max-width: 100%;
        margin-top: 1rem;
    }
}

/* --- Small Mobile (max-width: 375px) --- */
@media (max-width: 375px) {

    .blog-card-content,
    .value-card {
        padding: 12px;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-card-excerpt {
        font-size: 0.85rem;
    }

    .pc-card,
    .dp-card,
    .dp-half-card {
        padding: 16px;
    }

    .pc-updated-bar,
    .dp-updated-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .pc-usage-item {
        padding: 12px;
    }
}

/* --- Extra Small Mobile (max-width: 320px) --- */
@media (max-width: 320px) {

    .about-hero-section .hero-title,
    .blog-hero-title,
    .privacy-hero-title,
    .dp-hero-title {
        font-size: 1.4rem;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .about-hero-section .hero-description,
    .approach-content p,
    .blog-hero-description,
    .privacy-hero-subtitle,
    .dp-hero-subtitle {
        font-size: 0.8rem;
    }

    .pc-card-text,
    .dp-card-text {
        font-size: 0.8rem;
    }

    .blog-card-meta,
    .blog-date-item {
        font-size: 0.7rem;
    }
}

/* ========================================
   GLOBAL BUTTON OVERRIDE (ALL BUTTONS GREEN)
   ======================================== */
button,
input[type="submit"],
input[type="button"],
.btn,
.btn-primary,
.btn-secondary,
.btn-black,
.btn-blue,
.btn-automating,
.btn-submit-improved,
.btn-see-all,
.apply-submit-btn,
.contact-btn,
.newsletter-btn,
.wpmc-nav-button {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-black:hover,
.btn-blue:hover,
.btn-automating:hover,
.btn-submit-improved:hover,
.btn-see-all:hover,
.apply-submit-btn:hover,
.contact-btn:hover,
.newsletter-btn:hover,
.wpmc-nav-button:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    background-color: #15803d !important;
}


/* Text Link Button (Read More etc) */
.btn-text {
    display: inline-flex;
    align-items: center;
    color: #37C028 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.btn-text:hover {
    color: #2da822 !important;
    transform: translateX(5px);
    background: transparent !important;
}

/* 4-Column Layout Override for Features Grid */
.features-grid-premium.four-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .features-grid-premium.four-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .features-grid-premium.four-cols {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   BLOG FEED PAGE GRID
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BLOG CARD IMAGE RESIZING
   ======================================== */
.blog-card-image-wrapper {
    height: 220px;
    width: 100%;
    overflow: hidden;
    display: block;
    border-radius: 8px;
    /* fallback to 8px if var not set */
    border-radius: var(--radius-md, 8px);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-md, 1rem);
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transition: transform var(--transition-base, 0.3s ease);
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

/* ========================================
   FEATURED IMAGE / THUMBNAIL STYLING
   ======================================== */
.wp-post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Blog thumbnail specific sizing */
.attachment-edgewrapper-blog-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Large featured image for single posts */
.attachment-large.sp-hero-img,
.attachment-large.sp-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Featured image container styling */
.sp-hero-img-wrap,
.sp-main-image-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.75rem);
}

.sp-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.sp-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg, 0.75rem);
    margin-bottom: var(--spacing-lg, 2rem);
}

/* ========================================
   BLOG CATEGORY FILTERS
   ======================================== */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.blog-filter-btn {
    padding: 8px 20px;
    background-color: var(--bg-secondary, #f9fafb) !important;
    color: var(--text-secondary, #6b7280) !important;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #e5e7eb);
    text-decoration: none;
}

.blog-filter-btn:hover {
    background-color: #37C028 !important;
    color: #ffffff !important;
    border-color: #37C028;
    transform: translateY(-2px);
}

.blog-filter-btn.active {
    background-color: #37C028 !important;
    color: #ffffff !important;
    border-color: #37C028;
    box-shadow: 0 4px 10px rgba(55, 192, 40, 0.3);
}

/* ========================================
   BLOG PAGINATION
   ======================================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    margin-bottom: 20px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-primary, #1f2937);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.blog-pagination .page-numbers:hover:not(.current):not(.dots) {
    background-color: #ffffff;
    border-color: #37C028;
    color: #37C028;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(55, 192, 40, 0.1);
}

.blog-pagination .page-numbers.current {
    background-color: #37C028;
    border-color: #37C028;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(55, 192, 40, 0.3);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--text-light, #9ca3af);
}

.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers {
    padding: 0 18px;
    background-color: var(--bg-secondary, #f9fafb);
}

.blog-pagination .prev.page-numbers:hover,
.blog-pagination .next.page-numbers:hover {
    background-color: #37C028;
    color: #ffffff;
}


/* -- Custom Application Form Styling -- */
.custom-apply-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-family: inherit;
    margin-top: var(--spacing-md);
}

.custom-apply-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.custom-apply-form label {
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 500;
}

.custom-apply-form input[type="text"],
.custom-apply-form input[type="email"],
.custom-apply-form input[type="tel"],
.custom-apply-form textarea,
.custom-apply-form select {
    width: 100%;
    padding: 0.4rem 0.8rem;
    border: 1px solid #b3b3b3;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #b3b3b3;
    outline: none;
    transition: border-color 0.2s;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.custom-apply-form input[type="text"]:focus,
.custom-apply-form input[type="email"]:focus,
.custom-apply-form input[type="tel"]:focus,
.custom-apply-form textarea:focus,
.custom-apply-form select:focus,
.custom-apply-form input:not(:placeholder-shown),
.custom-apply-form textarea:not(:placeholder-shown) {
    color: #333;
    border-color: #333;
}

.custom-apply-form input::placeholder,
.custom-apply-form textarea::placeholder {
    color: #b3b3b3;
    font-weight: 300;
}

.custom-apply-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 0.8rem;
    cursor: pointer;
}

.custom-apply-form .phone-input-group {
    display: flex;
    border: 1px solid #b3b3b3;
    border-radius: 6px;
    background: transparent;
    align-items: center;
    transition: border-color 0.2s;
}

.custom-apply-form .phone-input-group:focus-within {
    border-color: #333;
}

.custom-apply-form .phone-input-group select {
    width: 40px;
    border: none;
    border-radius: 6px 0 0 6px;
    background-position: center;
    padding: 0.4rem 0;
    border-right: none;
}

.custom-apply-form .phone-input-group select option {
    color: initial;
}

.custom-apply-form .phone-input-group input[type="tel"] {
    flex: 1;
    border: none;
    border-radius: 0 6px 6px 0;
    padding-left: 0.4rem;
}

/* File Upload styling exactly like image */
.custom-apply-form .file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.custom-apply-form input[type="file"] {
    display: none;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background-color: #0b5ed7 !important;
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.file-upload-btn:hover {
    opacity: 0.9;
}

.file-upload-text {
    font-size: 0.8rem;
    color: #111;
    font-weight: 400;
}

.file-size-info {
    color: #888;
    font-size: 0.7rem;
}

.apply-submit-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.newsletter-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.newsletter-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.newsletter-form-wrapper {
    position: relative;
}

/* Contact Form 7 Specific Styling */
.newsletter-form .wpcf7-form {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

.newsletter-form .wpcf7-form-control-wrap {
    flex: 1;
    display: block;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.newsletter-form input[type="email"]:focus,
.newsletter-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.newsletter-form .wpcf7-submit {
    padding: 16px 28px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.newsletter-form .wpcf7-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.newsletter-form .wpcf7-submit:active {
    transform: translateY(0);
}

.newsletter-meta {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CF7 Spinner & Validation */
.newsletter-form .wpcf7-spinner {
    position: absolute;
    bottom: -30px;
    left: 0;
}

.newsletter-form .wpcf7-not-valid-tip {
    font-size: 0.75rem;
    margin-top: 5px;
    color: var(--error-color);
}

.newsletter-form .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.9rem !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .newsletter-desc {
        margin: 0 auto;
    }

    .newsletter-form .wpcf7-form {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .newsletter-form .wpcf7-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form .wpcf7-submit {
        width: 100%;
    }
}