/* ============================================
   ROOT STYLES & VARIABLES
   ============================================ */
:root {
    --primary-color: #006ea6;
    --secondary-color: #6ea600;
    --dark-color: #0a0a0a;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #717182;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Promote to own layer to reduce reflow on scroll */
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.section {
    padding: 120px 0;
}

.section-top {
    padding-top: 120px;
}

.section-bottom {
    padding-bottom: 120px;
}

.section-title {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
}

.sub-title {
    border-left: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 0 10px 0 15px;
    text-transform: uppercase;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-outline-dark {
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */
.parallax-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: -1;
    animation: parallaxShift 0.6s ease-out forwards;
}

.parallax-bg-subtle {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.parallax-container {
    position: relative;
    z-index: 1;
}

@keyframes parallaxShift {
    from {
        transform: translateY(20px);
    }

    to {
        transform: translateY(0);
    }
}

/* Parallax Scroll Effect with JavaScript */
.parallax-scroll {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* ============================================
   NAVIGATION
   ============================================ */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    z-index: 1000;
}

.header:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.motra-logo {
    color: var(--primary-color);
}

.logo {
    opacity: 1;
    visibility: visible;
}

.logo img {
    opacity: 1;
    visibility: visible;
    display: block;
}

.header .btn-primary {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 110, 166, 0.15);
}

.header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 110, 166, 0.25);
    background-color: #004d73;
}

.nav-links a {
    font-weight: 400;
    color: var(--dark-color) !important;
    transition: var(--transition);
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color) !important;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-link-item.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link-item.active::after {
    width: 100%;
}

/* ---- Desktop Nav Dropdown ---- */
.nav-dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    display: inline-flex;
    align-items: center;
    font-size: inherit;
    font-family: inherit;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.nav-dropdown-toggle::after {
    display: none !important;
}

.nav-dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

.nav-dropdown-toggle.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-dropdown-menu {
    min-width: 190px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 8px !important;
}

