﻿/* Global Styles & Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Color Evolution */
    --primary-color: #1e40af;
    --primary-rgb: 30, 64, 175;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --azure-blue: #0ea5e9;
    --navy-deep: #0f172a;

    --secondary-color: #f59e0b;
    /* Amber */
    --accent-color: #10b981;
    /* Emerald */

    --text-color: #0f172a;
    --text-muted: #64748b;
    --bg-color: #ffffff;
    --bg-soft: #f8fafc;
    --border-color: #e2e8f0;
    --glass-border: rgba(255, 255, 255, 0.2);

    --font-family: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Elevated Shadow System */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Category Colors - Preserved for Tools */
    --cat-shipping: #3b82f6;
    --cat-finance: #eab308;
    --cat-road: #ef4444;
    --cat-rail: #10b981;
    --cat-air: #0ea5e9;
    --cat-ports: #6366f1;
    --cat-clearing: #f97316;
    --cat-icd: #84cc16;
    --cat-freight: #8b5cf6;
    --cat-corporate: #64748b;
    --cat-scm: #14b8a6;

    /* Brand Colors for UI Elements */
    --brand-indigo: #6366f1;
    --brand-ruby: #e11d48;
    --brand-sapphire: #0284c7;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --brand-amethyst: #8b5cf6;
    --brand-turquoise: #06b6d4;
    --brand-coral: #fb7185;
    --brand-slate: #475569;
    --brand-violet: #7c3aed;
    --brand-gold: #fbbf24;
    --brand-charcoal: #334155;
    --brand-mint: #2dd4bf;
    --brand-sky: #0ea5e9;
    --brand-lime: #84cc16;
    --brand-teal: #0d9488;
    --brand-rose: #f43f5e;
    --brand-cyan: #22d3ee;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Modern UI Utilities v2 --- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-panel {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-v2 {
    padding: 50px 0;
}

.container-v2 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.grid-v2 {
    display: grid;
    gap: 30px;
}

@media (max-width: 768px) {
    .section-v2 {
        padding: 60px 0;
    }

    .container-v2 {
        padding: 0 20px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    height: 80px;
    padding: 0 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .logo-text::before removed to prevent double logo with img tag */

.logo img {
    background: var(--primary-color);
    /* Website theme color */
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 48px !important;
    /* Larger size for better visibility */
    width: auto !important;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav ul a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
    position: relative;
    display: inline-block;
    /* Essential for correct absolute positioning of child */
    padding-bottom: 6px;
    /* Explicit space for the bar */
}

nav ul a:hover,
nav ul a.active {
    color: var(--primary-color);
}

/* Bottom Bar for Active Menu Item */
nav ul a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: scaleX(1);
    /* Ensure it's rendered */
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 10;
    /* Ensure on top */
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        font-size: 0.75rem;
    }
}

nav a:hover {
    color: var(--primary-color);
}

main {
    min-height: 80vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Hero Section */

/* Hero Section - Original Home Style */
/* Hero Section - Standardized Maritime Style (Unified) */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.9) 50%, rgba(59, 130, 246, 0.85) 100%),
        url("https://images.unsplash.com/photo-1494412519320-aa613dfb7738?auto=format&fit=crop&w=1500&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for Home */
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 58, 138, 0.92) 50%, rgba(59, 130, 246, 0.88) 100%),
        url("https://images.unsplash.com/photo-1494412519320-aa613dfb7738?auto=format&fit=crop&w=1500&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
    overflow: visible;
    /* CRITICAL: Allow children/siblings to overlap from below */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* Lower than tool card */
}

/* Tool Content Container Stacking */
.tool-content-overlap {
    position: relative;
    z-index: 10;
    margin-top: -80px !important;
}

.tool-card {
    background: #fff;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffffff;
    position: relative;
    z-index: 11;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tool-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Allow hero icons to inherit category color */
.page-hero i,
.hero i {
    color: inherit;
}

/* Ensure ::before works for both classes */
.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,<svg width='100' height='100' xmlns='http://www.w3.org/2000/svg'><rect width='2' height='2' fill='white' opacity='0.1'/></svg>");
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.hero-tagline.accent {
    color: var(--secondary-color);
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.1);
}

.hero-tagline.dark {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.08);
    border-color: rgba(30, 64, 175, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-premium {
    padding: 3px 8px;
    /* Tiny padding */
    border-radius: 3px;
    /* Minimal radius */
    font-weight: 500;
    font-size: 0.75rem;
    /* Tiny font */
    text-transform: none;
    /* Removed uppercase for "simple" look */
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Standardized Hero & Premium Buttons combined at line 1263 */

/* Professional Calculate Button */
.btn-calculate {
    background: var(--primary-color);
    color: white !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.btn-calculate:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.35);
}

.btn-calculate i {
    margin-right: 10px;
}

/* Simple Section Link */
.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 2px 0;
}

.section-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Page Hero - now handled by global definition at bottom */


/* Glass Panel (Advanced Card) */
/* iLovePDF Style Cards */
.glass-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

/* Dedicated Tool Card - No scaling/floating for large forms */
/* Tool Card definition consolidated at line 312 */

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* Premium Component Elevations */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), var(--premium-glow);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    transition: transform 0.2s;
}

