/*
Theme Name: آکادمی زیبایی
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: قالب آموزشی حوزه زیبایی با تم رنگی قرمز و مشکی
Version: 1.0.0
License: GPL v2 or later
Text Domain: beauty-academy
Domain Path: /languages
Tags: education, beauty, rtl-language, two-columns, right-sidebar, custom-header, custom-menu
*/

/* ============================================
   تنظیمات پایه
   ============================================ */
:root {
    --primary-color: #C62828;      /* قرمز 1kasb */
    --primary-dark: #8E0000;
    --primary-light: #FF5F52;
    --dark: #1a1a1a;
    --gray-dark: #2d2d2d;
    --gray: #6c6c6c;
    --gray-light: #e0e0e0;
    --white: #ffffff;
    --bg-light: #f5f5f5;
}

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

body {
    font-family: 'Estedad', 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

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

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   هدر (سربرگ) - مثل 1kasb
   ============================================ */
.site-header {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.site-logo {
    flex-shrink: 0;
    background: #fff;
    padding: 22px;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
}

.site-logo img {
    max-height: 82px;
    width: auto;
}

/* منوی اصلی */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item a::after {
    width: 100%;
}

.main-nav ul li.current-menu-item a {
    color: var(--primary-color);
}

/* منوی موبایل */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 3px;
}

/* ============================================
   بخش Hero (اسلایدر اصلی)
   ============================================ */
.hero-section {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23C62828" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(198,40,40,0.3);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 12px 35px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   بخش معرفی (مثل 1kasb)
   ============================================ */
.intro-section {
    padding: 80px 0;
    background: #050505;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-content .subtitle {
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.intro-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
}

.intro-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

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

.feature-box .feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.feature-box h4 {
    font-size: 17px;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
}

.feature-box p {
    font-size: 12px;
    margin: 0;
}

.intro-image img {
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ============================================
   بخش دوره‌های آموزشی
   ============================================ */
.courses-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.course-img {
    height: 220px;
    overflow: hidden;
}

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

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

.course-info {
    padding: 20px;
}

.course-cat {
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.course-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.course-info p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.course-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.course-price span {
    font-size: 12px;
    color: var(--gray);
}

/* ============================================
   بخش اساتید
   ============================================ */
.teachers-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.teacher-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

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

.teacher-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.teacher-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   بخش آمار (مثل 1kasb)
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.8;
}

/* ============================================
   بخش گالری
   ============================================ */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(198,40,40,0.9));
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   بخش مقالات
   ============================================ */
.blog-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.blog-img {
    height: 220px;
    overflow: hidden;
}

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--dark);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   فوتر (Footer) مثل 1kasb
   ============================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* ============================================
   صفحه مقالات (سایدبار)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

.breadcrumbs span {
    color: var(--primary-color);
}

.content-area {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.single-post .content-grid {
    grid-template-columns: 1fr 300px;
}

.post-content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.post-thumbnail {
    margin-bottom: 25px;
}

.post-thumbnail img {
    width: 100%;
    border-radius: 12px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 14px;
}

.sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.sidebar-widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

/* ============================================
   ریسپانسیو (موبایل و تبلت)
   ============================================ */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        z-index: 1001;
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 10px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ============================================
   انیمیشن‌ها
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}