@font-face {
    font-family: "Samarqand Pro";
    src: url("../webfonts/Samarqand-Pro.woff2") format("woff2");
    font-weight: 300 950;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Persian Digits";
    src: url("../webfonts/IBMPlexSansArabic-persian-digits-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    unicode-range: U+06F0-06F9;
}

.daneshmand-site {
    --home-night: #07172d;
    --home-ink: #101f36;
    --home-muted: #52647b;
    --home-blue: #1353cd;
    --home-ice: #a9e0ff;
    --home-paper: #f2f5fa;
    --home-line: #d5deeb;
    --home-glass: #ffffff24;
    --home-ease: cubic-bezier(.22, 1, .36, 1);
    --site-font: "Samarqand Pro", Vazirmatn, Tahoma, sans-serif;
    font-family: var(--site-font);
}

.daneshmand-site :is(.site-header,.site-footer) { font-family: var(--site-font); }
.daneshmand-site :focus-visible { outline: 2px solid #509dff; outline-offset: 4px; }
.daneshmand-site .site-shell { width: min(100% - 9vw, 1320px); margin-inline: auto; }
.daneshmand-site .site-header { top: -34px; }
.daneshmand-site .site-header__utility {
    background: linear-gradient(180deg, #07172ded, #07172d9e);
    color: #e3ebf7;
}
.daneshmand-site .site-header__main {
    width: min(100% - 5vw, 1440px);
    margin-inline: auto;
    border: 1px solid #ffffffbf;
    border-radius: 18px;
    background: #f9fafcf5;
    box-shadow: 0 9px 28px #07172d24, inset 0 1px #fff;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
.daneshmand-site .site-header.is-scrolled .site-header__main {
    background: #fff;
    border-color: #dbe2ec;
    box-shadow: 0 9px 26px #07172d14;
}
.daneshmand-site .site-header__main-inner { width: calc(100% - 36px); height: 70px; gap: clamp(10px, 1.6vw, 24px); }
.daneshmand-site .site-header__main .site-brand__mark {
    width: 48px;
    height: 48px;
    border: 1px solid #dce4ee;
    border-radius: 13px;
    box-shadow: none;
}
.daneshmand-site .site-brand__mark img { width: 44px; height: 44px; }
.daneshmand-site .site-brand__copy strong { color: var(--home-ink); }
.daneshmand-site .site-brand__copy small { color: var(--home-muted); }
.daneshmand-site .nav-link { isolation: isolate; color: #334761; font-weight: 600; }
.daneshmand-site .nav-link::after { display: none; }
.daneshmand-site .nav-link::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 16px 2px;
    border-radius: 10px;
    background: #e9eff8;
    opacity: 0;
    transition: opacity .2s;
}
.daneshmand-site .nav-link:is(.is-active, :hover, :focus-visible) { color: #163f80; }
.daneshmand-site .nav-link:is(.is-active, :hover, :focus-visible)::before { opacity: 1; }
.daneshmand-site .header-contact {
    background: #173255;
    color: #fff;
    border-radius: 11px;
    box-shadow: none;
}
.daneshmand-site .header-contact:hover { background: #244a7a; }
.daneshmand-site .header-account, .daneshmand-site .mobile-menu-toggle {
    background: #fff;
    border-color: #dbe3ef;
    color: #173255;
}
.daneshmand-site .header-account:hover, .daneshmand-site .mobile-menu-toggle:hover { border-color: #a4bad7; background: #e9eff8; }
.daneshmand-site .mobile-menu-toggle span { background: #173255; }
.daneshmand-site .mobile-navigation__head { background: #eff3f8; color: #173255; }
.daneshmand-site .mobile-navigation__head button { border-color: #ced9e8; }
.daneshmand-site .mobile-navigation__footer a { background: #173255; }

.daneshmand-site .site-footer { background: #08192d; }
.daneshmand-site .site-footer::before {
    background: radial-gradient(ellipse at 100% 0%, #1c42705c, transparent 57%);
}
.daneshmand-site .site-footer__signal { height: 2px; }
.daneshmand-site .footer-cta {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(16px, 2.2vw, 34px);
    margin-top: clamp(26px, 4vw, 58px);
    padding: clamp(20px, 3.6vw, 48px);
    border: 1px solid #c2d7ed;
    border-radius: 20px;
    color: #102742;
    background:
        radial-gradient(ellipse at 2% 100%, #c2d9f6, transparent 58%),
        linear-gradient(125deg, #dceafb, #f4f8fe 75%);
}
.daneshmand-site .footer-cta__icon {
    width: 60px;
    height: 60px;
    border: 1px solid #9dbde2;
    border-radius: 15px;
    background: #e8f2ff;
    color: #234e82;
}
.daneshmand-site .footer-cta__copy > span { color: #315f93; font-size: 12px; font-weight: 750; }
.daneshmand-site .footer-cta__copy h2 { font-size: clamp(24px, 3vw, 42px); line-height: 1.43; }
.daneshmand-site .footer-cta__copy p { color: #435c77; font-size: clamp(13px, 1.2vw, 16px); line-height: 1.8; }
.daneshmand-site .footer-cta > a {
    padding: 12px 15px;
    border: 1px solid #173657;
    border-radius: 10px;
    color: #fff;
    background: #173657;
    font-size: 13px;
    white-space: nowrap;
}
.daneshmand-site .footer-cta > a:hover { color: #fff; background: #285485; }
.daneshmand-site .site-footer__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.25fr);
    gap: clamp(20px, 3vw, 46px);
    padding-block: clamp(32px, 5vw, 65px) clamp(28px, 4vw, 50px);
}
.daneshmand-site .footer-brand img { border-radius: 12px; flex: none; }
.daneshmand-site .footer-brand strong { font-size: 17px; line-height: 1.55; }
.daneshmand-site .footer-brand small { color: #a4c9f4; font-size: 12px; }
.daneshmand-site .footer-about > p { margin-block: 16px; color: #c4d4e8; font-size: 13px; line-height: 1.9; }
.daneshmand-site .footer-social { flex-wrap: wrap; }
.daneshmand-site .footer-social a, .daneshmand-site .back-to-top { color: #d8e8fb; border-color: #789cc14d; }
.daneshmand-site .footer-links, .daneshmand-site .footer-contact { gap: 10px; }
.daneshmand-site .footer-links h3, .daneshmand-site .footer-contact h3 { font-size: 16px; margin-bottom: 5px; }
.daneshmand-site .footer-links h3::after, .daneshmand-site .footer-contact h3::after { background: #84b3e7; }
.daneshmand-site .footer-links a, .daneshmand-site .footer-contact > a {
    color: #c4d4e8;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.daneshmand-site .footer-links a:hover, .daneshmand-site .footer-contact > a:hover { color: #fff; }
.daneshmand-site .footer-links a::before { border-color: #8bb5e6; }
.daneshmand-site .footer-contact .footer-map-link { color: #a4c9f4; }
.daneshmand-site .site-footer__bottom { gap: 16px; color: #b3c6dd; font-size: 12px; }
.daneshmand-site .site-footer__bottom > div { display: flex; flex-wrap: wrap; gap: 9px; }

@media (max-width: 980px) {
    .daneshmand-site .footer-cta { grid-template-columns: auto minmax(0, 1fr); }
    .daneshmand-site .footer-cta > a { grid-column: 2; justify-self: start; }
    .daneshmand-site .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .daneshmand-site .footer-about, .daneshmand-site .footer-contact { grid-column: 1 / -1; }
    .daneshmand-site .footer-contact { display: flex; }
}
@media (max-width: 640px) {
    .daneshmand-site .footer-cta { grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
    .daneshmand-site .footer-cta > a { grid-column: 1; }
    .daneshmand-site .site-footer__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .daneshmand-site .site-footer__bottom > p { grid-column: 1 / -1; }
}



@media (max-width: 900px) {
    .daneshmand-site .site-header { top: 0; padding-top: 8px; }
    .daneshmand-site .site-header__main-inner { height: 61px; }
}
@media (max-width: 660px) {
    .daneshmand-site .site-header__main { border-radius: 16px; }
    .daneshmand-site .site-header__main-inner { width: calc(100% - 22px); }
    .daneshmand-site .site-shell { width: calc(100% - 34px); }
}

/* Local anchors for long public pages */
.site-section-nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; padding-block: 12px;
    color: #304b68;
}
.site-section-nav a, .site-section-nav span { border-radius: 8px; padding: 7px 10px; font-weight: 700; }
.site-section-nav a:hover { background: #e2edf8; color: #154b83; }
.site-section-nav .site-section-nav__action { background: #17365a; color: #fff; }
.site-section-nav .site-section-nav__action:hover { background: #2d5682; color: #fff; }
.site-section-nav span { color: #576b81; }
#main-content:has(.site-section-nav) section[id] { scroll-margin-top: 100px; }
.fund-local-note .footer-inner { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; padding-block: 18px; }

.site-company-contact {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-block: 20px; padding: 15px clamp(12px,3vw,26px);
    background: #f6fbff; color: #17365a; border: 1px solid #ceddeb; border-radius: 12px;
}
.site-company-contact h2 { font-size: 1.3rem; font-weight: 800; }
.site-company-contact > div:last-child { display: flex; flex-wrap: wrap; gap: 9px 15px; }
.site-company-contact a { color: #1c5282; font-weight: 700; overflow-wrap: anywhere; }
.site-company-contact a:hover { text-decoration: underline; }

.site-bookmark { margin-top: 12px; }
.site-bookmark__action {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; padding: 7px 11px; border-radius: 8px;
    color: #194670; background: #eaf3fc; border: 1px solid #b7cfe4; font-weight: 750; font-size: .9rem;
}
.site-bookmark__action:hover { color: #102c49; background: #d7e8f8; }

/* Account controls in the public header */
.site-account { position: relative; flex: none; color: #163451; }
.site-account > summary {
    display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 4px 8px;
    cursor: pointer; list-style: none; background: #fff;
    border: 1px solid #cddcec; border-radius: 11px; transition: background .2s,border-color .2s;
}
.site-account > summary::-webkit-details-marker { display: none; }
.site-account > summary:hover, .site-account[open] > summary { background: #edf5fd; border-color: #90afcd; }
.site-account__avatar {
    position: relative; display: grid; place-items: center; flex: none;
    width: 31px; height: 31px; border-radius: 8px;
    background: linear-gradient(145deg,#214e75,#163653); color: #fff;
    font-size: 15px; font-weight: 800;
}
.site-account__avatar i {
    position: absolute; bottom: -2px; inset-inline-end: -2px;
    width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #18966d;
}
.site-account__label, .site-account__identity > div { display: grid; min-width: 0; }
.site-account__label { max-width: 110px; }
.site-account__label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; line-height: 1.45; }
.site-account__label small { color: #286650; font-size: .67rem; line-height: 1.55; }
.site-account__chevron { font-size: .64rem; transition: transform .2s; }
.site-account[open] .site-account__chevron { transform: rotate(180deg); }
.site-account__panel {
    position: absolute; z-index: 5; inset-inline-end: 0; inset-block-start: calc(100% + 8px);
    width: min(275px,calc(100vw - 58px)); padding: 7px;
    border: 1px solid #cdddec; border-radius: 13px; background: #fff;
    box-shadow: 0 14px 34px #0e315134;
}
.site-account:not([open]) > .site-account__panel { display: none; }
.site-account__identity { display: flex; align-items: center; gap: 9px; padding: 8px; margin-bottom: 5px; border-bottom: 1px solid #e3edf5; }
.site-account__identity .site-account__avatar { width: 36px; height: 36px; }
.site-account__identity strong { color: #163451; font-size: .92rem; overflow-wrap: anywhere; }
.site-account__identity div > span { color: #48637b; font-size: .78rem; overflow-wrap: anywhere; }
.site-account__link {
    display: flex; align-items: center; gap: 9px; width: 100%; min-height: 39px;
    padding: 6px 8px; border-radius: 7px; text-align: start; font-size: .85rem; font-weight: 760;
}
.site-account__link:hover { background: #eaf3fc; }
.site-account__arrow { margin-inline-start: auto; font-size: .7rem; }
.site-account__logout { color: #9c3945; }
.site-account__logout:hover { background: #f9edf0; }
@media (min-width: 901px) and (max-width: 1270px), (max-width: 650px) {
    .site-account__label, .site-account__chevron { display: none; }
    .site-account > summary { padding-inline: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
    .site-account[open] > .site-account__panel { animation: account-appear .19s ease-out both; }
    @keyframes account-appear { from { opacity: 0; translate: 0 -4px; } }
}

@media (max-width: 650px) {
    .site-account__panel { width: min(275px,calc(100vw - 94px)); }
}
@media (max-width: 380px) {
    .site-header__main-inner:has(.site-account) .site-brand__copy { max-width: calc(100vw - 208px); }
    .site-header__main-inner:has(.site-account) .site-brand__copy strong { font-size: .72rem; line-height: 1.4; }
    .site-header__main-inner:has(.site-account) .site-brand__copy small { display: none; }
}

.site-account__avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
