/**
 * Dariusham Main Stylesheet
 * Custom clean CSS architecture matching the visual design of Dariusham
 */

/* -------------------------------------------------------------------------- */
/* 1. FONTS & DESIGN TOKENS
/* -------------------------------------------------------------------------- */
@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansXVF.woff2') format('woff2'),
         url('../fonts/IRANSansXVF.woff') format('woff'),
         url('../fonts/IRANSansXVF.ttf') format('truetype');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

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

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

:root {
    --font-primary: 'IRANSansX', 'IRANSansXFN', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

    /* Brand Colors */
    --color-primary: #312682;
    --color-primary-dark: #100942;
    --color-primary-deep: #0D0931;
    --color-secondary: #54595F;
    --color-text: #7A7A7A;
    --color-dark: #000000;
    --color-white: #FFFFFF;

    /* Card & Section Colors */
    --bg-tint-light: #F3F2F8;
    --bg-tint-medium: #E4E3EF;
    --bg-tint-step2: #E6E5F0;
    --bg-tint-step3: #DAD8E8;
    --bg-tint-step4: #CECBE1;
    --bg-btn-light: #D6D4E6;
    --bg-btn-fund: #D8D5E7;
    --bg-page-card: #F8F8FB;
    --border-page-card: #DAD8E8;

    /* Sizing */
    --container-max-width: 1140px;
    --transition-speed: 0.3s;
}

/* -------------------------------------------------------------------------- */
/* 2. BASE & RESET
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: var(--font-primary);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    font-family: var(--font-primary);
    font-feature-settings: "ss02" 1, "ss01" 1, "locl" 1;
    -webkit-font-feature-settings: "ss02" 1, "ss01" 1, "locl" 1;
    -moz-font-feature-settings: "ss02" 1, "ss01" 1, "locl" 1;
    font-variant-numeric: proportional-nums;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body, button, input, optgroup, select, textarea,
h1, h2, h3, h4, h5, h6, p, a, span, table, td, th, li {
    font-feature-settings: "ss02" 1, "ss01" 1, "locl" 1;
    -webkit-font-feature-settings: "ss02" 1, "ss01" 1, "locl" 1;
    -moz-font-feature-settings: "ss02" 1, "ss01" 1, "locl" 1;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

/* Screen Reader Utilities */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* Generic Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all var(--transition-speed);
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* 3. SITE HEADER & NAVIGATION
/* -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--color-white);
    position: relative;
    z-index: 100;
    width: 100%;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Header Logo */
.site-header__logo {
    flex: 0 0 8.074%;
    max-width: 8.074%;
    display: flex;
    align-items: center;
}

