@font-face {
    font-family: 'Vazirmatn';
    src: url("/jakarta.faces.resource/Vazirmatn-wght.woff2.xhtml?ln=fonts") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --hb-gold: #c5a059;
    --hb-gold-hover: #b08d48;
    --hb-dark: #12151a;
    --hb-charcoal: #1c2128;
    --hb-card-bg: #22272e;
    --hb-text-muted: #8b949e;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0d1117;
    color: #f0f6fc;
    overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6{
    font-family: "Vazirmatn", sans-serif;
    font-weight: 600;
}
p{
    line-height: 1.9;
    font-family: "Vazirmatn", sans-serif;
}

.card p{
    font-size: .95rem;
    font-family: "Vazirmatn", sans-serif;
}
.nav-link{
    font-weight: 500;
    font-family: "Vazirmatn", sans-serif;
}
.auth-buttons a{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    padding:7px 16px;
    border-radius:40px;
    text-decoration:none;
    transition:all .25s ease;
    font-family:"Vazirmatn",sans-serif;
}

/* Navbar Styling */
.navbar {
    background-color: rgba(18, 21, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
}
.navbar-brand span {
    color: var(--hb-gold);
}
.nav-link {
    color: #c9d1d9 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--hb-gold) !important;
}
.dropdown-menu {
    background-color: var(--hb-charcoal);
    border: 1px solid rgba(197, 160, 89, 0.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.dropdown-item {
    color: #c9d1d9;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background-color: rgba(197, 160, 89, 0.15);
    color: var(--hb-gold);
    padding-right: 1.5rem;
}

/* Buttons */
.btn-gold {
    background-color: var(--hb-gold);
    color: #12151a;
    font-weight: 700;
    border: 1px solid var(--hb-gold);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: var(--hb-gold-hover);
    color: #000;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}
.btn-outline-gold {
    background: transparent;
    color: var(--hb-gold);
    border: 1px solid var(--hb-gold);
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background-color: var(--hb-gold);
    color: #12151a;
}

/* Hero Carousel */
.hero-slider .carousel-item {
    height: 85vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.6) 100%);
    display: flex;
    align-items: center;
}
.hero-title {
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.3;
    color: #fff;
}
.hero-title span {
    color: var(--hb-gold);
}

/* Feature Cards */
.feature-card {
    background-color: var(--hb-card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-7px);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.feature-icon {
    font-size: 2.2rem;
    color: var(--hb-gold);
    margin-bottom: 1rem;
}

/* Product / Box Style Card */
.box-card {
    background-color: var(--hb-card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.box-card:hover {
    border-color: var(--hb-gold);
    transform: translateY(-5px);
}
.box-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.box-card:hover img {
    transform: scale(1.05);
}

/* Section Title */
.section-title {
    position: relative;
    font-weight: 800;
    margin-bottom: 2.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--hb-gold);
    border-radius: 2px;
}

/* Form Container */
.quote-box {
    background-color: var(--hb-charcoal);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 16px;
    padding: 2.5rem;
}
.form-control, .form-select {
    background-color: #0d1117;
    border: 1px solid #30363d;
    color: #f0f6fc;
    border-radius: 8px;
    padding: 0.7rem 1rem;
}
.form-control:focus, .form-select:focus {
    background-color: #0d1117;
    border-color: var(--hb-gold);
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.2);
    color: #fff;
}

/* Footer */
footer {
    background-color: var(--hb-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
}
/* ============================================================
   Multi-level Dropdown (زیرمنوهای تو در تو به سمت چپ در RTL)
============================================================ */
.dropdown-submenu {
    position: relative;
}

/* فلش جهت‌نما برای آیتم‌های دارای زیرمنو */
.dropdown-submenu > .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-submenu > .dropdown-item::after {
    display: inline-block;
    margin-right: 0.5em;
    vertical-align: middle;
    content: "\F284"; /* کد آیکون bi-chevron-left */
    font-family: 'bootstrap-icons';
    font-size: 0.75rem;
    color: var(--hb-gold);
    transition: transform 0.2s ease;
}
.nocontent > .dropdown-item::after{
    content: none!important;
}


/* زیرمنوی سطح دوم و بعد */
.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%; /* باز شدن به سمت چپ در جهت RTL */
    left: auto;
    margin-top: -6px;
    margin-right: 4px;
    display: none;
    min-width: 260px;
}

/* باز شدن با هاور در دسکتاپ */
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        animation: fadeInSubmenu 0.2s ease-in-out;
    }
}

@keyframes fadeInSubmenu {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* استایل لینک‌های کارت‌های ویژگی */
.feature-link {
    text-decoration: none !important; /* حذف خط زیر متن */
    color: inherit !important;       /* ارث‌بری رنگ از المان والد (سفید) */
    display: block;                  /* تبدیل به بلاک برای کلیک‌پذیری بهتر */
    transition: all 0.3s ease;
}

.feature-link:hover {
    text-decoration: none !important;
    color: var(--hb-gold) !important; /* در حالت هاور، کل لینک به رنگ طلایی درمی‌آید */
}

/* برای اینکه آیکون هم در هاور واکنش نشان دهد */
.feature-link:hover .feature-icon {
    transform: scale(1.1); /* افکت بزرگ‌نمایی کوچک برای آیکون */
    transition: transform 0.3s ease;
}
/* استایل لینک‌های بخش ویژگی‌های تم روشن (Light Features) */
.feature-link-light {
    text-decoration: none !important;
    color: var(--hb-charcoal, #212529) !important; /* رنگ تیره سازمانی */
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-link-light:hover {
    text-decoration: none !important;
    color: var(--hb-gold, #c5a059) !important; /* تغییر رنگ تیتر به طلایی در هاور */
}

.feature-link-light .bi {
    transition: transform 0.3s ease;
}

.feature-link-light:hover .bi {
    transform: translateY(-4px) scale(1.08); /* انیمیشن نرم و جذاب روی آیکون */
}