/* =========================================================
   Custom CMS - Final Site Styles
   Stack: Bootstrap 5.3 RTL + Vazirmatn + Light/Dark
========================================================= */

/* =========================
   Root Variables
========================= */
:root {
    --font-sans: "Vazirmatn", Tahoma, Arial, sans-serif;
    --bs-body-font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    --primary: #0d6efd;
    --primary-rgb: 13, 110, 253;
    --primary-soft: rgba(13, 110, 253, 0.10);
    --primary-soft-2: rgba(13, 110, 253, 0.14);

    --success: #198754;
    --warning: #f59e0b;
    --danger: #dc3545;

    --text: #1f2937;
    --text-soft: #334155;
    --muted: #6b7280;

    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-section: #f8f9fa;
    --bg-card: #ffffff;

    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);

    --heading: #0f172a;
    --dark: #0f172a;

    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

    --radius-sm: 0.75rem;
    --radius: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;

    --fs-body: 0.95rem;
    --fs-body-lg: 1rem;
    --fs-small: 0.82rem;
    --fs-meta: 0.875rem;

    --fs-h1: clamp(1.8rem, 1.2rem + 2vw, 3.2rem);
    --fs-h2: clamp(1.45rem, 1.1rem + 1.3vw, 2.35rem);
    --fs-h3: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
    --fs-h4: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
    --fs-h5: 1rem;
    --fs-h6: 0.95rem;

    --lh-body: 2;
    --lh-heading: 1.6;
    --lh-tight: 1.45;
}

/* =========================
   Dark Mode Variables
========================= */
.mode-dark {
    --text: #e5e7eb;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;

    --bg: #0b1220;
    --bg-soft: #111827;
    --bg-section: #0f172a;
    --bg-card: #111827;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --heading: #f8fafc;
    --dark: #020617;

    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
}

/* =========================
   Base / Reset
========================= */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-sans);
    font-feature-settings: "ss01" 1, "ss02" 1, "cv01" 1, "cv02" 1;
}

body {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--primary);
    text-decoration: none;
}

p,
li,
dd,
dt,
blockquote {
    line-height: var(--lh-body);
}

small,
.small {
    font-size: var(--fs-small);
}

.text-muted,
.text-secondary {
    color: var(--muted) !important;
}

.text-small {
    font-size: var(--fs-small);
}

.text-meta {
    font-size: var(--fs-meta);
    line-height: 1.85;
}

.bg-light {
    background-color: var(--bg-section) !important;
}

.bg-white {
    background-color: var(--bg) !important;
}

.border,
.border-top,
.border-bottom,
.border-start,
.border-end {
    border-color: var(--border) !important;
}

hr {
    border-color: var(--border);
    opacity: 1;
}

/* =========================
   Typography
========================= */
h1, .h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
    font-weight: 800;
    color: var(--heading);
}

h2, .h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
    font-weight: 700;
    color: var(--heading);
}

h3, .h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    font-weight: 700;
    color: var(--heading);
}

h4, .h4 {
    font-size: var(--fs-h4);
    line-height: var(--lh-heading);
    font-weight: 600;
    color: var(--heading);
}

h5, .h5 {
    font-size: var(--fs-h5);
    line-height: var(--lh-tight);
    font-weight: 600;
    color: var(--heading);
}

h6, .h6 {
    font-size: var(--fs-h6);
    line-height: var(--lh-tight);
    font-weight: 600;
    color: var(--heading);
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-sans);
    line-height: 1.4;
    font-weight: 800;
}

.lead {
    font-size: 1.02rem;
    line-height: 2;
    font-weight: 400;
}

/* =========================
   Bootstrap Harmonization
========================= */
.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.offcanvas,
.accordion-item {
    background-color: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.card {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-title {
    line-height: 1.8;
    font-weight: 700;
    color: var(--heading);
}

.card-text {
    font-size: 0.94rem;
    line-height: 2;
    color: var(--text-soft);
}

.btn {
    font-family: var(--font-sans);
    border-radius: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.20);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.28);
}

.form-control,
.form-select {
    min-height: 48px;
    font-family: var(--font-sans);
    border-radius: 0.85rem;
    border-color: var(--border-strong);
    background-color: var(--bg);
    color: var(--text);
    box-shadow: none !important;
}

.form-control::placeholder,
textarea::placeholder {
    color: var(--muted);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.12) !important;
    background-color: var(--bg);
    color: var(--text);
}

input,
textarea,
select,
button {
    font-variant-numeric: tabular-nums;
}

/* =========================
   Layout Utilities
========================= */
.section-space {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-head {
    margin-bottom: 1.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.section-title {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--heading);
}

.section-desc {
    max-width: 760px;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 2.05;
    color: var(--muted);
}

/* =========================
   Header / Navbar
========================= */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.sticky-top {
    backdrop-filter: blur(10px);
}

.site-header .navbar {
    min-height: 72px;
}

.site-header .navbar-brand {
    color: var(--heading);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header .navbar-brand:hover,
.site-header .navbar-brand:focus {
    color: var(--primary);
}

.site-header .navbar-brand img {
    max-height: 42px;
    width: auto;
}

.site-header .navbar-nav {
    gap: 0.25rem;
}

.site-header .navbar-nav .nav-item {
    position: relative;
}

.site-header .navbar-nav .nav-link {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.2;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
    color: var(--primary);
    background: var(--primary-soft);
}

.site-header .navbar-nav .nav-link.active,
.site-header .navbar-nav .nav-link[aria-current="page"] {
    color: var(--primary);
    background: var(--primary-soft-2);
    font-weight: 700;
}

.site-header .navbar-text {
    color: var(--muted);
}

.site-header .navbar-toggler {
    border: 1px solid var(--border-strong);
    border-radius: 0.85rem;
    padding: 0.45rem 0.7rem;
    box-shadow: none !important;
}

.site-header .navbar-toggler:hover,
.site-header .navbar-toggler:focus {
    border-color: rgba(var(--primary-rgb), 0.35);
    background: var(--primary-soft);
}

.site-header .navbar-toggler-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.site-header .dropdown-menu {
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 0.55rem;
    background: var(--bg-card);
}

.site-header .dropdown-item {
    color: var(--text-soft);
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    color: var(--primary);
    background: var(--primary-soft);
}

.site-header .dropdown-item.active,
.site-header .dropdown-item:active {
    color: var(--primary);
    background: var(--primary-soft-2);
}

.site-header .dropdown-divider {
    border-top-color: var(--border);
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid var(--border);
        border-radius: 1rem;
        background: var(--bg-card);
        box-shadow: var(--shadow-sm);
    }

    .site-header .navbar-nav {
        gap: 0.35rem;
    }

    .site-header .navbar-nav .nav-link {
        border-radius: 0.85rem;
        padding: 0.9rem 1rem;
    }

    .site-header .dropdown-menu {
        border: 0;
        box-shadow: none;
        padding: 0.35rem 0 0.15rem;
        margin-top: 0.25rem;
        background: transparent;
    }

    .site-header .dropdown-item {
        padding: 0.75rem 1rem;
    }
}

.mode-dark .site-header {
    background: #111827 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.mode-dark .site-header .navbar-brand {
    color: #f8fafc !important;
}

.mode-dark .site-header .navbar-brand:hover,
.mode-dark .site-header .navbar-brand:focus {
    color: #93c5fd !important;
}

.mode-dark .site-header .navbar-text {
    color: #cbd5e1 !important;
}

.mode-dark .site-header .navbar-nav .nav-link {
    color: #e5e7eb !important;
    background: transparent;
}

.mode-dark .site-header .navbar-nav .nav-link:hover,
.mode-dark .site-header .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background: rgba(147, 197, 253, 0.10) !important;
}