.site-header__logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-header__logo img {
    width: 55px;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Header Navigation (Desktop) */
.site-header__nav {
    flex: 0 0 77%;
    max-width: 77%;
    padding-right: 23px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin-left: 16px;
    margin-right: 16px;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 10px 0;
    display: block;
    white-space: nowrap;
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link:focus,
.nav-item.current-menu-item > .nav-link,
.nav-item:hover > .nav-link {
    color: var(--color-primary-dark);
}

/* Desktop Dropdown Menus */
.nav-item .dropdown-toggle {
    display: none;
}

.sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    background-color: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 4px 14px rgba(49, 38, 130, 0.12);
    z-index: 999;
}

.nav-item:hover > .sub-menu,
.nav-item:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .nav-item {
    margin: 0;
    width: 100%;
}

.sub-menu .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    padding: 14px;
    display: block;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.sub-menu > .nav-item:first-child > .nav-link {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.sub-menu > .nav-item:last-child > .nav-link {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.sub-menu .nav-link:hover,
.sub-menu .nav-link:focus,
.sub-menu .nav-item:hover > .nav-link {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Nested Submenu (Flyout) */
.sub-menu .has-children > .sub-menu {
    top: 0;
    right: 100%;
    margin-right: -1px;
}

/* Header Mega Menu (صندوق‌های سرمایه‌گذاری) */
.nav-item--megamenu,
.has-megamenu,
li.menu-item.has-megamenu,
li.menu-item.nav-item--megamenu {
    position: static !important;
}

/* Hide conflicting default sub-menus on megamenu items in WordPress */
.nav-item--megamenu > .sub-menu,
.has-megamenu > .sub-menu,
li.menu-item.has-megamenu > .sub-menu {
    display: none !important;
}

.header-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 10px 15px 25px 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    z-index: 999;
    pointer-events: none;
}

.nav-item--megamenu:hover .header-megamenu,
.nav-item--megamenu:focus-within .header-megamenu,
.has-megamenu:hover .header-megamenu,
.has-megamenu:focus-within .header-megamenu,
li.menu-item.has-megamenu:hover .header-megamenu,
li.menu-item.has-megamenu:focus-within .header-megamenu,
.header-megamenu:hover,
.header-megamenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-megamenu__inner {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 16px 45px rgba(16, 9, 66, 0.12);
    border: 1px solid rgba(49, 38, 130, 0.07);
}

.header-megamenu__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.megamenu-card {
    background-color: var(--bg-tint-light);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.megamenu-card:hover,
.megamenu-card:focus {
    background-color: var(--bg-tint-medium);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(49, 38, 130, 0.09);
    border-color: rgba(49, 38, 130, 0.15);
}

.megamenu-card__subtitle {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 3px;
    display: block;
}

.megamenu-card__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
}

.megamenu-card__price {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 6px;
    background: #FFFFFF;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Header CTA Button */
.site-header__cta {
    flex: 0 0 15%;
    max-width: 15%;
    display: flex;
    justify-content: flex-end;
}

.btn--header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #312682 0%, #100942 100%);
    color: var(--color-white);
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    width: auto;
    text-align: center;
    box-shadow: 0 4px 14px rgba(49, 38, 130, 0.22);
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--header:hover,
.btn--header:focus {
    background: linear-gradient(135deg, #241a6b 0%, #090525 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 9, 66, 0.32);
}

.btn--header svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn--header:hover svg {
    transform: translateX(-3px);
}


/* Mobile Toggle Button */
.site-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--color-primary);
    line-height: 0;
}

.site-header__toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.site-header__toggle .icon-close {
    display: none;
}

.site-header__toggle.is-active .icon-burger {
    display: none;
}

.site-header__toggle.is-active .icon-close {
    display: block;
}

/* -------------------------------------------------------------------------- */
/* 4. HERO SECTION & SLIDER
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
}

.hero-slider__track {
    position: relative;
    width: 100%;
    min-height: 466px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide__picture {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.hero-slide__img {
    width: 100%;
    height: 466px;
    object-fit: cover;
    display: block;
}

.hero-slide__content {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 5;
}

.btn--hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #312682 0%, #100942 100%);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(16, 9, 66, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--hero:hover,
.btn--hero:focus {
    background: linear-gradient(135deg, #241a6b 0%, #090525 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 9, 66, 0.4);
}

.btn--hero svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn--hero:hover svg {
    transform: translateX(-3px);
}

/* Slider Controls */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(16, 9, 66, 0.18);
    border: none;
    outline: none;
    padding: 0;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(16, 9, 66, 0.3);
}

.hero-slider__arrow svg {
    display: block;
}

.hero-slider__arrow--prev {
    right: 20px;
}

.hero-slider__arrow--next {
    left: 20px;
}

.hero-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(49, 38, 130, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: inline-block;
}

.hero-slider__dot.is-active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 5px;
    border-color: var(--color-primary);
}

/* Fallback desktop banner if used statically */
.hero-banner--desktop {
    position: relative;
    height: 466px;
    border-radius: 0;
    overflow: hidden;
}

.hero-banner__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/banner-chess.jpg'), url('../images/banner-mob-chess.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
}

.hero-banner--mobile {
    display: none;
}

.hero-banner__mobile-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0px 8px 46px -27px var(--color-primary);
}

/* -------------------------------------------------------------------------- */
/* 5. FUNDS SECTION (صندوق‌های سرمایه‌گذاری)
/* -------------------------------------------------------------------------- */
.funds-section {
    margin-top: 15px;
    margin-bottom: 18px;
}

.funds-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
}

.funds-grid--row1 {
    margin-bottom: 0;
}

.funds-grid--row2 {
    margin-top: 0;
}

