/* =========================================================
   مجله آکادمی مهناز بخشایشی - استایل‌های مشترک
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'YekanBakhFaNum', Tahoma, sans-serif;
}

html {
    font-size: 13px;
    scroll-behavior: smooth;
}

:root {
    /* logo green scale (#044F41) */
    --primary: #044F41;
    --primary-dark: #033A30;
    --primary-light: #F0F7F5;
    --primary-soft: #D9ECE7;
    /* lime accent for underlines and dots; darker lime for buttons with white text */
    --accent: #89BB02;
    --accent-soft: #F1F7DC;
    --cta: #587C00;
    --cta-dark: #476400;
    --dark: #1E2B28;
    --dark-secondary: #033A30;
    --gray: #5B6B67;
    --gray-mid: #8C9B97;
    --gray-light: #F6FAF9;
    --border: #E3ECE9;
    --bg: #F6FAF9;
    --white: #ffffff;
    --success: #1F7A66;
    --warning: #E8A90F;
    --danger: #ef4444;
    --info: #3b82f6;
}

body {
    background: var(--bg);
    color: var(--dark);
    line-height: 1.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   هدر مجله
   ========================================================= */
.magazine-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(30, 43, 40, 0.03);
}

.magazine-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.magazine-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.magazine-logo .logo-mark {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.magazine-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.magazine-logo .logo-text .name {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark);
}

.magazine-logo .logo-text .sub {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 500;
}

.magazine-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.magazine-nav::-webkit-scrollbar {
    display: none;
}

.magazine-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--dark-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.15s;
    white-space: nowrap;
}

.magazine-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.magazine-nav a.active {
    background: var(--primary);
    color: #fff;
}

.search-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--gray-light);
    color: var(--gray);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================================
   بردکرامپ
   ========================================================= */
.breadcrumb {
    padding: 18px 0 8px 0;
    font-size: 0.88rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 6px;
    color: var(--gray-mid);
    font-size: 0.75rem;
}

.breadcrumb .current {
    color: var(--dark);
    font-weight: 700;
}

/* =========================================================
   فوتر
   ========================================================= */
.magazine-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 24px 0;
    text-align: center;
}

.magazine-footer .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.magazine-footer .footer-brand .logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.magazine-footer .footer-brand .brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.magazine-footer .footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.magazine-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.magazine-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.88rem;
    transition: 0.15s;
}

.magazine-footer .footer-links a:hover {
    color: var(--primary);
}

.magazine-footer .footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
}

.magazine-footer .footer-bottom span {
    color: var(--primary);
    font-weight: 700;
}

/* =========================================================
   ریسپانسیو مشترک
   ========================================================= */
@media (max-width: 768px) {
    html {
        font-size: 12px;
    }

    .magazine-header-inner {
        gap: 10px;
    }

    .magazine-nav {
        order: 3;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .magazine-logo .logo-text .name {
        font-size: 1.1rem;
    }
}
