
    :root {
    --fresh-lift: #7FD36B;
    --dry-gold: #D8C56F;
    --pale-moss: #D8E0D1;

        --deep-canopy: #123524;
        --deep-canopy-darker: #0a2015;
        --agri-green: #2E7D32;
        --lime-harvest: #B7E33A;
        --clean-grain: #F7F8F1;
        --mint-air: #EAF3E3;
        --moss-grey: #587062;
        --dark-charcoal: #1f2937;
    }

    /* Core Design Patterns */
    .pattern-technical-grid {
        background-color: var(--deep-canopy-darker) !important;
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
        background-size: 40px 40px !important;
        background-position: center !important;
        position: relative;
    }
    .pattern-technical-grid::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(var(--lime-harvest) 1.5px, transparent 1.5px);
        background-size: 80px 80px;
        background-position: center;
        opacity: 0.15;
        pointer-events: none;
        z-index: 0;
    }
    .pattern-latex-flow {
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 Q25 25 50 50 T100 50' fill='none' stroke='rgba(46, 125, 50, 0.07)' stroke-width='2'/%3E%3Cpath d='M0 70 Q25 45 50 70 T100 70' fill='none' stroke='rgba(46, 125, 50, 0.07)' stroke-width='2'/%3E%3Cpath d='M0 30 Q25 5 50 30 T100 30' fill='none' stroke='rgba(46, 125, 50, 0.07)' stroke-width='2'/%3E%3C/svg%3E") !important;
        background-size: 120px 120px !important;
    }
    .pattern-plantation-grid {
        background-color: var(--mint-air) !important;
        background-image: radial-gradient(rgba(46, 125, 50, 0.15) 1.5px, transparent 1.5px) !important;
        background-size: 24px 24px !important;
        background-position: center !important;
    }
    .pattern-certification-seal {
        background-color: var(--deep-canopy) !important;
        background-image: 
            radial-gradient(circle, transparent 30%, rgba(216, 197, 111, 0.06) 31%, rgba(216, 197, 111, 0.06) 35%, transparent 36%),
            radial-gradient(circle, transparent 50%, rgba(216, 197, 111, 0.04) 51%, rgba(216, 197, 111, 0.04) 56%, transparent 57%) !important;
        background-size: 200px 200px !important;
        background-position: center !important;
    }
    .pattern-data-strip {
        background-color: #ffffff !important;
        background-image: 
            linear-gradient(rgba(46, 125, 50, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(46, 125, 50, 0.04) 1px, transparent 1px) !important;
        background-size: 20px 20px !important;
        position: relative;
    }
    .pattern-editorial-lines {
        background-color: var(--clean-grain) !important;
        background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
        background-size: 100% 28px !important;
    }

    /* Page Heros styling */
    .hero-dark-compact {
        min-height: 320px !important;
        padding: 80px 0 !important;
        background-color: var(--deep-canopy-darker) !important;
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
        background-size: 30px 30px !important;
        background-position: center !important;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        text-align: center;
    }
    .hero-light-editorial {
        min-height: 280px !important;
        padding: 80px 0 !important;
        background-color: var(--clean-grain) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        text-align: center;
        border-bottom: 1px solid var(--pale-moss) !important;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Manrope', sans-serif; background-color: var(--clean-grain); color: var(--dark-charcoal); scroll-behavior: smooth; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    
    /* Glassmorphism Navbar */
    .navbar { 
        background: rgba(255, 255, 255, 0.85); 
        
        -webkit-
        padding: 20px 0; 
        position: sticky; 
        top: 0; 
        z-index: 100; 
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    .nav-content { display: flex; justify-content: space-between; align-items: center; }
    .nav-content nav a { margin-left: 30px; text-decoration: none; color: var(--deep-canopy); font-weight: 600; position: relative; transition: color 0.3s ease; }
    .nav-content nav a::after {
        content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--lime-harvest); transition: width 0.3s ease;
    }
    .nav-content nav a:hover::after, .nav-content nav a.active::after { width: 100%; }
    .nav-content nav a:hover, .nav-content nav a.active { color: var(--agri-green); }
    
    /* Buttons */
    .btn { padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: inline-block; position: relative; overflow: hidden; z-index: 1; }
    .btn-primary { background-color: var(--deep-canopy); color: white !important; border: 2px solid var(--deep-canopy); }
    .btn-primary::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background-color: var(--agri-green); transition: width 0.4s ease; z-index: -1; }
    .btn-primary:hover::before { width: 100%; }
    .btn-primary:hover { border-color: var(--agri-green); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2); }
    
    .btn-outline { border: 2px solid var(--deep-canopy); color: var(--deep-canopy); background: transparent; }
    .btn-outline:hover { background-color: var(--deep-canopy); color: white; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(18, 53, 36, 0.15); }
    
    /* Hero Sections */
    .hero { height: 85vh; min-height: 600px; display: flex; align-items: center; justify-content: center; position: relative; background-size: cover; background-position: center; background-attachment: fixed; }
    .hero-home { background-image: url('images/hero_port.png'); }
    .hero-about { background-image: url('images/hero_port.png'); height: 50vh; }
    .hero-products { background-image: url('/images/products_hero_v3.png'); height: 50vh; }
    .hero-sustainability { background-image: url('images/rubber_forest.png'); height: 60vh; }
    
    .hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(18, 53, 36, 0.85) 0%, rgba(46, 125, 50, 0.6) 100%); }
    .hero-content { position: relative; z-index: 1; text-align: center; color: white; animation: fadeInUp 1s ease-out forwards; }
    
    /* Cards & Interactions */
    .hover-card { background: white; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .hover-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-color: var(--lime-harvest); }
    
    /* Tables */
    .spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; box-shadow: 0 0 20px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
    .spec-table th { background-color: var(--deep-canopy); color: white; text-align: left; padding: 15px; font-weight: 600; }
    .spec-table td { padding: 15px; border-bottom: 1px solid var(--pale-moss); color: var(--dark-charcoal); }
    .spec-table tr:last-child td { border-bottom: none; }
    .spec-table tr:nth-child(even) { background-color: var(--mint-air); }
    .spec-table tr:hover { background-color: rgba(183, 227, 58, 0.1); }
    
    /* Animations */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .fade-up { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
    .delay-1 { animation-delay: 0.2s; }
    .delay-2 { animation-delay: 0.4s; }
    .delay-3 { animation-delay: 0.6s; }
    
    footer { background-color: var(--deep-canopy); color: white; padding: 60px 0 40px; margin-top: 0; border-top: 4px solid var(--lime-harvest); }
    
/* ASTRA OVERRIDES FOR FULL WIDTH HERO */
.ast-container { max-width: 100% !important; padding: 0 !important; }
.site-content { padding: 0 !important; }
.site-main { padding: 0 !important; margin: 0 !important; }

/* NEW IMAGE CLASSES */
.hero-home { background-image: url('/images/trade_hero.png'); }
.hero-products { background-image: url('/images/products_hero_v3.png'); }

/* WP Admin Bar adjustments */
body.admin-bar .navbar { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .navbar { top: 46px !important; }
}

/* Ensure no Astra styles mess with our body */
body { margin: 0 !important; padding: 0 !important; }

.hero-content h1, .hero-content p, .hero-content h2, .hero-content h3 { color: #ffffff !important; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); }

.hero-content * { color: #ffffff !important; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important; }

a.hover-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE MOBILE OVERRIDES
   ========================================================================== */

/* Fix horizontal scrolling globally */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

/* Base resets for container spacing on tablets & mobile */
@media (max-width: 1199px) {
    .container {
        padding: 0 24px !important;
    }
}

@media (max-width: 991px) {
    /* Responsive margins & paddings */
    section, .container {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* Global Typography scaling */
    h1, [style*="font-size: 64px"], [style*="font-size: 56px"], [style*="font-size: 48px"] {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    h2, [style*="font-size: 40px"], [style*="font-size: 36px"] {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    h3, [style*="font-size: 28px"], [style*="font-size: 24px"] {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    p, [style*="font-size: 22px"], [style*="font-size: 20px"], [style*="font-size: 18px"] {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* Force specific main column elements to stack */
    main div[style*="gap: 50px"],
    main div[style*="margin-bottom: 80px"],
    main .container > div[style*="display: flex"],
    main .container > div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 24px !important;
    }

    /* Explicitly keep Navbar horizontal */
    .nav-content[style*="display: flex"],
    .nav-content[style*="display:flex"] {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Make flex items span 100% */
    div[style*="flex: 1"], 
    div[style*="flex: 2"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* Grid columns fallback to single column */
    div[style*="display: grid"],
    div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Mobile Header/Menu positioning fixes */
    header.navbar nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important; /* STRICTLY ENFORCE ALIGNMENT TO THE TOP */
        padding: 100px 24px 20px !important; /* LEAVE ROOM FOR CLOSE BUTTON AT THE TOP */
        gap: 0 !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 9999 !important;
    }
    header.navbar nav.active {
        right: 0 !important;
    }
    /* Enforce the list items wrapping inside WP generated nav markup */
    header.navbar nav ul.vhhc-nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important; /* ENFORCE VERTICAL ALIGNMENT TO TOP */
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important; /* RESET MARGIN TO ALIGN DIRECTLY WITH PARENT PADDING */
        padding: 0 !important;
    }
    header.navbar nav a {
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        text-align: center !important;
        color: var(--deep-canopy) !important;
        width: 100% !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        text-decoration: none !important;
    }
    header.navbar nav a:last-child {
        border-bottom: none !important;
    }

    /* Vision & Mission blocks scaling */
    div[style*="min-height: 400px"], 
    div[style*="min-height: 500px"] {
        min-height: auto !important;
        padding: 30px 15px !important;
        margin-bottom: 30px !important;
    }
    div[style*="justify-content: flex-end"] {
        justify-content: center !important;
        text-align: center !important;
    }
    div[style*="display: flex; justify-content: flex-end"] {
        justify-content: center !important;
    }

    /* Trust metrics list stack */
    section[style*="background-color: white; padding: 40px 0"] .container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
    }

    /* Product card adjustments on mobile */
    .hover-card[style*="display: flex"],
    .hover-card[style*="display:flex"] {
        margin-bottom: 40px !important;
    }
    .hover-card[style*="display: flex"] > div[style*="padding: 60px"],
    .hover-card[style*="display:flex"] > div[style*="padding: 60px"] {
        padding: 25px 20px !important;
    }

    /* Certifications grid stack 2x2 and center */
    div[style*="display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        justify-items: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
    }
    div[style*="display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;"] .hover-card {
        width: 100% !important;
        max-width: 160px !important;
        height: 160px !important;
        margin: 0 !important;
    }

    /* About Us columns stack */
    div[style*="gap: 50px"] {
        gap: 40px !important;
        margin-top: 20px !important;
    }

    /* Contact Page Inner Row alignment fix on mobile */
    section.container.fade-up div[style*="background: white; padding: 50px"] {
        padding: 25px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 40px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Hero blocks heights */
    .hero {
        height: auto !important;
        min-height: 400px !important;
        padding: 100px 15px 50px !important;
    }
}

@media (max-width: 767px) {
    .container {
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    /* Spacing between main sections */
    main section, section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        margin-top: 20px !important;
    }

    /* Stack Hero buttons vertically to prevent overflow width */
    div[style*="display: flex; justify-content: center; gap: 20px"] {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important;
    }
    div[style*="display: flex; justify-content: center; gap: 20px"] a {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }
    
    /* Live rate tables / VIP tables overflow protection */
    div[style*="overflow-x: auto"] {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* Teaser chart wrapper overlay scaling */
    div[style*="background: linear-gradient(to right, rgba(18,53,36,0) 0%"] {
        left: 0 !important;
        background: rgba(18, 53, 36, 0.95) !important;
        backdrop-filter: blur(8px);
    }
    
    div[style*="transform: translateX(10%)"] {
        transform: translateX(0) !important;
    }
    
    /* Ticker optimization for small screen widths */
    div[style*="position: absolute; left: 20px"] {
        display: none !important; /* Hide LATEST UPDATES label */
    }
    #vhhc-flip-ticker {
        width: 100% !important;
    }
    #vhhc-flip-ticker .ticker-item {
        font-size: 13px !important;
        gap: 12px !important;
        padding: 4px 10px !important;
        max-width: 95% !important;
        white-space: nowrap !important;
    }

    /* VIP Charts small grid layout */
    #vipSmallChartsGrid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 12px !important;
    }
    
    /* Hero title sizes */
    .hero h1 {
        font-size: 24px !important;
    }
    
    /* Tables scroll indicator helper styles */
    div[style*="overflow-x: auto"] {
        border-radius: 8px;
        box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.5);
    }
    
    /* Public teaser chart gradient overlay sizing on tiny phones */
    div[style*="background: linear-gradient(to right, rgba(18,53,36,0)"] {
        padding: 15px !important;
    }
    div[style*="background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.3)"] {
        padding: 15px !important;
    }
}