/* Base class keeps its text colors unless hovered specifically by child */
.glass-panel h3,
.glass-panel p {
    color: var(--text-color);
    transition: color 0.3s;
}

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Grid System */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

/* iLovePDF Hover Styles - Updated for Pop-up & Glow */
.card-hover-import {
    color: var(--cat-import);
}

.card-hover-logistics {
    color: var(--cat-logistics);
}

.card-hover-ecommerce {
    color: var(--cat-ecommerce);
}

.card-hover-digital {
    color: var(--cat-digital);
}

.card-hover-traditional {
    color: var(--cat-traditional);
}

.card-hover-transport {
    color: var(--cat-transport);
}

.card-hover-warehousing {
    color: var(--cat-warehouse);
}

.card-hover-shipping {
    color: var(--cat-shipping);
}

.card-hover-finance {
    color: var(--cat-finance);
}

.card-hover-road {
    color: var(--cat-road);
}

.card-hover-rail {
    color: var(--cat-rail);
}

.card-hover-air {
    color: var(--cat-air);
}

.card-hover-ports {
    color: var(--cat-ports);
}

.card-hover-clearing {
    color: var(--cat-clearing);
}

.card-hover-icd {
    color: var(--cat-icd);
}

.card-hover-freight {
    color: var(--cat-freight);
}

.card-hover-corporate {
    color: var(--cat-corporate);
}

.card-hover-scm {
    color: var(--cat-scm);
}

/* Set actual icon color - override text inheritance if needed */
.glass-panel .tool-icon i {
    color: inherit;
}

.card-hover-import:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-import-rgb), 0.15);
    border-color: var(--cat-import);
}

.card-hover-logistics:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-logistics-rgb), 0.15);
    border-color: var(--cat-logistics);
}

.card-hover-ecommerce:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-ecommerce-rgb), 0.15);
    border-color: var(--cat-ecommerce);
}

.card-hover-digital:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-digital-rgb), 0.15);
    border-color: var(--cat-digital);
}

.card-hover-traditional:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-traditional-rgb), 0.15);
    border-color: var(--cat-traditional);
}

.card-hover-transport:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-transport-rgb), 0.15);
    border-color: var(--cat-transport);
}

.card-hover-warehousing:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-warehouse-rgb), 0.15);
    border-color: var(--cat-warehouse);
}

.card-hover-shipping:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-shipping-rgb), 0.15);
    border-color: var(--cat-shipping);
}

.card-hover-finance:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-finance-rgb), 0.15);
    border-color: var(--cat-finance);
}

.card-hover-road:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-road-rgb), 0.15);
    border-color: var(--cat-road);
}

.card-hover-rail:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-rail-rgb), 0.15);
    border-color: var(--cat-rail);
}

.card-hover-air:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-air-rgb), 0.15);
    border-color: var(--cat-air);
}

.card-hover-ports:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-ports-rgb), 0.15);
    border-color: var(--cat-ports);
}

.card-hover-clearing:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-clearing-rgb), 0.15);
    border-color: var(--cat-clearing);
}

.card-hover-icd:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-icd-rgb), 0.15);
    border-color: var(--cat-icd);
}

.card-hover-freight:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-freight-rgb), 0.15);
    border-color: var(--cat-freight);
}

.card-hover-corporate:hover {
    background-color: #ffffff !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--cat-corporate-rgb), 0.15);
    border-color: var(--cat-corporate);
}

/* Brand Hover Classes Removed per user request to stabilize the UI */
.hover-brand-ruby .tool-icon i {
    color: var(--brand-ruby);
}

.hover-brand-sapphire .tool-icon i {
    color: var(--brand-sapphire);
}

.hover-brand-emerald .tool-icon i {
    color: var(--brand-emerald);
}

.hover-brand-amber .tool-icon i {
    color: var(--brand-amber);
}

.hover-brand-amethyst .tool-icon i {
    color: var(--brand-amethyst);
}

.hover-brand-turquoise .tool-icon i {
    color: var(--brand-turquoise);
}

.hover-brand-coral .tool-icon i {
    color: var(--brand-coral);
}

.hover-brand-indigo .tool-icon i {
    color: var(--brand-indigo);
}

.hover-brand-slate .tool-icon i {
    color: var(--brand-slate);
}

