/* ============================================
   فونت‌ها و تنظیمات پایه
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

<style>

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #6610f2 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --box-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.18);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.8;
    direction: rtl;
}

/* ============================================
   🚀 بخش تبلیغاتی گرافیکی (Hero Section)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 40%, #6610f2 100%);
    min-height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* گرادیان پس‌زمینه */
.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
    z-index: 1;
}

/* الگوی پس‌زمینه */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* محتوای اصلی */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
}

/* عنوان */
.hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-title .text-warning {
    color: #ffc107 !important;
    text-shadow: 0 2px 30px rgba(255, 193, 7, 0.3);
}

/* توضیحات */
.hero-description p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-description .lead {
    font-size: 1.1rem;
    font-weight: 400;
}

.hero-description strong.text-warning {
    color: #ffc107 !important;
}

/* ویژگی‌ها */
.hero-features .feature-item {
    transition: all 0.3s ease;
    cursor: default;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
}

.hero-features .feature-item:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-features .feature-item i {
    margin-left: 10px;
    font-size: 1.3rem;
}

.hero-features .feature-item span {
    color: #ffffff !important;
    font-weight: 500;
}

/* آیکون بزرگ */
.hero-icon-wrapper {
    position: relative;
    padding: 30px;
}

.hero-icon-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    animation: float-hero 4s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 60px rgba(255, 193, 7, 0.1);
}

.hero-icon-circle i {
    font-size: 5.5rem;
    color: #ffc107;
    text-shadow: 0 0 50px rgba(255, 193, 7, 0.3);
}

/* آیکون‌های شناور */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.3rem;
}

.float-icon-1 {
    top: -10px;
    right: 15%;
    animation: float-icon 4.5s ease-in-out infinite;
}

.float-icon-2 {
    bottom: 5%;
    left: 5%;
    animation: float-icon 5.5s ease-in-out infinite 0.5s;
}

.float-icon-3 {
    top: 25%;
    right: -10px;
    animation: float-icon 3.5s ease-in-out infinite 1s;
}

/* انیمیشن‌ها */
@keyframes float-hero {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-18px);
    }
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.1);
    }
}

/* بخش پایین */
.hero-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35) !important;
}

.hero-footer small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-footer small strong {
    color: #ffffff !important;
}

.hero-footer small .text-warning {
    color: #ffc107 !important;
}

/* ============================================
   📰 بخش اخبار
   ============================================ */
.news-main-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #6610f2 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.news-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.news-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.news-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.news-hero-content {
    position: relative;
    z-index: 1;
}

.news-hero-content h2 {
    font-weight: 900;
    font-size: 2rem;
    line-height: 1.3;
}

/* کارت‌های خبر */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}

.news-card-img {
    height: 170px;
    object-fit: cover;
}

.news-card-img-placeholder {
    height: 170px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}

/* ============================================
   واکنش‌گرا (Responsive)
   ============================================ */

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description p {
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem !important;
    }
    
    .hero-icon-circle {
        width: 160px;
        height: 160px;
    }
    
    .hero-icon-circle i {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description p {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem !important;
    }
    
    .hero-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
    
    .hero-features .feature-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem !important;
    }
    
    .hero-icon-circle {
        width: 130px;
        height: 130px;
    }
    
    .hero-icon-circle i {
        font-size: 3.5rem;
    }
    
    .float-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .news-hero {
        min-height: 240px;
    }
    
    .news-hero-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-description p {
        font-size: 0.85rem;
    }
    
    .hero-content {
        padding: 1rem 0.8rem !important;
    }
    
    .hero-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .hero-features .feature-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem !important;
    }
    
    .hero-icon-circle {
        width: 100px;
        height: 100px;
    }
    
    .hero-icon-circle i {
        font-size: 2.8rem;
    }
    
    .float-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .hero-footer small {
        font-size: 0.65rem;
    }
    
    .news-hero {
        min-height: 180px;
    }
    
    .news-hero-content h2 {
        font-size: 1rem;
    }
    
    .news-hero-content p {
        font-size: 0.75rem;
    }
    
    .news-card-img,
    .news-card-img-placeholder {
        height: 120px;
    }
}

/* ============================================
   سایر استایل‌های ضروری
   ============================================ */

/* نشانگر اعلان */
.notification-badge {
    position: absolute;
    top: 2px;
    right: -4px;
    border-radius: 50%;
    font-size: 10px;
    padding: 3px 7px;
    animation: pulse-badge 2s infinite;
    min-width: 20px;
    text-align: center;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* استایل دکمه‌ها */
.btn {
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 0.8rem 2rem;
    border-radius: 12px;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e5a800 100%);
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e5a800 0%, #c79200 100%);
    color: #000;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* کارت‌ها */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 700;
}

/* بج‌ها */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
}

/* فوتر */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    padding: 1.5rem 0;
}

footer small {
    opacity: 0.7;
}

/* اسکرول‌بار */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}


</style>