        :root {
            --primary: #0A3A60;
            --primary-light: #1E6F9F;
            --primary-dark: #072B48;
            --secondary: #2F4858;
            --accent: #D97706;
            --success: #0F9665;
            --warning: #D97706;
            --error: #E63946;

            --text-primary: #1F2937;
            --text-secondary: #4B5563;
            --text-muted: #9CA3AF;
            --text-light: #F3F4F6;

            --bg-primary: #FFFFFF;
            --bg-secondary: #F0F4F8;
            --bg-tertiary: #E5E7EB;
            --bg-dark: #122B3A;
            --bg-darker: #0B1F2A;

            --border: #E5E7EB;
            --border-light: #F3F4F6;

            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-xl: 16px;
            --radius-2xl: 20px;
            --radius-3xl: 24px;
            --radius-full: 9999px;
        }

        @font-face {
            font-family: 'IRANSans';
            src: url('fonts/IRANSansWeb.woff2') format('woff2'),
                url('fonts/IRANSansWeb.woff') format('woff'),
                url('fonts/IRANSansWeb.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        * {
            font-family: 'IRANSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'IRANSans', 'Inter', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            scroll-behavior: smooth;
            padding-top: 100px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        main {
            flex-grow: 1;
            padding: 2rem;
            text-align: center;
        }

        /* Enhanced Financial Background Animation (Used in Footer) */
        .floating-financial-terms {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            z-index: 0;
            opacity: 0.05;
            /* Adjusted for footer visibility */
        }

        .footer .floating-financial-terms {
            /* Specificity for footer */
            opacity: 0.03;
        }

        .floating-term {
            position: absolute;
            font-family: 'IRANSans', sans-serif;
            font-weight: 700;
            color: var(--primary);
            pointer-events: none;
            animation: floatTerm 20s infinite linear;
        }

        .floating-term:nth-child(1) {
            top: 10%;
            left: 5%;
            font-size: 2.5rem;
            animation-delay: 0s;
        }

        .floating-term:nth-child(2) {
            top: 25%;
            left: 80%;
            font-size: 1.8rem;
            animation-delay: -3s;
        }

        .floating-term:nth-child(3) {
            top: 45%;
            left: 15%;
            font-size: 2rem;
            animation-delay: -6s;
        }

        .floating-term:nth-child(4) {
            top: 65%;
            left: 70%;
            font-size: 1.5rem;
            animation-delay: -9s;
        }

        .floating-term:nth-child(5) {
            top: 80%;
            left: 25%;
            font-size: 2.2rem;
            animation-delay: -12s;
        }

        .floating-term:nth-child(6) {
            top: 35%;
            left: 90%;
            font-size: 1.7rem;
            animation-delay: -15s;
        }

        .floating-term:nth-child(7) {
            top: 55%;
            left: 40%;
            font-size: 1.9rem;
            animation-delay: -18s;
        }

        @keyframes floatTerm {
            0% {
                transform: translateY(0px) translateX(0px) rotate(0deg);
                opacity: 0.2;
            }

            25% {
                transform: translateY(-25px) translateX(20px) rotate(3deg);
                opacity: 0.25;
            }

            50% {
                transform: translateY(-15px) translateX(-15px) rotate(-2deg);
                opacity: 0.22;
            }

            75% {
                transform: translateY(-35px) translateX(25px) rotate(5deg);
                opacity: 0.24;
            }

            100% {
                transform: translateY(0px) translateX(0px) rotate(0deg);
                opacity: 0.2;
            }
        }

        /* Financial Market Icons (Used in Footer) */
        .market-icon {
            position: absolute;
            font-size: 1.8rem;
            color: var(--primary);
            opacity: 0.25;
            animation: marketFloat 15s infinite ease-in-out;
        }

        .market-icon:nth-child(odd) {
            animation-delay: -7s;
            color: var(--secondary);
        }

        .market-icon-1 {
            top: 20%;
            left: 60%;
            animation-delay: 0s;
        }

        .market-icon-2 {
            top: 40%;
            left: 20%;
            animation-delay: -5s;
        }

        .market-icon-3 {
            top: 70%;
            left: 85%;
            animation-delay: -10s;
        }

        .market-icon-4 {
            top: 15%;
            left: 30%;
            animation-delay: -2s;
        }

        .market-icon-5 {
            top: 85%;
            left: 50%;
            animation-delay: -8s;
        }

        @keyframes marketFloat {
            0%,
            100% {
                transform: translateY(0px) rotate(0deg);
                opacity: 0.22;
            }

            25% {
                transform: translateY(-20px) rotate(15deg);
                opacity: 0.28;
            }

            50% {
                transform: translateY(-10px) rotate(-10deg);
                opacity: 0.25;
            }

            75% {
                transform: translateY(-30px) rotate(20deg);
                opacity: 0.27;
            }
        }

        /* Enhanced Header */
.header {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,250,255,0.7) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: height 0.3s ease, background-color 0.3s ease; /* انیمیشن برای تغییر ارتفاع */
    display: flex;
    align-items: center;
    height: 110px; /* <--- ارتفاع مناسب‌تر برای دسکتاپ (می‌توانید 130 بگذارید ولی 100 معمولا بهتر است) */
    transform: translateY(0);
    transition: transform 0.4s ease-in-out; /* این خط مهم است */
}

.header.hidden {
    transform: translateY(-100%);
}

.header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1400px; /* یا عرض دلخواه شما */
    margin: 0 auto;
    padding: 0 20px;
}

