
@font-face {
    font-family: "Peyda-main";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: "vazir-main";
    src: url("../fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "IranNastaliq";
    src: url("../fonts/IranNastaliq.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}



* {
    font-family: "Peyda-main";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{text-decoration: none;}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s;
}

.page-title h2 {
    font-size: 2.5rem;
    color: #4A90E2;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 1.1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 0.6s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-summary {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-more {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.read-more:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeIn 0.6s;
}

.page-btn {
    padding: 10px 18px;
    background: white;
    color: #4A90E2;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-btn:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

/* News Detail Page */
.breadcrumb {
    margin-bottom: 30px;
    color: #666;
    animation: fadeIn 0.6s;
}

.breadcrumb a {
    color: #4A90E2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.news-detail {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    animation: fadeInUp 0.6s;
}

.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: #888;
    padding-bottom: 20px;
    border-bottom: 2px solid #4A90E2;
}

.news-detail-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-summary {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-right: 4px solid #4A90E2;
}

.news-detail-summary p {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.8;
}

.news-detail-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
}

.news-detail-footer {
    display: flex;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.share-btn,
.back-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.share-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

.back-btn {
    background: #f5f7fa;
    color: #4A90E2;
}

.share-btn:hover,
.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Related News */
.related-news {
    margin-top: 50px;
    animation: fadeInUp 0.6s;
}

.section-title {
    font-size: 1.8rem;
    color: #4A90E2;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.related-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .page-title h2 {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail {
        padding: 25px;
    }
    
    .news-detail-title {
        font-size: 1.6rem;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail-footer {
        flex-direction: column;
    }
    
    .share-btn,
    .back-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
}

.share-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.share-modal-box {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: shareModalIn 0.25s ease;
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2d3d;
}

.share-close-btn {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.share-modal-body {
    padding: 18px;
}

.share-apps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.share-app {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-app:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.share-app.telegram { background: #229ED9; }
.share-app.whatsapp { background: #25D366; }
.share-app.x { background: #111111; }
.share-app.linkedin { background: #0A66C2; }
.share-app.email { background: #6c757d; grid-column: 1 / -1; }

.share-link-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-link-box input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    direction: ltr;
}

.share-link-box button {
    border: none;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes shareModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}