.fund-card {
    flex: 0 0 20%;
    width: 20%;
    min-height: 167px;
    padding: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* Row 1 Card Styles */
.fund-card--servat {
    background-color: var(--bg-tint-medium);
    border-radius: 0px 12px 0px 0px;
    min-height: 210px;
}

.fund-card--dara {
    background-color: var(--bg-tint-light);
}

.fund-card--petro {
    background-color: var(--bg-tint-medium);
}

.fund-card--khazaneh {
    background-color: var(--bg-tint-light);
}

.fund-card--ganjineh {
    background-color: var(--bg-tint-medium);
    border-radius: 180px 0px 0px 0px;
}

/* Row 2 Card Styles */
.fund-card--banko {
    background-color: var(--bg-tint-light);
    border-radius: 0px 0px 80px 0px;
    min-height: 210px;
    padding-bottom: 1.5em;
    position: relative;
    box-sizing: border-box;
}

.fund-card--banko .fund-card__action {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-inline-end: 8px;
}

.fund-card--banko .btn--fund {
    width: 100%;
    max-width: 145px;
}

.fund-card--oto {
    background-color: var(--bg-tint-medium);
}

.fund-card--nafto {
    background-color: var(--bg-tint-light);
}

.fund-card--andokhte {
    background-color: var(--bg-tint-medium);
}

.fund-card--sabad {
    background-color: var(--bg-tint-light);
    border-radius: 0px 0px 0px 12px;
}

/* Fund Card Typography */
.fund-card__subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}

.fund-card--servat .fund-card__subtitle,
.fund-card--banko .fund-card__subtitle {
    font-size: 15px;
}

.fund-card--ganjineh .fund-card__subtitle {
    text-align: start;
    padding-inline-start: 18px;
}

.fund-card__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: -5px;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.fund-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: -8px;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.fund-card__action {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn--fund {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bg-btn-fund);
    color: var(--color-primary);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    width: auto;
    max-width: 145px;
    box-shadow: none;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.btn--fund:hover,
.btn--fund:focus {
    background-color: #cbcae0;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 38, 130, 0.12);
}

.btn--fund svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: var(--color-primary);
}

.btn--fund:hover svg {
    transform: translateX(-3px);
}

/* -------------------------------------------------------------------------- */
/* 6. INVESTMENT TYPES SECTION (انواع سرمایه‌گذاری)
/* -------------------------------------------------------------------------- */
.investment-types-section {
    margin-top: -6px;
    margin-bottom: 0;
}

.investment-types-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
}

.invest-card {
    box-sizing: border-box;
}

/* Header Card (1) */
.invest-card--header {
    flex: 0 0 20%;
    width: 20%;
    min-height: 233px;
    background-color: var(--bg-tint-light);
    border-radius: 0px 180px 0px 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 2em 0;
}

.invest-card__btn--header {
    background-color: transparent;
    font-weight: 900;
    color: var(--color-primary);
    padding: 20px 20px 13px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 16px;
}

/* Interactive Types Cards (2-8) */
.invest-card--item {
    flex: 0 0 20%;
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease !important;
}

.invest-card--item:hover {
    margin-bottom: 1em;
    margin-top: -1em;
    padding: 1.5em;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0px 10px 40px -15px var(--color-primary);
}

.invest-card--income   { background-color: var(--bg-tint-medium); }
.invest-card--fixed    { background-color: var(--bg-tint-light); }
.invest-card--growth   { background-color: var(--bg-tint-medium); }
.invest-card--large    { background-color: var(--bg-tint-light); border-radius: 12px 0px 0px 0px; }
.invest-card--small    { background-color: var(--bg-tint-medium); border-radius: 0px 0px 12px 0px; min-height: 233px; }
.invest-card--children { background-color: var(--bg-tint-light); }
.invest-card--gold     { background-color: var(--bg-tint-medium); }

/* Hover Background */
.invest-card__hover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.45s ease, visibility 0.4s;
    z-index: 1;
    transform: scale(1.06);
}

.invest-card__hover-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 9, 66, 0.4) 0%, rgba(13, 9, 49, 0.9) 100%);
}