.mode-dark .site-header .navbar-nav .nav-link.active,
.mode-dark .site-header .navbar-nav .nav-link[aria-current="page"] {
    color: #93c5fd !important;
    background: rgba(147, 197, 253, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.18);
}

.mode-dark .site-header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.02);
}

.mode-dark .site-header .navbar-toggler:hover,
.mode-dark .site-header .navbar-toggler:focus {
    border-color: rgba(147, 197, 253, 0.35) !important;
    background: rgba(147, 197, 253, 0.08) !important;
}

.mode-dark .site-header .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(220%);
}

.mode-dark .site-header .dropdown-menu {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35) !important;
}

.mode-dark .site-header .dropdown-item {
    color: #e5e7eb !important;
}

.mode-dark .site-header .dropdown-item:hover,
.mode-dark .site-header .dropdown-item:focus {
    color: #ffffff !important;
    background: rgba(147, 197, 253, 0.10) !important;
}

.mode-dark .site-header .dropdown-item.active,
.mode-dark .site-header .dropdown-item:active {
    color: #93c5fd !important;
    background: rgba(147, 197, 253, 0.14) !important;
}

.mode-dark .site-header .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 991.98px) {
    .mode-dark .site-header .navbar-collapse {
        background: #0f172a !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
    }

    .mode-dark .site-header .dropdown-menu {
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .mode-dark .site-header .dropdown-item {
        color: #cbd5e1 !important;
    }

    .mode-dark .site-header .dropdown-item:hover,
    .mode-dark .site-header .dropdown-item:focus {
        color: #ffffff !important;
    }
}

/* =========================
   Hero Section
========================= */
.hero-section {
    position: relative;
}

.hero-slide {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.50), rgba(2, 6, 23, 0.62));
}

.hero-content {
    min-height: 70vh;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 1.4rem + 2.8vw, 4rem);
    line-height: 1.45;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-description {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 2.1;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
}

/* =========================
   Announcement Marquee
========================= */
.announcement-bar {
    position: relative;
    overflow: hidden;
    padding: 0.7rem 0;
    z-index: 20;
}

.announcement-track-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.announcement-track {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    min-width: max-content;
    animation: cmsAnnouncementMarquee 18s linear infinite;
    will-change: transform;
}

.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

.announcement-link {
    display: inline-block;
    color: inherit;
    font-weight: 700;
    line-height: 1.8;
    padding-inline: 1rem;
}

.announcement-link:hover,
.announcement-link:focus {
    color: inherit;
    opacity: 0.95;
}

@keyframes cmsAnnouncementMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================
   News / Product Cards
========================= */
.news-card,
.product-card,
.contact-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card img,
.product-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--bg-section);
}

.news-card .card-body,
.product-card .card-body {
    padding: 1.25rem;
}

.news-card .card-title,
.product-card .card-title {
    margin-bottom: 0.75rem;
}

.news-card .card-title a,
.product-card .card-title a {
    color: var(--heading);
}

.news-card .card-title a:hover,
.product-card .card-title a:hover {
    color: var(--primary);
}

/* =========================
   Notice Section
========================= */
.notice-section {
    background: transparent;
}

.notice-box {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.03));
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.notice-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.notice-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--heading);
}

.notice-text {
    line-height: 2;
    color: var(--text-soft);
}

.mode-dark .notice-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
    border-color: rgba(147, 197, 253, 0.18);
}

.mode-dark .notice-title {
    color: #f8fafc;
}

.mode-dark .notice-text {
    color: #cbd5e1;
}

/* =========================
   Contact Section
========================= */
.contact-box {
    padding: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
    color: var(--text-soft);
}

.contact-list li:last-child {
    margin-bottom: 0;
}

/* =========================
   Simple Persian Captcha
========================= */
.captcha-box {
    border: 1px solid var(--border);
    background: var(--bg-section);
    border-radius: 1rem;
    padding: 1rem;
}

.captcha-question {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border-radius: 0.85rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    color: var(--heading);
    font-weight: 700;
    line-height: 1.9;
    width: 100%;
}

