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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    padding: 24px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #333;
    text-transform: uppercase;
}

.nav-link {
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 500;
}

.nav-link:hover {
    color: #1d4ed8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #eaf5ff 0%, #f0f7ff 100%);
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

/* Badge */
.badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #2563eb;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* Table Mockup Graphic */
.graphic-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.table-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px -10px rgba(148, 163, 184, 0.3);
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The missing row styles */
.t-row {
    display: flex;
    gap: 12px;
    height: 24px;
}

.t-cell {
    background-color: #f1f5f9; /* Light gray for cells */
    border-radius: 4px;
    flex: 1;
}

.t-header .t-cell {
    background-color: #e0f2fe; /* Light blue for header */
    height: 32px;
    margin-bottom: 4px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 80px; /* Space between icons */
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e0f2fe; /* Light blue circle bg */
    color: #0284c7; /* Icon color */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.feature-item:hover .icon-circle {
    transform: translateY(-5px);
    background-color: #bae6fd;
}

.feature-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .features-grid {
        gap: 40px;
    }

    .t-cell:nth-child(4),
    .t-cell:nth-child(5) {
        display: none; /* Hide columns on mobile */
    }
}
/* --- ETF Information Grid Section --- */

.info-explore-section {
    padding: 60px 0 100px 0;
    background-color: #f8fafc; /* Very light subtle gray background */
}

.info-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.info-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* Subtle hover effect optional */
    transition: box-shadow 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8; /* Strong Blue */
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.card-desc {
    font-size: 0.85rem;
    color: #64748b; /* Slate gray */
    margin-bottom: 16px;
    line-height: 1.4;
    min-height: 20px; /* Aligns boxes if text length varies slightly */
}

.card-example {
    background-color: #f0f9ff; /* Light blue background */
    border: 1px solid #e0f2fe;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 400;
}

/* Responsive: 1 column on mobile */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-title {
        font-size: 1.25rem;
        padding: 0 10px;
    }
}
/* --- Filter ETFs Section --- */

.filter-section {
    padding: 80px 0 100px 0;
    background-color: #ffffff; /* White background */
}

.filter-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.filter-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.5;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* Light gray border */
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.f-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.f-icon-box {
    width: 48px;
    height: 48px;
    background-color: #eff6ff; /* Light blue background for icon */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb; /* Blue icon color */
    flex-shrink: 0;
}

.f-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

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

.f-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #334155; /* Slate gray text */
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #2563eb; /* Blue check color */
    flex-shrink: 0;
}

/* Responsive: 1 column on mobile */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Practice Section (Steps) --- */

.practice-section {
    padding: 80px 0 100px 0;
    background-color: #f0f9ff; /* Light blue background */
}

.practice-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.practice-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0 auto 50px auto;
}

.steps-wrapper {
    max-width: 800px; /* Constrain width for better readability */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: flex-start; /* Align top if text wraps */
    gap: 20px;
    transition: box-shadow 0.2s ease;
}

.step-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #2563eb; /* Blue circle */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0; /* Prevent circle from squishing */
}

.step-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.step-icon {
    width: 20px;
    height: 20px;
    color: #2563eb; /* Blue icon */
    flex-shrink: 0;
}

.step-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.step-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    padding-left: 32px; /* Indent description to align with text above */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .step-card {
        padding: 16px;
        gap: 16px;
    }

    .step-header {
        align-items: flex-start; /* Align icon with top of text on small screens */
    }

    .step-icon {
        margin-top: 2px; /* Slight optical alignment */
    }

    .step-desc {
        padding-left: 0; /* Remove indent on mobile for space */
        margin-top: 8px;
    }
}
/* --- Why Use Section --- */
.why-use-section {
    padding: 80px 0 100px 0;
    background-color: #ffffff;
}

.why-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.why-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0 auto 50px auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-icon-box {
    width: 40px;
    height: 40px;
    background-color: #eff6ff; /* Very light blue */
    color: #2563eb; /* Blue Icon */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.why-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.why-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* --- CTA Section --- */
.cta-section {
    background-color: white; /* Primary Blue Background */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
    color:black ; /* Light blue-white text */
}

.cta-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #1a56db;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 1rem !important;
}

.cta-btn:hover {
    background-color: #f8fafc; /* Slightly darker white on hover */
    color: #1e40af; /* Darker blue text */
}

/* Responsive */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }

    .cta-title {
        font-size: 1.5rem;
    }
}
/* =========================================
   FIX: MEGA MENU HOVER & Z-INDEX ISSUES
   Add this to the bottom of header-final.css
   ========================================= */

/* 1. Ensure the container creates a context for the absolute menu */
.w360-nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 2. THE INVISIBLE BRIDGE (Fixes menu closing too fast)
   This creates a safe zone below the "Tools" link so the mouse
   can travel to the menu without it closing. */
.w360-nav-item-dropdown::after {
    content: '';
    position: absolute;
    bottom: -20px; /* Extends 20px down from the header */
    left: 0;
    width: 100%;
    height: 20px; /* Height of the gap bridge */
    background: transparent; /* Invisible */
    z-index: 9998;
}

/* 3. Z-INDEX FIX (Fixes menu hiding behind other page content) */
.w360-header {
    position: relative;
    z-index: 10000; /* Ensure the main navbar is above page content */
}

.w360-mega-menu {
    z-index: 10001 !important; /* Force menu on top of everything */
    margin-top: 15px; /* Visual spacing */

    /* Ensure the display logic works with the bridge */
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Show menu on hover */
.w360-nav-item-dropdown:hover .w360-mega-menu {
    display: block;
}