/* --- Unified Tool Cards (Legacy Upgrade) --- */
.tool-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-soft);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.tool-card:hover .tool-icon {
    background: var(--target-bg, var(--primary-color));
    color: white;
    border-color: transparent;
    animation: pop-shake 0.6s ease forwards;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Brand Color Mappings for Tools */
.hover-brand-ruby {
    --target-bg: linear-gradient(135deg, #ef4444, #b91c1c);
    --brand-color: #ef4444;
}

.hover-brand-sapphire {
    --target-bg: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --brand-color: #3b82f6;
}

.hover-brand-emerald {
    --target-bg: linear-gradient(135deg, #10b981, #047857);
    --brand-color: #10b981;
}

.hover-brand-amber {
    --target-bg: linear-gradient(135deg, #f59e0b, #b45309);
    --brand-color: #f59e0b;
}

.hover-brand-cyan {
    --target-bg: linear-gradient(135deg, #06b6d4, #0e7490);
    --brand-color: #06b6d4;
}

.hover-brand-indigo {
    --target-bg: linear-gradient(135deg, #6366f1, #4338ca);
    --brand-color: #6366f1;
}

.hover-brand-sky {
    --target-bg: linear-gradient(135deg, #0ea5e9, #0369a1);
    --brand-color: #0ea5e9;
}

.hover-brand-lime {
    --target-bg: linear-gradient(135deg, #84cc16, #4d7c0f);
    --brand-color: #84cc16;
}

.hover-brand-teal {
    --target-bg: linear-gradient(135deg, #14b8a6, #0f766e);
    --brand-color: #14b8a6;
}

.hover-brand-orange {
    --target-bg: linear-gradient(135deg, #f97316, #c2410c);
    --brand-color: #f97316;
}

.hover-brand-rose {
    --target-bg: linear-gradient(135deg, #f43f5e, #be123c);
    --brand-color: #f43f5e;
}

.hover-brand-violet {
    --target-bg: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --brand-color: #8b5cf6;
}

.hover-brand-amethyst {
    --target-bg: linear-gradient(135deg, #a855f7, #7e22ce);
    --brand-color: #a855f7;
}

.hover-brand-slate {
    --target-bg: linear-gradient(135deg, #64748b, #334155);
    --brand-color: #64748b;
}

.hover-brand-fuchsia .tool-icon i {
    color: var(--brand-fuchsia);
}

.hover-brand-sky .tool-icon i {
    color: var(--brand-sky);
}

.hover-brand-mint .tool-icon i {
    color: var(--brand-mint);
}

.hover-brand-maroon .tool-icon i {
    color: var(--brand-maroon);
}

.hover-brand-charcoal .tool-icon i {
    color: var(--brand-charcoal);
}

.hover-brand-crimson .tool-icon i {
    color: var(--brand-crimson);
}

.hover-brand-crimson .tool-icon i {
    color: var(--brand-crimson);
}

/* Base class should keep its text colors unless hovered */
.glass-panel h3,
.glass-panel p {
    color: var(--text-color);
    transition: color 0.3s;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-section {
    padding: 80px 0;
    text-align: center;
    background: #fdfdfd;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    letter-spacing: -1px;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .hero-section h1 {
        font-size: 2rem;
        white-space: normal;
    }
}

.hero-section p {
    font-size: 1.25rem;
    color: #474747;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 320px;
    }
}

/* Category Filters Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: white;
    border: 1px solid #dadada;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3.5rem;
}

/* Button Styling - iLovePDF Style */
.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    gap: 12px;
}

.btn-large.primary {
    background: #e11d48;
    /* Red for high conversion */
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.btn-large.primary:hover {
    background: #be123c;
    transform: translateY(-2px);
}

.btn-large.secondary {
    background: #111;
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-large.secondary:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-large.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Global Button Pop & Shake Effect */
@keyframes pop-shake {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.08) rotate(-1deg);
    }

    50% {
        transform: scale(1.08) rotate(1deg);
    }

    70% {
        transform: scale(1.08) rotate(-1deg);
    }

    100% {
        transform: scale(1.08) rotate(0deg);
    }
}

.btn-standard-effect {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px !important;
}

.btn-standard-effect:hover {
    animation: pop-shake 0.4s ease-in-out forwards;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

/* --- Hero Section v2 --- */
.hero-v2 {
    position: relative;
    padding: 160px 0 120px;
    background: var(--bg-soft);
    overflow: hidden;
    text-align: center;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-content-v2 {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline-v2 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.hero-v2 h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--navy-deep);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-v2 p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns-v2 {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Modern Buttons v2 --- */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-v2.primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--azure-blue) 100%);
    color: white !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-v2.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
}

.btn-v2.secondary {
    color: var(--primary-color);
    background: white;
    border: 1px solid var(--border-color);
}

.btn-v2.secondary:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* Legacy Support & Global Button Excellence */
.btn-premium,
.btn-hero,
.btn-calculate,
.btn-large,
.btn-cta,
.btn-calc,
.btn-refresh {
    position: relative;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-premium.primary,
.btn-hero.primary,
.btn-premium {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--azure-blue) 100%);
    color: white !important;
}

.btn-premium:hover,
.btn-hero:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Stats v2 --- */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card-v2 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-radius: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card-v2:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stat-icon-v2 {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.stat-info-v2 h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin: 0;
    line-height: 1.2;
}

.stat-info-v2 p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* --- Section Headers v2 --- */
.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 30px;
}

.header-content-v2 h2 {
    font-size: 2.5rem;
    font-weight: 950;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: var(--navy-deep);
}

.header-content-v2 p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
}

/* --- Directory v2 --- */
.directory-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.company-card-v2 {
    background: color-mix(in srgb, var(--target-bg), white 92%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--target-bg), transparent 85%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.company-card-v2:hover {
    background: color-mix(in srgb, var(--target-bg), white 90%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: color-mix(in srgb, var(--target-bg), transparent 80%);
}

.company-logo-v2 {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.company-logo-v2 i {
    font-size: 2rem;
    transition: color 0.3s ease;
    color: var(--target-bg);
}

.company-card-v2:hover .company-logo-v2 i {
    color: var(--target-bg) !important;
}

.company-card-v2:hover .company-logo-v2 {
    transform: scale(1.1);
}

.company-meta-v2 h3 {
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--navy-deep);
    margin: 0 0 10px;
    transition: color 0.3s ease;
}

.company-card-v2:hover .company-meta-v2 h3 {
    color: var(--navy-deep) !important;
}

.badges-v2 {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-v2 {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.company-card-v2:hover .badge-v2 {
    background: rgba(0, 0, 0, 0.03);
    color: #475569 !important;
    border-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .directory-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header-v2 {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .directory-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* --- Pop-Shake Animation --- */
@keyframes pop-shake {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.05) rotate(5deg);
    }

    60% {
        transform: scale(1.05) rotate(-5deg);
    }

    80% {
        transform: scale(1.05) rotate(2deg);
    }

    100% {
        transform: scale(1.05) rotate(0);
    }
}

/* --- Colorful Icon System --- */
:root {
    --icon-shipping: linear-gradient(135deg, #3b82f6, #2563eb);
    --icon-finance: linear-gradient(135deg, #f59e0b, #d97706);
    --icon-road: linear-gradient(135deg, #ef4444, #dc2626);
    --icon-rail: linear-gradient(135deg, #10b981, #059669);
    --icon-air: linear-gradient(135deg, #0ea5e9, #0284c7);
    --icon-ports: linear-gradient(135deg, #6366f1, #4f46e5);
    --icon-docs: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --icon-default: linear-gradient(135deg, #64748b, #475569);
}

.tool-icon-v2,
.ind-icon-v2,
.stat-icon-v2,
.company-logo-v2 {
    background: transparent !important;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none !important;
    box-shadow: none !important;
}

.tool-card-v2,
.industry-card-v2,
.stat-card-v2,
.company-card-v2 {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Hover Effects for Cards - Full Inversion */
.tool-card-v2:hover,
.industry-card-v2:hover,
.stat-card-v2:hover,
.glass-panel:hover,
.tool-card:hover {
    background: var(--target-bg, var(--primary-color)) !important;
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tool-card-v2:hover h3,
.tool-card-v2:hover h4,
.tool-card-v2:hover h5,
.tool-card-v2:hover p,
.industry-card-v2:hover h3,
.industry-card-v2:hover h4,
.industry-card-v2:hover h5,
.industry-card-v2:hover p,
.stat-card-v2:hover h3,
.stat-card-v2:hover h4,
.stat-card-v2:hover h5,
.stat-card-v2:hover p,
.glass-panel:hover h3,
.glass-panel:hover h4,
.glass-panel:hover h5,
.glass-panel:hover p,
.tool-card:hover h3,
.tool-card:hover h4,
.tool-card:hover h5,
.tool-card:hover p,
.tool-card:hover .company-meta-v2 h3,
.tool-card:hover .badge,
.tool-card:hover .visit-link {
    color: white !important;
}

.tool-card-v2:hover .tool-icon-v2,
.industry-card-v2:hover .ind-icon-v2,
.stat-card-v2:hover .stat-icon-v2,
.glass-panel:hover .tool-icon,
.tool-card:hover .tool-icon,
.tool-card:hover div[style*="background"] {
    background: white !important;
    color: var(--brand-color, var(--primary-color)) !important;
    border-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pop-shake 0.6s ease forwards;
}

/* Explicitly keep Company Cards Clean */
.company-card-v2:hover .company-logo-v2 {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure icons inside text-gradient elements or specific colored icons reset */
.tool-card-v2:hover .tool-icon-v2 i,
.industry-card-v2:hover .ind-icon-v2 i,
.stat-card-v2:hover .stat-icon-v2 i,
.glass-panel:hover .tool-icon i,
.tool-card:hover .tool-icon i,
.tool-card:hover div i {
    background: transparent !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
}

.visit-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.visit-link:hover {
    gap: 12px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Specific Category Colors via nth-child for variety if data-cat missing */
.tools-grid-v2 a:nth-child(4n+1) .tool-icon-v2 {
    --target-bg: var(--icon-shipping);
    color: #2563eb;
}

.tools-grid-v2 a:nth-child(4n+2) .tool-icon-v2 {
    --target-bg: var(--icon-finance);
    color: #d97706;
}

.tools-grid-v2 a:nth-child(4n+3) .tool-icon-v2 {
    --target-bg: var(--icon-docs);
    color: #7c3aed;
}

.tools-grid-v2 a:nth-child(4n+4) .tool-icon-v2 {
    --target-bg: var(--icon-ports);
    color: #4f46e5;
}

.industry-grid-v2 a:nth-child(3n+1) .ind-icon-v2 {
    --target-bg: var(--icon-rail);
    color: #059669;
}

.industry-grid-v2 a:nth-child(3n+2) .ind-icon-v2 {
    --target-bg: var(--icon-road);
    color: #dc2626;
}

.industry-grid-v2 a:nth-child(3n+3) .ind-icon-v2 {
    --target-bg: var(--icon-air);
    color: #0284c7;
}

.stats-grid-v2 div:nth-child(1) .stat-icon-v2 {
    --target-bg: var(--icon-shipping);
    color: #2563eb;
}

.stats-grid-v2 div:nth-child(2) .stat-icon-v2 {
    --target-bg: var(--icon-ports);
    color: #4f46e5;
}

.stats-grid-v2 div:nth-child(3) .stat-icon-v2 {
    --target-bg: var(--icon-finance);
    color: #d97706;
}

.stats-grid-v2 div:nth-child(4) .stat-icon-v2 {
    --target-bg: var(--icon-docs);
    color: #7c3aed;
}

/* Apply Target BG on Hover */
.tool-card-v2:hover .tool-icon-v2,
.industry-card-v2:hover .ind-icon-v2,
.stat-card-v2:hover .stat-icon-v2 {
    background: var(--target-bg, var(--icon-default));
    color: white;
}

/* Industry Solutions v2 */
.industry-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.industry-card-v2 {
    background: var(--bg-soft);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.industry-card-v2:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.ind-icon-v2 {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.75rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.industry-card-v2 h3 {
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--navy-deep);
    margin: 0 0 10px;
}

.industry-card-v2 p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Tools Hub Preview v2 --- */
.tools-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card-v2 {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    align-items: center;
}

.tool-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-icon-v2 {
    width: 54px;
    height: 54px;
    background: var(--bg-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.tool-meta-v2 h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin: 0 0 6px;
}

.tool-meta-v2 p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .industry-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .industry-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .industry-grid-3x3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .industry-grid-3x3 {
        grid-template-columns: 1fr !important;
    }
}

/* --- Latest News v2 --- */
.news-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card-v2 {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.news-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.news-img-v2 {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card-v2:hover .news-img-v2 img {
    transform: scale(1.08);
}

.news-body-v2 {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-tag-v2 {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.news-body-v2 h3 {
    font-size: 1.25rem;
    font-weight: 850;
    color: var(--navy-deep);
    margin: 0 0 12px;
    line-height: 1.3;
}

.news-body-v2 p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Table v2 (Top 100) --- */
.table-container-v2 {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.table-v2 {
    width: 100%;
    border-collapse: collapse;
}

.table-v2 th {
    background: var(--bg-soft);
    padding: 20px 24px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-deep);
    border-bottom: 1px solid var(--border-color);
}

.table-v2 td {
    padding: 18px 24px;
    font-size: 0.95rem;
    color: var(--navy-deep);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.table-v2 tr:last-child td {
    border-bottom: none;
}

.table-v2 tr:hover {
    background: var(--bg-soft);
}

.rank-v2 {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.teu-v2 {
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 850;
}

@media (max-width: 1024px) {
    .news-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-v2 {
        grid-template-columns: 1fr;
    }

    .table-container-v2 {
        overflow-x: auto;
    }
}

.social-links-v2 {
    display: flex;
    gap: 15px;
}

.social-links-v2 a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-v2 a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.shimmer-text {
    background: linear-gradient(90deg, #fff, #94a3b8, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-anim 3s linear infinite;
}

@keyframes shimmer-anim {
    to {
        background-position: 200% center;
    }
}

/* Metrics Strip Styling */
.metrics-strip {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.metric-item {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    font-weight: 600;
}

footer {
    background: #0f172a;
    color: white;
    padding: 30px 0 10px;
    margin-top: 40px;
    text-align: left;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #a0aec0;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 256, 0.7);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: white;
    transform: translateY(-2px);
}

/* Article Sharing Section */
.article-share {
    margin: 40px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-share h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* News Grid & Badge Styles */
.news-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.news-badge.shipping {
    background: #3b82f620;
    color: #2563eb;
}

.news-badge.port {
    background: #10b98120;
    color: #059669;
}

.news-badge.trade {
    background: #f59e0b20;
    color: #d97706;
}

.news-card {
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

/* Homepage Premium News Section (Splash247 Style) */
.news-card-premium {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    /* Reset padding for grid alignment */
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    height: 100%;
}

.news-grid-premium,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-image-wrapper,
.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.news-image-wrapper img,
.news-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card-premium:hover .news-image-wrapper img {
    transform: scale(1.1);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 180px;
}

.news-meta-category {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.news-card-body h4 {
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-size: 1.05rem;
    font-weight: 700;
}

.news-card-body h3 {
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
}

.news-card-body h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card-body h3 a:hover {
    color: var(--primary-color);
}

.news-card-body p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .home-news-grid {
        grid-template-columns: 1fr !important;
    }
}

.news-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

.loading {
    text-align: center;
    padding: 100px 0;
    font-size: 1.2rem;
    color: #94a3b8;
}


footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
    margin-top: auto;
}

/* Pop-Shake Animation */
@keyframes pop-shake {
    0% {
        transform: translateY(-8px) scale(1);
    }

    25% {
        transform: translateY(-8px) scale(1.02) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) scale(1.02) rotate(1deg);
    }

    75% {
        transform: translateY(-8px) scale(1.02) rotate(-1deg);
    }

    100% {
        transform: translateY(-8px) scale(1.02) rotate(0);
    }
}

.pop-shake-hover:hover {
    animation: pop-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Dual Column Layout (Main + Right Sidebar) */
.news-portal-layout-dual {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .news-portal-layout-dual {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .news-portal-layout-dual {
        grid-template-columns: 1fr;
    }

    .news-right-sidebar {
        display: none;
    }
}

/* Category Sections in Grid */
.category-section-grouped {
    margin-bottom: 50px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 40px;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.category-section-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.view-all-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.view-all-link:hover {
    gap: 12px;
}

.news-grid-triple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .news-grid-triple {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid-triple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-triple {
        grid-template-columns: 1fr;
    }
}

/* Refresh Button Styling */
.refresh-btn {
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.fa-spin-once {
    animation: spinOnce 1s linear;
}

@keyframes spinOnce {
    100% {
        transform: rotate(360deg);
    }
}

/* Fixed Branding Overlay */
.branding-overlay {
    position: absolute;
    top: auto !important;
    bottom: 20px !important;
    left: auto !important;
    right: 20px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(5px);
    padding: 8px 15px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 100 !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    width: auto !important;
    height: auto !important;
    max-width: fit-content !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.branding-overlay img {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

/* Trending List Refined */

/* Intelligence Brief Article Styling */
.brief-container {
    max-width: 900px;
    margin: -100px auto 100px;
    position: relative;
    z-index: 10;
}

.brief-report {
    background: white;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-top: 8px solid var(--primary-color);
}

@media (max-width: 768px) {
    .brief-report {
        padding: 30px 20px;
    }
}

.brief-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.brief-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.brief-id {
    color: var(--primary-color);
}

.brief-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .brief-header h1 {
        font-size: 2rem;
    }
}

.brief-main-image {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

.brief-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brief-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 50px;
}

.brief-content p {
    margin-bottom: 25px;
}

.brief-footer {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brief-source-info {
    display: flex;
    flex-direction: column;
}

.source-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
}

.source-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.brief-sharing-modern {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Visible Social Sharing Icons */
.brief-share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.brief-share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 15px rgba(30, 64, 175, 0.2);
    border-color: var(--primary-color);
}

#copy-link-btn:hover {
    background: #0f172a;
    border-color: #0f172a;
}

/* Sidebar Categories Styling */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-color);
    background: #f8fafc;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.sidebar-categories a:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.sidebar-categories a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.2);
}

.cat-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.sidebar-categories a.active .cat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cat-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trending List (No Images) */
.trending-item-simple {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.trending-item-simple:last-child {
    border-bottom: none;
}

.trending-rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    min-width: 30px;
}

.trending-info h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.trending-info h4 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.trending-info h4 a:hover {
    color: var(--primary-color);
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Social Card & Sharing Enhancement */
.social-card-wrapper {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
}

@media (max-width: 1024px) {
    .social-card-wrapper {
        grid-template-columns: 1fr;
    }
}

.social-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.social-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.social-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branding-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.mini-logo {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.social-card-content {
    padding: 30px;
}

.social-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-tag {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
}

#article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-card-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #0f172a;
}

.social-card-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 25px;
}

.social-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.source-link {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.domain-tag {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-actions {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.share-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #0f172a;
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 10px;
}

.share-icons-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.share-btn-theme {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.share-btn-theme:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column ul a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
    fill: white;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* News Portal Styles */
.news-ticker-container {
    background: linear-gradient(90deg, #0f172a, #1e3a8a);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100%;
    /* Start from the far right */
    animation: scrollex 80s linear infinite;
    /* Slightly faster for energy */
    will-change: transform;
}

/* Reveal Animations */
/* Reveal Animations - CSS Keyframes (No JS Required for Hero) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-fade-up {
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Stagger delays handled via inline styles in HTML, but can be reinforced here if needed */
.hero h1.reveal-fade-up {
    animation-delay: 0.1s;
}

.hero p.reveal-fade-up {
    animation-delay: 0.3s;
}

.hero-btns.reveal-fade-up {
    animation-delay: 0.5s;
}

.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Grid Layout Refinements */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.premium-grid .glass-panel {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.premium-grid .tool-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 25px;
    background: #f8fafc;
    border-radius: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

@keyframes scrollex {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.news-ticker-item {
    margin-right: 50px;
    color: #ddd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.news-ticker-item:hover {
    color: var(--secondary-color);
}

.news-ticker-item span {
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.news-hero-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: white;
    height: 400px;
    background: #333;
    display: flex;
    align-items: flex-end;
}

.news-hero-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.news-hero-content {
    position: relative;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    width: 100%;
}

.news-hero-content .badge {
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.news-hero-content h2 {
    font-size: 2rem;
    margin: 10px 0;
}

.section-heading-news {
    border-bottom: 2px solid #222;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-heading-news h3 {
    margin: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #222;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card-row {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-card-row img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.article-info h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.article-info h4 a:hover {
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.8rem;
    color: #888;
}

.sidebar-widget {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.widget-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.trending-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.trending-list span {
    font-size: 1.5rem;
    color: #ddd;
    font-weight: bold;
    margin-right: 10px;
}

.trending-list a {
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

/* Services Page Styles */
.services-hero {
    background: #0d47a1;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.services-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    background: #f9a825;
    transform: translateY(-2px);
}

.feature-section {
    padding: 80px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.feature-image {
    flex: 1;
    background: #eee;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pricing-section {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.pricing-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: normal;
}

.pricing-features li {
    margin-bottom: 10px;
    color: #555;
}

.pricing-features li::before {
    content: "âœ“";
    color: #2ecc71;
    margin-right: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .feature-row {
        flex-direction: column !important;
        gap: 30px;
    }
}

/* Calculator Tool Styles */
.calculator-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-full {
    grid-column: 1 / -1;
}

.btn-calc {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    grid-column: 1 / -1;
    margin-top: 10px;
}

.btn-calc:hover {
    background: #002171;
}

.result-box {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.result-header h3 {
    margin: 0;
    color: #2c3e50;
}

.total-cost {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #555;
}

.cost-row.final {
    font-weight: bold;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: #7f8c8d;
    font-weight: 500;
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.contact-method {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {

    .contact-layout,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Stats Strip with Gradients */
.stats-strip {
    margin-top: -30px;
    /* Compact overlap */
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
}

.premium-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 10px 15px;
    /* Even smaller */
    border-radius: 8px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.gradient-box-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.gradient-box-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-box-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon {
    font-size: 1.8rem;
    /* Smaller icon */
    margin-bottom: 8px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    /* Smaller number */
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    /* Smaller label */
    font-weight: 600;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-slot {
    background: #f0f2f5;
    border: 1px dashed #ccc;
    color: #888;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot::before {
    content: "Advertisement";
    font-weight: bold;
}

/* HS Code Finder Styles */
.search-container {
    max-width: 900px;
    margin: 0 auto 40px;
}

.hs-search-bar {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}

.hs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hs-table th {
    background: var(--primary-color);
    color: white;
    text-align: left;
    padding: 15px;
}

.hs-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.hs-table tr:hover {
    background: #f8fbff;
}

.badge-duty {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.hs-category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hs-tab {
    padding: 8px 16px;
    background: #eee;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.hs-tab.active {
    background: var(--secondary-color);
    color: white;
}

/* Matrix News Layout */
.matrix-industry-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
    z-index: 100;
}

.matrix-industry-bar.mini {
    margin-bottom: 0;
    padding: 5px 10px;
}

.industry-filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.industry-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.chip.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.matrix-row {
    margin-bottom: 60px;
}

.matrix-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.matrix-row-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 800;
    position: relative;
}

.matrix-row-header h3::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

.matrix-more {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.matrix-more:hover {
    gap: 12px;
}

.region-detail-header {
    margin-bottom: 40px;
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #e2e8f0;
}

.no-intelligence {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
}

.no-intelligence i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Container Tracking Styles */
.tracking-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 50px 0;
    padding: 0 20px;
}

.tracking-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-dot {
    width: 34px;
    height: 34px;
    background: white;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 10px;
    transition: all 0.3s;
}

.step-item.completed .step-dot {
    background: #27ae60;
    border-color: #27ae60;
}

.step-item.active .step-dot {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #2c3e50;
}

.tracking-details-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-top: 40px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.in-transit {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.arrived {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.delayed {
    background: #fff3e0;
    color: #e65100;
}

.tracking-search-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.tracking-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.tracking-input:focus {
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .tracking-stepper {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        padding-left: 50px;
    }

    .tracking-stepper::before {
        width: 4px;
        height: 100%;
        top: 0;
        left: 25px;
        bottom: 0;
    }
}

/* News Portal Layout - WorldCargoNews Style */
.news-portal {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    margin-top: 40px;
}

@media (max-width: 1100px) {
    .news-portal {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.portal-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-divider {
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.section-divider h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

/* Hero Article */
.portal-hero-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.portal-hero-img {
    width: 100%;
    height: 480px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.portal-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portal-hero-card:hover img {
    transform: scale(1.02);
}

.portal-hero-text h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 900;
    margin: 15px 0;
    color: #1a1a1a;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .portal-hero-img {
        height: 250px;
    }

    .portal-hero-text h2 {
        font-size: 1.8rem;
    }
}

.portal-hero-text p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .portal-hero-text p {
        font-size: 1rem;
    }
}

/* Featured Strip */
.featured-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .featured-strip {
        grid-template-columns: 1fr;
    }
}

.featured-mini-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.featured-mini-img {
    width: 100%;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
}

.featured-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-mini-card h4 {
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 800;
    color: #1a1a1a;
}

/* News Grid Portal - High Density */
.news-grid-portal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Sidebar Styling */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: #fff;
    border-top: 3px solid var(--primary-color);
    padding: 20px 0;
}

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    cursor: pointer;
    align-items: flex-start;
}

.trending-num {
    font-size: 2rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
}

.trending-text h5 {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #334155;
}

.brief-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.brief-item h5 {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
    color: #334155;
}

.brief-item .news-meta {
    margin-top: 8px;
    font-size: 0.8rem;
}

.ad-placeholder {
    height: 300px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* News Filter & Refresh UI */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.news-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.news-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

/* Branded Article Tag */
.article-brand-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Global Page Hero (Standardized Style) */
/* Old Page Hero Removed - merged with .hero at top */

/* Global Premium Header (New Standard) */
.premium-header {
    background: #fff;
    padding: 40px 0 30px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.header-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-main-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-icon-box {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.header-title-group h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: none !important;
}

.header-title-group p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    opacity: 1 !important;
}

/* Header Breadcrumbs */
.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #94a3b8;
}

.header-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-breadcrumb a:hover {
    opacity: 0.7;
}

.header-breadcrumb i {
    font-size: 0.7rem;
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .header-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 25px;
    }

    .header-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-title-group h1 {
        font-size: 1.8rem;
    }
}

/* Deprecated Page Hero Styles */
.page-hero {
    display: none;
    /* Hide old hero sections as they are replaced */
}


.back-hub-container {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0 30px;
        min-height: 200px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }
}

/* Tool Icon - Small White Box */
.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    font-size: 28px;
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* End of specialized styles */
/* News Portal Enhanced Layout */
.news-portal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 0;
}

.news-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.news-breadcrumb a {
    color: white;
    text-decoration: none;
}

.news-portal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.news-submenu {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.news-submenu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.news-submenu a {
    display: block;
    padding: 15px 25px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.header-card-centered {
    background: #fff;
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title-gradient {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.hero-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-title-gradient {
        font-size: 2.2rem;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .news-portal-layout {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
}

.sidebar-box h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-subscribe {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.sidebar-subscribe input {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}

.sidebar-subscribe button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.sticky-sidebar {
    position: sticky;
    top: 80px;
}

.news-category-tag {
    display: none;
    /* Hidden per user request */
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.news-source {
    font-weight: 600;
    color: #1d4ed8;
}

/* Category Specific Tag Colors */
.news-category-tag.shipping {
    background: #3b82f6;
}

.news-category-tag.port {
    background: #10b981;
}

.news-category-tag.trade {
    background: #f59e0b;
}

.news-category-tag.latest {
    background: #6366f1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #3b82f6;
    text-decoration: none;
    margin-top: auto;
}

/* --- News Grid Triple Layout --- */
.news-grid-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 30px;
    margin-top: 25px;
}

@media (max-width: 1024px) {
    .news-grid-triple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid-triple {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.news-card-text-only {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Hover Effects */
.news-card-text-only:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Border Shades */
.news-border-red {
    border-left: 5px solid #ef4444;
}

.news-border-green {
    border-left: 5px solid #10b981;
}

.news-border-blue {
    border-left: 5px solid #3b82f6;
}

.news-border-red:hover {
    border-color: #ef4444;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
}

.news-border-green:hover {
    border-color: #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.news-border-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.news-card-text-only .news-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-text-only .news-summary {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.dual-color-heading {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #0f172a;
}

.dual-color-heading span {
    color: #0f172a;
    /* Default black */
}

/* Text Highlights */
.text-highlight-red {
    color: #ef4444 !important;
}

.text-highlight-green {
    color: #10b981 !important;
}

.text-highlight-blue {
    color: #3b82f6 !important;
}

.read-more-text {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-text.color-red {
    color: #ef4444;
}

.read-more-text.color-green {
    color: #10b981;
}

.read-more-text.color-blue {
    color: #3b82f6;
}

.read-more-text:hover {
    gap: 12px;
}

/* Hub Layout (Documents & Tools) */
.hub-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    margin-bottom: 60px;
}

.hub-sidebar {
    width: 280px;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 500;
}

/* Hide scrollbar for sidebar */
.hub-sidebar::-webkit-scrollbar {
    width: 4px;
}

.hub-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.hub-sidebar-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 15px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: auto !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 0 !important;
    max-height: none !important;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.sidebar-nav-item:hover {
    background: #f8fafc;
    color: var(--brand-indigo);
}

.sidebar-nav-item:hover i {
    color: var(--brand-indigo);
    transform: translateX(3px);
}

.sidebar-nav-item.active {
    background: var(--brand-indigo);
    color: #fff;
}

.sidebar-nav-item.active i {
    color: #fff;
}

.hub-main {
    flex-grow: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .hub-layout {
        flex-direction: column;
        gap: 20px;
    }

    .hub-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
        padding: 5px;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .sidebar-nav-item {
        white-space: nowrap;
        padding: 8px 15px;
    }
}

/* --- News Ticker Animation (Consistent Speed) --- */
.news-ticker-container {
    background: #0f172a;
    color: white;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 900;
}

.news-ticker-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: ticker-scrolling 60s linear infinite;
    /* Fixed slow speed */
    padding-left: 100%;
    /* Start from off-screen */
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-ticker-item span {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

@keyframes ticker-scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .news-ticker-content {
        animation-duration: 40s;
        /* Faster on mobile due to less width? Or keep same? Consistent is better. */
    }
}

/* --- FIX: Disable Hover Effects on Result Cards --- */
/* The tool-card class is used for layout in results, but we don't want the interactive hover effects there */
#resultsArea.tool-card:hover,
#resultBox.tool-card:hover {
    background: var(--bg-soft, #f8fafc) !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border-color) !important;
    cursor: default;
}

#resultsArea.tool-card:hover h3,
#resultsArea.tool-card:hover p,
#resultsArea.tool-card:hover div,
#resultBox.tool-card:hover h3,
#resultBox.tool-card:hover p,
#resultBox.tool-card:hover div {
    color: inherit !important;
}

/* Ensure primary result text keeps its specific color */
#resultsArea.tool-card:hover #primaryResult,
#resultBox.tool-card:hover #primaryResult {
    color: var(--brand-sapphire, #0284c7) !important;
    /* Default fallback */
}