.invest-card--item:hover .invest-card__hover-bg {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.invest-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.invest-card--item .invest-card__btn {
    background-color: transparent;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 15px;
    padding: 8px 0px 4px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.invest-card--item:hover .invest-card__btn,
.invest-card--item:hover .invest-card__text {
    color: var(--color-white);
}

.invest-card--small .invest-card__btn {
    letter-spacing: -0.7px;
}

/* Hover Subtitle / Description */
.invest-card__hover-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.3s ease;
}

.invest-card--item:hover .invest-card__hover-desc {
    max-height: 140px;
    opacity: 1;
    margin-top: 8px;
}

/* Contact Card (9 - Spanning 2 columns / 40%) */
.invest-card--contact {
    flex: 0 0 40%;
    width: 40%;
    background-color: var(--color-primary);
    border-radius: 0px 0px 0px 180px;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.invest-card__contact-inner {
    width: 100%;
}

.invest-card__contact-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 6px;
    text-align: center;
}

.invest-card__contact-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-white);
    margin-bottom: 12px;
    text-align: center;
}

.invest-card__divider {
    width: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 10px auto;
}

.invest-card__contact-phone {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4.4px;
    color: var(--color-white);
    margin: 0;
    text-align: center;
}

.invest-card__contact-phone a {
    color: var(--color-white);
}

/* -------------------------------------------------------------------------- */
/* 7. CALL TO ACTION 3 CARDS SECTION
/* -------------------------------------------------------------------------- */
.cta-cards-section {
    width: 100%;
    margin-top: 15px;
}

.cta-cards-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
}

/* Left Big Card */
.cta-card--large {
    flex: 0 0 50%;
    width: 50%;
    min-height: 466px;
    position: relative;
    overflow: hidden;
    border-radius: 0px 12px 180px 0px;
}

/* Right Column */
.cta-cards-column {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cta-card--small {
    position: relative;
    overflow: hidden;
    min-height: 233px;
}

.cta-card--invest {
    border-radius: 180px 0px 0px 0px;
}

.cta-card--portfolio {
    border-radius: 0px 0px 0px 12px;
}

/* Card Internals */
.cta-card__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.cta-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    transition: transform 1.5s ease;
}

.cta-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(49, 38, 130, 0.15) 0%, rgba(49, 38, 130, 0.75) 100%);
    transition: background 1.5s ease;
}

.cta-card:hover .cta-card__bg {
    transform: scale(1.08);
}

.cta-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 233px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
}

.cta-card--large .cta-card__content {
    min-height: 466px;
}

.cta-card__title {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 7px;
    text-align: center;
}

.cta-card__description {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 5px;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* 8. INVESTMENT STEPS SECTION (مراحل سرمایه‌گذاری)
/* -------------------------------------------------------------------------- */
.steps-section {
    margin-top: 25px;
    margin-bottom: 25px;
}

.steps-section__header {
    margin-bottom: 15px;
    text-align: right;
}

.steps-section__title {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-primary);
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
}

.step-card {
    flex: 0 0 50%;
    width: 50%;
    min-height: 233px;
    padding: 2em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-card--1 {
    background-color: var(--bg-tint-light);
    border-radius: 0px 180px 0px 0px;
    padding: 3.2em 5.5em 2.2em 2.5em;
}

.step-card--2 {
    background-color: var(--bg-tint-step2);
    border-radius: 12px 0px 0px 0px;
}

.step-card--3 {
    background-color: var(--bg-tint-step3);
    border-radius: 0px 0px 12px 0px;
}

.step-card--4 {
    background-color: var(--bg-tint-step4);
    border-radius: 0px 0px 0px 180px;
}

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

.step-card__badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(49, 38, 130, 0.08);
    padding: 3px 10px 3px 6px;
    border-radius: 20px;
    flex-shrink: 0;
}

.step-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 800;
}

.step-card__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.step-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1.4;
}

.step-card__text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-dark);
    text-align: justify;
}

.step-card--1 .step-card__text {
    padding-right: 0;
    padding-left: 2em;
}

.step-card--2 .step-card__text,
.step-card--3 .step-card__text,
.step-card--4 .step-card__text {
    padding-left: 2em;
    padding-right: 0;
}

.step-card__divider {
    height: 15px;
}

