/* ================== تنظیمات کلی ================== */
body {
    font-family: 'Vazir', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 1.1rem;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* فونت Vazir */
@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ================== هدر ================== */
#header {
    background: linear-gradient(135deg, #1e4d35 0%, #2c6e49 70%, #348255 100%);
    padding: 3rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #d4af37;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.3rem;
    color: #e0f2e9;
    font-weight: 500;
}

/* ================== لوگوی رسمی و قدرتمند (بسیج) ================== */
.header-logo {
    max-width: 110px !important;
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50% !important;
    padding: 8px;
    background: #1e4d35;
    border: 3px solid #d4af37 !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-logo:hover {
    transform: scale(1.08);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(212, 175, 55, 0.2),
        inset 0 1px 5px rgba(255, 255, 255, 0.15);
    border-color: #f1c40f !important;
}

.header-logo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.15), transparent 60%);
    border-radius: 50%;
    opacity: 0.7;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.header-logo:hover::before {
    opacity: 1;
}

/* ================== دکمه ورود/خروج (login-btn) ================== */
.login-btn {
    display: inline-block;
    background: #2c6e49;
    color: #ffffff !important;
    border: 1.5px solid #d4af37 !important;
    padding: 0.55rem 1.6rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow:
        0 2px 6px rgba(44, 110, 73, 0.2),
        0 0 8px rgba(212, 175, 55, 0.15) !important;
    min-width: 100px;
    text-align: center;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.7s ease;
    z-index: 1;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: #1e4d35 !important;
    color: #d4af37 !important;
    border-color: #f1c40f !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 5px 12px rgba(44, 110, 73, 0.3),
        0 0 10px rgba(241, 196, 15, 0.3) !important;
}

.login-btn:focus {
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.35),
        0 0 8px rgba(212, 175, 55, 0.25) !important;
}

/* ================== نوار ناوبری ================== */
.navbar {
    background-color: #1e4d35 !important;
    padding: 1.2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 1.13rem;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
    background-color: rgba(212, 175, 55, 0.15);
    border-radius: 4px;
}

.dropdown-menu {
    background-color: #2c6e49;
    border: 1px solid #d4af37;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #fff;
    font-size: 1.05rem;
    padding: 0.6rem 1.8rem;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #1e4d35;
    color: #d4af37;
}

/* ================== کارت‌ها (عمومی) ================== */
.card {
    margin-bottom: 30px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff, #f1f1f1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 25px;
    text-align: center;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
}

.card-text {
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.6;
}

.card-header {
    background: linear-gradient(90deg, #2c6e49, #1e4d35);
    padding: 1.8rem;
    border-bottom: 1px solid #d4af37;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card small {
    font-size: 0.9rem;
    color: #c8e6d3;
    font-weight: 500;
}

.prominent-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #2c6e49;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ================== تصاویر (thumbnail) ================== */
.thumbnail {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #2c6e49;
    padding: 5px;
    background-color: #e9ecef;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ================== دکمه نمایش بیشتر ================== */
#content-row {
    margin-top: 20px;
}

#show-more {
    display: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    background-color: #2c6e49;
    border: none;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#show-more:hover {
    background-color: #1e4d35;
    transform: scale(1.05);
}

/* ================== فوتر ================== */
#footer {
    background: linear-gradient(135deg, #1e4d35 0%, #2c6e49 70%, #348255 100%);
    padding: 3rem 0;
    margin-top: 3rem;
}

#footer h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 0.5rem;
}

#footer p, #footer a {
    color: #c8e6d3;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: #d4af37;
}

.social-icons i {
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: all 0.2s ease;
}

.social-icons i:hover {
    color: #d4af37;
    transform: translateY(-1px);
}

/* ================== انیمیشن‌ها ================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .header-title, .header-subtitle {
    animation: fadeIn 0.6s ease-out;
}

/* ================== پاسخ‌گویی (موبایل) ================== */
@media (max-width: 992px) {
    .header-title { font-size: 2.4rem; }
    .header-subtitle { font-size: 1.2rem; }
    .navbar-nav .nav-link { font-size: 1.05rem; padding: 0.6rem 1.2rem; }
}

@media (max-width: 768px) {
    #header { padding: 2rem 0; }
    .header-title { font-size: 2rem; line-height: 1.2; }
    .header-subtitle { font-size: 1.1rem; }
    .login-btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.95rem !important;
        min-width: 85px !important;
    }
    .navbar-nav { text-align: center; background-color: #1e4d35; padding: 1rem; border-radius: 4px; }
    .card { margin-bottom: 1.5rem; }
    .card-header { padding: 1.2rem; }
    .card-title { font-size: 1.4rem; }
    .card-text { font-size: 1rem; }
    .thumbnail { height: 200px; }
}

@media (max-width: 576px) {
    #header {
        padding: 1.5rem 0 !important;
        text-align: center;
    }

    .header-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 0.5rem !important;
        border-bottom: 1.5px solid #d4af37 !important;
        padding-bottom: 0.4rem !important;
    }

    .header-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .header-logo,
    .login-btn {
        display: inline-block !important;
        vertical-align: middle;
    }

    .header-logo {
        width: 70px !important;
        height: 70px !important;
        padding: 4px !important;
        margin: 0 0.8rem !important;
    }

    .login-btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
        min-width: 75px !important;
        margin: 0 0.5rem !important;
    }

    #header .row > div {
        text-align: center !important;
        margin-bottom: 0.8rem;
    }

    #header .col-md-3:first-child { order: 2; }
    #header .col-md-6 { order: 1; }
    #header .col-md-3:last-child { order: 3; }

    .login-btn {
        padding: 0.5rem 1.1rem !important;
        font-size: 0.9rem !important;
        min-width: 80px !important;
        border: 1.2px solid #d4af37 !important;
        border-radius: 9px !important;
    }

    #footer { padding: 2rem 0; text-align: center; }
    #footer .col-md-4 { margin-bottom: 1.5rem; }
    #footer h5 { font-size: 1.2rem; }
    #footer p, #footer a { font-size: 1rem; }
    .social-icons i { font-size: 1.6rem; margin: 0 0.8rem; }
    .thumbnail { height: 150px; }
}

/* ================== همه عکس‌ها داخل کادر ================== */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* ================== جزئیات اضافی ================== */
.collapse .card {
    background-color: #f8f9fa;
    border-left: 3px solid #2c6e49;
    margin-top: 1rem;
}