.mode-dark .captcha-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.mode-dark .captcha-question {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

/* =========================
   Footer
========================= */
.site-footer {
    background: var(--dark);
    color: #ffffff;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer a {
    font-size: 0.93rem;
    line-height: 2;
}

.site-footer a {
    color: #dbeafe;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-content {
    color: rgba(255, 255, 255, 0.85);
}

/* =========================
   Helpers
========================= */
.shadow-soft {
    box-shadow: var(--shadow-sm);
}

.rounded-soft {
    border-radius: var(--radius);
}

.rounded-soft-lg {
    border-radius: var(--radius-lg);
}

.surface {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    direction: ltr;
    text-align: left;
    font-size: 0.85rem;
    background: var(--bg-section);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
}

/* =========================
   Responsive
========================= */
@media (min-width: 768px) {
    body {
        font-size: var(--fs-body-lg);
    }

    .site-header .navbar-nav .nav-link {
        font-size: 0.96rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.96rem;
    }
}

@media (max-width: 991.98px) {
    .section-space {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hero-slide,
    .hero-content {
        min-height: 56vh;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.94rem;
        line-height: 1.95;
    }

    .site-header .navbar {
        min-height: 64px;
    }

    .site-header .navbar-brand {
        font-size: 1rem;
    }

    .site-header .navbar-brand img {
        max-height: 36px;
    }

    .site-header .navbar-nav .nav-link {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .section-space {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .section-title {
        line-height: 1.7;
    }

    .section-desc {
        font-size: 0.93rem;
        line-height: 2;
    }

    .hero-slide,
    .hero-content {
        min-height: 50vh;
    }

    .hero-title {
        font-size: clamp(1.7rem, 1.25rem + 2.2vw, 2.4rem);
        line-height: 1.55;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 2;
    }

    .card-title {
        font-size: 1rem;
        line-height: 1.85;
    }

    .card-text {
        font-size: 0.92rem;
        line-height: 1.95;
    }

    .news-card img,
    .product-card img {
        height: 210px;
    }

    .contact-box {
        padding: 1.25rem;
    }

    .btn {
        font-size: 0.93rem;
        font-weight: 600;
    }

    .form-control,
    .form-select {
        min-height: 46px;
        font-size: 0.94rem;
    }

    .announcement-bar {
        padding: 0.6rem 0;
    }

    .announcement-link {
        font-size: 0.92rem;
        padding-inline: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slide,
    .hero-content {
        min-height: 46vh;
    }

    .news-card img,
    .product-card img {
        height: 200px;
    }

    .section-badge {
        font-size: 0.82rem;
    }
}
/* =========================
   Internal Pages
========================= */
.internal-page {
    min-height: 60vh;
}

.page-hero {
    padding: 72px 0 48px;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 30%),
        linear-gradient(180deg, var(--bg-section), transparent);
}

.page-hero-sm {
    padding-top: 64px;
    padding-bottom: 36px;
}

.page-hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem);
    line-height: 1.5;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--muted);
    line-height: 2;
    margin-bottom: 0;
}

.contact-info-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    line-height: 2;
}

.contact-info-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-info-list strong {
    color: var(--heading);
    margin-left: 0.35rem;
}

.map-box {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.map-box iframe {
    display: block;
    width: 100%;
    min-height: 380px;
    border: 0;
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 52px 0 28px;
    }

    .page-title {
        line-height: 1.6;
    }

    .map-box iframe {
        min-height: 300px;
    }
}
/* =========================
   News Archive
========================= */
.news-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-section);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-card-title {
    line-height: 1.8;
    font-weight: 700;
}

.news-card-summary {
    line-height: 2;
    font-size: 0.95rem;
}

/* =========================
   News Detail
========================= */
.news-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: clamp(1rem, 2vw, 2rem);
    box-shadow: var(--shadow-sm);
}

.news-detail-cover img {
    max-height: 520px;
    object-fit: cover;
}

.news-detail-summary {
    line-height: 2;
    font-size: 1rem;
}

.news-detail-content {
    color: var(--text-soft);
    line-height: 2.2;
    font-size: 1rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    color: var(--heading);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.news-detail-content p,
.news-detail-content li {
    line-height: 2.2;
}

/* =========================
   Post Album Carousel
========================= */
.post-album-carousel {
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.post-album-item {
    width: 280px;
}

.post-album-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .post-album-item {
        width: 220px;
    }

    .post-album-item img {
        height: 160px;
    }
}
/* =========================
   Product Card
========================= */
.product-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-section);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.product-card-title {
    line-height: 1.8;
    font-weight: 700;
}

.product-card-summary {
    line-height: 2;
    font-size: 0.95rem;
}

.product-price {
    color: var(--heading);
}

/* =========================
   Product Detail
========================= */
.product-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: clamp(1rem, 2vw, 2rem);
    box-shadow: var(--shadow-sm);
}

.product-detail-cover img {
    max-height: 520px;
    object-fit: cover;
}

.product-detail-summary {
    color: var(--text-soft);
    line-height: 2;
    font-size: 1rem;
}

.product-detail-content,
.product-detail-specs {
    color: var(--text-soft);
    line-height: 2.2;
    font-size: 1rem;
}

.product-detail-content img,
.product-detail-specs img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.product-detail-attrs li {
    margin-bottom: .6rem;
    color: var(--text-soft);
}

/* =========================
   Product Gallery
========================= */
.product-gallery-carousel {
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.product-gallery-item {
    width: 280px;
}

.product-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .product-gallery-item {
        width: 220px;
    }

    .product-gallery-item img {
        height: 160px;
    }
}
/* =========================================
   Internal Pages - Shared
========================================= */
.internal-page {
    background: var(--bg-body);
    color: var(--text);
}

.page-hero {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 35%),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.10), transparent 30%),
        var(--bg-section);
    border-bottom: 1px solid var(--border);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.page-hero-sm {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.page-title {
    color: var(--heading);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: .75rem;
}

.page-subtitle {
    color: var(--text-soft);
    max-width: 720px;
    margin: 0 auto;
    line-height: 2;
}

/* =========================================
   News Card / Product Card / Detail Shared
========================================= */
.news-card,
.product-card,
.product-detail-card {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border) !important;
}

.news-card .card-title,
.news-card .card-text,
.product-card .card-title,
.product-card .card-text {
    color: inherit;
}

.news-card .text-muted,
.product-card .text-muted,
.product-detail-page .text-muted,
.news-archive-page .text-muted,
.products-archive-page .text-muted {
    color: var(--text-muted) !important;
}

.news-card .text-secondary,
.product-card .text-secondary {
    color: var(--text-soft) !important;
}

/* =========================================
   Product Detail
========================================= */
.product-detail-card {
    box-shadow: var(--shadow-sm);
}

.product-detail-summary,
.product-detail-content,
.product-detail-specs,
.product-detail-attrs li {
    color: var(--text-soft);
}

.product-detail-content h1,
.product-detail-content h2,
.product-detail-content h3,
.product-detail-content h4,
.product-detail-specs h1,
.product-detail-specs h2,
.product-detail-specs h3,
.product-detail-specs h4 {
    color: var(--heading);
}

.product-detail-content table,
.product-detail-specs table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.product-detail-content table th,
.product-detail-content table td,
.product-detail-specs table th,
.product-detail-specs table td {
    border: 1px solid var(--border);
    padding: .75rem;
    color: var(--text);
}

.product-detail-content blockquote,
.product-detail-specs blockquote {
    border-right: 4px solid var(--primary);
    background: var(--bg-section);
    color: var(--text-soft);
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
}

/* =========================================
   Archive Pages
========================================= */
.news-archive-page,
.products-archive-page {
    background: var(--bg-body);
    color: var(--text);
}

