html {
    /* zoom: 80%; - Removed for responsiveness */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00A651;
    /* Green color */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006A4D;
    /* Darker green on hover */
}

:root {
    --primary-color: #006A4D;
    --primary-dark: #004d38;
    --accent-color: #00A651;
    --accent-light: #00c765;
    --primary-green: #00A651;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-solid: #ffffff;
    --text-color: #1e293b;
    --text-light: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
    --glow-primary: rgba(0, 166, 81, 0.2);
    --glow-accent: rgba(0, 199, 101, 0.1);
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    /* zoom: 120%; - Removed for responsiveness */
}

/* Keep bold type for real titles. General copy, labels, links, buttons and inline
   emphasis stay lighter across the site, including old inline font-weight styles. */
body :where(p, li, small, span, a, button, label, input, textarea, select, option, code, strong, b, td, th, dt, dd) {
    font-weight: 400 !important;
}

body :where(button, label, th, code) {
    font-weight: 500 !important;
}

body :where(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *) {
    font-weight: 800 !important;
}

/* Professional Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(at 0% 0%, rgba(0, 106, 77, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(0, 166, 81, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 199, 101, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0, 166, 81, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 50%, rgba(0, 106, 77, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 199, 101, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(0, 166, 81, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 106, 77, 0.05) 0px, transparent 50%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: meshGradient 20s ease infinite alternate;
}

@keyframes meshGradient {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-2%, 2%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Navigation Bar - Light Theme */
/* Floating Premium Navbar */
.nav-bar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1600px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.03),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-bar.nav-hidden {
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.nav-bar:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ... existing logo styles ... */

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
    gap: 10px;
}

.premium-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(0, 106, 77, 0.18) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    color: #006a4d !important;
    box-shadow: 0 8px 22px rgba(0, 106, 77, 0.12);
}

.premium-nav-btn:hover {
    background: linear-gradient(135deg, #006a4d 0%, #00a651 100%) !important;
    color: #ffffff !important;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links a.dropbtn {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.dropdown:hover .dropbtn {
    background: rgba(0, 106, 77, 0.05);
    color: var(--primary-color) !important;
    box-shadow: none;
    transform: translateY(-2px);
}

.nav-links a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 4px;
}

.nav-links a:hover::after {
    width: 20px;
}

/* Mega Dropdown Menu */
.dropdown {
    position: static;
    /* Required for full-width mega menu */
}

.dropdown-content {
    display: none;
}

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

.dropdown-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    top: 100%;
    background-color: #ffffff;
    width: 95vw;
    max-width: 1200px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 30px;
    z-index: 1001;
    overflow: hidden;
    margin-top: 10px;
    animation: fadeInMega 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

@keyframes fadeInMega {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* Dropdown Link Styles */

.dropdown-content a {
    color: #475569 !important;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 2px 0;
}

.dropdown-content a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.dropdown-content a:hover {
    background-color: #f0fdf4 !important;
    color: var(--primary-color) !important;
    padding-left: 20px;
}

.dropdown-header {
    padding: 0 15px 10px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 10px;
}

.dropdown-header:first-child {
    margin-top: 0;
}

.data-services-menu .dropdown-content {
    width: min(98vw, 1480px);
    max-width: calc(100vw - 20px);
    padding: 20px;
}

.data-services-grid {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    gap: 14px;
}

.data-service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid #dbe7e2;
    border-radius: 12px;
    min-width: 0;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.055);
}

.data-service-card .dropdown-header {
    padding: 0 4px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #d9ebe5;
    color: #006a4d;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1.2;
}

.nav-menu-intro {
    margin: 0 4px 12px;
    padding-left: 12px;
    border-left: 3px solid rgba(0, 166, 81, 0.24);
    color: #31554a;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.data-service-card a {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    color: #475569 !important;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.18;
}

.data-service-card a span {
    font: inherit;
    color: inherit;
}

.data-service-card a:hover {
    border-color: rgba(20, 184, 166, 0.22);
    background: #ecfdf5 !important;
}

.data-service-card a i {
    color: #007a5a;
    background: #eef8f4;
    border: 1px solid #d8eee6;
    border-radius: 8px;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
}

.data-service-card a.restricted-link:not(.react-market-link)::after {
    content: "\f521  Premium";
    font-family: "Font Awesome 6 Free", Inter, system-ui, sans-serif;
    margin-left: auto;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #a16207;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.custom-data-card .featured-data-link {
    color: #475569 !important;
    font-size: 0.88rem;
    font-weight: 750;
    border-color: transparent;
}

.custom-data-card .featured-data-link i {
    color: #007a5a;
}

.nav-links .data-services-menu > .data-services-trigger {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #475569 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-links .data-services-menu.active > .data-services-trigger,
.nav-links .data-services-menu > .data-services-trigger:hover {
    background: rgba(0, 106, 77, 0.06) !important;
    color: #006a4d !important;
    transform: translateY(-1px);
}

.indatexo-services-menu .dropdown-content {
    max-width: 760px;
    padding: 22px;
}

.indatexo-services-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
}

.indatexo-services-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

/* ==================================== */
/* HAMBURGER MENU & MOBILE RESPONSIVE  */
/* ==================================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    z-index: 1002;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Responsive - 900px breakpoint */
@media (max-width: 900px) {

    /* Reset zoom for mobile to fix positioning issues */
    html,
    body {
        zoom: 1 !important;
        /* Prevent horizontal scroll */
        overflow-x: hidden;
        width: 100%;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-bar {
        width: calc(100% - 30px);
        padding: 12px 20px;
        top: 15px;
        border-radius: 20px;
        flex-wrap: wrap;
        max-height: 90vh;
        overflow-y: auto;
    }

    .nav-bar:hover {
        transform: translateX(-50%) translateY(0);
    }

    .nav-left {
        flex: 1;
        justify-content: space-between;
    }

    .nav-left img {
        height: 38px !important;
    }

    .nav-center {
        display: none;
        width: 100%;
        order: 3;
        padding-top: 20px;
        border-top: 1px solid #e2e8f0;
        margin-top: 15px;
    }

    .nav-center.mobile-open {
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-right {
        display: none;
        width: 100%;
        order: 4;
        justify-content: center;
        padding-top: 15px;
        gap: 10px;
    }

    .nav-right.mobile-open {
        display: flex;
        flex-direction: column;
    }

    .nav-right .nav-btn {
        width: min(100%, 260px);
    }

    .nav-links {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .nav-links a.dropbtn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 18px;
        border-radius: 12px;
        background: #f8fafc;
        font-size: 0.95rem;
    }

    .nav-links a.dropbtn:hover {
        background: #e8f5e9;
    }

    /* Dropdown in mobile */
    .dropdown {
        width: 100%;
        display: block !important;
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-links>a,
    .nav-links>.dropdown>.dropbtn {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #1e293b !important;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid #e2e8f0;
        animation: none;
        max-height: 400px;
        overflow-y: auto;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mega-menu-column {
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
    }

    .mega-menu-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .dropdown-content a {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .dropdown-header {
        font-size: 0.8rem;
        padding: 0 10px 8px;
    }

    .data-services-menu .dropdown-content {
        padding: 12px !important;
    }

    .data-services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .data-service-card {
        padding: 12px;
        border-radius: 12px;
        box-shadow: none;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Tablet - 600px to 900px */
@media (min-width: 601px) and (max-width: 900px) {
    .nav-bar {
        padding: 14px 25px;
    }

    .nav-left img {
        height: 40px !important;
    }

    .dropdown-content {
        max-height: 500px;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile - 480px to 600px */
@media (min-width: 481px) and (max-width: 600px) {
    .nav-bar {
        width: calc(100% - 25px);
        padding: 11px 18px;
    }

    .nav-left img {
        height: 36px !important;
    }
}

/* Extra small screens - below 480px */
@media (max-width: 480px) {
    .nav-bar {
        width: calc(100% - 20px);
        top: 10px;
        padding: 10px 15px;
    }

    .nav-left img {
        height: 32px !important;
    }

    .hamburger-menu {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .hamburger-menu span {
        width: 22px;
        pointer-events: none;
    }

    .nav-links a.dropbtn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .dropdown-header {
        font-size: 0.75rem;
        padding: 0 8px 6px;
    }

    .dropdown-content {
        padding: 12px;
        max-height: 350px;
    }

    .dropdown-content a {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .dropdown-content a i {
        font-size: 0.9rem;
    }
}

/* Main Container - Ultra Wide */
.container,
.page-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 160px 40px 60px;
    /* Sufficient top padding to clear fixed navbar */
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Container Responsive Adjustments */
@media (max-width: 900px) {

    .container,
    .page-wrapper {
        padding: 120px 25px 50px;
    }
}

@media (max-width: 600px) {

    .container,
    .page-wrapper {
        padding: 100px 20px 40px;
    }
}

@media (max-width: 480px) {

    .container,
    .page-wrapper {
        padding: 90px 15px 35px;
    }
}

/* Global Button Centering Utility */
.search-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.page-header h1,
.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-green) !important;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p,
.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Hero */
.hero-slide-1 {
    background-image: url('/static/images/home-hero-light-1.png?v=1');
    --hero-title-gradient: linear-gradient(135deg, #063b2c 0%, #00875f 58%, #16a34a 100%);
    --hero-badge-accent: #00a651;
}

.hero-slide-2 {
    background-image: url('/static/images/home-hero-light-2.png?v=1');
    --hero-title-gradient: linear-gradient(135deg, #0f3d52 0%, #087f8c 55%, #00a651 100%);
    --hero-badge-accent: #0ea5a4;
}

.hero-slide-3 {
    background-image: url('/static/images/home-hero-light-3.png?v=1');
    --hero-title-gradient: linear-gradient(135deg, #123a2f 0%, #0f766e 48%, #d4a02f 100%);
    --hero-badge-accent: #d4a02f;
}

.hero-slide-4 {
    background-image: url('/static/images/home-hero-light-2.png?v=1');
    --hero-title-gradient: linear-gradient(135deg, #17365d 0%, #007a5a 52%, #14b8a6 100%);
    --hero-badge-accent: #14b8a6;
}

.hero-slide-5 {
    background-image: url('/static/images/home-hero-light-1.png?v=1');
    --hero-title-gradient: linear-gradient(135deg, #1f3763 0%, #006a4d 50%, #7c3aed 100%);
    --hero-badge-accent: #7c3aed;
}

.hero-slider {
    width: 100%;
    height: 740px;
    min-height: 740px;
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: 0 24px 58px rgba(0, 106, 77, 0.14);
    position: relative;
    background: #f1fbf6;
    animation: fadeInUp 0.8s ease-out;
}

.hero-slider,
.hero-slider * {
    box-sizing: border-box;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100% !important;
    padding: 0;
    min-width: 0;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0.48) 70%, rgba(255, 255, 255, 0.18) 100%),
        linear-gradient(180deg, rgba(239, 250, 245, 0.46) 0%, rgba(239, 250, 245, 0.78) 100%);
    z-index: 1;
}

.hero-content {
    text-align: left;
    color: #0f3024;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    padding: 58px 62px 52px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-width: 0;
    overflow: visible;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    max-width: min(100%, 440px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.9));
    color: #005c43;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 166, 81, 0.18);
    box-shadow: 0 12px 26px rgba(0, 106, 77, 0.08);
    animation: fadeInDown 0.6s ease-out both 0.3s;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hero-badge i {
    color: var(--hero-badge-accent, #00a651);
}

.hero-content h1 {
    font-size: clamp(3.1rem, 4.5vw, 4.35rem);
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.06;
    letter-spacing: 0;
    color: #063b2c;
    background: var(--hero-title-gradient, linear-gradient(135deg, #063b2c, #00a651));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 28px rgba(0, 106, 77, 0.1);
    animation: fadeInUp 0.6s ease-out both 0.5s;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 650px;
    overflow: visible;
}

.hero-content p {
    font-size: 1.08rem;
    color: #123f37;
    opacity: 1;
    margin: 0 0 16px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: none;
    animation: fadeInUp 0.6s ease-out both 0.7s;
    max-width: 575px;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-value-promise {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    max-width: 575px;
    margin: 0 0 20px;
    padding: 10px 13px 10px 10px;
    border: 1px solid rgba(0, 106, 77, 0.16);
    border-left: 4px solid var(--hero-badge-accent, #00a651);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.92));
    color: #0f3d32;
    font-size: 0.92rem;
    line-height: 1.38;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(0, 106, 77, 0.1);
    animation: fadeInUp 0.6s ease-out both 0.74s;
}

.hero-value-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #006a4d 0%, var(--hero-badge-accent, #00a651) 100%);
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(0, 106, 77, 0.2);
}

.hero-value-mark i {
    color: #d1fae5;
    font-size: 0.82rem;
}

.hero-service-brief {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 575px;
    margin: 0 0 22px;
    animation: fadeInUp 0.6s ease-out both 0.78s;
}

.hero-service-brief span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 249, 0.86));
    border: 1px solid rgba(0, 106, 77, 0.16);
    color: #12483b;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
    backdrop-filter: blur(10px);
}

.hero-service-brief i {
    color: #00875f;
    font-size: 0.78rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
    animation: fadeInUp 0.6s ease-out both 0.82s;
    min-height: 48px;
    max-height: none;
    overflow: visible;
}

.hero-action-primary,
.hero-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    max-width: 100%;
    min-width: 0;
    line-height: 1.18;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

.hero-action-primary span,
.hero-action-secondary span {
    min-width: 0;
}

.hero-action-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #006a4d 0%, #00875f 55%, #00a651 100%);
    box-shadow: 0 18px 34px rgba(0, 106, 77, 0.24);
}

.hero-action-secondary {
    color: #005c43;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 106, 77, 0.16);
}

.hero-action-primary:hover,
.hero-action-secondary:hover {
    transform: translateY(-2px);
}

.hero-action-primary:hover {
    box-shadow: 0 22px 42px rgba(0, 106, 77, 0.3);
}

.hero-action-secondary:hover {
    background: rgba(238, 250, 244, 0.98);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    animation: fadeInUp 0.6s ease-out both 0.95s;
    min-height: 58px;
}

.hero-stat-item {
    min-width: 0;
    padding-left: 16px;
    border-left: 2px solid rgba(0, 166, 81, 0.32);
}

.hero-stat-num {
    display: block;
    font-size: 1.55rem;
    line-height: 1.05;
    font-weight: 900;
    color: #00a651;
    overflow-wrap: anywhere;
}

.hero-stat-label {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #4d7066;
    line-height: 1.25;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-intel-board {
    position: absolute;
    z-index: 2;
    right: 54px;
    top: 76px;
    width: 335px;
    color: #0f3024;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(0, 106, 77, 0.14);
    box-shadow: 0 24px 54px rgba(0, 106, 77, 0.16);
    backdrop-filter: blur(16px);
    animation: fadeInUp 0.7s ease-out both 0.9s;
    max-height: calc(100% - 132px);
    overflow: hidden;
}

.hero-intel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #006a4d;
    min-width: 0;
}

.hero-intel-title > span:first-child {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
}

.hero-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f7c65f;
    box-shadow: 0 0 0 7px rgba(247, 198, 95, 0.15);
}

.hero-intel-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 106, 77, 0.1);
}

.hero-intel-label {
    color: #587469;
    font-size: 0.86rem;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hero-intel-value {
    color: #063b2c;
    font-weight: 900;
    font-size: 1rem;
    max-width: 130px;
    text-align: right;
    overflow-wrap: anywhere;
}

.hero-intel-meter {
    grid-column: 1 / -1;
    height: 7px;
    border-radius: 999px;
    background: #e2f0e9;
    overflow: hidden;
}

.hero-intel-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8ff0b4, #f7c65f);
}

.hero-intel-note {
    margin-top: 14px;
    color: #587469;
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.lang-ar .hero-content {
    text-align: right;
}

body.lang-ar .hero-badge,
body.lang-ar .hero-actions,
body.lang-ar .hero-stats,
body.lang-ar .hero-value-promise,
body.lang-ar .hero-intel-board {
    direction: rtl;
}

body.lang-ar .hero-intel-value {
    text-align: left;
}

/* Swiper Controls Customization */
.swiper-pagination-bullet {
    background: #006a4d;
    opacity: 0.28;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #00a651;
    width: 30px;
    border-radius: 10px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    background: rgba(0, 106, 77, 0.78);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.48);
    top: auto !important;
    bottom: 28px !important;
    left: auto !important;
    right: 32px !important;
    margin-top: 0 !important;
}

.hero-slider .swiper-button-prev {
    right: 88px !important;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 900;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 166, 81, 0.4);
}

/* Fix for blue arrows sometimes appearing */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    --swiper-navigation-color: white !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .hero-content {
        max-width: 760px;
    }

    .hero-intel-board {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 640px;
        min-height: 640px;
        border-radius: 20px;
    }

    .hero-slider .swiper-slide::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(238, 250, 244, 0.96) 100%);
    }

    .hero-content {
        max-width: none;
        padding: 36px 24px 40px;
        justify-content: center;
    }

    .hero-badge {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2.15rem, 9vw, 2.8rem);
        line-height: 1.08;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 0.98rem;
        line-height: 1.52;
        margin-bottom: 14px;
        -webkit-line-clamp: 4;
    }

    .hero-value-promise {
        align-items: flex-start;
        max-width: 100%;
        margin-bottom: 16px;
        padding: 9px 10px;
        font-size: 0.82rem;
        line-height: 1.32;
    }

    .hero-value-mark {
        min-height: 30px;
        padding: 0 8px;
        font-size: 0.86rem;
    }

    .hero-service-brief {
        gap: 7px;
        margin: 0 0 18px;
        max-height: 84px;
        overflow: hidden;
    }

    .hero-service-brief span {
        min-height: 32px;
        padding: 6px 9px;
        font-size: 0.72rem;
    }

    .hero-stats {
        display: none;
    }

    .hero-intel-board {
        display: none;
    }

    .hero-action-primary,
    .hero-action-secondary {
        width: 100%;
        padding: 0 16px;
    }

    .hero-action-secondary {
        color: #006a4d;
        background: rgba(255, 255, 255, 0.84);
    }

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: flex !important;
        width: 42px !important;
        height: 42px !important;
        bottom: 18px !important;
        right: 18px !important;
        z-index: 5;
    }

    .hero-slider .swiper-button-prev {
        right: 70px !important;
    }
}

/* Full-screen loading used by Custom Analyses AI actions */
.indatex-ai-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100000;
    animation: indatexAiFadeInOverlay 0.3s ease-out;
}

.indatex-ai-loading-overlay.visible {
    display: flex;
}

.indatex-ai-loading-content {
    width: min(90%, 500px);
    padding: 50px 60px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(0, 106, 77, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 106, 77, 0.15);
    animation: indatexAiSlideUpCard 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.indatex-ai-loading-spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    border: 5px solid #f0fdf4;
    border-top-color: #00A651;
    border-radius: 50%;
    animation: indatexAiSpin 1s linear infinite;
}

@keyframes indatexAiFadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes indatexAiSlideUpCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes indatexAiSpin {
    to {
        transform: rotate(360deg);
    }
}

.indatex-ai-loading-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 6px 16px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.indatex-ai-loading-title {
    margin-bottom: 15px;
    color: #006A4D;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0;
}

.indatex-ai-loading-subtitle {
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 500;
}

.indatex-ai-loading-hint {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

body.lang-ar .indatex-ai-loading-content {
    direction: rtl;
}

body.indatex-ai-loading-active {
    overflow: hidden;
}

@media (max-width: 768px) {
    .indatex-ai-loading-content {
        width: 90%;
        max-width: 90%;
        padding: 30px 25px;
    }

    .indatex-ai-loading-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
        border-width: 4px;
    }

    .indatex-ai-loading-badge {
        margin-bottom: 12px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .indatex-ai-loading-title {
        margin-bottom: 12px;
        font-size: 1.3rem;
    }

    .indatex-ai-loading-subtitle {
        margin-bottom: 6px;
        font-size: 0.95rem;
    }

    .indatex-ai-loading-hint {
        font-size: 0.85rem;
    }
}

.home-legacy-hero[hidden] {
    display: none !important;
}

.home-command-hero {
    position: relative;
    isolation: isolate;
    min-height: 720px;
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 106, 77, 0.14);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 250, 245, 0.92) 46%, rgba(226, 246, 247, 0.78) 100%),
        url('/static/images/home-hero-light-3.png?v=1') center / cover;
    box-shadow: 0 24px 58px rgba(0, 106, 77, 0.14);
    animation: fadeInUp 0.8s ease-out;
}

.home-command-hero,
.home-command-hero * {
    box-sizing: border-box;
}

.home-command-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 106, 77, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 106, 77, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.95));
    animation: homeCommandGridDrift 18s linear infinite;
}

