@font-face {
    font-family: 'titr';
    src: url('fonts/B Titr Bold_0.ttf') format('ttf');
    font-display: swap;
}
@font-face {
    font-family: 'iran';
    src: url('fonts/fa-Iran-sans-web-bold.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'vazir';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-display: swap;
}

:root {
    --primary-color: #1a67aa;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b35;
    --text-color: #2d3748;
    --light-gray: #e9ecef;
    --border-radius: 16px;
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
}

.news-container h1, h2, h3, h4, h5, h6 {
    font-family: 'titr', 'iran', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.news-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 25px;
    perspective: 1000px;
}

.news-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d4d7a 100%);
    color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.news-header::before {
    content: "";
    position: absolute;
    top: -80%;
    right: -30%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(25deg);
    pointer-events: none;
    animation: shimmer 8s infinite linear;
}

.news-header::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, rgba(255,107,53,0) 60%);
    pointer-events: none;
}

.news-title {
    font-family: 'titr', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #e0f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 2.2rem;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff, #f5f7f9);
    padding: 2.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform-style: preserve-3d;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: all 0.6s ease;
}

.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-12px) rotateX(5deg) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.03;
}

.stat-number {
    font-family: 'titr', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
    filter: drop-shadow(0 5px 10px rgba(26, 103, 170, 0.2));
}

.stat-label {
    font-size: 1.2rem;
    color: #555;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.content-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to left, var(--primary-color), var(--accent-color));
    transition: height 0.5s ease;
}

.content-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 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='%231a67aa' fill-opacity='0.03'%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");
    opacity: 0.3;
    pointer-events: none;
}

.content-section:hover {
    transform: translateY(-8px) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.content-section:hover::before {
    height: 10px;
}

.section-title {
    font-family: 'titr', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    border-radius: 2px;
}

.highlight {
    background: linear-gradient(120deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    border-right: 5px solid var(--accent-color);
    padding: 2.2rem;
    margin: 2.5rem 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    transform: translateZ(0);
}

.highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20L0 20z' fill='%23ff6b35' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.highlight::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.highlight:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 8px 0 25px rgba(255, 107, 53, 0.25);
}

.conclusion-box {
    background: linear-gradient(135deg, #1a6f72 0%, #2a9d8f 100%);
    color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.conclusion-box::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -40%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(-15deg);
    pointer-events: none;
    animation: shimmer 10s infinite linear reverse;
}

.conclusion-box::after {
    content: "";
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(42,157,143,0.2) 0%, rgba(42,157,143,0) 60%);
    pointer-events: none;
}

.conclusion-title {
    font-family: 'titr', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #a8dadc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.conclusion-box p {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

/* انیمیشن‌های پیشرفته */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(25deg) translateX(-100%);
    }
    100% {
        transform: rotate(25deg) translateX(200%);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.news-header, .stats-grid, .content-section, .conclusion-box {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.stats-grid { animation-delay: 0.2s; }
.content-section { animation-delay: 0.4s; }
.conclusion-box { animation-delay: 0.6s; }

/* افکت‌های اسکرول پیشرفته */
.content-section, .stat-card, .highlight {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s ease;
}

.content-section.in-view, .stat-card.in-view, .highlight.in-view {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .news-title {
        font-size: 2.2rem;
    }
    
    .news-header {
        padding: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .content-section, .conclusion-box {
        padding: 2.2rem;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* افکت‌های ویژه برای مرورگرهای وبکیت */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .stat-number, .news-title, .section-title, .conclusion-title {
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }
    
    .news-header, .stat-card, .content-section, .conclusion-box {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0d4d7a, #e05a2c);
}