/* =========================================
   Alerts / boxes in internal pages
========================================= */
.internal-page .alert-light {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

/* =========================================
   Dark Mode Fixes
========================================= */
body.mode-dark .page-hero {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 35%),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 30%),
        var(--bg-section);
}

body.mode-dark .product-card,
body.mode-dark .news-card,
body.mode-dark .product-detail-card {
    background: var(--bg-card);
    border-color: var(--border) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

body.mode-dark .product-card-title,
body.mode-dark .page-title,
body.mode-dark .product-price,
body.mode-dark .news-card-title {
    color: var(--heading);
}

body.mode-dark .product-card-summary,
body.mode-dark .page-subtitle,
body.mode-dark .product-detail-summary,
body.mode-dark .product-detail-content,
body.mode-dark .product-detail-specs {
    color: var(--text-soft);
}

body.mode-dark .badge.text-bg-light {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
}

body.mode-dark .btn-outline-secondary {
    color: var(--text);
    border-color: var(--border-strong);
}

body.mode-dark .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--heading);
    border-color: var(--border-strong);
}

body.mode-dark .btn-outline-primary {
    color: var(--primary-100);
    border-color: var(--primary-300);
}

body.mode-dark .btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

body.mode-dark .product-gallery-item .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}

/* =========================================
   News archive cards extra
========================================= */
.news-card-title {
    line-height: 1.8;
    font-weight: 800;
}

.news-card-summary {
    line-height: 2;
    color: var(--text-soft);
}
/* =========================================
   Navigation / Header
========================================= */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
    z-index: 1030;
}

.site-navbar {
    background: transparent;
}

.site-brand {
    color: var(--heading);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--primary);
}

.site-brand-logo {
    width: auto;
    max-height: 42px;
    object-fit: contain;
}

.site-brand-text {
    color: var(--heading);
    font-weight: 800;
    font-size: 1.05rem;
}

.site-header .navbar-toggler {
    padding: .45rem .65rem;
    border-radius: .85rem;
    background: transparent;
}

.site-header .navbar-toggler:focus {
    box-shadow: none;
}

.site-header .navbar-toggler-icon {
    filter: none;
}

.site-header .nav-link {
    color: var(--text);
    font-weight: 600;
    padding: .7rem .95rem;
    border-radius: .85rem;
    transition: color .2s ease, background .2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.site-header .nav-link.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    font-weight: 700;
}

.site-header .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: .5rem;
    min-width: 220px;
}

.site-header .dropdown-item {
    color: var(--text);
    border-radius: .75rem;
    padding: .65rem .85rem;
    transition: background .2s ease, color .2s ease;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.nav-actions .btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: 1rem;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 1rem;
        padding: 1rem;
    }

    .site-header .navbar-nav {
        align-items: stretch !important;
    }

    .site-header .nav-link {
        display: block;
        width: 100%;
    }

    .nav-actions {
        margin-top: 1rem;
        padding-top: .75rem;
        border-top: 1px solid var(--border);
    }
}

/* =========================================
   Dark Mode Header Fixes
========================================= */
body.mode-dark .site-header {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border);
}

body.mode-dark .site-header .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

body.mode-dark .site-header .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border);
}

body.mode-dark .site-brand-text,
body.mode-dark .site-header .nav-link,
body.mode-dark .site-header .dropdown-item {
    color: var(--text);
}

body.mode-dark .site-header .nav-link:hover,
body.mode-dark .site-header .nav-link:focus,
body.mode-dark .site-header .dropdown-item:hover,
body.mode-dark .site-header .dropdown-item:focus {
    color: var(--primary-100);
}

body.mode-dark .site-header .nav-link.active {
    color: var(--primary-100);
    background: rgba(59, 130, 246, 0.14);
}

@media (max-width: 991.98px) {
    body.mode-dark .site-header .navbar-collapse {
        background: rgba(15, 23, 42, 0.96);
    }
}
/* ============================================================
   1) استایل صفحه درباره ما
   مسیر پیشنهادی: assets/css/site.css
   توضیح:
   این بخش مخصوص صفحه داخلی درباره ما است و شامل:
   - هدر داخلی
   - خلاصه صفحه
   - بلوک‌های سکشن
   - تصویرها
   - حالت روشن / تاریک
   - واکنش‌گرایی
   ============================================================ */

/* ------------------------------------------------------------
   2) بدنه اصلی صفحه درباره ما
   ------------------------------------------------------------ */
.about-page-main {
    position: relative;
}

/* ------------------------------------------------------------
   3) هدر داخلی صفحه
   ------------------------------------------------------------ */
.inner-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(13, 110, 253, 0.04), rgba(13, 110, 253, 0.01));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.inner-hero-content {
    position: relative;
    z-index: 2;
}

.inner-hero .badge {
    font-size: 0.85rem;
    border-radius: 999px;
}

.inner-hero h1 {
    line-height: 1.5;
    letter-spacing: -0.3px;
}

.inner-hero .lead {
    font-size: 1.05rem;
    color: var(--bs-secondary-color, #6c757d);
    line-height: 2;
}

.page-summary {
    font-size: 1rem;
    line-height: 2.1;
}

.page-summary p:last-child {
    margin-bottom: 0;
}

.inner-hero-image img {
    display: inline-block;
    max-height: 420px;
    width: auto;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #fff;
}

/* ------------------------------------------------------------
   4) محتوای اصلی صفحه
   ------------------------------------------------------------ */
.about-page-content .cms-content {
    background-color: #ffffff;
}

.about-page-content .card-body {
    line-height: 2.1;
    font-size: 1rem;
}

.about-page-content .card-body p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   5) سکشن‌های صفحه درباره ما
   ------------------------------------------------------------ */
.about-section-block {
    position: relative;
}