.home-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 34px;
    align-items: center;
    min-height: 650px;
    padding: 58px 56px 72px;
}

.home-command-copy {
    min-width: 0;
    color: #0f3024;
}

.home-command-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 9px 13px;
    border: 1px solid rgba(0, 106, 77, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #005c43;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    box-shadow: 0 12px 26px rgba(0, 106, 77, 0.08);
}

.home-command-live-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #f4b942;
    box-shadow: 0 0 0 7px rgba(244, 185, 66, 0.18);
    animation: homeCommandPulse 1.7s ease-in-out infinite;
}

.home-command-copy h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: #063b2c;
    font-size: clamp(3.1rem, 4.8vw, 5rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.home-command-copy p {
    max-width: 650px;
    margin: 0 0 26px;
    color: #163f38;
    font-size: 1.05rem;
    font-weight: 550;
    line-height: 1.65;
}

.home-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.home-command-primary,
.home-command-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    max-width: 100%;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.home-command-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #006a4d 0%, #00875f 55%, #00a651 100%);
    box-shadow: 0 18px 34px rgba(0, 106, 77, 0.24);
}

.home-command-secondary {
    color: #005c43;
    border: 1px solid rgba(0, 106, 77, 0.17);
    background: rgba(255, 255, 255, 0.88);
}

.home-command-primary:hover,
.home-command-secondary:hover {
    transform: translateY(-2px);
}

.home-command-primary:hover {
    box-shadow: 0 22px 42px rgba(0, 106, 77, 0.3);
}

.home-command-secondary:hover {
    background: rgba(238, 250, 244, 0.98);
}

.home-command-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
}

.home-command-proof div {
    min-width: 0;
    min-height: 105px;
    padding: 16px;
    border: 1px solid rgba(0, 106, 77, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.06);
}

.home-command-proof strong {
    display: block;
    color: #007a5a;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    font-weight: 950;
    line-height: 1;
}

.home-command-proof span {
    display: block;
    margin-top: 8px;
    color: #506c64;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-command-visual {
    position: relative;
    min-height: 520px;
}

.home-command-terminal,
.home-command-panel,
.home-command-source-row {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(0, 106, 77, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 54px rgba(0, 106, 77, 0.16);
    backdrop-filter: blur(16px);
}

.home-command-terminal {
    top: 12px;
    left: 0;
    width: min(360px, 58%);
    overflow: hidden;
}

.home-command-terminal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    color: #006a4d;
    font-size: 0.82rem;
    font-weight: 900;
    border-bottom: 1px solid rgba(0, 106, 77, 0.1);
}

.home-command-terminal-head span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
}

.home-command-terminal-head strong {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #007a5a;
    font-size: 0.7rem;
}

.home-command-feed {
    display: grid;
    gap: 9px;
    padding: 15px;
}

.home-command-feed span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.8));
    color: #2f574c;
    font-size: 0.82rem;
    font-weight: 800;
    animation: homeCommandFeed 5.4s ease-in-out infinite;
}

.home-command-feed span:nth-child(2) {
    animation-delay: 0.35s;
}

.home-command-feed span:nth-child(3) {
    animation-delay: 0.7s;
}

.home-command-feed span:nth-child(4) {
    animation-delay: 1.05s;
}

.home-command-feed b {
    color: #006a4d;
}

.home-command-map {
    position: absolute;
    inset: 54px 20px 70px 88px;
    border-radius: 8px;
    border: 1px solid rgba(0, 106, 77, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(236, 253, 245, 0.62)),
        repeating-linear-gradient(90deg, rgba(0, 106, 77, 0.06) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(0deg, rgba(49, 95, 143, 0.07) 0 1px, transparent 1px 48px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.home-command-map::before {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(49, 95, 143, 0.18);
    border-radius: 50%;
    animation: homeCommandRotate 16s linear infinite;
}

.home-command-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.2) 42%, rgba(244, 185, 66, 0.14) 50%, transparent 58%);
    transform: translateX(-90%);
    animation: homeCommandScan 4.2s ease-in-out infinite;
}

.home-command-node {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #006a4d;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(0, 106, 77, 0.24);
    animation: homeCommandPulse 2.2s ease-in-out infinite;
}

.node-ma {
    left: 18%;
    top: 54%;
}

.node-fr {
    left: 45%;
    top: 28%;
    background: #315f8f;
    animation-delay: 0.25s;
}

.node-es {
    right: 21%;
    top: 50%;
    background: #0ea5a4;
    animation-delay: 0.5s;
}

.node-us {
    right: 11%;
    bottom: 16%;
    background: #d4a02f;
    animation-delay: 0.75s;
}

.home-command-route {
    position: absolute;
    z-index: 1;
    height: 2px;
    transform-origin: left center;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 106, 77, 0), #00a651, #f4b942, rgba(244, 185, 66, 0));
    animation: homeCommandRoute 2.8s ease-in-out infinite;
}

.route-one {
    left: 26%;
    top: 58%;
    width: 34%;
    transform: rotate(-27deg);
}

.route-two {
    left: 52%;
    top: 39%;
    width: 29%;
    transform: rotate(24deg);
    animation-delay: 0.45s;
}

.route-three {
    left: 64%;
    top: 60%;
    width: 22%;
    transform: rotate(41deg);
    animation-delay: 0.9s;
}

.home-command-orbit {
    position: absolute;
    border: 1px dashed rgba(0, 106, 77, 0.22);
    border-radius: 50%;
}

.orbit-one {
    inset: 18% 24%;
    animation: homeCommandRotate 22s linear infinite;
}

.orbit-two {
    inset: 30% 13% 20% 34%;
    border-color: rgba(49, 95, 143, 0.22);
    animation: homeCommandRotate 18s linear infinite reverse;
}

.home-command-panel {
    right: 0;
    bottom: 14px;
    width: min(390px, 58%);
    padding: 18px;
}

.home-command-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-command-panel-top span {
    color: #587469;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-command-panel-top strong {
    color: #063b2c;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1;
}

.home-command-bars {
    display: grid;
    gap: 12px;
}

.home-command-bars span {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    color: #34594f;
    font-size: 0.78rem;
    font-weight: 850;
}

.home-command-bars i {
    position: relative;
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2f0e9;
}

.home-command-bars i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar);
    border-radius: inherit;
    background: linear-gradient(90deg, #00a651, #38bdf8, #f4b942);
    transform-origin: left center;
    animation: homeCommandBar 2.6s ease-in-out infinite;
}

.home-command-verdict {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    padding: 11px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.35;
}

.home-command-verdict i {
    margin-top: 2px;
    color: #00a651;
}

.home-command-source-row {
    left: 28px;
    right: 44px;
    bottom: 118px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
}

.home-command-source-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.9);
    color: #006a4d;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.1;
}

.home-command-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    overflow: hidden;
    border-top: 1px solid rgba(0, 106, 77, 0.12);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.home-command-ticker-track {
    display: flex;
    width: max-content;
    animation: homeCommandTicker 32s linear infinite;
}

.home-command-ticker span {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 24px;
    color: #315f8f;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-command-ticker span::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 11px;
    border-radius: 50%;
    background: #00a651;
}

body.lang-ar .home-command-copy,
body.lang-ar .home-command-visual {
    direction: rtl;
}

body.lang-ar .home-command-copy {
    text-align: right;
}

@keyframes homeCommandPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.76;
    }
}

@keyframes homeCommandGridDrift {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 112px 56px, 56px 112px;
    }
}

@keyframes homeCommandFeed {
    0%,
    100% {
        transform: translateX(0);
        opacity: 0.76;
    }

    45%,
    60% {
        transform: translateX(7px);
        opacity: 1;
    }
}

@keyframes homeCommandRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes homeCommandScan {
    0%,
    36% {
        transform: translateX(-90%);
    }

    72%,
    100% {
        transform: translateX(90%);
    }
}

@keyframes homeCommandRoute {
    0%,
    100% {
        opacity: 0.35;
        filter: saturate(0.85);
    }

    50% {
        opacity: 1;
        filter: saturate(1.2);
    }
}

@keyframes homeCommandBar {
    0%,
    100% {
        transform: scaleX(0.88);
    }

    50% {
        transform: scaleX(1);
    }
}

@keyframes homeCommandTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1180px) {
    .home-command-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 38px 72px;
    }

    .home-command-copy h1,
    .home-command-copy p,
    .home-command-proof {
        max-width: none;
    }

    .home-command-visual {
        min-height: 500px;
    }

    .home-command-terminal {
        width: min(360px, 54%);
    }

    .home-command-panel {
        width: min(390px, 54%);
    }
}

@media (max-width: 768px) {
    .home-command-hero {
        min-height: 0;
        border-radius: 14px;
    }

    .home-command-grid {
        min-height: 0;
        padding: 36px 22px 72px;
    }

    .home-command-copy h1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.07;
    }

    .home-command-copy p {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .home-command-actions {
        gap: 10px;
    }

    .home-command-primary,
    .home-command-secondary {
        width: 100%;
        min-height: 46px;
    }

    .home-command-proof {
        grid-template-columns: 1fr;
    }

    .home-command-proof div {
        min-height: 82px;
    }

    .home-command-visual {
        min-height: 560px;
    }

    .home-command-terminal,
    .home-command-panel,
    .home-command-source-row {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        margin-bottom: 12px;
    }

    .home-command-map {
        position: relative;
        inset: auto;
        min-height: 260px;
        margin-bottom: 12px;
    }

    .home-command-source-row {
        margin-bottom: 0;
    }
}

