/* تنظیمات پایه */
/* فایل style.css خط دوم */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Shabnam', Tahoma, sans-serif !important;
}
html { scroll-behavior: smooth; }
body { background-color: #121418; color: #f5f5f5; line-height: 1.6; overflow-x: hidden; }

/* هدر */
header { background-color: #1c1f26; padding: 15px 50px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #d4af37; position: sticky; top: 0; z-index: 1000; }
.header-right { display: flex; align-items: center; gap: 30px; }
.logo { font-size: 26px; font-weight: bold; color: #d4af37; text-decoration: none; letter-spacing: 1px; white-space: nowrap; }

/* منوی دسکتاپ */
nav.desktop-nav ul { list-style: none; display: flex; gap: 15px; align-items: center; }
nav.desktop-nav ul li { position: relative; }
nav.desktop-nav ul li a { text-decoration: none; color: #e0e0e0; font-size: 14px; font-weight: 500; transition: color 0.3s ease; padding: 10px; display: block; white-space: nowrap; }
nav.desktop-nav ul li a:hover { color: #d4af37; }

/* زیرمنو */
.dropdown-menu { position: absolute; top: 100%; right: 0; margin-top: 17px; background-color: #232833; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.5); border-top: 2px solid #d4af37; border-radius: 0 0 5px 5px; display: flex; flex-direction: column; gap: 0; z-index: 10; visibility: hidden; opacity: 0; transform: translateY(15px); transition: all 0.3s ease-in-out; }
.dropdown:hover .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-menu li a { padding: 12px 20px !important; border-bottom: 1px solid #3a4150; font-size: 13px; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background-color: #1c1f26; color: #d4af37; }

/* نوار جستجو، دکمه ورود و همبرگر */
.header-left { display: flex; align-items: center; gap: 15px; }
.search-box { display: flex; align-items: center; background-color: #121418; border: 1px solid #3a4150; border-radius: 20px; overflow: hidden; }
.search-box input { background: transparent; border: none; color: #fff; padding: 8px 15px; outline: none; width: 120px; font-family: inherit; font-size: 13px; }
.search-box button { background-color: #d4af37; border: none; color: #121418; padding: 8px 15px; cursor: pointer; font-weight: bold; font-size: 13px; transition: background 0.3s; }
.search-box button:hover { background-color: #b5952f; }
.btn-login { background-color: transparent; border: 1px solid #d4af37; color: #d4af37; padding: 7px 15px; border-radius: 20px; text-decoration: none; font-size: 14px; font-weight: bold; transition: all 0.3s; white-space: nowrap; }
.btn-login:hover { background-color: #d4af37; color: #121418; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 30px; height: 3px; background-color: #f5f5f5; border-radius: 2px; transition: 0.3s; }

/* هیرو و خدمات */
/* هیرو و خدمات */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* آدرس دهی به پوشه مدیا و کاهش غلظت رنگ تیره برای وضوح بیشتر تصویر */
    background: linear-gradient(rgba(18, 20, 24, 0.5), rgba(18, 20, 24, 0.5)),
                url('/static/images/index.png') center/cover no-repeat;
    padding: 40px 20px;
}
.hero h1 { font-size: 42px; margin-bottom: 15px; color: #d4af37; }
.hero p { font-size: 18px; max-width: 600px; margin-bottom: 40px; color: #cccccc; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; max-width: 700px; }
.service-box { background-color: #232833; border: 1px solid #3a4150; border-radius: 8px; padding: 40px 20px; text-decoration: none; color: #5bb2ff; font-size: 20px; font-weight: bold; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.service-box:hover { background-color: #d4af37; color: #121418; border-color: #d4af37; transform: translateY(-5px); }

/* بخش‌های محتوا */
.content-section { padding: 60px 50px; max-width: 1400px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #3a4150; padding-bottom: 15px; }
.section-title { font-size: 22px; color: #d4af37; }

/* استایل دکمه‌های طلایی و گرد (برای یکپارچگی) */
.btn-golden-outline { border: 1px solid #d4af37; color: #d4af37; background: transparent; padding: 8px 18px; border-radius: 25px; text-decoration: none; font-size: 14px; transition: all 0.3s ease; display: inline-block; }
.btn-golden-outline:hover { background: #d4af37; color: #111827; }

.btn-outline { border: 1px solid #5bb2ff; color: #5bb2ff; background: transparent; padding: 8px 15px; border-radius: 20px; text-decoration: none; font-size: 14px; transition: 0.3s; }
.btn-outline:hover { background: #5bb2ff; color: #121418; }

.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.article-card {
    background-color: #1c1f26;
    border: 1px solid #3a4150;
    border-left: 3px solid #d4af37; /* اضافه شدن این خط */
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}
.article-card h3 { font-size: 17px; margin-bottom: 15px; color: #f5f5f5; }
.article-card p { font-size: 13.5px; color: #aaaaaa; margin-bottom: 25px; line-height: 1.8; text-align: justify; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid #2a2e38; }
.btn-primary { background-color: #1a73e8; color: white; padding: 7px 15px; border-radius: 5px; text-decoration: none; font-size: 13px; }

/* کارشناسان */
.experts-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.expert-card { background-color: #1c1f26; border: 1px solid #3a4150; border-radius: 8px; display: flex; align-items: center; padding: 15px; gap: 15px; border-left: 3px solid #d4af37; /* اضافه شدن این خط */}
.expert-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background-color: #333; }
.expert-info h4 { font-size: 15px; color: #e0e0e0; margin-bottom: 5px; }
.expert-info p { font-size: 12px; color: #5bb2ff; }

/* --------------------------------- */
/* فوتر شیشه‌ای و گرید */
/* --------------------------------- */
.main-footer {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    width: 100%;
}

.footer-grid { display: grid; grid-template-columns: 3fr 1.5fr 1.5fr 2fr 0.5fr; gap: 30px; }
.footer-col h3, .footer-col h4 { color: #d4af37; font-size: 1.3rem; font-weight: bold; margin-bottom: 20px; }
.footer-col p, .footer-col ul li a { color: #f0f0f0; font-size: 1.05rem; line-height: 1.9; text-decoration: none; transition: color 0.3s ease; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: #d4af37; }

.contact-info p { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.social-icons { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.social-icons a { background-color: #ffffff; color: #18253a; width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; font-weight: bold; transition: 0.3s; }
.social-icons a:hover { background-color: #d4af37; }

.footer-bottom { background-color: #ffffff; color: #0a192f; text-align: center; padding: 20px 10px; font-size: 1.05rem; font-weight: bold; }

/* --------------------------------- */
/* واکنش‌گرایی (موبایل و تبلت) */
/* --------------------------------- */
.mobile-only { display: none; }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .social-icons { flex-direction: row; justify-content: flex-start; }
    header { padding: 15px 20px; }
    nav.desktop-nav ul li a { font-size: 13px; padding: 10px 5px; }
}

@media (max-width: 900px) {
    .header-left .search-box, .header-left .btn-login { display: none; }
    .mobile-only { display: flex; flex-direction: column; gap: 15px; padding: 15px 20px; margin: 0; width: 100%; box-sizing: border-box; }
    .mobile-only .btn-login { display: block; width: 100%; text-align: center; margin: 0; box-sizing: border-box; }
    .mobile-only .search-box { display: flex; width: 100%; box-sizing: border-box; }
    .mobile-only .search-box input { flex: 1; width: 100%; }
    .mobile-only .search-box button { white-space: nowrap; }

    nav.desktop-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: #1c1f26; flex-direction: column; border-top: 1px solid #333; max-height: calc(100vh - 70px); overflow-y: auto; }
    nav.desktop-nav.active { display: flex; }
    nav.desktop-nav ul { flex-direction: column; width: 100%; gap: 0; }
    nav.desktop-nav ul li { width: 100%; text-align: right; border-bottom: 1px solid #2a2e38; }
    nav.desktop-nav ul li a { padding: 15px 20px; font-size: 15px; }
    .dropdown-menu { position: static; margin-top: 0; width: 100%; box-shadow: none; border-top: none; background-color: #121418; visibility: visible; opacity: 1; transform: none; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
    .dropdown.mobile-active .dropdown-menu { max-height: 400px; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    .cards-grid-3, .experts-grid-4, .footer-grid { grid-template-columns: 1fr; }
    .content-section { padding: 40px 20px; }
    .hero h1 { font-size: 32px; }
    .services-grid { grid-template-columns: 1fr; }
}
