:root {
            --primary: #1E3A8A;
            --foreground: #111827;
            --secondary: #6B7280;
            --background: #FFFFFF;
            --light-grey: #F9FAFB;
        }

        /* CSS Reset & Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--foreground);
            background-color: var(--background);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Nunito Sans', sans-serif;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 1.25rem;
            letter-spacing: -0.01em;
        }

        p {
            margin-bottom: 1rem;
        }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .container {
            width: 100%;
            max-width: 100rem;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* UPDATED HEADER (Matching About Us Exactly) */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            padding: 1rem 0;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 100rem;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--foreground);
            letter-spacing: -0.02em;
        }

        .nav-links {
            display: none;
            margin-left: auto;
        }

        @media (min-width: 1024px) {
            .nav-links {
                display: flex;
                gap: 2rem;
                align-items: center;
            }
        }

        .nav-link {
            color: #374151;
            font-weight: 600;
            font-size: 0.875rem;
            position: relative;
            padding: 0.5rem 0;
        }
        .nav-link:hover {
            color: var(--primary);
        }

        /* Partners Dropdown Styling - Updated to match About Us */
        .nav-item-dropdown {
            position: relative;
        }
        .nav-dropdown-content {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 200px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
            border-radius: 8px;
            border: 1px solid #E5E7EB;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 0.5rem 0;
        }
        .nav-item-dropdown:hover .nav-dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .nav-dropdown-item {
            display: block;
            padding: 0.75rem 1rem;
            color: #374151;
            font-weight: 600;
            font-size: 0.875rem;
        }
        .nav-dropdown-item:hover {
            background-color: #F9FAFB;
            color: var(--primary);
        }

        .cta-button {
            background-color: var(--primary);
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 0.875rem;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            border: none;
            cursor: pointer;
            font-family: 'Nunito Sans', sans-serif;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 1.5rem;
            background-color: white;
            min-width: 250px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border: 1px solid #E5E7EB;
            z-index: 1001;
        }

        .dropdown-menu.active {
            display: block;
        }

        .dropdown-item {
            display: block;
            padding: 0.75rem 1rem;
            color: var(--foreground);
            border-bottom: 1px solid #F9FAFB;
        }

        .menu-toggle {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        @media (min-width: 1024px) {
            .menu-toggle {
                display: none;
            }
        }

        /* Animations */
        .animate-reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: opacity, transform;
        }
        .animate-reveal.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .blog-content p {
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }

        .blog-content h2 {
            margin-top: 3rem;
            margin-bottom: 1.5rem;
            font-size: 1.875rem;
            font-weight: 700;
        }

        /* Back Button Section */
        .back-section {
            background: white;
            border-bottom: 1px solid #F3F4F6;
            padding: 1.5rem 0; /* Reduced from 3rem */
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            font-weight: 600;
            transition: color 0.3s;
        }

        .back-button:hover {
            color: rgba(30, 58, 138, 0.8);
        }

        .back-button i {
            font-size: 0.875rem;
        }

        /* Article Header */
        .category-badge {
            display: inline-block;
            padding: 0.375rem 0.75rem;
            background: var(--light-grey);
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #4B5563;
            border-radius: 9999px;
            margin-bottom: 1.5rem;
        }

        .article-header h1 {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem; /* Reset to original */
        }

        @media (min-width: 768px) {
            .article-header h1 {
                font-size: 3.5rem;
                margin-bottom: 2rem; /* Original value */
            }
        }

        .meta-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1.5rem;
            color: #4B5563;
            padding-bottom: 2rem; /* Original value */
            border-bottom: 1px solid #F3F4F6;
        }

        @media (min-width: 640px) {
            .meta-info {
                flex-direction: row;
                align-items: center;
            }
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
        }

        .meta-item i {
            font-size: 0.875rem;
        }

        .article-excerpt {
            font-size: 1.25rem;
            color: #4B5563;
            line-height: 1.6;
            margin-top: 2rem; /* Original value */
        }

        /* Article Content */
        .article-content {
            font-size: 1.125rem;
            color: #374151;
            line-height: 1.8;
            padding-top: 1rem; /* Reduced from 2rem */
        }

        .closing-statement {
            margin-top: 3rem; /* Reduced from 6rem */
            padding-top: 2rem; /* Reduced from 4rem */
            border-top: 1px solid #F3F4F6;
            font-size: 1.125rem;
            color: #4B5563;
            font-style: italic;
            line-height: 1.6;
        }

        /* Related Posts */
        .related-posts {
            background: var(--light-grey);
            padding: 6rem 0 4rem 0; /* Reduced from 10rem/8rem */
        }

        .related-posts h2 {
            font-size: 2.25rem;
            font-weight: 800;
            margin-bottom: 3rem; /* Reduced from 6rem */
        }

        .post-card {
            background: white;
            border: 1px solid #E5E7EB;
            border-radius: 1rem;
            padding: 2rem;
            height: 100%;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            text-decoration: none;
        }

        .post-card:hover {
            border-color: rgba(30, 58, 138, 0.3);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        }

        .post-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary);
            transform: scaleX(0);
            transition: transform 0.5s;
            transform-origin: left;
        }

        .post-card:hover::before {
            transform: scaleX(1);
        }

        .post-category {
            display: inline-block;
            padding: 0.375rem 0.75rem;
            background: var(--light-grey);
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #4B5563;
            border-radius: 9999px;
            margin-bottom: 1rem;
        }

        .post-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--foreground);
            margin-bottom: 0.75rem;
            transition: color 0.3s;
        }

        .post-card:hover h3 {
            color: var(--primary);
        }

        .post-excerpt {
            color: #4B5563;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }

        .read-more {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--foreground);
            font-weight: 600;
            transition: color 0.3s;
        }

        .post-card:hover .read-more {
            color: var(--primary);
        }

        /* UPDATED FOOTER (Matching About Us Layout Exactly) */
        .footer {
            background: #111827;
            color: #9CA3AF;
            padding: 6rem 0 3rem;
        }

        .footer .container {
            max-width: 100rem;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
            margin-bottom: 5rem;
        }

        @media (min-width: 768px) {
            .footer-content {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .footer h3 {
            color: white;
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }

        .footer h4 {
            color: #2563EB;
            font-size: 0.875rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1.5rem;
        }

        .footer p {
            color: #9CA3AF;
            font-size: 0.875rem;
            line-height: 1.5;
        }

        .footer a {
            color: #9CA3AF;
            font-size: 0.875rem;
            display: block;
            margin-bottom: 0.75rem;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer a:hover {
            color: white;
        }

        .footer-bottom {
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }

        .footer-bottom p {
            color: #9CA3AF;
            font-size: 0.875rem;
            text-align: center;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-links a {
            font-size: 1.25rem;
            color: #9CA3AF;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: white;
        }

        /* Layout Containers */
        .content-container {
            max-width: 50rem;
            margin: 0 auto;
            padding: 0 1.5rem;
        }
        
        @keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* =========================================
   MOVING BACKGROUND IMAGE – bg-white
========================================= */
.bg-white {
  position: relative;
  background-image: url('https://static.wixstatic.com/media/3d4c2a_2f337be5b7da445db58a7946af6d1fe4~mv2.jpg');
  background-size: 75% auto;
  background-repeat: repeat-x;
  background-position: 0% 50%;
  animation: bgMove 10s linear infinite;
  overflow: hidden;
}

/* Text readability layer */
.bg-white::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); 
  z-index: 0;
}

.bg-white > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .bg-white {
    animation-duration: 10s;
    background-size: cover;
  }
}



        .wide-container {
            max-width: 100rem;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        section {
            padding: 4rem 0; /* Original values */
        }

        @media (min-width: 768px) {
            section {
                padding: 6rem 0; /* Original values */
            }
        }

        .grid-1-2 {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem; /* Original value */
            margin-bottom: 3rem; /* Added proper spacing */
        }

        @media (min-width: 768px) {
            .grid-1-2 {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem; /* Original value */
                margin-bottom: 3rem; /* Added proper spacing */
            }
        }

        .text-center {
            text-align: center;
            padding-top: 1.5rem; /* Reduced from 3rem */
            padding-bottom: 2rem; /* Reduced from 6rem */
        }

        /* Scroll Progress Indicator */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, transparent 50%, transparent 100%);
            background-size: 200% 100%;
            background-position: -100% 0;
            transition: background-position 0.3s ease;
            z-index: 9999;
        }

        /* ===========================
   RESPONSIVE ENHANCEMENTS
   (No class/id changed)
=========================== */