@media (max-width: 420px) {
    .home-command-grid {
        padding: 30px 16px 72px;
    }

    .home-command-kicker {
        font-size: 0.7rem;
    }

    .home-command-copy h1 {
        font-size: 2rem;
    }

    .home-command-source-row span {
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-command-hero,
    .home-command-bg,
    .home-command-live-dot,
    .home-command-feed span,
    .home-command-map::before,
    .home-command-map::after,
    .home-command-node,
    .home-command-route,
    .home-command-orbit,
    .home-command-bars i::after,
    .home-command-ticker-track {
        animation: none !important;
    }
}

/* Visual-first homepage hero */
.home-command-hero {
    min-height: 560px;
    background: #eef8f6;
    contain: layout paint;
}

.home-command-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.04) contrast(1.02);
    transform: none;
    backface-visibility: hidden;
}

.home-command-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 34%, rgba(255, 255, 255, 0.15) 64%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 106, 77, 0.14) 100%);
}

.home-command-shine {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, rgba(255, 255, 255, 0.08) 52%, transparent 64%);
    transform: translateX(-120%);
    animation: homeHeroImageSweep 6s ease-in-out infinite;
    pointer-events: none;
}

.home-command-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
    min-height: 560px;
    padding: 42px 52px 62px;
}

.home-command-copy {
    align-self: center;
    padding: 0;
}

.home-command-copy h1 {
    max-width: 490px;
    margin-bottom: 20px;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: clamp(2.35rem, 3.9vw, 3.85rem);
    font-weight: 900;
    line-height: 1.05;
    color: #063b2c;
}

.home-command-copy p,
.home-command-actions,
.home-command-terminal,
.home-command-panel,
.home-command-source-row,
.home-command-map,
.home-command-ticker {
    display: none !important;
}

.home-command-proof {
    max-width: 430px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.home-command-proof div {
    min-height: 78px;
    padding: 13px 12px;
    background: rgba(255, 255, 255, 0.76);
}

.home-command-proof strong {
    color: #006a4d;
    font-size: 1.7rem;
}

.home-command-proof span {
    margin-top: 6px;
    font-size: 0.72rem;
}

.home-command-primary {
    width: fit-content;
    min-width: 172px;
    border-radius: 8px;
}

.home-command-visual {
    min-height: 430px;
}

.home-command-pulse {
    position: absolute;
    display: block;
    border: 2px solid rgba(244, 185, 66, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(244, 185, 66, 0.32);
    animation: homeHeroPulseRing 2.8s ease-out infinite;
}

.pulse-one {
    right: 16%;
    top: 48%;
    width: 92px;
    height: 92px;
}

.pulse-two {
    right: 38%;
    top: 45%;
    width: 72px;
    height: 72px;
    border-color: rgba(0, 166, 81, 0.8);
    animation-delay: 0.55s;
}

.pulse-three {
    right: 27%;
    bottom: 20%;
    width: 58px;
    height: 58px;
    border-color: rgba(56, 189, 248, 0.82);
    animation-delay: 1.1s;
}

@keyframes homeHeroImageSweep {
    0%,
    45% {
        transform: translateX(-120%);
    }

    80%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes homeHeroPulseRing {
    0% {
        transform: scale(0.76);
        opacity: 0;
    }

    28% {
        opacity: 1;
    }

    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .home-command-hero {
        min-height: 540px;
    }

    .home-command-hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(255, 255, 255, 0.22) 100%);
    }

    .home-command-grid {
        grid-template-columns: 1fr;
        min-height: 540px;
        padding: 30px 22px 58px;
    }

    .home-command-copy {
        align-self: start;
    }

    .home-command-copy h1 {
        max-width: 620px;
        font-size: clamp(2rem, 7.4vw, 2.75rem);
    }

    .home-command-visual {
        position: absolute;
        inset: 0;
        min-height: 0;
        pointer-events: none;
    }

    .home-command-proof {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .home-command-hero {
        min-height: 500px;
    }

    .home-command-grid {
        min-height: 500px;
        padding: 24px 16px 54px;
    }

    .home-command-kicker {
        margin-bottom: 14px;
    }

    .home-command-proof {
        gap: 8px;
    }

    .home-command-proof div {
        min-height: 68px;
        padding: 10px 8px;
    }

    .home-command-proof strong {
        font-size: 1.28rem;
    }

    .home-command-proof span {
        font-size: 0.64rem;
    }

    .pulse-one {
        right: 14%;
        top: 58%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-command-shine,
    .home-command-pulse {
        animation: none !important;
    }
}

.home-command-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    contain: layout paint;
    transform: translateZ(0);
}

.home-command-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.34s ease, visibility 0s linear 0.34s;
    will-change: opacity;
    pointer-events: none;
    contain: layout paint;
}

.home-command-slide:nth-child(2) {
    animation-delay: 0s;
}

.home-command-slide:nth-child(3) {
    animation-delay: 0s;
}

.home-command-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    pointer-events: auto;
}

.home-command-slide .home-command-shine {
    animation-delay: 0s;
}

.home-command-slide:not(.is-active) .home-command-shine,
.home-command-slide:not(.is-active) .home-command-pulse {
    animation: none;
}

.home-command-copy h2 {
    max-width: 490px;
    margin: 0 0 22px;
    color: #063b2c;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: clamp(2.35rem, 3.9vw, 3.85rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.hero-word {
    display: inline-block;
    color: #007a5a;
    text-shadow: 0 10px 26px rgba(0, 106, 77, 0.14);
}

.hero-word-live {
    color: #087f8c;
    background: linear-gradient(120deg, #087f8c 0%, #00a651 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-word-decision {
    color: #006a4d;
    background: linear-gradient(120deg, #006a4d 0%, #00a651 52%, #d4a02f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-word-save {
    position: relative;
    color: #ffffff;
    padding: 0 0.12em;
    background: linear-gradient(120deg, #006a4d 0%, #00a651 48%, #f4b942 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-word-save::after {
    content: "";
    position: absolute;
    left: 0.04em;
    right: 0.04em;
    bottom: 0.02em;
    height: 0.16em;
    z-index: -1;
    border-radius: 999px;
    background: rgba(244, 185, 66, 0.28);
}

.hero-word-records {
    color: #315f8f;
    background: linear-gradient(120deg, #315f8f 0%, #38bdf8 58%, #00a651 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-command-dots {
    position: absolute;
    left: 56px;
    bottom: 30px;
    z-index: 4;
    display: flex;
    gap: 9px;
}

.home-command-dots span {
    width: 38px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 106, 77, 0.18);
    cursor: pointer;
}

.home-command-dots span::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00a651, #38bdf8, #f4b942);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.34s ease;
}

.home-command-dots span:nth-child(2)::after {
    animation-delay: 0s;
}

.home-command-dots span:nth-child(3)::after {
    animation-delay: 0s;
}

.home-command-dots span.is-active::after {
    transform: scaleX(1);
}

@keyframes homeHeroSlide {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.025);
    }

    5%,
    31% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    36%,
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.025);
    }
}

@keyframes homeHeroDot {
    0% {
        transform: scaleX(0);
    }

    5%,
    31% {
        transform: scaleX(1);
    }

    36%,
    100% {
        transform: scaleX(0);
    }
}

@media (max-width: 900px) {
    .home-command-copy h2 {
        max-width: 620px;
        font-size: clamp(2rem, 7.4vw, 2.75rem);
    }

    .home-command-dots {
        left: 22px;
        bottom: 24px;
    }
}

@media (max-width: 520px) {
    .home-command-copy h2 {
        font-size: 2rem;
    }

    .home-command-dots {
        left: 16px;
    }

    .home-command-dots span {
        width: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-command-slide,
    .home-command-dots span::after {
        animation: none !important;
        transition: none !important;
    }

    .home-command-slide:first-child {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Redesigned Search Form Card */
.form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    position: relative;
    overflow: visible;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light));
}

.form-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 40px;
    text-align: center;
    display: block;
    /* Center title */
    border-bottom: none;
    padding-bottom: 0;
}

.form-card h2 i {
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
    font-size: 2.5rem;
}

.modern-step-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

/* Fix for dropdown overlapping - Stacking Context */
.modern-step-grid .step-item {
    position: relative;
}

.modern-step-grid .step-item:nth-child(1) {
    z-index: 30;
}

.modern-step-grid .step-item:nth-child(2) {
    z-index: 20;
}

.modern-step-grid .step-item:nth-child(3) {
    z-index: 10;
}

@media (max-width: 900px) {
    .modern-step-grid {
        grid-template-columns: 1fr;
    }
}

.step-item {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.step-item:hover {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 166, 81, 0.08);
    transform: translateY(-10px) scale(1.02);
}



.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-label {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 28px;
}

/* Horizontal form layout for wider screens */
.form-row {
    display: grid;
    grid-template-columns: 1fr 200px 1fr 180px;
    gap: 20px;
    align-items: end;
}

@media (max-width: 1000px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-row .form-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    letter-spacing: 0.1px;
}

/* Light Premium Input Fields */
input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

input[type="text"]::placeholder {
    color: #94a3b8;
}

input[type="text"]:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 106, 77, 0.1);
    background: #ffffff;
}

/* SEGMENTED CONTROL TOGGLE */
.toggle-wrapper {
    display: flex;
    background: #f1f5f9;
    border-radius: 50px;
    /* Pillow shape */
    padding: 6px;
    width: 100%;
    /* Take full width of parent */
    border: 1px solid #e2e8f0;
    position: relative;
    box-sizing: border-box;
}

.toggle-option {
    flex: 1;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.toggle-option:hover:not(.active) {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.5);
}

.toggle-option.active {
    background: white;
    color: var(--primary-color);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* TUTORIAL SECTION */
.tutorial-section {
    margin-top: 30px;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    scroll-margin-top: 100px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.tutorial-section.ix-tutorial-highlight {
    border-color: rgba(0, 166, 81, 0.5);
    box-shadow: 0 0 0 5px rgba(0, 166, 81, 0.25), 0 20px 45px rgba(0, 106, 77, 0.12);
}

.tutorial-header {
    margin-bottom: 50px;
}

.tutorial-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.tutorial-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #1e293b;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    cursor: pointer;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 166, 81, 0.5);
}

/* Subtle icon styling */
.toggle-option i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.toggle-option.active i {
    color: var(--accent-color);
    opacity: 1;
}

/* ==================================== */
/* SERVICES OVERVIEW SECTION - PREMIUM  */
/* ==================================== */
.services-overview {
    padding: 50px 0;
    background: white;
    margin-top: 20px;
    border-radius: 60px 60px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
}

.services-overview .container {
    padding-top: 0 !important;
}

.overview-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.overview-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.overview-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.category-group {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out both;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.category-header i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.category-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-item-card {
    background: #f8fafc;
    padding: 35px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.service-item-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 106, 77, 0.08);
    border-color: rgba(0, 166, 81, 0.2);
}

.service-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    opacity: 0.03;
    border-radius: 0 0 0 100%;
    transition: all 0.4s ease;
}

.service-item-card:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: 0.05;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item-card:hover .item-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.item-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 10px 0;
}

.item-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}


.form-action {
    text-align: center;
    margin-top: 40px;
}

/* Premium Search Button */
button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.1rem;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 106, 77, 0.15);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 106, 77, 0.25);
    background: var(--primary-dark);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-2px) scale(0.98);
}

.nav-btn {
    padding: 12px 30px;
    font-size: 0.95rem;
    background: var(--primary-color);
    color: white;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 106, 77, 0.1);
}

.nav-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(0, 106, 77, 0.2);
}