.nav-dropdown-menu .dropdown-item {
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    padding: 8px 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu .dropdown-item:hover,
.nav-dropdown-menu .dropdown-item:focus {
    background: transparent;
    color: var(--primary-color);
}

.nav-dropdown-menu .dropdown-item.active,
.nav-dropdown-menu .dropdown-item:active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

/* ---- Language Selector ---- */
.lang-selector {
    align-items: center;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lang-toggle::after {
    display: none !important;
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lang-toggle[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    min-width: 148px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 6px !important;
}

.lang-dropdown-menu .dropdown-item {
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dropdown-menu .dropdown-item:hover {
    background: transparent;
    color: var(--primary-color);
}

.lang-dropdown-menu .dropdown-item.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

.lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

/* Mobile Offcanvas Nav */
.mobile-nav-link {
    display: block;
    padding: 0.875rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Mobile nav dropdown */
.mobile-nav-dropdown-toggle {
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.875rem 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-dropdown-toggle:hover,
.mobile-nav-dropdown-toggle.active {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Split mobile nav row: link text + chevron toggle side by side */
.mobile-nav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-parent-link {
    flex-grow: 1;
    padding: 0.875rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-parent-link:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.mobile-nav-parent-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-nav-chevron-btn {
    background: none;
    border: none;
    padding: 0.875rem 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mobile-nav-dropdown-chevron {
    transition: transform 0.2s ease;
}

.mobile-nav-dropdown-toggle[aria-expanded="true"] .mobile-nav-dropdown-chevron {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    padding: 4px 0 4px 16px;
}

.mobile-nav-sublink {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-sublink:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.mobile-nav-sublink.active {
    color: var(--primary-color);
    font-weight: 600;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero-section h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    color: var(--dark-color);
}

.text-highlight {
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color), #8bc34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    display: block;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
}

.hero-section .lead {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-section img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: 0.75rem;
    animation: slideInRight 0.8s ease-out;
}

/* Hero Stat Cards */
.hero-stat-card {
    position: absolute;
    background: white;
    border-radius: 0.75rem;
    padding: 0.875rem 1.125rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    animation: fadeInUp 0.6s ease-out both, gentleBounce 3s ease-in-out infinite;
}

.hero-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 110, 166, 0.08);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat-text {
    display: flex;
    flex-direction: column;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

.hero-stat-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Stat card positions */
.hero-stat-top-left {
    top: -4%;
    left: -6%;
    animation-delay: 0.3s;
    animation-duration: 0.6s, 3s;
}

.hero-stat-right {
    top: 18%;
    right: -5%;
    animation-delay: 0.5s;
    animation-duration: 0.6s, 3.4s;
}

.hero-stat-bottom-left {
    bottom: 8%;
    left: -8%;
    animation-delay: 0.7s;
    animation-duration: 0.6s, 3.8s;
}

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

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

@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #004d73;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background-color: var(--light-bg);
    position: relative;
    z-index: 1;
}

/* .services-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
} */

.services-section .lead {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.625rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 110, 166, 0.1);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.accent-line {
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   STRATEGIC SECTION
   ============================================ */
.strategic-section {
    position: relative;
    background: white;
}

/* .strategic-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    margin-bottom: 2rem;
    font-weight: 700;
} */

.strategic-section img {
    /* max-height: 500px; */
    object-fit: cover;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 2rem;
}

.feature-list li strong {
    display: block;
    font-size: 1.125rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

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

/* ============================================
   BUILT FOR SECTION
   ============================================ */
.built-for-section {
    padding: 5rem 0;
}

/* .built-for-section h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.3;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--dark-color);
} */

.benefit-card {
    background-color: #F8FAFC;
    padding: 2.5rem;
    border-radius: 0.625rem;
    transition: var(--transition);
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8eef5; */
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 110, 166, 0.12);
    border-color: var(--primary-color);
    background: white;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    width: 32px;
    height: 32px;
}

.benefit-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: 5rem 0;
    background-color: white;
}

/* .how-it-works-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--dark-color);
} */

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: none;
    background: #ffffff;
    border-radius: 0.625rem !important;
    margin-bottom: 5px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2.5rem;
    background: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    box-shadow: none;
    border-radius: 0.625rem !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #ffffff;
    color: var(--dark-color);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23006ea6'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23006ea6'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.faq-accordion .step-number {
    font-size: 2.5rem;
    font-weight: 400;
    color: #d0d5dd;
    line-height: 1;
    flex-shrink: 0;
    min-width: 3.5rem;
}

.faq-accordion .accordion-body {
    padding: 0 2.5rem 1.75rem calc(2.5rem + 3.5rem + 2rem);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   PRINCIPLES SECTION
   ============================================ */
.principles-section {
    padding: 5rem 0;
}

.principles-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.principles-section .lead {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.principle-card {
    padding: 2rem;
    text-align: center;
}


.principle-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 110, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.principle-icon img {
    width: 32px;
    height: 32px;
}

.principle-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.principle-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-form-wrapper {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 0.625rem;
}

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    font-weight: 700;
}

.cta-section .lead {
    font-size: 1.125rem;
    line-height: 1.8;
}

.cta-form {
    position: relative;
    z-index: 1;
}

.cta-form .form-control {
    background-color: #F3F3F5;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.cta-form .form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 110, 166, 0.25);
    outline: none;
}

.cta-form .form-control::placeholder {
    color: #9ca3af;
}

.cta-form .form-label {
    /* color: rgba(255, 255, 255, 0.9); */
    /* font-weight: 500; */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cta-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.cta-form .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.cta-form .btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: #004d73;
}

/* ============================================
   RESOURCES SECTION
   ============================================ */
.resources-section {
    padding: 5rem 0;
    background-color: white;
}

.resources-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.resource-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.resource-card .resource-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-bg);
}

.resource-card .resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.resource-card:hover .resource-image img {
    transform: scale(1.1);
}

.resource-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0 1.5rem 0 1.5rem;
    color: var(--dark-color);
}

.resource-card p {
    padding: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.resource-title-link {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.resource-title-link:hover {
    color: var(--primary-color);
}

.resource-card p.resource-excerpt {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(2 * 1.6em);
}

.resource-footer-link {
    text-decoration: none;
    transition: var(--transition);
}

.resource-footer-link:hover .text-primary {
    transform: translateX(3px);
    display: inline-block;
}

.resource-footer-link small {
    color: var(--text-muted);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.arrow-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.resource-card .btn-link {
    padding: 0 1.5rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.resource-card .btn-link:hover {
    color: #004d73;
    transform: translateX(5px);
}

.resource-body {
    padding: 24px 24px 0 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a1a1a;
    padding: 3rem 0 1rem;
    background-color: var(--primary-color);
}

.footer h5,
.footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer a:hover {
    color: #ffffff;
}

.footer .border-top,
.footer .border-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-light {
    background-color: #F8FAFC !important;
}

img.rounded {
    border-radius: 16px !important;
}

.dropdown-toggle::after {
    border-top: .3em solid #000;
    margin-left: 0;
}

#dropdownMenuButton1:hover.dropdown-toggle::after {
    border-top: .3em solid #006ea6;
}

#dropdownMenuButton1 {
    padding: 10px 0 10px 10px;
}

#dropdownMenuButton1:hover,
#dropdownMenuButton1:active {
    background-color: transparent;
}

.nav-right {
    display: flex;
    gap: 10px;
}

/* .language-switcher .dropdown-menu.show {
    flex-direction: column;
    overflow: hidden;
    border: 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
} */

.dropdown-item.active,
.dropdown-item:active {
    background-color: #006ea6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media(min-width: 991px) {
    .nav-right {
        flex-direction: row-reverse;
    }
}

/* Tablets (768px and up) */
@media (max-width: 991px) {
    .navbar .btn-primary {
        margin-top: 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-top: 40px;
    }

    .hero-section .lead {
        font-size: 1.125rem;
    }

    .hero-section img {
        height: 380px;
        margin-top: 2rem;
    }

    .hero-stat-top-left {
        left: -2%;
    }

    .hero-stat-right {
        right: -4%;
    }

    .hero-stat-bottom-left {
        left: -2%;
    }

    .get_started {
        display: none;
    }

    .faq-accordion .accordion-button {
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

    .faq-accordion .step-number {
        font-size: 2rem;
        min-width: 2.5rem;
    }

    .faq-accordion .accordion-body {
        padding: 0 2rem 1.5rem calc(2rem + 2.5rem + 1.5rem);
    }

    .row.g-4>[class*='col-'] {
        padding-bottom: 2rem;
    }
}

/* Mobile Devices (576px and down) */
@media (max-width: 767px) {
    :root {
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
        --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.08);
    }

    body {
        font-size: 15px;
    }

    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-section .d-flex {
        flex-direction: column !important;
    }

    .hero-section .btn {
        width: 100%;
    }

    .hero-section img {
        height: 280px;
        margin-top: 2rem;
    }

    .hero-stat-card {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        border-radius: 0.5rem;
    }

    .hero-stat-icon {
        width: 30px;
        height: 30px;
    }

    .hero-stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .hero-stat-value {
        font-size: 0.8rem;
    }

    .hero-stat-sub,
    .hero-stat-label {
        font-size: 0.6rem;
    }

    .hero-stat-top-left {
        top: -6%;
        left: -2%;
    }

    .hero-stat-right {
        top: 12%;
        right: -2%;
    }

    .hero-stat-bottom-left {
        bottom: 6%;
        left: -2%;
    }

    .services-section,
    .strategic-section,
    .built-for-section,
    .how-it-works-section,
    .principles-section,
    .cta-section,
    .resources-section {
        padding: 3rem 0;
    }

    .services-section h2,
    .strategic-section h2,
    .built-for-section h2,
    .how-it-works-section h2,
    .principles-section h2,
    .cta-section h2,
    .resources-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .services-section .lead {
        font-size: 1rem;
    }

    .service-card,
    .benefit-card,
    .principle-card,
    .resource-card {
        padding: 1.5rem;
    }

    .cta-section h2 {
        margin-bottom: 2rem;
    }

    .cta-form {
        margin-top: 2rem;
    }

    .faq-accordion .accordion-button {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        font-size: 1rem;
    }

    .faq-accordion .step-number {
        font-size: 1.75rem;
        min-width: 2rem;
    }

    .faq-accordion .accordion-body {
        padding: 0 1.5rem 1.25rem calc(1.5rem + 2rem + 1rem);
    }

    .feature-list li {
        margin-bottom: 1.5rem;
    }

    .footer {
        padding: 2rem 0 0.5rem;
    }

    .footer .row {
        flex-direction: column;
    }

    .footer h5,
    .footer h6 {
        margin-bottom: 1rem;
    }
}

/* Extra Small Devices (320px) */
@media (max-width: 576px) {
    .container-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .nav-link {
        margin: 0.25rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .d-flex {
        gap: 0.75rem !important;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
    }

    .services-section h2,
    .strategic-section h2,
    .built-for-section h2,
    .how-it-works-section h2,
    .principles-section h2,
    .cta-section h2,
    .resources-section h2 {
        font-size: 1.5rem;
    }

    .cta-form .form-control {
        font-size: 14px;
    }

    .resource-card .resource-image {
        height: 150px;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide In Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth Scroll */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   BUTTON RIPPLE EFFECT
   ============================================ */

.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: rippleAnimation 0.6s ease-out;
}

@keyframes rippleAnimation {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.disclaimer-box {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 0.375rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.disclaimer-box strong {
    color: var(--dark-color);
    font-weight: 600;
}

.feature-item {
    margin-bottom: 2rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

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


.text-white-50:hover {
    color: white;
}

.rounded-3 {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.625rem;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .navbar,
    .cta-section {
        display: none;
    }

    body {
        background: white;
    }
}

/* ============================================
   COMPONENT: Threat Card (reusable)
   ============================================ */
.threat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.threat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e5f0f8;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 18px;
}

.threat-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.35;
    margin-bottom: 10px;
}

.threat-card-accent {
    width: 40px;
    height: 3px;
    background: #6ea600;
    border-radius: 2px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.threat-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 20px;
    text-align: left !important;
}

.threat-link {
  color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
    background: var(--primary-color);
    padding: 10px 12px;
    border-radius: 5px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.threat-link:hover {
    gap: 10px;
    color: #005a8a;
    background:#ededed;
}

/*cta */
/* ---- Quote Section ---- */
.quote-section {
    padding: 80px 0;
}

.quote-block {
    /* border-left: 3px solid var(--primary-color); */
    padding: 36px 48px;
    background: #f0f6fb;
    border-radius: 0 10px 10px 0;
    max-width: 780px;
    margin: 0 auto;
}

.quote-block blockquote {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
    color: var(--dark-color);
    line-height: 1.75;
    margin-bottom: 24px;
}

.quote-attribution {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.guide-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

/* ---- CTA Block ---- */
.guide-cta {
    background: var(--primary-color);
    border-radius: 14px;
    padding: 56px 40px;
    text-align: center;
    margin-top: 0;
}

.guide-cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.guide-cta p {
    font-size: 0.975rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.guide-cta .btn {
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.guide-cta .btn:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   PERFORMANCE: CONTENT VISIBILITY
   Skip rendering of off-screen sections until
   they enter the viewport (improves LCP / FCP
   by reducing initial render work).
   ============================================ */
#the-problem,
#the-solution,
#the-liquidity-factor,
#founder-perspective,
#faq,
#governance,
#blog,
.cta-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Images: prevent layout shift (CLS) by
   reserving their intrinsic aspect ratio */
img {
    /* Ensure replaced elements never overflow their container */
    max-width: 100%;
    height: auto;
}

.article-card-img,
.related-card-img,
.featured-article-img {
    aspect-ratio: 3 / 2;
}

/* ============================================
   PERFORMANCE: REDUCED MOTION
   Respect the user's OS preference to reduce
   motion — prevents jank-related INP issues
   and respects vestibular disorders.
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