.header .logo {
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header .logo-image {
    /* --- استایل پایه (برای دسکتاپ و صفحات بزرگ) --- */
    height: 110px; /* ارتفاع برای دسکتاپ (با فرض هدر 100px) - این را می‌توانید تغییر دهید */
    width: auto; /* عرض همیشه خودکار باشد تا نسبت حفظ شود */
    object-fit: contain; /* همیشه کل لوگو نمایش داده شود */
    max-width: 800px; /* <--- حداکثر عرض در صفحات بزرگ */
    transition: height 0.3s ease, max-width 0.3s ease; /* انیمیشن نرم برای تغییر اندازه */
    display: block;
}

/* --- استایل برای تبلت (صفحات با عرض 992 پیکسل یا کمتر) --- */
@media (max-width: 992px) {
    .header .logo-image {
        height: 110px; /* ارتفاع کمتر برای تبلت */
        max-width: 800px; /* <--- حداکثر عرض کمتر برای تبلت */
    }
}

/* --- استایل برای موبایل (صفحات با عرض 768 پیکسل یا کمتر) --- */
@media (max-width: 768px) {
    .header .logo-image {
        height: 90px; /* ارتفاع کمتر برای موبایل */
        max-width: 800px; /* <--- حداکثر عرض باز هم کمتر برای موبایل */
    }
}

/* --- (اختیاری) استایل برای موبایل‌های خیلی کوچک (صفحات با عرض 576 پیکسل یا کمتر) --- */
@media (max-width: 576px) {
    .header .logo-image {
        height: 70px; /* ارتفاع باز هم کمتر */
        max-width: 500px; /* <--- حداکثر عرض خیلی کمتر */
    }
}

        .header.scrolled {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px) saturate(180%);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            border-bottom: 1px solid var(--border);
        }

        .header.hidden {
            transform: translateY(-100%);
        }

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

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
        }

        .logo::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
            border-radius: var(--radius-full);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .logo:hover::before {
            opacity: 1;
        }

        .logo:hover {
            transform: scale(1.1); /* می‌توانید این مقدار را به دلخواه تغییر دهید، مثلا 1.08 یا 1.12 */
        }

        .logo-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary-light));
            background-size: 200% 200%;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-family: 'IRANSans', sans-serif;
            font-weight: 900;
            font-size: 1.8rem;
            box-shadow: var(--shadow-xl);
            position: relative;
            overflow: hidden;
            animation: logoGradient 4s ease-in-out infinite;
        }

        @keyframes logoGradient {
            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2), transparent 50%);
            border-radius: inherit;
        }

        .logo-text {
            font-family: 'IRANSans', sans-serif;
            font-weight: 900;
            font-size: 1.5rem;
            color: var(--text-primary);
            background: linear-gradient(135deg, var(--text-primary), var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transition: all 0.3s ease;
        }

        .header.scrolled .logo-text {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            list-style: none;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            text-decoration: none;
            color: #333;
            font-weight: 600;
            padding: 1rem 1.5rem;
            border-radius: var(--radius-xl);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .header.scrolled .nav-link {
            color: var(--text-secondary);
        }

        .nav-link::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.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .nav-link:hover::before {
            left: 100%;
        }

        .nav-link:hover,
        .nav-link.active {
            color: #333;
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .header.scrolled .nav-link:hover,
        .header.scrolled .nav-link.active {
            color: #333;
            background: rgba(13, 148, 136, 0.1);
        }

        /* Dropdown Menu */
        .dropdown {
            position: relative;
        }

        .dropdown-menu {
            position: absolute;
            top: 120%;
            right: 0;
            background: white;
            min-width: 280px;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-2xl);
            border: 1px solid var(--border);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-20px) scale(0.95);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 1000;
            overflow: hidden;
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .dropdown-item {
            display: block;
            padding: 1rem 1.5rem;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 1rem;
        }

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

        .dropdown-item:hover {
            background: var(--bg-secondary);
            color: var(--primary);
            transform: translateX(-5px);
        }

        .dropdown-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
        }

        /* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* مهم: به صورت پیش‌فرض در دسکتاپ مخفی است */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary) !important; /* <<< رنگ همیشه تیره/مشکی با اولویت بالا */
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-lg); /* از کد شما */
    transition: color 0.3s ease, transform 0.3s ease; /* transition اصلاح شده */
    z-index: 1005; /* برای قرار گرفتن روی سایر المان‌ها */
}

        .header.scrolled .mobile-menu-toggle {
            color: var(--text-primary);
        }

        .mobile-menu-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: scale(1.1);
        }

        /* Footer Enhanced */
        .footer {
            background: var(--bg-primary);
            border-top: 1px solid var(--border);
            padding: 3rem 2rem 2rem;
            position: relative;
            overflow: hidden;
            z-index: 9;
            margin-top: auto;
        }

        .footer .floating-financial-terms {
            /* Ensure these are visible if intended for footer */
            opacity: 0.02;
            /* Or adjust as needed */
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
            position: relative;
            z-index: 15;
            /* Ensure content is above .floating-financial-terms */
            background: var(--bg-primary);
            /* Ensure content background is opaque */
            padding: 1rem;
            border-radius: var(--radius-xl);
        }

        .footer-section h3 {
            font-family: 'IRANSans', sans-serif;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 2rem;
            font-size: 1.4rem;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 40px;
            height: 3px;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border-radius: var(--radius-full);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 1rem;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem 0;
            border-radius: var(--radius-md);
        }

        .footer-links a:hover {
            color: var(--primary);
            padding-right: 1rem;
            background: rgba(13, 148, 136, 0.05);
            transform: translateX(-5px);
        }

        .contact-info {
            list-style: none;
        }

        .contact-info li {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .contact-info li:hover {
            background: var(--primary);
            color: white;
            transform: translateX(-5px);
            box-shadow: var(--shadow-md);
        }

        .contact-info-icon {
            width: 20px;
            height: 20px;
            color: var(--primary);
            margin-top: 0.1rem;
            flex-shrink: 0;
        }

        .contact-info li:hover .contact-info-icon {
            color: white;
        }

        .contact-info-content {
            flex: 1;
        }

        .contact-info-label {
            font-weight: 600;
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }

        .contact-info-value {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        .contact-info li:hover .contact-info-value {
            color: rgba(255, 255, 255, 0.9);
        }

        .map-container {
            background: var(--bg-secondary);
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border);
            height: 300px;
            position: relative;
        }

        .map-placeholder {
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
            position: relative;
            overflow: hidden;
        }

        .map-placeholder::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23D1D5DB" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
            opacity: 0.5;
        }

        .map-icon {
            width: 60px;
            height: 60px;
            color: var(--primary);
            margin-bottom: 1rem;
            z-index: 1;
            position: relative;
        }

        .map-title {
            font-family: 'IRANSans', sans-serif;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            z-index: 1;
            position: relative;
        }

        .footer-bottom {
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
            text-align: center;
            color: var(--text-muted);
            position: relative;
            z-index: 15;
            /* Ensure content is above .floating-financial-terms */
            background: var(--bg-primary);
            /* Ensure content background is opaque */
            border-radius: var(--radius-lg);
            padding: 2rem 1rem;
        }

        .footer-bottom p {
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-link {
            width: 45px;
            height: 45px;
            background: var(--bg-secondary);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .social-link:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px) scale(1.1);
            box-shadow: var(--shadow-md);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .nav-menu {
                display: none;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 3rem;
            }
        }

        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }
        }

        @media (max-width: 480px) {
            .nav-container {
                padding: 1rem;
            }

            .footer {
                padding: 3rem 1rem 2rem;
            }
        }

        #main-content-area {
            padding-left: 0;
            padding-right: 0;
            margin-left: 0;
            margin-right: 0;
            max-width: none; /* یا max-width: 100%; */
            width: 100%;     /* برای اطمینان */
        }