/* Prevent overflow issues */
img, video {
    max-width: 100%;
    height: auto;
}

/* Header spacing for mobile */
@media (max-width: 1023px) {
    body {
        padding-top: 72px;
    }

    .header {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: block;
        color: var(--foreground);
    }
}

/* Mobile dropdown menu full-width */
@media (max-width: 1023px) {
  /* Ensure the header doesn't clip the menu */
  .header {
    overflow: visible !important;
    z-index: 1000 !important;
  }

  /* Force dropdown to the front and fix its positioning */
  .dropdown-menu {
    position: fixed !important;
    top: 70px; /* Adjust to match your header height */
    left: 1.5rem;
    right: 1.5rem;
    width: auto;
    z-index: 9999 !important;
    background: white !important;
    display: none; /* Controlled by 'active' class */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
  }

  .dropdown-menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
  }
}

/* Article typography scaling */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 1rem;
    }
}

/* Meta info stacking */
@media (max-width: 640px) {
    .meta-info {
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    .meta-item {
        font-size: 0.8rem;
    }
}

/* Grid safety */
.grid-1-2 {
    width: 100%;
}

/* Related posts spacing */
@media (max-width: 768px) {
    .related-posts {
        padding: 4rem 0 3rem;
    }

    .related-posts h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .post-card {
        padding: 1.5rem;
    }
}

/* Footer responsiveness */
@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer h3 {
        font-size: 1.25rem;
    }

    .footer-bottom {
        gap: 1rem;
    }
}