.about-section-block + .about-section-block {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.about-section-block h2 {
    font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.about-section-block .text-muted {
    font-size: 0.98rem;
    line-height: 2;
}

.section-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-content {
    font-size: 1rem;
    line-height: 2.15;
    color: var(--bs-body-color, #212529);
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content ul,
.section-content ol {
    padding-right: 1.25rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.45rem;
}

.section-image img {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #fff;
    object-fit: cover;
}

/* ------------------------------------------------------------
   6) حالت پس‌زمینه سکشن‌ها
   ------------------------------------------------------------ */
.about-bg-default {
    background-color: transparent;
}

.about-bg-soft {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.035), rgba(13, 110, 253, 0.015));
}

.about-bg-light {
    background-color: #f8f9fa;
}

/* ------------------------------------------------------------
   7) بهبود ظاهری کارت‌مانند برای بعضی بلوک‌ها
   ------------------------------------------------------------ */
.about-section-block .section-text,
.about-section-block .section-image {
    position: relative;
    z-index: 2;
}

.about-section-block .section-image img,
.inner-hero-image img {
    border-radius: 1.25rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

/* ------------------------------------------------------------
   8) حالت centered
   ------------------------------------------------------------ */
.about-section-block .text-center .section-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------------------
   9) بهینه‌سازی فاصله‌ها در موبایل
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .inner-hero {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .inner-hero .lead {
        font-size: 1rem;
    }

    .page-summary,
    .section-content,
    .about-page-content .card-body {
        font-size: 0.97rem;
        line-height: 2;
    }

    .inner-hero-image img {
        max-height: 340px;
    }
}

@media (max-width: 767.98px) {
    .inner-hero h1 {
        font-size: 1.75rem;
    }

    .inner-hero .lead {
        font-size: 0.96rem;
    }

    .page-summary {
        font-size: 0.95rem;
    }

    .about-section-block {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .about-section-block h2 {
        font-size: 1.3rem;
    }

    .section-content {
        font-size: 0.95rem;
    }

    .inner-hero-image img,
    .section-image img {
        border-radius: 1rem;
    }
}

@media (max-width: 575.98px) {
    .inner-hero {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .inner-hero .badge {
        font-size: 0.78rem;
    }

    .page-summary,
    .section-content,
    .about-page-content .card-body {
        font-size: 0.92rem;
        line-height: 1.95;
    }

    .about-section-block h2 {
        font-size: 1.18rem;
    }
}

/* ------------------------------------------------------------
   10) حالت تاریک برای صفحه درباره ما
   ------------------------------------------------------------ */
[data-theme="dark"] .inner-hero,
body.dark-mode .inner-hero {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .inner-hero .lead,
body.dark-mode .inner-hero .lead,
[data-theme="dark"] .about-section-block .text-muted,
body.dark-mode .about-section-block .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

[data-theme="dark"] .about-page-content .cms-content,
body.dark-mode .about-page-content .cms-content {
    background-color: #1e2430;
    color: #e9eef5;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .about-section-block + .about-section-block,
body.dark-mode .about-section-block + .about-section-block {
    border-top-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .about-bg-soft,
body.dark-mode .about-bg-soft {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.10), rgba(13, 110, 253, 0.04));
}

[data-theme="dark"] .about-bg-light,
body.dark-mode .about-bg-light {
    background-color: #151a22;
}

[data-theme="dark"] .section-content,
body.dark-mode .section-content,
[data-theme="dark"] .page-summary,
body.dark-mode .page-summary {
    color: #dfe6ee;
}

[data-theme="dark"] .section-image img,
body.dark-mode .section-image img,
[data-theme="dark"] .inner-hero-image img,
body.dark-mode .inner-hero-image img {
    background-color: #11151b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.35);
}
/* ============================================================
 * 01) فرم ثبت‌نام دوره
 * مسیرهای مرتبط:
 * - course-register.php
 * - course-register-submit.php
 * ============================================================ */

.course-register-page .page-hero {
    margin-bottom: 1.5rem;
}

.course-register-page .card {
    border: 1px solid var(--cms-border, rgba(0, 0, 0, 0.08));
    background: var(--cms-surface, #ffffff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.course-register-page .card-body {
    padding: 1.5rem;
}

.course-register-page h2.h5 {
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--cms-heading, #1f2937);
}

.course-register-page .form-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: var(--cms-heading, #1f2937);
    line-height: 1.8;
}

.course-register-page .form-text {
    margin-top: 0.45rem;
    font-size: 0.86rem;
    line-height: 1.9;
    color: var(--cms-muted, #6b7280);
}

.course-register-page .form-control,
.course-register-page .form-select,
.course-register-page textarea.form-control {
    min-height: 48px;
    border-radius: 0.95rem;
    border: 1px solid var(--cms-input-border, rgba(0, 0, 0, 0.14));
    background-color: var(--cms-input-bg, #ffffff);
    color: var(--cms-text, #111827);
    padding: 0.72rem 0.95rem;
    font-size: 0.97rem;
    line-height: 1.7;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.course-register-page textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.course-register-page .form-control::placeholder,
.course-register-page textarea.form-control::placeholder {
    color: var(--cms-placeholder, #9ca3af);
    opacity: 1;
}

.course-register-page .form-control:focus,
.course-register-page .form-select:focus,
.course-register-page textarea.form-control:focus {
    border-color: var(--cms-primary, #2563eb);
    background-color: var(--cms-input-bg, #ffffff);
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.14);
    outline: none;
}

.course-register-page input[type="file"].form-control {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    line-height: 1.5;
}

.course-register-page .alert {
    border-radius: 1rem;
    padding: 1rem 1rem;
    line-height: 1.95;
    font-size: 0.95rem;
    border-width: 1px;
    box-shadow: none;
}

.course-register-page .alert strong {
    font-weight: 800;
}

.course-register-page .alert ul {
    padding-right: 1rem;
}

.course-register-page .alert li + li {
    margin-top: 0.25rem;
}

.course-register-page .alert-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1e3a8a;
}

.course-register-page .alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #7c4a03;
}

.course-register-page .alert-danger {
    background: rgba(239, 68, 68, 0.09);
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

.course-register-page .bg-light {
    background-color: var(--cms-soft-bg, #f8fafc) !important;
}

.course-register-page .border {
    border-color: var(--cms-border, rgba(0, 0, 0, 0.08)) !important;
}

.course-register-page .btn {
    min-height: 46px;
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    transition: all 0.2s ease;
}

.course-register-page .btn-primary {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.course-register-page .btn-primary:hover,
.course-register-page .btn-primary:focus {
    transform: translateY(-1px);
}

.course-register-page .btn-outline-secondary:hover,
.course-register-page .btn-outline-secondary:focus {
    transform: translateY(-1px);
}

.course-register-page .text-danger {
    font-weight: 700;
}

.course-register-page [dir="ltr"] {
    text-align: left;
}

/* ============================================================
 * 02) رسید ثبت‌نام دوره
 * مسیر مرتبط:
 * - course-registration-receipt.php
 * نکته:
 * این صفحه فعلاً CSS داخلی هم دارد، اما این بلوک برای
 * هماهنگی بیشتر با site.css آماده شده است.
 * اگر بعداً CSS داخلی را حذف کردی، همین کلاس‌ها کافی است.
 * ============================================================ */

.course-registration-receipt-page,
body.course-registration-receipt-page {
    background: var(--cms-page-bg, #f6f8fb);
    color: var(--cms-text, #111827);
}

.course-registration-receipt-page .receipt-wrap {
    max-width: 920px;
    margin: 0 auto;
    background: var(--cms-surface, #ffffff);
    border: 1px solid var(--cms-border, rgba(0, 0, 0, 0.08));
    border-radius: 1.1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.course-registration-receipt-page .success-box {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: #166534;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.1rem;
    line-height: 2;
}

.course-registration-receipt-page .receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.course-registration-receipt-page .receipt-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--cms-heading, #111827);
}

.course-registration-receipt-page .receipt-header p {
    margin: 0;
    color: var(--cms-muted, #6b7280);
    line-height: 1.95;
}

.course-registration-receipt-page .notice {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #7c4a03;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.95;
}

.course-registration-receipt-page .tracking {
    margin: 1.4rem 0;
    padding: 1rem 1.1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 1rem;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.9;
    word-break: break-word;
}

.course-registration-receipt-page .tracking strong {
    font-weight: 900;
}

.course-registration-receipt-page .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.5rem;
}

.course-registration-receipt-page .item {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--cms-border, rgba(0, 0, 0, 0.12));
    line-height: 1.95;
    color: var(--cms-text, #111827);
}

.course-registration-receipt-page .label {
    font-weight: 800;
    display: inline-block;
    min-width: 132px;
    color: var(--cms-heading, #111827);
}

.course-registration-receipt-page .actions {
    margin-top: 1.6rem;
    text-align: center;
}

.course-registration-receipt-page .actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    margin: 0.35rem;
    font-weight: 700;
}

/* ============================================================
 * 03) بهینه‌سازی موبایل فرم ثبت‌نام
 * ============================================================ */

@media (max-width: 991.98px) {
    .course-register-page .card-body {
        padding: 1.25rem;
    }

    .course-register-page .page-title {
        font-size: 1.7rem;
    }

    .course-register-page .page-subtitle {
        font-size: 0.95rem;
        line-height: 2;
    }
}

@media (max-width: 767.98px) {
    .course-register-page .page-hero {
        margin-bottom: 1rem;
    }

    .course-register-page .card {
        border-radius: 1rem;
    }

    .course-register-page .card-body {
        padding: 1rem;
    }

    .course-register-page .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }

    .course-register-page .form-label {
        margin-bottom: 0.45rem;
        font-size: 0.94rem;
    }

    .course-register-page .form-text {
        font-size: 0.82rem;
        line-height: 1.85;
    }

    .course-register-page .form-control,
    .course-register-page .form-select,
    .course-register-page textarea.form-control {
        min-height: 46px;
        padding: 0.68rem 0.85rem;
        font-size: 0.95rem;
    }

    .course-register-page textarea.form-control {
        min-height: 110px;
    }

    .course-register-page .alert {
        padding: 0.9rem 0.95rem;
        font-size: 0.92rem;
        line-height: 1.9;
    }

    .course-register-page .d-grid.d-md-flex.gap-2 > .btn,
    .course-register-page .d-grid.d-md-flex.gap-2 > a.btn {
        width: 100%;
        min-height: 48px;
    }

    .course-register-page .btn.rounded-pill {
        border-radius: 0.95rem !important;
    }

    .course-register-page h2.h5 {
        font-size: 1.02rem;
    }
}

/* ============================================================
 * 04) بهینه‌سازی موبایل رسید ثبت‌نام
 * ============================================================ */

@media (max-width: 767.98px) {
    .course-registration-receipt-page .receipt-wrap {
        padding: 1rem;
        border-radius: 1rem;
    }

    .course-registration-receipt-page .success-box,
    .course-registration-receipt-page .notice,
    .course-registration-receipt-page .tracking {
        padding: 0.9rem;
        border-radius: 0.95rem;
    }

    .course-registration-receipt-page .receipt-header {
        margin-bottom: 1.1rem;
    }

    .course-registration-receipt-page .receipt-header h1 {
        font-size: 1.2rem;
    }

    .course-registration-receipt-page .receipt-header p,
    .course-registration-receipt-page .notice,
    .course-registration-receipt-page .success-box,
    .course-registration-receipt-page .item {
        font-size: 0.93rem;
    }

    .course-registration-receipt-page .tracking {
        font-size: 0.96rem;
    }

    .course-registration-receipt-page .grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .course-registration-receipt-page .label {
        min-width: 112px;
    }

    .course-registration-receipt-page .actions .btn {
        display: flex;
        width: 100%;
        margin: 0.4rem 0;
    }
}

/* ============================================================
 * 05) هماهنگی با دارک مود
 * نکته:
 * اگر در پروژه تو body کلاس mode-dark می‌گیرد،
 * این بخش ظاهر فرم و رسید را با دارک مود هماهنگ می‌کند.
 * ============================================================ */

body.mode-dark .course-register-page .card,
body.mode-dark.course-register-page .card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body.mode-dark .course-register-page h2.h5,
body.mode-dark .course-register-page .form-label,
body.mode-dark .course-register-page .label,
body.mode-dark .course-register-page .item,
body.mode-dark .course-register-page .form-control,
body.mode-dark .course-register-page .form-select,
body.mode-dark .course-register-page textarea.form-control {
    color: #f3f4f6;
}

body.mode-dark .course-register-page .form-text {
    color: #9ca3af;
}

body.mode-dark .course-register-page .form-control,
body.mode-dark .course-register-page .form-select,
body.mode-dark .course-register-page textarea.form-control {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
}

body.mode-dark .course-register-page .form-control::placeholder,
body.mode-dark .course-register-page textarea.form-control::placeholder {
    color: #94a3b8;
}

body.mode-dark .course-register-page .form-control:focus,
body.mode-dark .course-register-page .form-select:focus,
body.mode-dark .course-register-page textarea.form-control:focus {
    background-color: #111827;
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.22rem rgba(96, 165, 250, 0.18);
}

body.mode-dark .course-register-page .bg-light {
    background-color: #0f172a !important;
}

body.mode-dark .course-register-page .border {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.mode-dark .course-register-page .alert-info {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.24);
    color: #bfdbfe;
}

body.mode-dark .course-register-page .alert-warning {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(251, 191, 36, 0.24);
    color: #fde68a;
}

body.mode-dark .course-register-page .alert-danger {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.24);
    color: #fecaca;
}

body.mode-dark .course-registration-receipt-page,
body.mode-dark.course-registration-receipt-page {
    background: #0b1220;
    color: #f3f4f6;
}

body.mode-dark .course-registration-receipt-page .receipt-wrap {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

body.mode-dark .course-registration-receipt-page .receipt-header h1,
body.mode-dark .course-registration-receipt-page .label,
body.mode-dark .course-registration-receipt-page .item {
    color: #f3f4f6;
}

body.mode-dark .course-registration-receipt-page .receipt-header p {
    color: #9ca3af;
}

body.mode-dark .course-registration-receipt-page .success-box {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(74, 222, 128, 0.24);
    color: #bbf7d0;
}

body.mode-dark .course-registration-receipt-page .notice {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.24);
    color: #fde68a;
}

body.mode-dark .course-registration-receipt-page .tracking {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.24);
    color: #dbeafe;
}

body.mode-dark .course-registration-receipt-page .item {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}
/* ============================================================
 * 06) تنظیمات ویژه چاپ رسید ثبت‌نام
 * هدف:
 * - فیت شدن در یک صفحه A4
 * - حذف دکمه‌ها در چاپ
 * - نمایش مناسب PDF
 * ============================================================ */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12px !important;
    }

    body.course-registration-receipt-page {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .course-registration-receipt-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .course-registration-receipt-page .receipt-wrap {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        background: #ffffff !important;
        page-break-inside: avoid;
    }

    .course-registration-receipt-page .receipt-header {
        margin-bottom: 10px !important;
    }

    .course-registration-receipt-page .receipt-header h1 {
        font-size: 18px !important;
        margin-bottom: 4px !important;
        color: #000000 !important;
    }

    .course-registration-receipt-page .receipt-header p {
        font-size: 11px !important;
        line-height: 1.8 !important;
        color: #333333 !important;
        margin-bottom: 0 !important;
    }

    .course-registration-receipt-page .success-box,
    .course-registration-receipt-page .notice,
    .course-registration-receipt-page .tracking {
        margin-bottom: 10px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        line-height: 1.8 !important;
        font-size: 11px !important;
        color: #000000 !important;
        background: #ffffff !important;
    }

    .course-registration-receipt-page .success-box {
        border: 1px solid #9fd9b3 !important;
    }

    .course-registration-receipt-page .notice {
        border: 1px solid #e7c77a !important;
    }

    .course-registration-receipt-page .tracking {
        border: 1px solid #9ab8f5 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .course-registration-receipt-page .receipt-main {
        display: grid !important;
        grid-template-columns: 110px 1fr !important;
        gap: 12px !important;
        align-items: start !important;
    }

    .course-registration-receipt-page .receipt-photo {
        text-align: center !important;
    }

    .course-registration-receipt-page .receipt-photo img {
        width: 100px !important;
        height: 120px !important;
        object-fit: cover !important;
        border: 1px solid #d1d5db !important;
        border-radius: 6px !important;
        display: block !important;
    }

    .course-registration-receipt-page .receipt-photo .photo-placeholder {
        width: 100px !important;
        height: 120px !important;
        border: 1px dashed #cbd5e1 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 10px !important;
        color: #666666 !important;
    }

    .course-registration-receipt-page .grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px 14px !important;
    }

    .course-registration-receipt-page .item {
        padding: 5px 0 !important;
        border-bottom: 1px dashed #d1d5db !important;
        line-height: 1.8 !important;
        font-size: 11px !important;
        color: #000000 !important;
    }

    .course-registration-receipt-page .label {
        min-width: 96px !important;
        font-weight: 700 !important;
        color: #000000 !important;
    }

    .course-registration-receipt-page .actions,
    .course-registration-receipt-page .btn,
    .course-registration-receipt-page button,
    .course-registration-receipt-page a.btn {
        display: none !important;
        visibility: hidden !important;
    }
}
.course-registration-receipt-page .tracking .small {
    font-size: 0.85rem;
    line-height: 1.9;
}

.course-registration-receipt-page .tracking .text-muted {
    color: var(--cms-muted, #6b7280) !important;
}
@media print {
    .course-registration-receipt-page .tracking .small,
    .course-registration-receipt-page .tracking .text-muted {
        color: #333333 !important;
        font-size: 10px !important;
    }
}
/* =========================================================
   منوی اصلی سایت - نسخه نهایی RTL
   مناسب برای:
   - منوی چندلایه
   - Bootstrap navbar
   - جلوگیری از شکستگی عناوین
   - بهبود نمایش موبایل و دسکتاپ
   تاریخ: 1405/04/18
   ========================================================= */

/* ---------------------------------------------------------
   1) هدر و نوار اصلی
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-header .navbar {
    direction: rtl;
}

.site-header .navbar > .container {
    align-items: center;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
}

.site-header .navbar-brand:hover {
    color: #0b5ed7;
}

.site-header .navbar-brand img {
    display: block;
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

/* ---------------------------------------------------------
   2) لیست منوی اصلی
   --------------------------------------------------------- */
.site-header .navbar-nav {
    align-items: center;
    gap: 0.15rem;
}

.site-header .navbar-nav .nav-item {
    position: relative;
}

.site-header .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0.9rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.6;
    text-decoration: none;
    border-radius: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-header .navbar-nav .nav-link:hover {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.08);
}

.site-header .navbar-nav .nav-link.active,
.site-header .navbar-nav .show > .nav-link,
.site-header .navbar-nav .nav-link:focus {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.1);
}

/* آیکون‌ها */
.site-header .navbar-nav .nav-link i,
.site-header .navbar-nav .dropdown-item i {
    font-size: 0.92em;
    flex: 0 0 auto;
}

/* ---------------------------------------------------------
   3) dropdown اصلی
   --------------------------------------------------------- */
.site-header .dropdown-menu {
    min-width: 13rem;
    padding: 0.5rem;
    margin-top: 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.12);
    background: #ffffff;
    text-align: right;
    direction: rtl;
}

.site-header .dropdown-menu[data-bs-popper] {
    right: 0;
    left: auto;
}

.site-header .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    color: #1e293b;
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.08);
}

.site-header .dropdown-item.active,
.site-header .dropdown-item:active {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.12);
}

/* ---------------------------------------------------------
   4) ظاهر بهتر فلش dropdown
   --------------------------------------------------------- */
.site-header .dropdown-toggle {
    gap: 0.45rem;
}

.site-header .dropdown-toggle::after {
    margin-right: 0.15rem;
    margin-left: 0;
    vertical-align: middle;
}

/* ---------------------------------------------------------
   5) دکمه دارک مود
   --------------------------------------------------------- */
.site-header #themeToggle {
    white-space: nowrap;
    border-radius: 0.8rem;
    padding: 0.5rem 0.85rem;
    font-weight: 600;
}

/* ---------------------------------------------------------
   6) بهبود جلوگیری از شکستگی منو در دسکتاپ
   --------------------------------------------------------- */
@media (min-width: 992px) {
    .site-header .navbar-nav {
        flex-wrap: nowrap;
    }

    .site-header .navbar-nav .nav-link {
        white-space: nowrap;
    }

    .site-header .navbar-collapse {
        justify-content: space-between;
    }
}

/* ---------------------------------------------------------
   7) حالت تبلت و عرض‌های میانی
   برای جلوگیری از شلوغی زیاد منو
   --------------------------------------------------------- */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .site-header .navbar-brand span {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header .navbar-nav .nav-link {
        padding: 0.62rem 0.72rem;
        font-size: 0.91rem;
    }

    .site-header #themeToggle {
        padding: 0.45rem 0.75rem;
        font-size: 0.88rem;
    }
}

/* ---------------------------------------------------------
   8) نسخه موبایل / تبلت کوچک
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    .site-header .navbar {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .site-header .navbar-brand {
        max-width: calc(100% - 60px);
        font-size: 0.95rem;
    }

    .site-header .navbar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header .navbar-toggler {
        border-radius: 0.8rem;
        padding: 0.4rem 0.6rem;
        border: 1px solid rgba(15, 23, 42, 0.12);
    }

    .site-header .navbar-collapse {
        margin-top: 0.9rem;
        padding: 0.85rem;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 1rem;
        box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
    }

    .site-header .navbar-nav {
        align-items: stretch;
        gap: 0.2rem;
    }

    .site-header .navbar-nav .nav-item {
        width: 100%;
    }

    .site-header .navbar-nav .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 0.95rem;
        border-radius: 0.85rem;
        white-space: normal;
        text-align: right;
    }

    .site-header .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        min-width: 100%;
        margin-top: 0.35rem;
        padding: 0.35rem;
        border-radius: 0.9rem;
        box-shadow: none;
        border: 1px solid rgba(15, 23, 42, 0.06);
        background: rgba(248, 250, 252, 0.9);
    }

    .site-header .dropdown-item {
        padding: 0.8rem 0.85rem;
        white-space: normal;
        border-radius: 0.75rem;
    }

    .site-header #themeToggle {
        margin-top: 0.75rem;
        width: 100%;
    }
}

/* ---------------------------------------------------------
   9) موبایل خیلی کوچک
   --------------------------------------------------------- */
@media (max-width: 575.98px) {
    .site-header .navbar-brand {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .site-header .navbar-brand img {
        max-height: 36px;
    }

    .site-header .navbar-collapse {
        padding: 0.7rem;
    }

    .site-header .navbar-nav .nav-link {
        padding: 0.8rem 0.8rem;
        font-size: 0.92rem;
    }

    .site-header .dropdown-item {
        font-size: 0.9rem;
    }
}
/* =========================================================
   ویترین دوره‌های آموزشی صفحه اصلی
   ========================================================= */
/* =========================================================
   ویترین دوره‌های آموزشی صفحه اصلی - نسخه حرفه‌ای‌تر
   ========================================================= */

.home-courses-section {
    position: relative;
    overflow: hidden;
}

.home-courses-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(25, 135, 84, 0.08), transparent 28%);
    pointer-events: none;
}

.home-courses-shell {
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.10);
    color: #0b5ed7;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.5;
}

.section-subtitle {
    max-width: 760px;
    color: #475569;
    line-height: 1.9;
    font-size: 0.98rem;
}

.home-courses-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.95rem;
    padding: 0.85rem 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.18);
}