.step-card__action {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

/* Modern Step Button */
.btn--step-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(49, 38, 130, 0.22);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn--step-modern:hover,
.btn--step-modern:focus {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #090525 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 9, 66, 0.32);
}

.btn--step-modern svg {
    transition: transform 0.3s ease;
}

.btn--step-modern:hover svg {
    transform: translateX(-4px);
}

.btn--step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #312682 0%, #100942 100%);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(49, 38, 130, 0.22);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn--step:hover,
.btn--step:focus {
    background: linear-gradient(135deg, #241a6b 0%, #090525 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 9, 66, 0.32);
}

/* -------------------------------------------------------------------------- */
/* Modal Popup Styles
/* -------------------------------------------------------------------------- */
.site-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.site-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(16, 9, 66, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.site-modal__container {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 30px 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s ease;
}

.site-modal.is-open .site-modal__container {
    transform: translateY(0) scale(1);
}

.site-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f0f7;
    color: var(--color-primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
}

.site-modal__close:hover {
    background: #e2e0ee;
}

.site-modal__header {
    margin-bottom: 20px;
    text-align: right;
}

.site-modal__title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.site-modal__desc {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
}

.modal-form-group {
    margin-bottom: 15px;
    text-align: right;
}

.modal-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.modal-form-group input,
.modal-form-group select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #dcdbe8;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form-group input:focus,
.modal-form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(49, 38, 130, 0.12);
    outline: none;
}

.btn--modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #312682 0%, #100942 100%);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 14px rgba(49, 38, 130, 0.25);
}

.btn--modal-submit:hover,
.btn--modal-submit:focus {
    background: linear-gradient(135deg, #241a6b 0%, #090525 100%);
    box-shadow: 0 6px 18px rgba(16, 9, 66, 0.35);
    transform: translateY(-2px);
}

.btn--modal-submit svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn--modal-submit:hover svg {
    transform: translateX(-3px);
}

/* -------------------------------------------------------------------------- */
/* 9. CONSULTATION CALLOUT BOX
/* -------------------------------------------------------------------------- */
.consultation-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.consultation-box {
    background-color: var(--color-primary);
    border-radius: 180px 12px 180px 12px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.consultation-box__title {
    font-size: 21px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 10px;
    text-align: center;
}

.consultation-box__subtitle {
    font-size: 17px;
    font-weight: 300;
    color: var(--color-white);
    margin-bottom: 20px;
    text-align: center;
}

.consultation-box__spacer {
    height: 1.8em;
}

.consultation-box__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.btn--consultation-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-white);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--consultation-white:hover,
.btn--consultation-white:focus {
    background-color: #f0f0f5;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn--consultation-white svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn--consultation-white:hover svg {
    transform: translateX(-3px);
}

.btn--consultation-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.btn--consultation-ghost:hover,
.btn--consultation-ghost:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn--consultation-ghost svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn--consultation-ghost:hover svg {
    transform: translateX(-3px);
}

/* -------------------------------------------------------------------------- */
/* 10. ABOUT SECTION (چرا سبدگردان داریوش؟)
/* -------------------------------------------------------------------------- */
.about-section {
    margin-top: 3em;
    margin-bottom: 3em;
}

.about-section__inner {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.about-section__title-col {
    flex: 0 0 20%;
    max-width: 20%;
}

.about-section__title {
    font-size: 21px;
    font-weight: 900;
    color: var(--color-primary);
}

.about-section__content-col {
    flex: 0 0 80%;
    max-width: 80%;
    position: relative;
    max-height: 250px;
    overflow: hidden;
}

.about-section__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 31px;
    color: var(--color-primary);
    text-align: justify;
    position: relative;
    z-index: 1;
}

.about-section__text p:not(:last-child) {
    margin-bottom: 1em;
}

.about-section__fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 35%, #FFFFFF 85%);
    z-index: 2;
    pointer-events: none;
}

.about-section__action {
    position: absolute;
    bottom: 4px;
    left: 0;
    z-index: 5;
    text-align: left;
}

.btn--about-more {
    background-color: transparent;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 0;
}

.btn--about-more:hover,
.btn--about-more:focus {
    color: var(--color-primary-dark);
}

/* -------------------------------------------------------------------------- */
/* 11. SINGLE PAGE & POST CONTENT (page.php)
/* -------------------------------------------------------------------------- */
.page-sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 90;
    background-color: var(--color-primary);
    width: 100%;
}