/* Results */
.hidden {
    display: none;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* BTC Loading Overlay */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.overlay-content {
    text-align: center;
}

.overlay-content h2 {
    margin: 20px 0 10px;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
}

.overlay-content p {
    color: var(--text-muted);
}

.spinner-btc {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 102, 51, 0.1);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: btc-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes btc-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loading {
    text-align: center;
    color: #666;
}

.text-preview {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #444;
    border: 1px solid #eee;
}

/* Data Tables / Charts Section */
.charts-section {
    margin-top: 25px;
}

.charts-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.table-wrapper {
    background: linear-gradient(135deg, #fff 0%, #f8faf9 100%);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 106, 77, 0.08);
    border: 1px solid rgba(0, 106, 77, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.table-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 106, 77, 0.12);
}

.table-wrapper h5 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 106, 77, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-wrapper h5::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #008560 100%);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.data-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.data-table tbody tr {
    border-bottom: 1px solid #eef3f1;
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: rgba(0, 166, 81, 0.05);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 14px 16px;
    color: #333;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.data-table tbody td:last-child {
    color: #666;
    font-size: 0.9rem;
}

/* Chart Cards Container */
.chart-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .chart-cards-container {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.chart-card.clickable {
    cursor: pointer;
}

.chart-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.chart-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
    min-height: 40px;
}

.chart-area {
    height: 180px;
    position: relative;
}

.chart-source {
    font-size: 0.75rem;
    color: #333;
    margin-top: 10px;
    font-style: italic;
    font-weight: 500;
}

/* Countries Card - White Background with Green Header */
.countries-card {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.countries-card h5 {
    background: linear-gradient(135deg, #4a7c59 0%, #3d6b4d 100%);
    color: #fff !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    min-height: auto !important;
    font-size: 0.95rem !important;
}

.countries-card .chart-source {
    padding: 10px 20px;
    margin: 0;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.countries-card .countries-list {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.country-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.country-row:last-child {
    border-bottom: none;
}

.country-flag {
    font-size: 1.5rem;
    width: 35px;
}

.country-name {
    flex: 1;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.country-value {
    font-weight: 600;
    color: #006A4D;
    font-size: 1.1rem;
}

/* Grid Section */
.grid-section {
    margin-top: 30px;
}

/* Main Section Styles */
.main-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fff 0%, #f8faf9 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 106, 77, 0.08);
    border: 1px solid rgba(0, 106, 77, 0.1);
}

.main-section:last-child {
    margin-bottom: 0;
}

/* Main Section Title - Premium Style */
.main-section-title {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 25px 0 !important;
    text-align: left;
    position: relative;
    padding-left: 15px;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.main-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Charts Area */
.charts-area {
    margin-bottom: 25px;
}

/* Sub-Section Styles - Deprecated, keeping for backwards compatibility */
.sub-section {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 106, 77, 0.03) 0%, rgba(0, 166, 81, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 106, 77, 0.1);
}

.sub-section:last-child {
    margin-bottom: 0;
}

.sub-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

/* Empty sub-section - hide if no cards */
.sub-section:empty,
.sub-section:has(.services-grid:empty) {
    display: none;
}

#otherServicesSection {
    background: transparent;
    border: none;
    padding: 0;
}

/* Wide List Layout for Results */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for wide cards */
    gap: 20px;
    margin-top: 15px;
}

.service-card {
    background: white;
    padding: 0;
    /* Remove default padding, controlled by children */
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 106, 77, 0.08);
    /* Subtle border */
    display: flex;
    /* Flex layout */
    align-items: stretch;
    /* Stretch to fill height */
    overflow: hidden;
    /* For border radius */
    text-decoration: none;
    /* In case it's an anchor */
    position: relative;
    min-height: 100px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 106, 77, 0.12);
    border-color: rgba(0, 106, 77, 0.3);
}

.service-card.clickable {
    cursor: pointer;
}

/* Icon Section on Left */
.service-icon-container {
    background: linear-gradient(135deg, rgba(0, 106, 77, 0.05) 0%, rgba(0, 166, 81, 0.08) 100%);
    width: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    border-right: 1px solid rgba(0, 106, 77, 0.05);
}

/* Content Section (Title + Desc) */
.service-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-header h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.card-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Action Arrow on Right */
.service-action {
    display: flex;
    align-items: center;
    padding-right: 30px;
    padding-left: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.6;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.service-card:hover .service-action {
    opacity: 1;
    transform: translateX(0);
}

/* Service Count Badge */
.service-count {
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 10px;
    box-shadow: none;
}

.service-card.clickable:hover {
    border-color: #3498db;
    background-color: #f8fbff;
}

.service-card.clickable h5 {
    color: #2980b9;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    margin-top: 1rem;
    line-height: 1.6;
}

.modal-body pre {
    white-space: pre-wrap;
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
}

/* Detail View */
.detail-view {
    padding-top: 20px;
    background: #fff;
    min-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 40px;
    width: 100%;
}

.back-btn {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

/* Shipping Documents Styles */
.shipping-docs-section {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.shipping-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.shipping-tabs {
    display: flex;
    gap: 10px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 12px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
    /* Override default button shadow */
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
    transform: none !important;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.doc-group-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.doc-group-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.doc-group-header {
    background: linear-gradient(to right, #f9f9f9, #fff);
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.doc-group-header h5 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.doc-count-badge {
    background: #eee;
    color: #666;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.doc-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.doc-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: background 0.2s;
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-item:hover {
    background: #fbfbfb;
}

.doc-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 2px;
}

.doc-content {
    flex: 1;
}

.doc-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    display: block;
    text-decoration: none;
}

.doc-name:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.doc-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

.back-btn:hover {
    background: #e0e0e0;
}

.detail-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.detail-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 10px 0;
}

.detail-list {
    display: grid;
    gap: 20px;
}

.detail-item-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.detail-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.detail-item-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    /* Match screenshot */
}

.detail-item-card p {
    color: #666;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Metadata Row (Date/Lang) */
.meta-row {
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #444;
    align-items: center;
}

.meta-row i {
    color: #666;
    margin-right: 5px;
}

/* Source Tag (Right aligned specific style) */
.source-tag {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* Trade Show Specific Cards */
.trade-show-card {
    background-color: #FAFAFA;
    /* Light grey */
    border: none;
    border-left: 4px solid #006A4D;
    /* Green accent on left */
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ts-title {
    color: #006A4D !important;
    /* Lloyds Green */
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
}

.ts-meta {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    flex-wrap: wrap;
}

.ts-meta i {
    color: #777;
    margin-right: 5px;
}

.ts-desc {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ts-sectors {
    color: #666;
    font-size: 0.85rem;
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.ts-sectors i {
    margin-top: 3px;
    color: #888;
}

.ts-show-more {
    color: #006A4D !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.ts-show-more:hover {
    text-decoration: underline;
}

/* Flows Form Specific Styles (Match Screenshot) */
.flows-form {
    background: #fff;
    padding: 0 0 20px 0;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.flows-form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.flows-label {
    font-weight: 500;
    color: #333;
}

.flows-input-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.flows-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
}

.flows-select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.flows-tag-input {
    border: 1px solid #ccc;
    padding: 5px;
    min-height: 38px;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    max-width: 400px;
}

.flows-tag {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.nav-btn {
    background: var(--primary-color);
    color: white !important;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 106, 77, 0.2);
}

.flows-search-btn {
    background: #006A4D;
    color: white;
    border: none;
    padding: 10px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}

.flows-search-btn:hover {
    background-color: #004d38;
}

/* Ensure table headers are solid green as per request */
.data-table thead th {
    background: #006A4D !important;
    /* Force solid green */
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ==================================
   CONVERTERS & FACTSHEETS STYLES 
   ================================== */

.converter-wrapper,
.factsheet-container {
    max-width: 800px;
    margin: 40px auto;
    animation: fadeInUp 0.5s ease-out;
}

.converter-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.converter-header,
.factsheet-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    text-align: center;
}

.converter-header h4,
.factsheet-header h4 {
    margin: 10px 0 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.converter-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.converter-subtitle {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

.converter-body {
    padding: 30px 40px 50px;
}

.currency-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

@media(max-width: 600px) {
    .currency-row {
        flex-direction: column;
        align-items: stretch;
    }

    .swap-btn,
    .arrow-separator {
        align-self: center;
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #f9f9f9;
    color: #333;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 106, 77, 0.1);
    outline: none;
}

.swap-btn {
    background: #f0f0f0;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    /* Alignment fix */
}

.swap-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.arrow-separator {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.result-display {
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #e6fffa 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 166, 81, 0.2);
}

#conversionResult,
#measResult {
    font-size: 2rem;
    color: var(--primary-dark);
}

#conversionResult strong,
#measResult strong {
    font-weight: 800;
    color: var(--primary-color);
}

.rate-info {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.last-updated {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

/* Measurement Tabs */
.measure-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 40px 10px;
    flex-wrap: wrap;
}

.m-tab {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.m-tab:hover {
    background: #e0e0e0;
}

.m-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 106, 77, 0.3);
}

/* Factsheets Accordion */
.accordion-wrapper {
    margin-top: 30px;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: white;
}

.accordion-btn {
    width: 100%;
    background: white;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 12px;
    /* When collapsed */
}

.accordion-btn:hover {
    background: #f9f9f9;
}

.accordion-btn.active {
    background: linear-gradient(to right, #f0fdf4, #fff);
    border-bottom: 1px solid #f0f0f0;
    border-radius: 12px 12px 0 0;
    color: var(--primary-color);
}

.acc-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.acc-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: #aaa;
}

.accordion-btn.active .acc-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.acc-inner {
    padding: 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.fact-card {
    background: white;
    border-left: 4px solid var(--accent-light);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.fact-card:last-child {
    margin-bottom: 0;
}

.fact-card h5 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.fact-card p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Scraped Content Overrides - Ensure visibility on white background */
#detailContent {
    color: #333 !important;
}

#detailContent h1,
#detailContent h2,
#detailContent h3,
#detailContent h4,
#detailContent h5,
#detailContent h6 {
    color: #006A4D !important;
    /* Use primary color instead of global white */
    margin-top: 15px;
    margin-bottom: 10px;
    border-bottom: none;
    /* Remove potential border styles from global */
}

#detailContent p,
#detailContent li,
#detailContent span,
#detailContent div,
#detailContent label,
#detailContent strong,
#detailContent b,
#detailContent i,
#detailContent em {
    color: #333 !important;
}

#detailContent a {
    color: #00A651 !important;
    /* Accent color for links */
}

/* Specific fix for search tool forms in scraped content */
#detailContent form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

#detailContent fieldset {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

#detailContent legend {
    color: #006A4D !important;
    font-weight: bold;
    padding: 0 5px;
}

#detailContent input[type="text"],
#detailContent select {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    color: #333 !important;
    background: white !important;
}

/* Country Info Page Styles */
.country-info-page .main-content {
    padding-top: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5d8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.search-container-hero {
    max-width: 700px;
    margin: 0 auto 60px;
}

.search-container-hero .input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px;
    align-items: center;
}

.search-container-hero i {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 20px;
    font-size: 1.2rem;
}

.search-container-hero input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 15px;
    flex: 1;
    outline: none;
}

.search-container-hero .btn-primary {
    border-radius: 40px;
    padding: 12px 30px;
    font-size: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-container-hero .btn-primary:hover {
    transform: scale(1.05);
}

.results-container {
    animation: fadeIn 0.5s ease-out;
}

.country-header-card {
    background: linear-gradient(135deg, rgba(0, 106, 77, 0.8), rgba(0, 77, 56, 0.9));
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-flag-title h2 {
    font-size: 3rem;
    margin: 0;
    color: white;
    border: none;
}

.country-flag-title h2::before {
    display: none;
}

.key-stats-grid {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: right;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.grid-2-col,
.grid-3-col {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.grid-2-col {
    grid-template-columns: 1fr 1fr;
}

.grid-3-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
}

.info-card h3 {
    color: var(--accent-light);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.section-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.detail-row span:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.detail-row span:last-child {
    color: white;
    font-weight: 500;
    text-align: right;
}

.full-width {
    grid-column: 1 / -1;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    color: white;
}

.data-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.data-table td {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.partner-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.partner-box strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.partner-box p {
    margin: 0;
    color: white;
}

.biz-col h4 {
    color: white;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

.biz-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.loading-container {
    text-align: center;
    padding: 60px 0;
}

.loading-container p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-light);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-container {
    background: rgba(255, 99, 71, 0.1);
    border: 1px solid rgba(255, 99, 71, 0.3);
    color: #ff6347;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-container i {
    font-size: 2rem;
}

/* =========================================
   DASHBOARD REDESIGN & CLEANUP
   ========================================= */

/* Hide Debug/Legacy Info */
#dataContent>h3 {
    display: none;
}

.result-details>p,
.result-details>.text-preview {
    display: none !important;
}

/* Service Cards - Premium Redesign */
.service-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* subtle border */
    border-radius: 16px;
    /* Smooth corners */
    padding: 24px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 15px rgba(0, 0, 0, 0.03);
    /* Soft double shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    /* Accent bar on left */
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 25px rgba(0, 106, 77, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 106, 77, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.clickable {
    cursor: pointer;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-header h5 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    flex: 1;
    padding-right: 15px;
}

/* Count Badge */
.service-count {
    background: rgba(0, 106, 77, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 32px;
    text-align: center;
    border: 1px solid rgba(0, 106, 77, 0.15);
    align-self: flex-start;
}

/* Description */
.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 5px;
    flex-grow: 1;
    /* Pushes footer (if any) down */
}

/* Coming Soon Badge Override */
.service-card span[style*="Coming Soon"] {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: 1px solid #e5e7eb !important;
    display: inline-block;
    margin-top: 5px;
}

/* Disabled/Upcoming Card Styling */
.disabled-card,
.service-card:has(span[style*="Coming Soon"]) {
    background: #fafafa;
    border-color: #eee;
    box-shadow: none;
    opacity: 0.7;
    pointer-events: none;
    /* Ensure it's not clickable */
}

.disabled-card:hover,
.service-card:has(span[style*="Coming Soon"]):hover {
    transform: none;
    box-shadow: none;
    border-color: #eee;
}

/* Grid Spacing */
.services-grid {
    gap: 30px;
    /* Increase gap */
    padding-bottom: 20px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* Wider cards */
}

/* Section Title Fix */
.main-section-title {
    font-size: 1.6rem !important;
    margin-bottom: 35px !important;
    color: #1f2937 !important;
    /* Dark grey instead of primary for section titles */
}

.main-section-title::before {
    height: 32px !important;
    /* Taller accent */
    width: 5px !important;
}

/* Chart Cards (Fixing the Top Section) */
.chart-card {
    border: 1px solid #eee !important;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 15px rgba(0, 0, 0, 0.03) !important;
    border-radius: 16px !important;
}

.countries-card.chart-card {
    border: 1px solid #eee !important;
}

/* Custom Dropdown Styles */
.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 60000;
    display: none;
    margin-top: 4px;
}

.custom-dropdown-menu.show {
    display: block;
}

.dropdown-category-header {
    padding: 10px 15px;
    background-color: #f0fdf4;
    color: #006a4d;
    font-weight: 700;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f9f9f9;
    transition: background-color 0.2s, padding-left 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.selected {
    background-color: #f8fafc;
    color: #006a4d;
    padding-left: 20px;
}

.dropdown-item-flag {
    width: 24px;
    height: 18px;
    margin-right: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-item-text {
    flex: 1;
    font-size: 0.95rem;
}

.dropdown-item-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    color: #555;
    margin-right: 10px;
    background: #eef2f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;

    border: 1px solid #e0e0e0;
}

/* Enhanced Scraped Dropdowns */
.custom-dropdown-wrapper.enhanced-scraped {
    display: inline-block;
    position: relative;
    width: 100%;
}

.custom-dropdown-wrapper.enhanced-scraped input {
    width: 100% !important;
    box-sizing: border-box;
}

.custom-dropdown-wrapper.enhanced-scraped .custom-dropdown-menu {
    width: 100%;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

/* Dropdown Tabs */
.dropdown-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    padding: 0;
    margin: 0;
}

.dropdown-tab {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-tab:hover {
    background: #f0f0f0;
    color: #333;
}

.dropdown-tab.active {
    color: #4CAF50;
    /* Green accent color matching current theme */
    border-bottom: 2px solid #4CAF50;
    background: #fff;
    font-weight: 600;
}

.dropdown-tab:focus {
    outline: none;
}

/* Report-style intelligence dropdowns */
.custom-dropdown-wrapper {
    isolation: isolate;
}

.custom-dropdown-wrapper:focus-within,
.custom-dropdown-wrapper.ai-dropdown-active,
.custom-dropdown-wrapper:has(.custom-dropdown-menu.show) {
    z-index: 60001;
}

.search-wrapper:focus-within,
.search-wrapper:has(.custom-dropdown-menu.show),
.search-card:focus-within,
.search-card:has(.custom-dropdown-menu.show),
.form-section:focus-within,
.form-section:has(.custom-dropdown-menu.show) {
    position: relative;
    z-index: 60000;
    overflow: visible !important;
}

.custom-dropdown-wrapper .form-control,
.custom-dropdown-wrapper input {
    min-height: 64px !important;
    padding: 14px 18px 14px 56px !important;
    border: 1px solid #dbe7df !important;
    border-radius: 18px !important;
    color: #0f172a !important;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 81, 0.1), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
    font-weight: 760 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.custom-dropdown-wrapper::before {
    content: "\f002";
    position: absolute;
    left: 16px;
    top: 32px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #006a4d, #00a651);
    box-shadow: 0 10px 22px rgba(0, 106, 77, 0.18);
    font: var(--fa-font-solid);
    font-size: 0.84rem;
    transform: translateY(-50%);
    pointer-events: none;
}

#countryDropdownWrapper::before {
    content: "\f57d";
}

.custom-dropdown-wrapper:focus-within .form-control,
.custom-dropdown-wrapper:focus-within input,
.custom-dropdown-wrapper.ai-dropdown-active .form-control,
.custom-dropdown-wrapper.ai-dropdown-active input {
    border-color: #00a651 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.11), 0 16px 34px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px);
}

.custom-dropdown-menu {
    top: calc(100% + 10px) !important;
    overflow: hidden auto !important;
    max-height: min(70vh, 620px) !important;
    padding: 8px !important;
    border: 1px solid rgba(0, 166, 81, 0.18) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.18) !important;
    z-index: 60002 !important;
}

.dropdown-tabs {
    gap: 8px !important;
    padding: 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    position: sticky;
    top: -8px;
    z-index: 20;
}

.dropdown-tab {
    min-height: 38px !important;
    border: 1px solid #dbe7df !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.dropdown-tab:hover,
.dropdown-tab.active {
    border-color: #00a651 !important;
    background: #ecfdf5 !important;
    color: #006a4d !important;
    box-shadow: 0 8px 20px rgba(0, 106, 77, 0.08) !important;
}

.dropdown-category-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 8px 0 4px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: #f0fdf4 !important;
    color: #006a4d !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.07em !important;
}

.dropdown-category-header::before {
    content: "\f02e";
    font: var(--fa-font-solid);
    letter-spacing: 0;
}

.dropdown-item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 11px !important;
    align-items: center !important;
    min-height: 56px !important;
    margin: 3px 0 !important;
    padding: 10px 11px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    color: #0f172a !important;
}

.dropdown-item:hover,
.dropdown-item.selected {
    padding-left: 11px !important;
    background: #f0fdf4 !important;
    color: #006a4d !important;
}

.dropdown-item-code,
.dropdown-item-chapter,
.dropdown-item-flag,
.dropdown-item .fa-globe,
.dropdown-item .fa {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 13px !important;
    color: #006a4d !important;
    background: #ecfdf5 !important;
    box-shadow: none !important;
    object-fit: cover !important;
}

.dropdown-item-code {
    width: auto !important;
    min-width: 58px !important;
    padding: 0 10px !important;
    font-family: "Consolas", "Monaco", monospace !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.dropdown-item-main {
    min-width: 0;
}

.dropdown-item-text {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
    line-height: 1.28 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.dropdown-item-meta {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.25;
}

.dropdown-result-hint {
    display: block !important;
    padding: 18px !important;
    color: #64748b !important;
    text-align: center !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
}

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container--default .select2-selection--single {
    min-height: 64px !important;
    border: 1px solid #dbe7df !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 81, 0.1), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #00a651 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.11), 0 16px 34px rgba(15, 23, 42, 0.08) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 18px !important;
    padding-right: 48px !important;
    color: #0f172a !important;
    font-size: 0.96rem !important;
    font-weight: 850 !important;
    line-height: 62px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 62px !important;
    right: 15px !important;
}

.select2-dropdown {
    overflow: hidden !important;
    border: 1px solid rgba(0, 166, 81, 0.18) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.18) !important;
}

.select2-search--dropdown {
    padding: 14px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.select2-search--dropdown .select2-search__field {
    min-height: 46px !important;
    border: 1px solid #dbe7df !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    font: inherit !important;
    font-weight: 760 !important;
}

.select2-results__options {
    padding: 8px !important;
}

.select2-results__group {
    margin: 8px 0 4px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    background: #f0fdf4 !important;
    color: #006a4d !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
}

.select2-results__option {
    border-radius: 13px !important;
    color: #0f172a !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #f0fdf4 !important;
    color: #006a4d !important;
}

.ix-select-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 46px;
}

.ix-select-badge {
    min-width: 54px;
    height: 36px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #006a4d;
    background: #ecfdf5;
    font-size: 0.75rem;
    font-weight: 950;
}

.ix-select-option strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ix-select-option small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

body.competitive-analysis-page #analysisForm .select2-container--default .select2-selection--single,
body.marketplaces-intelligence-page .search-card .select2-container--default .select2-selection--single {
    min-height: 64px !important;
    border: 1px solid #dbe7df !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 81, 0.1), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

body.competitive-analysis-page #analysisForm .select2-container--default.select2-container--open .select2-selection--single,
body.competitive-analysis-page #analysisForm .select2-container--default.select2-container--focus .select2-selection--single,
body.marketplaces-intelligence-page .search-card .select2-container--default.select2-container--open .select2-selection--single,
body.marketplaces-intelligence-page .search-card .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #00a651 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.11), 0 16px 34px rgba(15, 23, 42, 0.08) !important;
}

body.competitive-analysis-page #analysisForm .select2-container--default .select2-selection--single .select2-selection__rendered,
body.marketplaces-intelligence-page .search-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 18px !important;
    padding-right: 48px !important;
    color: #0f172a !important;
    font-size: 0.96rem !important;
    font-weight: 850 !important;
    line-height: 62px !important;
}

body.competitive-select-open > .select2-container--open .select2-dropdown,
body.marketplaces-intelligence-page.pricing-select-open > .select2-container--open .select2-dropdown,
body > .select2-container--open .select2-dropdown {
    overflow: hidden !important;
    border: 1px solid rgba(0, 166, 81, 0.18) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.18) !important;
}

body.competitive-select-open .select2-search--dropdown,
body.marketplaces-intelligence-page.pricing-select-open .select2-search--dropdown,
body > .select2-container--open .select2-search--dropdown {
    padding: 14px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.competitive-select-open .select2-results__group,
body.marketplaces-intelligence-page.pricing-select-open .select2-results__group,
body > .select2-container--open .select2-results__group {
    margin: 8px 0 4px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    background: #f0fdf4 !important;
    color: #006a4d !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
}

body.competitive-select-open .select2-results__option,
body.marketplaces-intelligence-page.pricing-select-open .select2-results__option,
body > .select2-container--open .select2-results__option {
    border-radius: 13px !important;
}

@media (max-width: 760px) {
    .custom-dropdown-wrapper .form-control,
    .custom-dropdown-wrapper input,
    .select2-container--default .select2-selection--single {
        min-height: 58px !important;
        border-radius: 16px !important;
    }

    .custom-dropdown-wrapper::before {
        top: 29px;
    }

    .dropdown-item-text,
    .ix-select-option strong {
        white-space: normal !important;
    }
}

/* Service Dropdown Child Items */
.dropdown-item-child {
    padding-left: 30px !important;
    background: #fafafa;
}

.dropdown-item-child:hover {
    background: #f0f8f0 !important;
    padding-left: 35px !important;
}

/* Service code styling */
.dropdown-item[data-type="service"] .dropdown-item-code {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

/* Lloyd's style service items */
.service-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.service-parent {
    font-weight: 500;
}

.service-child {
    padding-left: 25px !important;
    font-size: 0.9rem;
    color: #555;
}

.service-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.service-expand-icon:hover {
    background: #e0e0e0;
    color: #333;
}

/* Make child items slightly indented like Lloyd's */
.dropdown-item .service-child {
    margin-left: 26px;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
    /* Ensure label is block */
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.submit-btn:hover {
    background: var(--primary-dark);
}


/* Footer Styles */
.main-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 60px;
    color: #475569;
}

.footer-container, .page-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-green);
}

.footer-section.brand p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: #64748b;
    text-decoration: none;
    margin: 0 10px;
}

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

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Loader Systems */
.premium-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.premium-loader-inline {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 60px 0;
    z-index: 10;
}

.premium-loader-card {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: premium-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes premium-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.loader-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 25px;
}

.loader-status-container {
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loader-status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.loader-status-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.indatex-stable-loader,
.indatex-stable-loader * {
    box-sizing: border-box;
}

.indatex-stable-loader {
    unicode-bidi: isolate;
}

.indatex-stable-loader .cf-loading-portal-card,
.indatex-stable-loader.cf-loading-portal .cf-loading-portal-card,
.indatex-stable-loader .cf-loader-card,
.indatex-stable-loader .premium-loader-card,
.indatex-stable-loader .ei-loading-card {
    contain: layout paint;
    overflow-wrap: anywhere;
}

.indatex-stable-loader .cf-loading-portal-message,
.indatex-stable-loader .cf-loader-copy p,
.indatex-stable-loader .ei-loading-card p,
.indatex-stable-loader .loader-subtitle,
.indatex-stable-loader .loader-status-text {
    min-height: 2.8em;
    overflow-wrap: anywhere;
}

.indatex-stable-loader .cf-loading-portal-wait-note,
.indatex-stable-loader .cf-loader-wait-note {
    min-height: 64px;
}

.indatex-stable-loader .cf-loading-portal-step span,
.indatex-stable-loader .cf-loader-step span,
.indatex-stable-loader .ei-loading-step strong,
.indatex-stable-loader .ei-loading-step small {
    min-height: 2.4em;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-bar {
        width: calc(100% - 30px);
        padding: 12px 25px;
    }

    .container,
    .page-wrapper {
        padding: 140px 20px 40px;
    }

    .modern-step-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
        /* Mobile menu logic would go here if needed */
    }

    .hero-content h1 {
        font-size: clamp(2.15rem, 9vw, 2.8rem);
        line-height: 1.08;
        overflow: visible;
    }

    .hero-slider {
        height: 640px;
        min-height: 640px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1,
    .page-title {
        font-size: 2rem;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .dropdown-content {
        width: 100vw;
        border-radius: 0;
    }

    .form-card {
        padding: 30px 20px;
    }

    .back-btn {
        top: 20px;
        left: 20px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.55rem);
        line-height: 1.08;
        overflow: visible;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .page-wrapper {
        padding-top: 130px;
    }

    .step-item {
        padding: 20px;
    }

    .hero-stat-num {
        font-size: 1.32rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-slider {
        height: 700px;
        min-height: 700px;
    }

    .hero-content {
        max-width: 720px;
        padding: 50px 48px 48px;
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 4.6vw, 3.35rem);
        line-height: 1.04;
        overflow: visible;
    }

    .hero-content p {
        font-size: 1.03rem;
        max-width: 590px;
        margin-bottom: 14px;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        height: 650px;
        min-height: 650px;
        border-radius: 18px;
    }

    .hero-content {
        padding: 30px 20px 48px;
    }

    .hero-content h1 {
        font-size: clamp(2.05rem, 9vw, 2.55rem);
        line-height: 1.08;
        margin-bottom: 14px;
        overflow: visible;
    }

    .hero-content p {
        font-size: 0.98rem;
        line-height: 1.52;
        margin-bottom: 14px;
    }

    .hero-value-promise {
        margin-bottom: 14px;
    }

    .hero-actions {
        gap: 10px;
        max-height: none;
        margin-bottom: 0;
    }

    .hero-action-primary,
    .hero-action-secondary {
        min-height: 46px;
    }
}

@media (max-width: 360px) {
    .hero-slider {
        height: 700px;
        min-height: 700px;
    }

    .hero-content {
        padding: 30px 18px 48px;
    }

    .hero-badge {
        font-size: 0.66rem;
        padding: 6px 10px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.94rem;
        line-height: 1.48;
    }
}

/* ===============================================
   RESPONSIVE FIX FOR DETAIL VIEW FORMS (BILATERAL TRADE, ETC.)
   =============================================== */

/* Filter Bar Mobile Styles */
@media (max-width: 768px) {
    .filter-bar {
        padding: 15px !important;
        margin: 0 -15px 20px -15px !important;
    }

    .filter-bar h2,
    .filter-bar h3 {
        font-size: 1.2rem !important;
    }

    /* Flows Form Responsive */
    .flows-form-row {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .flows-label {
        font-weight: bold !important;
        margin-bottom: 8px !important;
        font-size: 0.9rem !important;
        color: #333 !important;
    }

    .flows-select,
    .flows-form input[type="text"],
    .flows-form select,
    .filter-bar input[type="text"],
    .filter-bar select {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        min-height: 48px !important;
    }

    /* Form grids in filter bars */
    .filter-bar>div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Radio and checkbox groups */
    .flows-input-group,
    .filter-bar div[style*="flex"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    /* Ensure labels and inputs stack properly */
    .filter-bar>div>div {
        margin-bottom: 15px !important;
    }

    /* Search buttons */
    .filter-bar button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
        margin-top: 10px !important;
    }

    /* Detail view containers */
    #detailView .container {
        padding: 0 15px !important;
    }

    #detailTitle {
        font-size: 1.4rem !important;
    }

    .detail-subtitle {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        padding: 12px !important;
    }

    .filter-bar h2,
    .filter-bar h3 {
        font-size: 1.1rem !important;
    }

    .flows-select,
    .filter-bar input,
    .filter-bar select {
        padding: 10px !important;
        font-size: 0.95rem !important;
    }

    #detailTitle {
        font-size: 1.2rem !important;
    }
}

/* ===============================================
   TABLE HORIZONTAL SCROLL FIX FOR MOBILE
   =============================================== */

@media (max-width: 768px) {

    /* Ensure table containers scroll horizontally */
    #detailTables,
    #detailedTableArea,
    #tablesArea,
    .table-wrapper,
    .detail-tables,
    .charts-area {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    /* Make tables display properly for scrolling */
    table,
    .data-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        min-width: 600px !important;
        width: max-content !important;
    }

    /* Ensure table cells don't wrap */
    table th,
    table td,
    .data-table th,
    .data-table td {
        white-space: nowrap !important;
        padding: 10px 15px !important;
    }

    /* Add scroll indicator shadow */
    #detailTables::-webkit-scrollbar,
    #detailedTableArea::-webkit-scrollbar,
    .table-wrapper::-webkit-scrollbar {
        height: 8px !important;
    }

    #detailTables::-webkit-scrollbar-thumb,
    #detailedTableArea::-webkit-scrollbar-thumb,
    .table-wrapper::-webkit-scrollbar-thumb {
        background: #00A651 !important;
        border-radius: 4px !important;
    }

    #detailTables::-webkit-scrollbar-track,
    #detailedTableArea::-webkit-scrollbar-track,
    .table-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }
}

@media (max-width: 480px) {

    table,
    .data-table {
        min-width: 500px !important;
        font-size: 0.85rem !important;
    }

    table th,
    table td,
    .data-table th,
    .data-table td {
        padding: 8px 12px !important;
    }
}

/* ===============================================
   TOP TRADING PARTNERS DETAIL VIEW - MOBILE FIX
   =============================================== */

@media (max-width: 768px) {

    /* Fix hint/customization banner */
    .detail-subtitle {
        margin: 0 -15px 20px -15px !important;
        padding: 12px 15px !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    .detail-subtitle a {
        display: inline !important;
        word-break: break-word !important;
    }

    /* Fix radio button rows */
    .filter-bar div[style*="flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Radio group specific */
    div[style*="display: flex"][style*="gap: 20px"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    /* Product input and browse link container */
    .filter-bar>div>div[style*="position: relative"],
    div[style*="margin-bottom: 20px"] {
        position: relative !important;
        width: 100% !important;
    }

    /* Browse HS classification link - fix positioning */
    a[href*="classification"],
    a[style*="position: absolute"] {
        position: static !important;
        display: block !important;
        margin-top: 10px !important;
        font-size: 0.85rem !important;
        text-align: left !important;
        right: auto !important;
        top: auto !important;
    }

    /* Product input fields */
    input[id*="product"],
    input[placeholder*="product"],
    .filter-bar input[type="text"] {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        margin-bottom: 5px !important;
    }

    /* Labels before inputs */
    .filter-bar label,
    div[style*="font-weight: 500"] {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
        display: block !important;
        width: 100% !important;
    }

    /* Results section headers */
    .filter-bar h3,
    div[style*="border-top"][style*="006A4D"] h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    /* From/To dropdowns */
    .filter-bar select,
    select[id*="reporter"] {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        margin-top: 10px !important;
    }

    /* Dropdown rows */
    div[style*="display: flex"][style*="align-items: center"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Results section padding */
    div[style*="marginTop: 30px"],
    div[style*="backgroundColor: #f8f9fa"] {
        padding: 15px !important;
        margin-top: 20px !important;
    }

    /* Search button */
    button[style*="006A4D"],
    .filter-bar button[onclick] {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        margin-top: 15px !important;
        border-radius: 8px !important;
    }

    /* Fix percentage badges and stats */
    div[style*="text-align: center"] {
        padding: 15px !important;
        margin: 10px 0 !important;
    }
}

@media (max-width: 480px) {
    .detail-subtitle {
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
    }

    .filter-bar h3 {
        font-size: 1.1rem !important;
    }

    input[type="text"],
    select {
        padding: 10px !important;
        font-size: 0.95rem !important;
    }
}

/* ===============================================
   HIDE "Browse the HS 2017 classification" LINK
   =============================================== */

/* Hide the Browse HS classification link */
a[href*="classification"],
a[href*="hs-customs-classification-number"] {
    display: none !important;
}

/* Also hide it if it contains this text */
.filter-bar a:has-text("Browse the HS"),
.filter-bar a:contains("Browse the HS") {
    display: none !important;
}

/* Compact AI Form - Horizontal Layout underneath Slider */
.ai-compact-form {
    padding: 25px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* slightly softer shadow */
    margin-top: -50px;
    /* Pull up to overlap slightly or sit just under */
    position: relative;
    z-index: 20;
}

.ai-compact-form h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-compact-grid {
    display: grid;
    grid-template-columns: 2fr 160px 2fr 120px 160px;
    /* Product | Flow | Country | Time | Btn */
    gap: 15px;
    align-items: center;
}

/* Compact Fields Base */
.compact-field {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    height: 50px;
}

.compact-field:focus-within {
    border-color: var(--primary-green);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.field-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 8px;
    min-width: 20px;
    text-align: center;
}

/* Inputs in Compact Fields */
.compact-field input,
.compact-field select {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0;
    height: 100%;
    outline: none;
}

.compact-field input::placeholder {
    color: #94a3b8;
}

/* Specific Field Adjustments */
.flow-field {
    background: transparent;
    /* No bg for toggle container */
    border: none;
    padding: 0;
}

.compact-toggle-wrapper {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    width: 100%;
    height: 100%;
}

.compact-toggle-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    gap: 5px;
}

.compact-toggle-opt.active {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.timeframe-field select {
    cursor: pointer;
}

/* Action Button */
.compact-action button {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.compact-action button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ai-compact-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 cols */
        grid-template-rows: auto auto auto;
    }

    .compact-action {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .ai-compact-grid {
        grid-template-columns: 1fr;
        /* Stacked on mobile */
    }

    .compact-action {
        grid-column: span 1;
    }
}

/* ==========================================================================
   RESULTS PAGE CARD REDESIGN (Power & Attraction)
   ========================================================================== */

/* --- 1. Base Card Styling --- */
.results-card,
.service-card,
.country-rec-card,
.chart-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 106, 77, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.results-card:hover,
.service-card:hover,
.country-rec-card:hover,
.chart-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 166, 81, 0.15);
    border-color: rgba(0, 166, 81, 0.4);
}

/* Subtle gradient top border for visual pop */
.service-card::before,
.country-rec-card::before,
.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before,
.country-rec-card:hover::before,
.chart-card:hover::before {
    opacity: 1;
}

/* --- 2. Country Recommendation Cards (Specifics) --- */
.country-rec-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    cursor: pointer;
}

.country-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.country-card-header img {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.country-card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.country-card-body {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.metric-change {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.metric-change.positive {
    background: #ecfdf5;
    color: #10b981;
}

.metric-change.negative {
    background: #fef2f2;
    color: #ef4444;
}

/* --- 3. Service Cards (Grid Items) --- */
.service-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-height: 220px;
    /* Ensure uniform height */
}

.service-icon-container {
    width: 50px;
    height: 50px;
    background: rgba(0, 166, 81, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-container {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.service-icon-container i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-container i {
    color: white;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-header h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

.service-count {
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes action button down */
    margin-bottom: 20px;
}

.service-action {
    align-self: flex-end;
    /* Align arrow to right */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-action {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* --- 4. Chart Cards (Enhancement) --- */
.chart-card {
    padding: 20px;
    background: white;
    /* Ensure non-transparent for charts */
}

.chart-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    /* Darker for better contrast */
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.chart-source {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 10px;
    font-style: italic;
}

/* Grid Layout Fixes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* ==========================================================================
   RADICAL PREMIUM REDESIGN (Dashboard Style)
   ========================================================================== */

/* --- 1. Base Card Styling --- */
.results-card,
.service-card,
.country-rec-card,
.chart-card {
    background: linear-gradient(145deg, #ffffff 0%, #f1fcf5 100%);
    /* Subtle green tint */
    border-radius: 12px;
    border: 1px solid rgba(0, 166, 81, 0.1);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(0);
    /* Remove heavy blur for crispness */
    min-height: 240px;
}

.results-card:hover,
.service-card:hover,
.country-rec-card:hover,
.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

/* Remove old top-gradient if present */
.service-card::before,
.country-rec-card::before,
.chart-card::before {
    display: none;
}

/* --- 2. Watermark Effect --- */
.card-watermark {
    position: absolute;
    top: -20px;
    right: -20px;
    opacity: 0.05;
    transform: rotate(15deg);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.card-watermark i {
    font-size: 10rem;
    color: var(--primary-color);
}

.service-card:hover .card-watermark {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.1;
}

/* --- 3. Content Layout --- */
.card-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-icon-container {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-icon-container i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.service-count {
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 1px;
}

.card-main-info h5 {
    font-size: 1.4rem;
    font-weight: 800;
    /* Extra bold */
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

.card-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 4. Footer Action Area --- */
.card-footer {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.explore-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.service-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 166, 81, 0.3);
    transition: transform 0.3s ease;
}

.service-card:hover .service-action {
    transform: translateX(5px);
    background: #000;
    /* Turn black on hover for contrast */
}

/* --- 5. Modifications to Country & Chart Cards to match style --- */
.country-rec-card {
    /* Reuse base styles above */
    display: block;
    /* Override flex from previous */
}

/* Re-style country header for new layout */
.country-card-header h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-left: 0;
    /* Reset */
    margin-bottom: 0;
}

/* Fix chart card typography */
.chart-card h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* ==========================================================================
   VISUAL TILE REDESIGN (Bento Grid Style)
   ========================================================================== */

/* Grid Layout Update */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Squarer tiles */
    gap: 30px;
    margin-bottom: 50px;
}

/* --- 1. Base Tile Styling --- */
.visual-tile-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    /* Aspect ratio hack for square-ish look, but handled by padding/flex */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    height: 280px;
    /* Fixed height for clean grid */
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.visual-tile-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 166, 81, 0.25);
    z-index: 10;
}

/* --- 2. Background Glow --- */
.tile-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.5s ease;
    z-index: 0;
}

.visual-tile-card:hover .tile-bg-glow {
    transform: translate(-50%, -50%) scale(1.2);
}

/* --- 3. Content Visibility --- */
.tile-content {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.visual-tile-card:hover .tile-content {
    transform: translateY(-20px);
}

/* --- 4. Icon Typography --- */
.tile-icon-wrapper {
    font-size: 3.5rem;
    /* Massive Icon */
    color: var(--primary-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 10px rgba(0, 166, 81, 0.2));
    transition: transform 0.4s ease;
}

.visual-tile-card:hover .tile-icon-wrapper {
    transform: scale(0.9);
}

.tile-info h5 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.tile-badge {
    display: inline-block;
    background: var(--accent-light);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 8px;
}

/* --- 5. Hover Overlay (The Reveal) --- */
.tile-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, #ffffff 90%, transparent);
    transform: translateY(100%);
    /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 3;
}

.visual-tile-card:hover .tile-hover-overlay {
    transform: translateY(0);
}

.tile-hover-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.tile-hover-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 6. Country Rec Cards Update to Match --- */
.country-rec-card {
    /* Make them look like widgets too, but rectangular */
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    padding: 24px;
    /* transition already defined in base if used */
}

/* Revert special border-left from attempt 2 */
.country-rec-card {
    border-left: 1px solid rgba(0, 0, 0, 0.03);
}

.country-rec-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 166, 81, 0.2);
    transform: translateY(-5px);
}

/* ==========================================================================
   ULTRA-PREMIUM DARK THEME (The Emerald Monolith)
   ========================================================================== */

/* Layout Grid - kept from previous step but ensured */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* --- 1. Base Tile Styling (Dark Monolith) --- */
.visual-tile-card,
.country-rec-card,
.chart-card {
    position: relative;
    /* Deep Emerald to Black Gradient */
    background: linear-gradient(145deg, #004d38 0%, #00261c 100%);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    height: 300px;
    /* Taller for presence */

    /* Glowing Border Effect */
    border: 1px solid rgba(0, 166, 81, 0.2);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);

    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    cursor: pointer;
}

.visual-tile-card:hover,
.country-rec-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* Intense Glow on Hover */
    box-shadow: 0 25px 60px -12px rgba(0, 166, 81, 0.4), 0 0 20px rgba(0, 166, 81, 0.2) inset;
    border-color: rgba(0, 166, 81, 0.6);
    z-index: 10;
}

/* --- 2. Ambient Glow Animation --- */
.tile-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    /* Moving spotlights */
    background: radial-gradient(circle at center, rgba(0, 166, 81, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.visual-tile-card:hover .tile-bg-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- 3. Iconography (Neon Style) --- */
.tile-icon-wrapper {
    font-size: 3.5rem;
    color: #4ade80;
    /* Brighter neon green */
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.4));
    transition: all 0.4s ease;
    z-index: 2;
}

.visual-tile-card:hover .tile-icon-wrapper {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(74, 222, 128, 0.7));
    color: #ffffff;
    /* Turn white on hover for blinding contrast */
}

/* --- 4. Typography (Clean White) --- */
.tile-info {
    z-index: 2;
    position: relative;
    width: 100%;
}

.tile-info h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    /* Pure White */
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tile-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 12px;
    display: inline-block;
}

/* --- 5. The Reveal Overlay (Glassmorphism) --- */
.tile-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cover full card */
    background: rgba(0, 38, 28, 0.9);
    /* Dark semi-transparent */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;

    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 5;
}

.visual-tile-card:hover .tile-hover-overlay {
    transform: translateY(0);
}

.tile-hover-desc {
    color: #e2e8f0;
    /* Light gray text */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.tile-hover-btn {
    background: #4ade80;
    color: #002d21;
    /* Dark text on bright button */
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.tile-hover-btn:hover {
    transform: scale(1.05);
    background: #ffffff;
}

/* --- 6. Applying to Chart & Country Cards too --- */
/* Override specific elements for Country Cards */
.country-rec-card {
    /* Align items left for country cards */
    align-items: flex-start;
    text-align: left;
    height: auto;
    min-height: 200px;
}

.country-card-header h4 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.metric-label {
    color: rgba(255, 255, 255, 0.6);
}

.metric-value {
    color: #4ade80 !important;
    /* Neon Green numbers */
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.country-card-body {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Chart Cards - Dark Mode */
.chart-card {
    background: linear-gradient(145deg, #002d21 0%, #001a13 100%);
    height: auto;
    padding: 24px;
}

.chart-card h5 {
    color: #ffffff;
    border-bottom: 2px solid #4ade80;
}

.chart-source {
    color: rgba(255, 255, 255, 0.4);
}

/* Force Chart.js to be visible on dark background? 
   No, we set colors in JS. But we might need to update JS chart colors for visibility.
   We can handle that or accept it fits "Premium" (Dark charts are cool).
*/
/* ==========================================================================
   CRYSTAL GLASSMORPHISM REDESIGN (Premium Light)
   ========================================================================== */

/* --- 1. Base Tile Styling (Frosted Glass) --- */
.visual-tile-card,
.country-rec-card {
    background: rgba(255, 255, 255, 0.65);
    /* Semi-transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 8px 32px 0 rgba(0, 106, 77, 0.08),
        /* Deep ambient shadow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner light rim */
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    /* Ensure existing layout props persist */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    height: 280px;
}

/* Hover State: "Lift & Shine" */
.visual-tile-card:hover,
.country-rec-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* Increase opacity slightly on hover for "solidifying" effect */
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 20px 40px -5px rgba(0, 166, 81, 0.2),
        inset 0 0 0 2px rgba(0, 166, 81, 0.3);
    /* Green inner glow */
    border-color: rgba(255, 255, 255, 1);
    z-index: 10;
}

/* --- 2. Icon Area (The Gem) --- */
.tile-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow:
        0 10px 20px rgba(0, 166, 81, 0.15),
        inset 0 -5px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 1);
    font-size: 2.8rem;
    color: var(--primary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visual-tile-card:hover .tile-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 166, 81, 0.3);
    color: var(--accent-color);
}

/* --- 3. Typography --- */
.tile-info h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* --- 4. Background Glow (Subtle) --- */
.tile-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.05) 0%, transparent 60%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.visual-tile-card:hover .tile-bg-glow {
    opacity: 1;
}

/* --- 5. Hover Overlay (Glass Style) --- */
.tile-hover-overlay {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 166, 81, 0.2);
}

.tile-hover-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- 6. Refine Country Rec Cards --- */
.country-rec-card {
    align-items: flex-start;
    /* Align chart/text left */
    text-align: left;
    height: auto;
    /* Allow flexible height */
    padding: 25px;
}

.country-card-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-value {
    color: var(--primary-green);
    text-shadow: 0 2px 10px rgba(0, 166, 81, 0.1);
}

/* ==========================================================================
   HOLOGRAPHIC GLASS REDESIGN (Futuristic Tech)
   ========================================================================== */

/* --- 0. Command Center Description --- */
.results-intro {
    text-align: center;
    margin: 30px auto 50px;
    max-width: 800px;
    animation: fadeInDown 0.8s ease-out;
}

.results-intro h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.results-intro p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* --- 1. Holographic Card Base --- */
.visual-tile-card,
.country-rec-card,
.chart-card {
    /* Glass Effect Base */
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px -10px rgba(0, 106, 77, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Reset from previous attempts */
    transform: none;
    padding: 30px;
    height: auto;
    min-height: 280px;
}

/* --- 2. Tech Background Pattern --- */
.visual-tile-card::before,
.country-rec-card::before,
.chart-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(#00A651 1px, transparent 1px),
        radial-gradient(#00A651 1px, transparent 1px);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
    opacity: 0.03;
    z-index: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.visual-tile-card:hover::before {
    opacity: 0.08;
}

/* --- 3. Animated Holographic Border --- */
.visual-tile-card::after,
.country-rec-card::after,
.chart-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    /* Border width */
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(255, 255, 255, 0), rgba(0, 106, 77, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.5s ease;
}

.visual-tile-card:hover::after,
.country-rec-card:hover::after,
.chart-card:hover::after {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    filter: drop-shadow(0 0 10px rgba(0, 166, 81, 0.3));
}

/* --- 4. Hover Lift & Glow --- */
.visual-tile-card:hover,
.country-rec-card:hover,
.chart-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0, 106, 77, 0.25),
        0 0 30px rgba(0, 166, 81, 0.1);
    /* Inner glow */
}

/* --- 5. New Icon Style --- */
.tile-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0fdf4, #e6fffa);
    border-radius: 50px;
    /* Slight squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 auto 25px;
    box-shadow:
        0 10px 20px rgba(0, 166, 81, 0.1),
        inset 0 -5px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
    z-index: 2;
    position: relative;
}

.visual-tile-card:hover .tile-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-gradient, linear-gradient(135deg, #00A651, #006A4D));
    color: white;
}

/* --- 6. Typography Refinements --- */
.tile-info h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

/* --- 7. Hover Overlay Refinement --- */
/* Reuse existing overlay logic but clean it up */
.tile-hover-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   ENHANCED RESULTS PAGE - INTRO SECTION + REFINED TILES
   ========================================================================== */

/* --- 1. Results Intro Section --- */
.results-intro-section {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.03) 0%, rgba(0, 106, 77, 0.06) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 166, 81, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.intro-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 166, 81, 0.3);
}

.intro-icon i {
    font-size: 2.5rem;
    color: white;
}

.intro-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 15px 0;
}

.intro-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* Mobile Responsive for Intro */
@media (max-width: 768px) {
    .results-intro-section {
        padding: 30px 20px;
    }

    .intro-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .intro-text h3 {
        font-size: 1.4rem;
    }

    .intro-text p {
        font-size: 0.95rem;
    }
}

/* --- 2. FURTHER ENHANCED Visual Tiles --- */

/* Add subtle pattern overlay */
.visual-tile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 166, 81, 0.01) 10px, rgba(0, 166, 81, 0.01) 20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.visual-tile-card:hover::after {
    opacity: 1;
}

/* Make tiles even more dynamic with rotation on hover */
.visual-tile-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visual-tile-card:hover {
    transform: translateY(-12px) scale(1.03) rotate(-1deg);
}

/* Add colored top accent bar */
.visual-tile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.visual-tile-card:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Enhanced icon with pulse animation */
@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.visual-tile-card:hover .tile-icon-wrapper {
    animation: iconPulse 2s ease-in-out infinite;
    transform: scale(0.95);
}

/* Refined hover overlay with glassmorphism */
.tile-hover-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 166, 81, 0.1);
}

/* Add "NEW" badge for certain items */
.tile-badge.badge-new {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ==========================================================================
   MODERN DASHBOARD LIST REDESIGN - Professional & Clean
   ========================================================================== */

/* --- Page Introduction Section --- */
.page-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border: 1px solid rgba(0, 166, 81, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-intro h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-intro h2 i {
    font-size: 1.5rem;
}

.page-intro p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    max-width: 900px;
}

/* --- List Layout (replaces grid) --- */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

/* --- Insight Item (replaces service-card) --- */
.insight-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.insight-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 166, 81, 0.12);
    transform: translateY(-2px);
    background: linear-gradient(to right, #ffffff 0%, #f0fdf9 100%);
}

.insight-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.insight-item:hover::before {
    opacity: 1;
}

/* --- Icon --- */
.item-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.insight-item:hover .item-icon {
    background: var(--primary-color);
    transform: scale(1.05);
}

.item-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.insight-item:hover .item-icon i {
    color: white;
}

/* --- Content --- */
.item-content {
    flex: 1;
    min-width: 0;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.item-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    transition: color 0.2s ease;
}

.insight-item:hover .item-header h4 {
    color: var(--primary-color);
}

.item-count {
    background: #1f2937;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.item-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Action Arrow --- */
.item-action {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.insight-item:hover .item-action {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.item-action i {
    font-size: 1rem;
}

/* --- Section Titles --- */
.main-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* --- Chart Cards (keep distinct but aligned) --- */
.chart-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
}

.chart-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 166, 81, 0.1);
    transform: translateY(-2px);
}

.chart-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

/* --- Country Recommendation Cards --- */
.country-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.country-rec-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.country-rec-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 166, 81, 0.1);
    transform: translateY(-2px);
}

.country-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.country-card-header img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-card-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.country-card-body {
    margin-top: 12px;
}

.metric-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.metric-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.metric-change.positive {
    background: #ecfdf5;
    color: #10b981;
}

.metric-change.negative {
    background: #fef2f2;
    color: #ef4444;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-intro {
        padding: 24px;
    }

    .page-intro h2 {
        font-size: 1.5rem;
    }

    .page-intro p {
        font-size: 1rem;
    }

    .insight-item {
        flex-direction: row;
        padding: 16px;
        gap: 16px;
    }

    .item-icon {
        width: 48px;
        height: 48px;
    }

    .item-icon i {
        font-size: 1.25rem;
    }

    .item-header h4 {
        font-size: 1rem;
    }

    .item-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }

    .item-action {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   Footer Styles
   ======================================== */
.main-footer {
    background: #ffffff;
    border-top: 1px solid #dcebe4;
    color: #102033;
    padding: 22px 0 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 100;
}

.main-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #006a4d, #00A651, #43d17d);
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 0;
    border: 1px solid #dcebe4;
    border-left: 0;
    border-right: 0;
    background: #ffffff;
}