.course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 1.35rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.course-card-featured {
    border-color: rgba(13, 110, 253, 0.20);
    box-shadow: 0 16px 38px rgba(13, 110, 253, 0.12);
}

.course-card-featured-lg {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 100%;
}

.course-card-featured-lg .course-card-media-wrap {
    aspect-ratio: auto;
    min-height: 100%;
}

.course-card-featured-lg .course-card-body {
    padding: 1.35rem 1.35rem 1.1rem;
}

.course-card-media-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e9f2ff 0%, #f8fbff 100%);
}

.course-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-image {
    transform: scale(1.04);
}

.course-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b5ed7;
    font-weight: 700;
    font-size: 1rem;
}

.course-card-overlay-badges {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.course-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.course-mini-badge-featured {
    background: #0b5ed7;
    color: #ffffff;
}

.course-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.1rem 1.1rem 1rem;
}

.course-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.course-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.8;
    margin-bottom: 0;
}

.course-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.course-card-title a:hover {
    color: #0b5ed7;
}

.course-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
    font-size: 0.84rem;
    font-weight: 700;
}

.course-card-summary {
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.9;
    margin-bottom: 1rem;
    min-height: 3.7rem;
}

.course-meta-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.course-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0.45rem 0.7rem;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.course-meta-label {
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.course-meta-value {
    color: #0f172a;
    font-weight: 700;
    text-align: left;
}

.course-card-footer {
    margin-top: auto;
    padding-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.course-price-box {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.course-price-label {
    color: #64748b;
    font-size: 0.82rem;
}

.course-price-value {
    color: #0b5ed7;
    font-size: 1rem;
    font-weight: 800;
}

.course-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-register-btn,
.course-card-link {
    border-radius: 0.8rem;
    white-space: nowrap;
    font-weight: 700;
}

/* ---------------------------------------------------------
   واکنش‌گرا
   --------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .course-card-featured-lg {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .home-courses-shell {
        padding: 1.3rem;
        border-radius: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.94rem;
    }

    .course-card-summary {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .home-courses-more-btn {
        width: 100%;
        justify-content: center;
    }

    .course-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .course-card-actions {
        width: 100%;
        flex-direction: column;
    }

    .course-register-btn,
    .course-card-link {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .home-courses-shell {
        padding: 1rem;
    }

    .course-card-body {
        padding: 1rem;
    }

    .course-card-title {
        font-size: 1rem;
    }

    .course-meta-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-meta-value {
        text-align: right;
    }

    .course-date-chip {
        width: 100%;
        justify-content: center;
    }
}