/*
Theme Name: Gypsum Theme
Theme URI: https://neuronteam.ir/
Author: Mohammad Kazemian
Author URI: https://neuronteam.ir/
Description: A custom theme for the Gypsum factory website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-page, custom-background, responsive-layout
Text Domain: gypsum-theme
*/


/* ==================== CSS RESET & BASE STYLES ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #008080;
    --primary-dark: #006666;
    --primary-light: #00a0a0;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F4F4F4;
    --bg-white: #FFFFFF;
    --overlay-dark: rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-en: 'Poppins', sans-serif;
    --font-fa: 'dana', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-en);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: ltr;
}


a {
    text-decoration: none;
}


/* Persian Language Styles */
body.lang-fa {
    font-family: var(--font-fa);
    direction: rtl;
}

/* Hide inactive language */
body:not(.lang-fa) [lang="fa"] {
    display: none !important;
}

body.lang-fa [lang="en"] {
    display: none !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.section-title.center {
    text-align: center;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==================== HEADER / NAVIGATION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-option {
    color: var(--text-light);
    transition: var(--transition);
}

.lang-option.active {
    color: var(--primary-color);
}

.lang-separator {
    color: var(--text-light);
    margin: 0 5px;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.lang-toggle:hover .lang-option,
.lang-toggle:hover .lang-separator {
    color: var(--bg-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    background: url('https://placehold.co/1920x1080/333333/FFFFFF?text=Gypsum+Factory') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.cta-button,
.cta-button-secondary {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.cta-button {
    background: var(--primary-color);
    color: var(--bg-white);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.3);
}

.cta-button-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.cta-button-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

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

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==================== PRODUCTS SECTION ==================== */
.products {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-specs {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 5px;
    overflow: hidden;
}

.product-specs th,
.product-specs td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

body.lang-fa .product-specs th,
body.lang-fa .product-specs td {
    text-align: right;
}

.product-specs th {
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.product-specs tbody tr:hover {
    background: var(--bg-light);
}

.product-description {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

.products-note {
    background: var(--primary-light);
    color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.products-note i {
    margin-right: 10px;
}

body.lang-fa .products-note i {
    margin-right: 0;
    margin-left: 10px;
}

/* ==================== INTERNATIONAL SECTION ==================== */
.international {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.international-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.representative-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.representative-info .section-title {
    color: var(--bg-white);
}

.representative-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.representative-position {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.representative-bio {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.representative-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 600;
}

.contact-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
}

body.lang-fa .contact-item span {
    margin-left: 0;
    margin-right: 10px;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    grid-column: 1 / -1;
    padding: 15px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.3);
}

.contact-info-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.detail-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.detail-item a:hover {
    color: var(--primary-color);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

body.lang-fa .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}


/* ==================== GALLERY SECTION ==================== */
.gallery {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.view-full {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

body.lang-fa .view-full {
    right: auto;
    left: 1rem;
}

.gallery-item:hover .view-full {
    opacity: 1;
}

.view-full:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.gallery-actions {
    text-align: center;
}

.load-more-btn {
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.3);
}

.load-more-btn i {
    transition: var(--transition);
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-caption {
    text-align: center;
    color: var(--bg-white);
    margin-top: 1rem;
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

body.lang-fa .lightbox-close {
    right: auto;
    left: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

body.lang-fa .lightbox-prev {
    left: auto;
    right: 2rem;
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

body.lang-fa .lightbox-next {
    right: auto;
    left: 2rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

body.lang-fa .lightbox-prev:hover,
body.lang-fa .lightbox-next:hover {
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

/* ==================== RESPONSIVE FOR GALLERY ==================== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    body.lang-fa .lightbox-close {
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-content {
        max-width: 95%;
    }
}



/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    body.lang-fa .nav-menu {
        left: auto;
        right: -100%;
    }

    .nav-menu.active {
        left: 0;
    }

    body.lang-fa .nav-menu.active {
        left: auto;
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }


    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content,
    .international-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

}

/* Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }


    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cta-button,
    .cta-button-secondary {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-title {
        font-size: 1.5rem;
    }
}



/* ==================== FOOTER BOTTOM ENHANCEMENTS ==================== */
/*
  استایل‌های بهبود یافته برای بخش پایینی فوتر جهت چیدمان بهتر و واکنش‌گرایی
  این کد از متغیرها و ساختار فایل استایل اصلی پیروی می‌کند.
*/

.footer-bottom {
    /* بازنویسی استایل پیش‌فرض برای استفاده از Flexbox */
    display: flex;
    justify-content: space-between; /* قرار دادن آیتم‌ها در دو سمت مخالف */
    align-items: center;            /* تراز عمودی در مرکز */
    flex-wrap: wrap;                /* اجازه شکستن خط در صفحات کوچک */
    gap: 1rem 2rem;                 /* ایجاد فاصله بین آیتم‌ها */

    /* حفظ استایل‌های موجود از فایل شما */
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    /* text-align: center; دیگر نیازی نیست چون از flexbox استفاده می‌شود */
}

/* حذف مارجین پیش‌فرض پاراگراف‌ها برای تراز صحیح در Flexbox */
.footer-bottom p {
    margin: 0;
}

/*
  استایل‌دهی به لینک "توسعه توسط"
  رنگ این لینک کمی روشن‌تر از متن کپی‌رایت است تا شبیه دیگر لینک‌های فوتر باشد.
*/
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8); /* مشابه رنگ لینک‌ها در .footer-links */
    text-decoration: none;
    transition: var(--transition);       /* استفاده از متغیر transition عمومی شما */
}

/*
  افکت هاور برای لینک "توسعه توسط"
  رنگ هاور دقیقاً مشابه دیگر لینک‌های فوتر تنظیم شده است.
*/
.footer-bottom a:hover {
    color: var(--primary-light); /* استفاده از متغیر رنگ primary-light شما */
}


/* ==================== RESPONSIVE FOR FOOTER BOTTOM ==================== */
/*
  واکنش‌گرایی برای صفحات کوچک‌تر (مانند موبایل)
  در این حالت، آیتم‌ها زیر هم و در مرکز قرار می‌گیرند.
*/
@media (max-width: 768px) {
    .footer-bottom {
        justify-content: center; /* آیتم‌ها در مرکز افقی قرار می‌گیرند */
        text-align: center;      /* متن داخل پاراگراف‌ها هم مرکزچین می‌شود */
    }
}



/* ==================== BLOG SECTION ==================== */
.blog {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-post-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* باعث می‌شود محتوا تمام فضای باقی‌مانده را پر کند */
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1; /* باعث می‌شود خلاصه مطلب تا جای ممکن کش بیاید */
    margin-bottom: 1.5rem;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start; /* دکمه را در ابتدای محور افقی قرار می‌دهد */
    transition: var(--transition);
}

.read-more-btn i {
    transition: transform 0.3s ease;
    margin-right: 5px;
}

body.lang-fa .read-more-btn i {
    margin-right: 0;
    margin-left: 5px;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

.read-more-btn:hover i {
    transform: translateX(-4px);
}

body.lang-fa .read-more-btn:hover i {
    transform: translateX(4px);
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--bg-dark);
    border-radius: 5px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}


/* ==================== SINGLE POST PAGE ==================== */
.single-post-page {
    padding: var(--section-padding);
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.single-post-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.single-post-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

body.lang-fa .single-post-meta i {
    margin-right: 0;
    margin-left: 5px;
}

.single-post-meta a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.single-post-meta a:hover {
    color: var(--primary-color);
}

.single-post-thumbnail {
    margin-bottom: 2rem;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* استایل‌دهی به محتوای تولید شده توسط ویرایشگر وردپرس */
.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.single-post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.single-post-content a:hover {
    color: var(--primary-dark);
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem; /* برای زبان فارسی */
}

body.lang-en .single-post-content ul,
body.lang-en .single-post-content ol {
    padding-right: 0;
    padding-left: 2rem;
}

.single-post-content blockquote {
    border-right: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-light);
    font-style: italic;
}

body.lang-en .single-post-content blockquote {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

.single-post-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-light);
}

.tags-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 10px;
}
body.lang-fa .tags-title {
    margin-left: 0;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background: var(--bg-light);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    margin: 0 5px 5px 0;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}



/* ==================== BLOG SLIDER STYLES ==================== */
.blog-slider-section {
    padding: var(--section-padding);
    background: var(--bg-light); /* رنگ پس‌زمینه مشابه بخش‌های دیگر */
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 1000px; /* عرض مناسب برای اسلایدر تکی */
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 40px; /* فضا برای سایه و نقاط پایین */
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 15px;
}

/* طراحی کارت */
.slide-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 350px; /* ارتفاع ثابت برای زیبایی */
    align-items: stretch;
}

/* بخش محتوا (متن) */
.slide-content {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.slide-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.slide-title a:hover {
    color: var(--primary-color);
}

.slide-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.slide-btn {
    margin-top: auto; /* دکمه را به پایین فشار می‌دهد اگر فضا باشد */
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

/* بخش تصویر */
.slide-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* افکت مورب برای جداکننده تصویر و متن */
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

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

/* هاور روی کارت تصویر را زوم می‌کند */
.slide-card:hover .slide-img {
    transform: scale(1.05);
}

/* نقاط ناوبری پایین */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ==================== RESPONSIVE & RTL ==================== */

/* حالت RTL (فارسی) */
body.lang-fa .slide-image-wrapper {
    /* برعکس کردن کلیپ پد برای فارسی */
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

body.lang-fa .slide-btn i {
    margin-right: 5px; /* اصلاح فاصله آیکون در دکمه فارسی */
}

/* موبایل و تبلت */
@media (max-width: 768px) {
    .slide-card {
        flex-direction: column-reverse; /* تصویر بالا، متن پایین */
        min-height: auto;
    }

    .slide-image-wrapper {
        flex: none;
        height: 250px;
        clip-path: none !important; /* حذف برش کج در موبایل */
    }

    .slide-img {
        border-radius: 15px 15px 0 0; /* گرد کردن فقط بالای تصویر در موبایل */
    }

    .slide-content {
        padding: 1.5rem;
        text-align: center;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slide-btn {
        align-self: center; /* وسط چین کردن دکمه در موبایل */
    }
}

/* ==================== اصلاحات اسلایدر وبلاگ ==================== */

.slider-container {
    position: relative;
    /* تغییر عرض از 1000px به 1200px یا 100% برای هماهنگی با سایر سکشن‌ها */
    max-width: 1200px;
    width: 90%; /* عرض درصدی برای ریسپانسیو بهتر */
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 60px; /* افزایش فضای پایین برای دیده شدن نقاط */
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-out; /* تغییر به ease-out برای حرکت نرم‌تر با ماوس */
    width: 100%;
    cursor: grab; /* نشانگر دست برای القای قابلیت درگ */
}

.slider-wrapper:active {
    cursor: grabbing; /* تغییر نشانگر هنگام کلیک و کشیدن */
}

/* هماهنگ کردن استایل نقاط */
.slider-dots {
    display: flex;
    justify-content: center;
    position: absolute; /* فیکس کردن جایگاه نقاط */
    bottom: 15px; /* فاصله از کف باکس */
    left: 0;
    right: 0;
    gap: 10px;
    z-index: 10; /* اطمینان از اینکه روی المان‌ها قرار می‌گیرد */
}

/* اعمال استایل هم به .dot (قدیمی) و هم .slider-dot (جدید در JS) */
.dot, .slider-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* حالت فعال */
.dot.active, .slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.3); /* کمی بزرگتر برای جلوه بهتر */
}