.footer-brand-block {
    min-width: 230px;
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.footer-brand-block p {
    color: #5b6b63;
    line-height: 1.35;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.footer-mini-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.footer-mini-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dcebe4;
    border-radius: 8px;
    background: #f8fcfa;
    color: #204034;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    transition: all 0.18s ease;
}

.footer-mini-nav a i {
    color: #00885f;
}

.footer-mini-nav a:hover {
    color: #006a4d;
    border-color: #bde8d0;
    background: #f0fdf4;
}

.footer-contact-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 250px;
}

.footer-contact-pills,
.footer-social-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #006a4d;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 850;
    transition: all 0.18s ease;
}

.footer-contact-pill:hover {
    background: #00A651;
    color: #ffffff;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcebe4;
    border-radius: 8px;
    background: #f8fcfa;
    color: #006a4d;
    text-decoration: none;
    transition: all 0.18s ease;
}

.footer-social-link:hover {
    background: #00A651;
    border-color: #00A651;
    color: #ffffff;
}

.footer-social-link.disabled {
    opacity: 0.42;
    pointer-events: none;
}

.footer-bottom {
    border-top: 1px solid #dcebe4;
    padding: 12px 0 14px;
    text-align: center;
    color: #6b7c74;
    font-size: 0.84rem;
}