.page-sticky-header__container {
    padding: 0 15px;
}

.page-sticky-header__title {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-white);
    padding: 1.5em 3.7em 0em 2em;
    margin: 0;
}

.page-sticky-header__tracker {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 57px;
    overflow: hidden;
    margin-top: -5px;
}

.page-sticky-header__progress {
    height: 100%;
    width: 0%;
    background-color: #FFBC7D;
    border-radius: 57px;
    transition: width 0.1s linear;
}

.site-main--page {
    margin-top: 0;
    margin-bottom: 3em;
}

.page-content-wrapper {
    max-width: var(--container-max-width);
    margin-top: 1em;
}

.page-card {
    background-color: var(--bg-page-card);
    border: 2px solid var(--border-page-card);
    border-radius: 15px;
    padding: 3em;
}

.page-card__body {
    text-align: justify;
    color: var(--color-dark);
    font-size: 15px;
    font-weight: 400;
    line-height: 30px;
}

.page-card__body p {
    margin-bottom: 1.5em;
}

.page-card__body h1,
.page-card__body h2,
.page-card__body h3,
.page-card__body h4,
.page-card__body h5,
.page-card__body h6 {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.page-card__body h2 { font-size: 20px; font-weight: 800; }
.page-card__body h3 { font-size: 18px; font-weight: 700; }
.page-card__body h4 { font-size: 16px; font-weight: 700; }

.page-card__body img {
    border-radius: 12px;
    box-shadow: 0px 13px 15.7px -9px rgba(49, 38, 130, 0.07);
    margin: 1em 0;
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------------------------- */
/* 12. SITE FOOTER
/* -------------------------------------------------------------------------- */
.site-footer {
    width: 100%;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.site-footer__card {
    background-color: var(--color-primary);
    border-radius: 25px;
    padding: 60px 30px;
    margin-bottom: 20px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: center;
    justify-items: center;
}

.site-footer__col--logo {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer__emblem {
    height: 187px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-menu__item {
    margin: 0;
}

.footer-menu__link {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: var(--bg-btn-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-menu__link:hover,
.footer-menu__link:focus {
    color: var(--color-white);
}

.site-footer__col--contact {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: justify;
}

.site-footer__col--contact p {
    margin-bottom: 8px;
}

.site-footer__bottom {
    padding-bottom: 20px;
    text-align: center;
}

.site-footer__copyright {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 27px;
    color: var(--color-secondary);
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/* FLOATING BADGE WIDGET (بج شناور)
/* -------------------------------------------------------------------------- */
.floating-badge {
    position: fixed;
    z-index: 99999;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    will-change: transform;
    pointer-events: auto;
}

.floating-badge__link {
    display: inline-block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(16, 9, 66, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-badge__link:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 32px rgba(16, 9, 66, 0.28);
}

.floating-badge__img {
    display: block;
    width: var(--badge-width, 100px);
    height: auto;
    max-width: 100%;
}

/* Floating Badge Positions */
.floating-badge--top-right {
    top: 24px;
    right: 24px;
}

.floating-badge--bottom-right {
    bottom: 24px;
    right: 24px;
}

.floating-badge--top-left {
    top: 24px;
    left: 24px;
}

.floating-badge--bottom-left {
    bottom: 24px;
    left: 24px;
}

.floating-badge--middle-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}
.floating-badge--middle-right:hover {
    transform: translateY(-50%) scale(1.04);
}

.floating-badge--middle-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}
.floating-badge--middle-left:hover {
    transform: translateY(-50%) scale(1.04);
}

.floating-badge--middle-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.floating-badge--middle-center:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

/* -------------------------------------------------------------------------- */
/* MODAL FEEDBACK NOTICES & SUBMIT STATES
/* -------------------------------------------------------------------------- */
.modal-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.6;
    font-weight: 500;
    text-align: right;
    direction: rtl;
    animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-feedback--success {
    background-color: #e6f7ec;
    border: 1px solid #95e1ad;
    color: #0f6830;
}

.modal-feedback--error {
    background-color: #feebe8;
    border: 1px solid #f9aba2;
    color: #a81706;
}

.btn--modal-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}