/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none; /* مخفی در دسکتاپ */
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9); /* رنگ اولیه آیکون روی هیرو */
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1005; /* بالاتر از محتوای دیگر هدر */
}
.header.scrolled .mobile-menu-toggle {
    color: var(--text-primary); /* رنگ آیکون وقتی هدر اسکرول شده */
}


.mobile-nav-menu {
    display: none; /* در ابتدا مخفی */
    position: absolute;
    top: 100%; /* دقیقاً زیر هدر */
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 70px); /* ارتفاع هدر را کم کنید */
    overflow-y: auto;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-items .nav-item .nav-link,
.mobile-nav-items .dropdown-item { /* استایل یکسان برای لینک‌های اصلی و دراپ‌داون در موبایل */
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
}
.mobile-nav-items .nav-item .nav-link i,
.mobile-nav-items .dropdown-item i {
    margin-left: 0.5rem;
}

.mobile-nav-items .nav-item .nav-link:hover,
.mobile-nav-items .dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary);
}

.mobile-nav-items .nav-item:last-child .nav-link,
.mobile-nav-items .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.mobile-nav-items .dropdown-menu { /* استایل متفاوت برای دراپ‌داون در موبایل */
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px dashed var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    padding-left: 1rem; /* کمی تورفتگی برای آیتم‌های زیرمنو */
    background-color: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: auto;
}
.mobile-nav-items .dropdown-menu .dropdown-item small {
    display: none; /* مخفی کردن متن کوچک در منوی موبایل برای سادگی */
}


/* Media Query برای نمایش دکمه همبرگری و منوی موبایل */
@media (max-width: 992px) { /* نقطه شکست را می‌توانید تغییر دهید */
    .main-navigation .nav-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex; /* یا block */
        align-items: center;
        justify-content: center;
    }
}