.footer-bottom p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #006a4d;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #00A651;
}

@media (max-width: 1024px) {
    .footer-compact {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .footer-brand-block,
    .footer-contact-panel {
        max-width: none;
        min-width: 0;
    }

    .footer-contact-panel,
    .footer-contact-pills,
    .footer-social-panel {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .main-footer {
        padding-top: 18px;
    }

    .footer-container {
        padding: 0 18px;
    }

    .footer-compact {
        padding: 12px 0;
        gap: 10px;
    }

    .footer-logo-img {
        height: 30px;
    }

    .footer-brand-block p {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .footer-mini-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .footer-mini-nav a {
        width: auto;
        min-height: 31px;
        justify-content: center;
        padding: 0 8px;
        font-size: 0.78rem;
    }

    .footer-contact-panel {
        min-width: 0;
        justify-content: flex-start;
        gap: 6px;
    }

    .footer-contact-pills,
    .footer-social-panel {
        justify-content: flex-start;
        gap: 6px;
    }

    .footer-contact-pill {
        width: auto;
        min-height: 31px;
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .footer-social-link {
        width: 31px;
        height: 31px;
    }

    .footer-bottom {
        text-align: left;
        padding: 10px 0 12px;
        font-size: 0.78rem;
    }

    .footer-bottom p {
        justify-content: flex-start;
        gap: 5px 14px;
    }
}

/* Fix Chart Source Visibility on Glass Theme */
.chart-source {
    color: #333 !important;
}

/* Chart Cards Styles */
.chart-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--card-bg-solid);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    /* Taller card for better visibility */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.chart-card h5 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.chart-area {
    flex: 1;
    position: relative;
    min-height: 350px;
    /* Ensure chart has enough space */
    width: 100%;
}

.chart-source {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 15px;
    font-style: italic;
}

/* Responsive Grid Fixes */
@media (max-width: 768px) {
    .chart-cards-container {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
    }

    .chart-card {
        min-height: auto;
        /* Allow height to adjust naturally */
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        /* Force single column for services */
    }

    .results-container {
        padding: 20px 15px !important;
        /* Ensure consistent padding */
    }
}

/* Insight Items (Service Cards) Styles */
.insight-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.insight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 166, 81, 0.1);
    border-color: rgba(0, 166, 81, 0.2);
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 166, 81, 0.1);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    padding: 0 20px;
    min-width: 0;
    /* Prevent flex overflow */
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.item-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.item-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.item-description {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.item-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.insight-item:hover .item-action {
    background: var(--primary-green);
    color: white;
}

/* Mobile Adjustments for Insight Items */
@media (max-width: 600px) {
    .insight-item {
        padding: 15px;
        /* Keep row layout but allow wrapping if needed, though row usually looks cleaner for lists */
    }

    .item-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .item-content {
        padding: 0 12px;
    }

    .item-header {
        margin-bottom: 4px;
    }

    .item-header h4 {
        font-size: 0.95rem;
    }

    .item-description {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .item-action {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
/* Styles extracted from navbar.html to prevent FOUC */

        /* Hide Google Translate injected branding/UI while keeping the custom language switcher. */
        #google_translate_element,
        #google_translate_element *,
        .goog-te-banner-frame,
        .goog-te-banner-frame.skiptranslate,
        iframe.goog-te-banner-frame,
        .goog-te-menu-frame,
        iframe.goog-te-menu-frame,
        .goog-te-balloon-frame,
        .goog-logo-link,
        .goog-logo-link *,
        .goog-te-gadget,
        .goog-te-gadget *,
        .goog-te-gadget-simple,
        .goog-te-gadget-simple *,
        .goog-te-gadget-icon,
        .goog-te-menu-value,
        .goog-te-combo,
        #goog-gt-tt,
        #goog-gt-tt *,
        .goog-tooltip,
        .goog-tooltip:hover,
        body > .skiptranslate,
        iframe.skiptranslate,
        body > .VIpgJd-ZVi9od-l4eHX-hSRGPd,
        body > .VIpgJd-ZVi9od-ORHb-OEVmcd,
        body > .VIpgJd-yAWNEb-L7lbkb,
        body > .VIpgJd-ZVi9od-aZ2wEe,
        body > .VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
        body > .VIpgJd-ZVi9od-aZ2wEe-OiiCO {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
            max-width: 0 !important;
            max-height: 0 !important;
            overflow: hidden !important;
            pointer-events: none !important;
        }
        html.translated-ltr,
        html.translated-rtl,
        body {
            top: 0px !important;
            margin-top: 0 !important;
        }
        body {
            position: static !important;
        }
        .goog-text-highlight,
        .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
            background: none !important;
            box-shadow: none !important;
        }
        main .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
        .page-section .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
        .ix-original-app .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
        #indatexoServiceReactRoot .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
        .react-ix-service-shell .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
        main .skiptranslate,
        .page-section .skiptranslate,
        .ix-original-app .skiptranslate,
        #indatexoServiceReactRoot .skiptranslate,
        .react-ix-service-shell .skiptranslate,
        main .goog-text-highlight,
        .page-section .goog-text-highlight,
        .ix-original-app .goog-text-highlight,
        #indatexoServiceReactRoot .goog-text-highlight,
        .react-ix-service-shell .goog-text-highlight {
            display: revert !important;
            visibility: visible !important;
            opacity: 1 !important;
            width: auto !important;
            height: auto !important;
            max-width: none !important;
            max-height: none !important;
            overflow: visible !important;
            pointer-events: auto !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        /* Top Header Bar Styles */
        .top-header-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: #004d38;
            color: rgba(255, 255, 255, 0.9);
            z-index: 10050;
            display: flex;
            align-items: center;
            font-family: 'Outfit', sans-serif;
            font-size: 0.85rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            overflow: visible;
            transition: box-shadow 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
        }

        .top-header-bar.consumer-top-bar-active {
            transform: translateY(0) !important;
            opacity: 1 !important;
            box-shadow: 0 10px 26px rgba(0, 77, 56, 0.18);
        }

        .top-bar-container {
            width: 100%;
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 10051;
            overflow: visible;
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lang-minimal-switcher {
            position: relative;
            z-index: 10051;
            cursor: pointer;
            padding: 0;
            border-radius: 999px;
            transition: all 0.2s;
            overflow: visible;
        }

        .lang-minimal-switcher:hover {
            background: transparent;
        }

        .active-lang {
            max-width: 142px;
            height: 30px;
            min-height: 30px;
            padding: 3px 10px 3px 5px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: none;
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            font-weight: 850;
            transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
        }

        .lang-minimal-switcher:hover .active-lang,
        .lang-minimal-switcher.is-open .active-lang {
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(167, 243, 208, 0.46);
            transform: translateY(-1px);
        }

        .lang-globe {
            width: 22px;
            height: 22px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 22px;
            background: rgba(255, 255, 255, 0.14);
            color: #a7f3d0;
            font-size: 0.76rem;
            line-height: 1;
        }

        .lang-current-name {
            max-width: 92px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 0.78rem;
            font-weight: 850;
            line-height: 1;
        }

        .lang-option-copy {
            min-width: 0;
            display: grid;
            line-height: 1.05;
            text-align: left;
        }

        .lang-trigger-label {
            max-width: 92px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 0.82rem;
            font-weight: 900;
        }

        .lang-trigger-code {
            display: none;
        }

        .lang-dropdown-minimal {
            position: absolute;
            top: calc(100% + 7px);
            right: 0;
            background: #ffffff;
            color: #0f172a;
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 10px;
            box-shadow: 0 16px 34px rgba(2, 8, 23, 0.18);
            min-width: 148px;
            padding: 6px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(4px) scale(0.98);
            transform-origin: top right;
            transition: opacity 0.12s ease, visibility 0.12s ease, transform 0.12s ease;
            pointer-events: none;
            z-index: 10060;
        }

        .lang-minimal-switcher:hover .lang-dropdown-minimal,
        .lang-minimal-switcher:focus-within .lang-dropdown-minimal,
        .lang-minimal-switcher.is-open .lang-dropdown-minimal {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .lang-item-min {
            min-height: 36px;
            padding: 7px 8px;
            border-radius: 7px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 18px;
            align-items: center;
            gap: 8px;
            color: #0f172a;
            font-weight: 800;
            transition: background 0.12s ease, color 0.12s ease;
        }

        .lang-item-min strong {
            color: #102033;
            font-size: 0.84rem;
            font-weight: 850;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .lang-item-min small {
            display: none;
        }

        .lang-code {
            display: none;
        }

        .lang-check {
            color: #00a651;
            font-size: 0.72rem;
            opacity: 0;
        }

        .lang-item-min:hover {
            background: #f0fdf4;
            color: #0f172a;
        }

        .lang-item-min.active {
            background: #e8f7ef;
        }

        .lang-item-min.active .lang-check {
            opacity: 1;
        }

        @media (max-width: 600px) {
            .top-header-bar {
                width: 100dvw !important;
                max-width: 100dvw !important;
                height: 42px !important;
                font-size: 0.78rem !important;
                overflow: visible !important;
            }

            .top-bar-container {
                width: 100dvw !important;
                max-width: 100dvw !important;
                height: 100% !important;
                display: block !important;
                padding: 0 10px !important;
                position: relative !important;
                overflow: visible !important;
            }

            .top-bar-left {
                position: absolute !important;
                left: 10px !important;
                right: auto !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                width: calc(54vw - 18px) !important;
                max-width: calc(54vw - 18px) !important;
                min-width: 0 !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                gap: 6px !important;
            }

            .top-bar-left i {
                flex: 0 0 auto !important;
            }

            .top-bar-right {
                position: absolute !important;
                left: min(54vw, calc(100dvw - 126px)) !important;
                right: auto !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                width: 116px !important;
                min-width: 0 !important;
                flex: 0 0 auto !important;
                gap: 0 !important;
                justify-content: flex-end !important;
                overflow: visible !important;
                z-index: 10070 !important;
            }

            .top-bar-right .desktop-only {
                display: none !important;
            }

            .lang-minimal-switcher {
                width: 116px !important;
                max-width: 116px !important;
            }

            .active-lang {
                width: 116px !important;
                max-width: 116px !important;
                min-width: 116px !important;
                height: 30px !important;
                min-height: 30px !important;
                padding: 3px 8px 3px 4px !important;
                gap: 5px !important;
            }

            .lang-globe {
                width: 22px !important;
                height: 22px !important;
                flex-basis: 22px !important;
            }

            .lang-current-name {
                max-width: 54px !important;
                font-size: 0.75rem !important;
            }

            .lang-dropdown-minimal {
                position: fixed !important;
                top: 48px !important;
                right: 10px !important;
                min-width: 196px !important;
                width: min(224px, calc(100dvw - 20px)) !important;
                max-width: calc(100vw - 20px) !important;
                z-index: 10090 !important;
            }
        }

        @media (max-width: 380px) {
            .top-bar-container {
                padding: 0 8px !important;
            }

            .top-bar-left {
                left: 8px !important;
                right: auto !important;
                width: calc(54vw - 16px) !important;
                max-width: calc(54vw - 16px) !important;
                font-size: 0.74rem !important;
            }

            .top-bar-right {
                left: min(54vw, calc(100dvw - 116px)) !important;
                right: auto !important;
                width: 108px !important;
            }

            .lang-dropdown-minimal {
                right: 8px !important;
                width: min(216px, calc(100dvw - 16px)) !important;
                max-width: calc(100dvw - 16px) !important;
            }

            .lang-minimal-switcher,
            .active-lang {
                width: 108px !important;
                max-width: 108px !important;
                min-width: 108px !important;
            }

            .lang-current-name {
                max-width: 40px !important;
            }
        }

        /* Adjust Navbar to sit below Top Bar */
        .nav-bar {
            top: 55px !important;
        }

        /* Adjust Container Padding */
        .container, .page-wrapper {
            padding-top: 180px !important;
        }

        /* RTL Adjustments */
        body.lang-ar .top-bar-container {
            flex-direction: row-reverse;
        }
        body.lang-ar .lang-dropdown-minimal {
            right: auto;
            left: 0;
        }
    

        .dropdown-header {
            font-weight: 700;
            color: #006A4D;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            margin-top: 5px;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 4px;
        }

        .nav-bar-logo {
            height: var(--logo-height);
            width: auto;
            object-fit: contain;
            max-height: 120px;
        }

        @media (max-width: 991px) {
            .nav-center.mobile-open {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                height: auto !important;
                background: white !important;
                padding: 20px 0 !important;
                position: relative !important;
                z-index: 9999 !important;
                opacity: 1 !important;
                visibility: visible !important;
                order: 3 !important;
            }

            .nav-links {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                gap: 10px !important;
            }

            .nav-links>a,
            .nav-links .dropdown>.dropbtn {
                display: block;
                width: 100% !important;
                padding: 15px !important;
                background-color: #f8fafc !important;
                color: #333 !important;
                border-radius: 8px !important;
                text-align: left !important;
                font-size: 16px !important;
                font-weight: 600 !important;
                visibility: visible !important;
                opacity: 1 !important;
                text-decoration: none !important;
            }

            .nav-links>a:hover,
            .nav-links .dropdown>.dropbtn:hover {
                background-color: #f1f5f9 !important;
            }

            .nav-links .data-services-menu > .data-services-trigger {
                width: 100% !important;
                justify-content: flex-start !important;
                border-radius: 8px !important;
                background: #f8fafc !important;
                color: #1e293b !important;
                transform: none !important;
            }

            .nav-links .data-services-menu.active > .data-services-trigger,
            .nav-links .data-services-menu > .data-services-trigger:hover {
                background: #eef2f7 !important;
                color: #006a4d !important;
            }

            /* Fix for Services Mega Menu Content */
            .dropdown-content {
                position: static !important;
                width: 100% !important;
                transform: none !important;
                box-shadow: none !important;
                padding: 0 10px 15px 10px !important;
                border: none !important;
                background: transparent !important;

                /* Scrollable Logic */
                max-height: 350px !important;
                overflow-y: auto !important;
                overflow-x: hidden !important;

                /* Custom Scrollbar for this section */
                scrollbar-width: thin;
                scrollbar-color: #00A651 #f1f5f9;
            }

            .dropdown-content::-webkit-scrollbar {
                width: 6px;
            }

            .dropdown-content::-webkit-scrollbar-track {
                background: #f1f5f9;
            }

            .dropdown-content::-webkit-scrollbar-thumb {
                background-color: #00A651;
                border-radius: 10px;
            }

            .mega-menu-grid {
                display: flex !important;
                flex-direction: column !important;
                gap: 15px !important;
            }

            .mega-menu-column {
                width: 100% !important;
                border-bottom: 1px solid #eee !important;
                padding-bottom: 10px !important;
            }

            .mega-menu-column:last-child {
                border-bottom: none !important;
            }

            .dropdown-header {
                font-size: 14px !important;
                color: #006A4D !important;
                margin-bottom: 5px !important;
                margin-top: 10px !important;
                padding-left: 5px !important;
            }

            .dropdown-content a {
                padding: 10px 15px !important;
                /* Bigger tap target */
                font-size: 15px !important;
                background: #fff !important;
                margin-bottom: 5px !important;
                border-radius: 6px !important;
                border: 1px solid #f1f5f9 !important;
            }
        }

        /* Login Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 40px;
            border: 1px solid #888;
            width: 90%;
            max-width: 450px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            animation: fadeInDown 0.4s ease-out;
            position: relative;
        }

        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            right: 20px;
            top: 15px;
            transition: color 0.3s;
        }

        .close-modal:hover,
        .close-modal:focus {
            color: #333;
            text-decoration: none;
            cursor: pointer;
        }

        /* Password Toggle Styles */
        .password-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }

        .toggle-password {
            position: absolute;
            right: 15px;
            width: 26px;
            height: 26px;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
            color: #64748b;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: color 0.3s;
            z-index: 10;
        }

        .toggle-password:hover {
            color: #1e293b;
        }

        .toggle-password svg {
            width: 20px;
            height: 20px;
            display: block;
        }

        .premium-access-overlay {
            position: fixed;
            inset: 0;
            z-index: 100000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 22px;
            background: rgba(15, 23, 42, 0.62);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .premium-access-dialog {
            width: min(1060px, 100%);
            max-height: calc(100vh - 44px);
            overflow: auto;
            position: relative;
            background: #ffffff;
            border: 1px solid rgba(0, 106, 77, 0.18);
            border-radius: 18px;
            box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
        }

        .premium-access-close {
            position: absolute;
            top: 14px;
            right: 14px;
            z-index: 2;
            width: 38px;
            height: 38px;
            padding: 0;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 50%;
            background: #ffffff;
            color: #64748b;
            box-shadow: none;
            cursor: pointer;
            font-size: 1.45rem;
            line-height: 1;
        }

        .premium-access-layout {
            display: grid;
            grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.4fr);
            min-height: 620px;
        }

        .premium-access-intro {
            padding: 34px;
            background: linear-gradient(180deg, #004d38 0%, #006a4d 100%);
            color: #ffffff;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .premium-access-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #a7f3d0;
            font-size: 1.7rem;
        }

        .premium-access-kicker {
            color: #a7f3d0;
            font-size: 0.78rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .premium-access-intro h2 {
            margin: 0;
            color: #ffffff;
            font-size: clamp(1.75rem, 3vw, 2.55rem);
            line-height: 1.02;
            letter-spacing: 0;
        }

        .premium-access-intro p {
            margin: 0;
            color: rgba(255, 255, 255, 0.82);
            line-height: 1.58;
            font-size: 0.98rem;
        }

        .premium-requested-service {
            margin-top: auto;
            display: grid;
            gap: 6px;
            padding: 16px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.16);
        }

        .premium-requested-service span {
            color: #a7f3d0;
            font-size: 0.74rem;
            font-weight: 900;
            letter-spacing: 0.07em;
            text-transform: uppercase;
        }

        .premium-requested-service strong {
            color: #ffffff;
            line-height: 1.25;
        }

        .premium-login-link,
        .premium-submit-btn {
            min-height: 44px;
            border: 0;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font: inherit;
            font-weight: 900;
            cursor: pointer;
            box-shadow: none;
        }

        .premium-login-link {
            width: 100%;
            background: #ffffff;
            color: #006a4d;
        }

        .premium-request-form {
            padding: 32px;
            display: grid;
            gap: 18px;
            background: #fbfefd;
        }

        .premium-form-section {
            border: 1px solid #dbe7e2;
            border-radius: 12px;
            background: #ffffff;
            overflow: hidden;
        }

        .premium-section-head {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 18px;
            border-bottom: 1px solid #e4eee9;
            background: #f4fbf7;
        }

        .premium-section-head > span {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #006a4d;
            color: #ffffff;
            font-weight: 900;
        }

        .premium-section-head h3 {
            margin: 0;
            color: #102033;
            font-size: 1.02rem;
            line-height: 1.2;
        }

        .premium-section-head p {
            margin: 2px 0 0;
            color: #64748b;
            font-size: 0.86rem;
        }

        .premium-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            padding: 18px;
        }

        .premium-request-form label {
            min-width: 0;
            display: grid;
            gap: 7px;
            color: #334155;
            font-size: 0.84rem;
            font-weight: 850;
        }

        .premium-request-form label span {
            display: block;
            overflow-wrap: break-word;
        }

        .premium-request-form input,
        .premium-request-form select,
        .premium-request-form textarea {
            width: 100%;
            min-height: 44px;
            border: 1px solid #d6e4dd;
            border-radius: 8px;
            background: #ffffff;
            color: #102033;
            padding: 10px 12px;
            font: inherit;
            font-size: 0.94rem;
            box-shadow: none;
        }

        .premium-request-form textarea {
            min-height: 76px;
            resize: vertical;
        }

        .premium-request-form input:focus,
        .premium-request-form select:focus,
        .premium-request-form textarea:focus {
            outline: none;
            border-color: #00a651;
            box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.11);
        }

        .premium-form-wide {
            grid-column: 1 / -1;
        }

        .premium-form-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
        }

        .premium-form-status {
            min-height: 24px;
            flex: 1 1 260px;
            color: #64748b;
            font-weight: 750;
            line-height: 1.4;
        }

        .premium-form-status.success {
            color: #047857;
        }

        .premium-form-status.error {
            color: #dc2626;
        }

        .premium-submit-btn {
            min-width: 230px;
            padding: 0 18px;
            background: #00a651;
            color: #ffffff;
        }

        .premium-submit-btn:disabled {
            cursor: progress;
            opacity: 0.75;
        }

        @media (max-width: 860px) {
            .premium-access-layout {
                grid-template-columns: 1fr;
                min-height: 0;
            }

            .premium-access-intro {
                padding: 28px;
            }

            .premium-requested-service {
                margin-top: 0;
            }
        }

        @media (max-width: 620px) {
            .premium-access-overlay {
                padding: 10px;
                align-items: flex-start;
            }

            .premium-access-dialog {
                max-height: calc(100vh - 20px);
                border-radius: 14px;
            }

            .premium-request-form {
                padding: 16px;
            }

            .premium-form-grid {
                grid-template-columns: 1fr;
                padding: 14px;
            }

            .premium-form-footer,
            .premium-submit-btn,
            .premium-login-link {
                width: 100%;
            }
        }

        /* Arabic Support - Text Only */
        body.lang-ar [data-i18n] {
            direction: rtl;
            unicode-bidi: isolate;
        }
    
/* Styles extracted from footer.html to prevent FOUC */

    /* Legal Modal Styles */
    .legal-modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(4px);
        z-index: 10000;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .legal-modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .legal-modal-content {
        background: #ffffff;
        width: 90%;
        max-width: 800px;
        max-height: 85vh;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        transform: translateY(20px);
        transition: transform 0.3s ease;
        overflow: hidden;
    }

    .legal-modal-overlay.active .legal-modal-content {
        transform: translateY(0);
    }

    .legal-modal-header {
        padding: 24px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
    }

    .legal-modal-header h2 {
        margin: 0;
        font-size: 1.5rem;
        color: #0f172a;
        font-weight: 600;
    }

    .legal-modal-close {
        background: none;
        border: none;
        font-size: 1.75rem;
        line-height: 1;
        color: #64748b;
        cursor: pointer;
        transition: color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        border-radius: 4px;
    }

    .legal-modal-close:hover {
        color: #0f172a;
        background: #e2e8f0;
    }

    .legal-modal-body {
        padding: 24px;
        overflow-y: auto;
        color: #334155;
        line-height: 1.6;
        text-align: left;
    }

    .legal-modal-body h3 {
        color: #0f172a;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
        font-size: 1.25rem;
    }

    .legal-modal-body p {
        margin-bottom: 1em;
    }

    .legal-modal-body ul {
        margin-bottom: 1em;
        padding-left: 20px;
    }

    .legal-modal-body li {
        margin-bottom: 0.5em;
    }

    @media (max-width: 640px) {
        .legal-modal-content {
            width: 95%;
            max-height: 90vh;
        }

        .legal-modal-header {
            padding: 16px;
        }

        .legal-modal-body {
            padding: 16px;
        }
    }

/* Final typography guard: keep heavy weight for real titles only. */
body :where(p, li, small, span, a, input, textarea, select, option, code, strong, b, td, th, dt, dd),
body :where(p, li, small, span, a, input, textarea, select, option, code, strong, b, td, th, dt, dd)[class],
body [style]:where(p, li, small, span, a, input, textarea, select, option, code, strong, b, td, th, dt, dd) {
    font-weight: 400 !important;
}

body :where(button, label),
body :where(button, label)[class],
body [style]:where(button, label) {
    font-weight: 500 !important;
}

body :where(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *),
body :where(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *)[class],
body [style]:where(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *) {
    font-weight: 800 !important;
}