/* Buttons & links tap-friendly */
@media (max-width: 640px) {
    .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* Large screens refinement */
@media (min-width: 1440px) {
    .content-container {
        max-width: 55rem;
    }

    .article-header h1 {
        font-size: 4rem;
    }
}

/* ===========================
   MOBILE HORIZONTAL SCROLL FIX
   (Safe, CSS-only)
=========================== */

/* Absolute guard */
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Prevent any section from exceeding viewport */
section,
header,
footer {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix container math on mobile */
@media (max-width: 1023px) {
    .container,
    .content-container,
    .wide-container {
        max-width: 100%;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Dropdown/menu overflow fix */
@media (max-width: 1023px) {
    .dropdown-menu {
        left: 1rem;
        right: 1rem;
        width: calc(100vw - 2rem);
        box-sizing: border-box;
    }
}

/* Long text / links safety */
p, a, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Grid hard stop */
.grid-1-2 {
    max-width: 100%;
    overflow-x: hidden;
}

/* Images absolute safety */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ============================================================ */

/* --- TABLETS & SMALL LAPTOPS (1024px and below) --- */
@media (max-width: 1024px) {
    .part-discovery-container {
        padding: 0 2rem;
    }

    .component-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* --- MOBILE DEVICES (768px and below) --- */
@media (max-width: 768px) {
    /* Header Navigation */
    .nav-links {
        display: none; /* Hide desktop links */
    }

    .menu-toggle {
        display: block; /* Show hamburger button */
    }

    /* Hero Section */
    .discovery-hero {
        padding: 120px 1.5rem 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 1.5rem auto;
    }

    /* Part Discovery Grid */
    .component-grid {
        grid-template-columns: 1fr; /* Single column for phone */
        gap: 1.25rem;
    }

    .layer-header {
        padding: 1rem;
    }

    .layer-title h3 {
        font-size: 1.1rem;
    }

    /* Search Bar */
    .search-container {
        margin: 0 0 2rem 0;
        width: 100%;
    }

    /* Detail Modal (Pop-up) */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto; /* Ensure long content is scrollable on mobile */
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- SMALL PHONES (480px and below) --- */
@media (max-width: 480px) {
    .primary-button, .secondary-button, .cta-button {
        width: 100%; /* Full width buttons for easier tapping */
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .part-discovery-header h2 {
        font-size: 1.5rem;
    }

    .bg-white{
        background-size: 100% auto;
    animation-duration: 30s;
    background-size: cover;
    }

}


@media (max-width: 1023px) {

  .dropdown-menu {
    position: fixed;
    top: 70px;
    right: 0;
    left: auto;

    width: 80vw;
    max-width: 320px;

    height: auto;                         /* 🔥 FIX */
    max-height: calc(100vh - 70px);       /* safety only */

    background: #ffffff;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #E5E7EB;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

   .dropdown-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

}
/* ================= HAMBURGER (MENU TOGGLE) ================= */

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.menu-toggle:hover {
    background: var(--light-grey);
    transform: rotate(90deg);
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

/* ================= NAV LINKS (RESPONSIVE) ================= */

/* Desktop */
.nav-links {
    display: none;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* ================= DROPDOWN MENU ================= */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background-color: #ffffff;
    min-width: 250px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    animation: fadeIn 0.3s ease-out;
}

.dropdown-menu.active {
    display: block;
}

/* ================= DROPDOWN ITEMS ================= */

.dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--foreground);
    border-bottom: 1px solid #F9FAFB;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-grey);
    padding-left: 2rem;
    color: var(--primary);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}
 .dropdown-menu{
      width: 250px;
      margin: 0;
    }
