/* style.css */
:root {
    --gold: #c89f4b;
    --gold-light: #e0c378;
    --dark: #1a1a1a;
    --dark-secondary: #2c2c2c;
    --light: #f9f6f0;
    --white: #ffffff;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --accent: #a67c44;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.7;
    padding-top: 70px; /* فضای هدر ثابت */
    padding-bottom: 0;
}

/* ==================== هدر ثابت ==================== */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    height: 70px;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
}

/* لوگو */
.logo-link img, .logo-fallback {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--gold));
    font-size: 35px;
    display: inline-block;
    color: var(--gold);
}

/* دکمه همبرگری */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--gold);
    border-radius: 3px;
    transition: var(--transition);
}

/* انیمیشن تبدیل به ضربدر */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* منوی همبرگری */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(15px);
    padding: 90px 30px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    overflow-y: auto;
}

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

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(200, 159, 75, 0.2);
    padding-bottom: 12px;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--gold);
    background: rgba(200, 159, 75, 0.1);
    transform: translateX(-5px);
}

/* ==================== بخش‌های صفحه ==================== */
.page-section {
    display: none;
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.page-section.active-section {
    display: block;
}

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

/* ==================== اسلایدر اصلی ==================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,0,0,0.65);
    color: var(--gold-light);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}
.slider-btn:hover { background: var(--gold); color: #000; }
.prev { right: 20px; }
.next { left: 20px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: var(--gold); width: 30px; border-radius: 20px; }

/* ==================== راهنمای سفارش ==================== */
.guide-section {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}
.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.guide-card {
    text-align: center;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    transition: var(--transition);
}
.guide-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.guide-number {
    background: var(--gold);
    color: #000;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ==================== دسته‌بندی خدمات ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.category-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.category-item:hover { transform: translateY(-5px); }
.category-item img { width: 100%; height: 220px; object-fit: cover; }
.category-item h3 { padding: 15px; text-align: center; }

/* محبوب‌ها */
.popular-slider {
    overflow-x: auto;
    padding-bottom: 15px;
}
.popular-track {
    display: flex;
    gap: 20px;
    width: max-content;
}
.popular-card {
    min-width: 200px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 10px;
}
.popular-card img { width: 100%; height: 180px; object-fit: cover; }

/* کار فاخر */
.masterpiece-showcase {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--dark);
    color: var(--light);
    padding: 30px;
    border-radius: var(--radius);
}
.masterpiece-showcase img { width: 50%; border-radius: var(--radius); }
.masterpiece-desc h3 { color: var(--gold); margin-bottom: 15px; }

/* چرا استاد */
.why-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.why-card {
    background: white;
    padding: 35px 25px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.why-icon { font-size: 3rem; }

/* مقالات */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card h3 { padding: 15px 15px 5px; }
.blog-card p { padding: 0 15px; color: var(--text-light); }
.blog-card a { display: block; padding: 15px; color: var(--accent); text-decoration: none; font-weight: 600; }

/* ==================== گالری ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
}
.gallery-grid img:hover { transform: scale(1.03); }

/* خدمات جزئیات */
.service-feature {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.service-feature.reverse { flex-direction: row-reverse; }
.service-feature img { width: 45%; border-radius: var(--radius); }
.service-text h3 { color: var(--accent); margin-bottom: 10px; }

/* محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card h3 { padding: 10px; }

/* ==================== فوتر ==================== */
#mainFooter {
    background: var(--dark);
    color: #ccc;
    padding: 50px 20px 20px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-col h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.social-links a {
    display: inline-block;
    margin: 0 8px;
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover { color: var(--gold); }
.footer-link {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin: 8px 0;
    cursor: pointer;
}
.footer-link:hover { color: var(--gold); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* ==================== چت‌بات ==================== */
.chat-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 999;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.chat-float:hover { background: #b8872e; transform: scale(1.1); }

.chat-box {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s;
}
.chat-box.hidden { display: none; }
.chat-header {
    background: var(--dark);
    color: var(--gold);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-body { padding: 15px; height: 200px; overflow-y: auto; background: #fafafa; }
.chat-input-area {
    display: flex;
    border-top: 1px solid #eee;
}
.chat-input-area input { flex: 1; padding: 12px; border: none; outline: none; }
.chat-input-area button { background: var(--gold); border: none; padding: 12px 20px; cursor: pointer; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-slider { height: 280px; }
    .masterpiece-showcase { flex-direction: column; }
    .masterpiece-showcase img { width: 100%; }
    .service-feature, .service-feature.reverse { flex-direction: column; }
    .service-feature img { width: 100%; }
}

/* استایل صفحه گالری */
.gallery-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
}

.gallery-title {
    text-align: center;
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 2rem;
}

/* دکمه‌های فیلتر */
.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.filter-btn:hover {
    background-color: #e0d5c0;
    border-color: var(--gold);
}

.filter-btn.active {
    background-color: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(200,159,75,0.4);
}

/* آیتم‌های گالری */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    background: white;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    display: block;
    text-align: center;
    padding: 12px 8px;
    font-weight: 500;
    color: var(--accent);
}
/* استایل‌های صفحه خدمات (services.html) */
.services-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.services-title {
    text-align: center;
    color: var(--accent, #a67c44);
    margin-bottom: 40px;
    font-size: 2.2rem;
    border-bottom: 2px solid var(--gold, #c89f4b);
    padding-bottom: 15px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.service-detail-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.service-detail-block:hover {
    transform: translateY(-5px);
}

.service-detail-block.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    min-width: 280px;
    border-radius: 12px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.service-description {
    flex: 1;
}

.service-description h2 {
    color: var(--dark, #1a1a1a);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features-list li {
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
}

.service-features-list li::before {
    content: "•";
    color: var(--gold, #c89f4b);
    font-weight: bold;
    position: absolute;
    right: 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.note {
    background: #f9f3e7;
    padding: 12px 18px;
    border-radius: 8px;
    border-right: 4px solid var(--gold, #c89f4b);
    font-style: italic;
}

.cta-section {
    text-align: center;
    background: var(--dark, #1a1a1a);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    background: var(--gold, #c89f4b);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #b8872e;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .service-detail-block, .service-detail-block.reverse {
        flex-direction: column;
    }
    .service-image img {
        height: 220px;
    }
}
/* استایل‌های صفحه تدریس (teaching.html) */
.teaching-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.teaching-title {
    text-align: center;
    color: var(--accent, #a67c44);
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.teaching-subtitle {
    text-align: center;
    color: var(--text-light, #6b6b6b);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

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

.course-content {
    padding: 20px;
}

.course-content h3 {
    color: var(--dark, #1a1a1a);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.course-content p {
    color: var(--text, #3a3a3a);
    margin-bottom: 15px;
    line-height: 1.6;
}

.course-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.course-content ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 0.95rem;
}

.price {
    display: block;
    background: #f0e9dd;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--accent, #a67c44);
    margin-bottom: 15px;
    text-align: center;
}

.enroll-btn {
    display: block;
    background: var(--gold, #c89f4b);
    color: #000;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.enroll-btn:hover {
    background: #b8872e;
}

/* ویژگی‌های تدریس */
.teaching-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.feature-box {
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-box span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.feature-box h4 {
    color: var(--dark, #1a1a1a);
    margin-bottom: 8px;
}

.cta-section {
    text-align: center;
    background: var(--dark, #1a1a1a);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-top: 20px;
}

.cta-section h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.cta-button {
    display: inline-block;
    background: var(--gold, #c89f4b);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #b8872e;
}
/* استایل‌های صفحه محصولات (products.html) */
.products-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.products-title {
    text-align: center;
    color: var(--accent, #a67c44);
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.products-subtitle {
    text-align: center;
    color: var(--text-light, #6b6b6b);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold, #c89f4b);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.product-badge.sale {
    background: #e74c3c;
    color: white;
}

.product-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    color: var(--dark, #1a1a1a);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-details p {
    color: var(--text, #3a3a3a);
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-price {
    font-weight: 700;
    color: var(--accent, #a67c44);
    font-size: 1.1rem;
}

.product-material {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-order {
    flex: 1;
    background: var(--gold, #c89f4b);
    color: #000;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-order:hover {
    background: #b8872e;
}

.btn-gallery {
    flex: 1;
    background: transparent;
    color: var(--accent, #a67c44);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--accent, #a67c44);
    transition: all 0.3s;
}

.btn-gallery:hover {
    background: var(--accent, #a67c44);
    color: white;
}

/* بخش سفارش اختصاصی */
.custom-order-section {
    text-align: center;
    background: var(--dark, #1a1a1a);
    color: white;
    padding: 50px 30px;
    border-radius: 16px;
    margin-top: 30px;
}

.custom-order-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--gold, #c89f4b);
}

.custom-order-section p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--gold, #c89f4b);
    color: #000;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background: #b8872e;
    transform: scale(1.03);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        height: 240px;
    }
}
/* استایل‌های صفحه بازی (game.html) */
.game-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.game-title {
    text-align: center;
    color: var(--accent, #a67c44);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.game-subtitle {
    text-align: center;
    color: var(--text-light, #6b6b6b);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.game-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
}

.game-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.game-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: blur(18px) brightness(0.7);
    transition: filter 0.3s;
}

.game-image-container:hover .game-image {
    filter: blur(0) brightness(1);
}

.game-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-image-container:hover .game-image-overlay {
    opacity: 1;
}

.game-question {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark, #1a1a1a);
}

.game-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 12px 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    background: #f4f4f4;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover:not(:disabled) {
    background: #e8dcc8;
    border-color: var(--gold, #c89f4b);
}

.option-btn.correct {
    background: #d4edda;
    border-color: #27ae60;
    color: #155724;
}

.option-btn.wrong {
    background: #f8d7da;
    border-color: #e74c3c;
    color: #721c24;
}

.game-result {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    min-height: 30px;
}

.game-score {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent, #a67c44);
    font-weight: 700;
}

.game-next-btn, .game-reset-btn {
    padding: 10px 25px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s;
}

.game-next-btn {
    background: var(--gold, #c89f4b);
    color: #000;
}

.game-next-btn:hover {
    background: #b8872e;
}

.game-reset-btn {
    background: #ddd;
    color: #333;
}

.game-reset-btn:hover {
    background: #bbb;
}

.game-info {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light, #6b6b6b);
    font-size: 0.95rem;
}
/* استایل‌های صفحه وبلاگ (blog.html) */
.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog-page-title {
    text-align: center;
    color: var(--accent, #a67c44);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.blog-page-subtitle {
    text-align: center;
    color: var(--text-light, #6b6b6b);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

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

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

.blog-article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--gold-light, #e0c378);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-content h2 {
    font-size: 1.3rem;
    color: var(--dark, #1a1a1a);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content p {
    color: var(--text, #3a3a3a);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 15px;
}

.read-more {
    align-self: flex-start;
    color: var(--accent, #a67c44);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #b8872e;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.page-link.active {
    background: var(--gold, #c89f4b);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(200,159,75,0.4);
}

.page-link:hover:not(.active) {
    background: #f0e9dd;
    color: var(--accent);
}
/* استایل‌های صفحه وبلاگ (blog.html) */
.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog-page-title {
    text-align: center;
    color: var(--accent, #a67c44);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.blog-page-subtitle {
    text-align: center;
    color: var(--text-light, #6b6b6b);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

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

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

.blog-article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--gold-light, #e0c378);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-content h2 {
    font-size: 1.3rem;
    color: var(--dark, #1a1a1a);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content p {
    color: var(--text, #3a3a3a);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 15px;
}

.read-more {
    align-self: flex-start;
    color: var(--accent, #a67c44);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #b8872e;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.page-link.active {
    background: var(--gold, #c89f4b);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(200,159,75,0.4);
}

.page-link:hover:not(.active) {
    background: #f0e9dd;
    color: var(--accent);
}
/* ==================== صفحه درباره استاد (about.html) ==================== */
.about-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* بخش هیرو */
.about-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.about-profile-image {
    flex: 0 0 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold, #c89f4b);
    box-shadow: 0 0 30px rgba(200,159,75,0.3);
}

.about-profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-intro h1 {
    font-size: 2rem;
    color: var(--dark, #1a1a1a);
    margin-bottom: 10px;
}

.about-title {
    color: var(--gold, #c89f4b);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.about-bio {
    line-height: 1.9;
    color: var(--text, #3a3a3a);
    text-align: justify;
}

/* افتخارات */
.about-achievements h2,
.about-skills h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--accent, #a67c44);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.achievement-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.achievement-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--text-light, #6b6b6b);
}

/* مهارت‌ها */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.skill-item {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.skill-item:hover {
    border-bottom: 3px solid var(--gold, #c89f4b);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.skill-item h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

/* آمار */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-box {
    background: var(--dark, #1a1a1a);
    color: white;
    text-align: center;
    padding: 25px 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold, #c89f4b);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* نقل قول */
.about-quote {
    background: linear-gradient(135deg, #faf6ef, #f0e6d2);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 50px;
    border-right: 5px solid var(--gold, #c89f4b);
}

.about-quote blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 2;
    color: #4a3f2f;
    margin-bottom: 15px;
}

.about-quote cite {
    font-weight: 600;
    color: var(--accent, #a67c44);
    font-size: 1.1rem;
}

/* دکمه‌های دعوت */
.about-cta {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-cta h2 {
    color: var(--dark);
    margin-bottom: 10px;
}

.about-cta p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-primary {
    background: var(--gold, #c89f4b);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-primary:hover {
    background: #b8872e;
}

.cta-secondary {
    background: transparent;
    color: var(--accent, #a67c44);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--accent, #a67c44);
    transition: all 0.3s;
}

.cta-secondary:hover {
    background: var(--accent, #a67c44);
    color: white;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .about-hero {
        flex-direction: column;
        text-align: center;
    }
    .about-profile-image {
        flex: 0 0 200px;
        width: 200px;
        margin: 0 auto;
    }
}

/* ==================== صفحه تماس با استاد (contact.html) ==================== */
.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.contact-title {
    text-align: center;
    color: var(--accent, #a67c44);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-light, #6b6b6b);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* کارت‌های اطلاعات */
.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
}

.info-card h3 {
    color: var(--dark, #1a1a1a);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-card p {
    margin: 3px 0;
    color: var(--text);
}

.social-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-contact-links a {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: background 0.3s;
}

.social-contact-links a:hover {
    background: var(--gold, #c89f4b);
    color: #000;
}

/* فرم تماس */
.contact-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fafafa;
}

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

.submit-btn {
    background: var(--gold);
    color: #000;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #b8872e;
}

.form-feedback {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

/* نقشه نمایشی */
.map-placeholder {
    text-align: center;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.map-placeholder p {
    padding: 15px;
    background: var(--dark);
    color: white;
    margin: 0;
}

.map-placeholder img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}
