﻿
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
    }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        color: var(--text-color);
    }

    .section-title p {
        color: var(--light-text);
        max-width: 600px;
        margin: 0 auto;
    }

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        font-weight: 500;
        transition: var(--transition);
    }

        .nav-links a:hover {
            color: var(--primary-color);
        }

.nav-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .breadcrumb a {
        color: rgba(255, 255, 255, 0.8);
        transition: var(--transition);
    }

        .breadcrumb a:hover {
            color: var(--white);
        }

    .breadcrumb span {
        color: rgba(255, 255, 255, 0.8);
    }

/* Articles Section */
.articles-section {
    background-color: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .article-card:hover {
        transform: translateY(-10px);
    }

.article-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-date {
    color: var(--light-text);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .read-more:hover {
        color: var(--secondary-color);
    }

/* Expandable Content Section */
.expandable-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.expandable-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

    .expandable-content h2 {
        margin-bottom: 25px;
        font-size: 1.8rem;
        color: var(--text-color);
        text-align: center;
    }

.content-preview {
    position: relative;
    overflow: hidden;
    max-height: 150px; /* حدود 3-4 خط */
}

    .content-preview::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        height: 60px;
        background: linear-gradient(transparent, var(--white));
    }

.content-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

    .content-full.expanded {
        max-height: 2000px; /* ارتفاع کافی برای نمایش کل محتوا */
    }

    .content-full h3 {
        margin: 25px 0 15px;
        color: var(--text-color);
        font-size: 1.4rem;
    }

    .content-full p {
        margin-bottom: 15px;
        color: var(--light-text);
    }

    .content-full ul {
        margin: 15px 0;
        padding-right: 20px;
    }

    .content-full li {
        margin-bottom: 8px;
        color: var(--light-text);
        position: relative;
    }

        .content-full li::before {
            content: '•';
            color: var(--primary-color);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: 10px;
        }

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

    .read-more-btn:hover {
        color: var(--secondary-color);
    }

    .read-more-btn .icon {
        transition: var(--transition);
    }

.content-full.expanded + .read-more-btn .icon {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background-color: var(--primary-color);
    }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--white);
        padding-right: 5px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .expandable-content {
        padding: 25px;
    }

    .section {
        padding: 60px 0;
    }
}

