/* ===== عمومی ===== */
* { box-sizing: border-box; }

.seo-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

body {
    margin: 0; padding: 0;
    font-family: 'Iranian Sans', sans-serif;
    background-color: #f9f9f9; color: #333;
    direction: rtl;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
a { text-decoration: none; color: inherit; }
img { display: block; height: auto; max-width: 100%; }

/* ===== دکمه‌ها ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    border-radius: 12px; padding: 0.7rem 1.1rem;
    font-weight: 700; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: 0;
}
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(220,53,69,0.35); }
.btn-primary { background: #4facfe; color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(79,172,254,0.35); }
.btn-secondary { background: #43e97b; color: #fff; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(67,233,123,0.35); }
.btn-link { background: transparent; color: #0d6efd; }
.btn-link:hover { text-decoration: underline; }

/* ===== هدر ===== */
.site-header { background-color: #fff; border-bottom: 2px solid #ddd; }
.header-flex { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1rem;
    padding-top: 1rem; 
    padding-bottom: 1rem;
}
.header-img.right-img img { height: clamp(100px, 20vw , 200px); }
.header-img.left-img img { height: clamp(100px, 20vw, 200px); }
.header-actions { display: inline-flex; align-items: center; gap: 0.6rem; }

/* ===== منو ===== */
.main-nav {
    background-color: #000;
    border-top: 2px solid #d4af37;
    min-height: 60px;
    padding: 0.5rem 1rem;
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    position: relative;
}
.menu-toggle {
    background: #d4af37;
    color: #000;
    border: none;
    width: 42px; height: 42px;
    font-size: 22px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: auto;
    align-self: flex-start;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.main-nav li {
    padding-bottom: 0.3rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #000, #d4af37, #000) 1;
}
.main-nav a {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    color: #d4af37;
    border-radius: 6px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: background-color 0.25s ease, color 0.25s ease;
}
.main-nav a:hover {
    background-color: #d4af37;
    color: #000;
}

/* ===== واکنش‌گرایی منو ===== */
@media (max-width: 600px) {
    .nav-wrapper { flex-direction: column; align-items: stretch; }
    .main-nav ul { flex-direction: column; display: none; width: 100%; margin-top: 0.5rem; }
    .main-nav ul.open { display: flex; }
    .menu-toggle { margin: 0 0 0 auto; align-self: flex-start; }
}
@media (min-width: 600px) {
    .menu-toggle { display: none; }
    .nav-wrapper { flex-direction: row; align-items: center; }
    .main-nav ul { display: flex !important; flex-direction: row; width: 100% !important; justify-content: flex-start !important; }
}

/* ===== فوتر ===== */
.site-footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 3px solid #0d6efd;
    text-align: center;
}
.site-footer strong { color: #ffc107; font-weight: 700; }
.site-footer p { margin: 0; font-size: clamp(0.8rem, 1.5vw, 1rem); line-height: 1.8; }

/* ===== واکنش‌گرایی ===== */
@media (max-width: 700px) {
    .header-actions .btn {
        width: 50px; height: 50px;
        padding: 8px 0 0 0; border-radius: 10px;
        font-size: 0;
    }
    .header-actions .btn .btn-text { display: none; }
    .header-actions .btn i { font-size: clamp(1.3rem, 4vw, 1.7rem); margin: 0; line-height: 1; }
}
@media (min-width: 600px) {
    .menu-toggle { display: none; }
    .main-nav ul { display: flex !important; flex-direction: row; width: auto; }
}

/* ===== آلرت شخصی ===== */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #dc3545;
    color: #fff;
    padding: 24px 36px;   /* پدینگ بیشتر برای بزرگ‌تر شدن کادر */
    border-radius: 14px;
    font-size: 18px;      /* فونت کمی بزرگ‌تر */
    font-weight: 600;
    min-width: 280px;     /* حداقل عرض کادر */
    text-align: center;   /* متن وسط‌چین */
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
}
.custom-alert.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}