/*
Theme Name: Sepahan Theme
Author: sepahandev
Version: 3.5
Description: پوسته اختصاصی باشگاه سپاهان با المان‌های اختصاصی المنتور
*/

/* =========================================
   1. تنظیمات اصلی و رنگ‌ها (Variables)
========================================= */
:root {
    --sepahan-gold: #FDB913;        /* زرد اصلی */
    --sepahan-gold-hover: #ffcd4f;  /* زرد روشن‌تر برای هاور */
    --sepahan-black: #000000;       /* مشکی مطلق */
    --sepahan-dark: #121212;        /* مشکی متریال */
    --sepahan-grey: #2c2c2c;        /* خاکستری تیره */
    --text-light: #ffffff;          /* رنگ متن روشن */
    --text-silver: #e0e0e0;         /* نقره‌ای برای متون فرعی */
    --body-bg: #f3f5f8;             /* پس زمینه کلی سایت */
}

body {
    font-family: "Vazir", "Tahoma", "Segoe UI", sans-serif;
    background-color: var(--body-bg);
    color: #444;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. نوار ابزار بالا (Top Bar)
========================================= */
.top-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    font-size: 13px;
    padding: 6px 0;
}

.top-bar a {
    color: #cccccc !important;
    margin-right: 15px;
}

.top-bar a:hover {
    color: var(--sepahan-gold) !important;
}

.top-socials i {
    font-size: 14px;
    vertical-align: middle;
}

/* =========================================
   3. هدر اصلی (Header)
========================================= */
.site-header {
    background-color: var(--sepahan-black);
    border-bottom: 4px solid var(--sepahan-gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    height: 75px;
    filter: drop-shadow(0 0 5px rgba(253, 185, 19, 0.3));
    transition: transform 0.3s;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* منوی اصلی */
.sepahan-menu .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 18px !important;
    position: relative;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.sepahan-menu .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: var(--sepahan-gold);
    transition: width 0.3s ease;
    box-shadow: 0 -2px 10px rgba(253, 185, 19, 0.5);
}

.sepahan-menu .nav-link:hover,
.sepahan-menu .nav-link.active,
.sepahan-menu .current-menu-item a {
    color: var(--sepahan-gold) !important;
    opacity: 1;
}

.sepahan-menu .nav-link:hover::before,
.sepahan-menu .current-menu-item a::before {
    width: 100%;
}

/* دکمه ورود */
.btn-login {
    color: var(--sepahan-gold) !important;
    border: 2px solid var(--sepahan-gold);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: var(--sepahan-gold);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(253, 185, 19, 0.6);
}

@media (max-width: 991px) {
    .site-header { padding: 10px 0; }
    .sepahan-menu .nav-link {
        padding: 15px !important;
        border-bottom: 1px solid #222;
        text-align: right;
    }
    .sepahan-menu .nav-link::before { display: none; }
}

/* =========================================
   4. کارت‌های خبری (Standard Cards)
========================================= */
.card {
    border: none;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card img {
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title a {
    color: #111;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.5;
}

.card-title a:hover {
    color: var(--sepahan-gold);
}

/* =========================================
   5. سایدبار و ویجت‌ها (Sidebar)
========================================= */
.widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
    position: relative;
    padding-right: 15px;
}

.widget-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    height: 80%;
    width: 4px;
    background: var(--sepahan-gold);
    border-radius: 2px;
}

.news-item {
    border-bottom: 1px dashed #eee;
}

/* =========================================
   6. فوتر (Footer)
========================================= */
.site-footer {
    background-color: #050505;
    border-top: 5px solid var(--sepahan-gold);
    padding-top: 60px;
    color: #bbb;
    margin-top: 60px;
    position: relative;
}

.footer-widget .widget-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding-right: 0;
}
.footer-widget .widget-title::before { display: none; }
.footer-widget .widget-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--sepahan-gold);
    margin-top: 10px;
    border-radius: 2px;
}

.footer-links a {
    color: #e0e0e0 !important;
    font-size: 14px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links a i {
    color: var(--sepahan-gold);
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--sepahan-gold) !important;
    padding-right: 10px;
    background: rgba(255,255,255,0.02);
}
.footer-links a:hover i { opacity: 1; transform: translateX(-3px); }

.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.4s;
}

.social-btn:hover {
    background: var(--sepahan-gold);
    color: #000 !important;
    border-color: var(--sepahan-gold);
    transform: rotateY(180deg);
}

.footer-bottom {
    background-color: #000;
    border-top: 1px solid #111;
    padding: 25px 0;
    margin-top: 50px;
    font-size: 12px;
    color: #666;
}

/* =========================================
   7. دکمه‌های عمومی
========================================= */
.btn-primary, .btn-warning {
    background-color: var(--sepahan-gold);
    border: none;
    color: #000;
    font-weight: 800;
    padding: 10px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.3);
}

.btn-primary:hover, .btn-warning:hover {
    background-color: var(--sepahan-gold-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 185, 19, 0.5);
}

/* ==========================================================================
   8. استایل‌های اختصاصی المان‌های المنتور (NEW ELEMENTOR WIDGETS)
========================================================================== */

/* --- 8.1. استایل کارت دوره‌ها (Course Card) --- */
.sap-course-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sap-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(253, 185, 19, 0.15); /* سایه طلایی ملایم */
    border-color: var(--sepahan-gold);
}

.sap-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.sap-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.sap-course-card:hover .sap-card-img img {
    transform: scale(1.1);
}

.sap-badge-cat {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--sepahan-gold);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

.sap-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sap-meta-top {
    font-size: 12px;
}

.sap-title {
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sap-title a:hover {
    color: var(--sepahan-gold) !important;
}

.sap-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sap-price {
    line-height: 1.2;
}

.sap-btn-icon {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%; /* دایره کامل */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    font-size: 18px;
    transition: 0.3s;
    border: 1px solid #eee;
}

.sap-course-card:hover .sap-btn-icon {
    background: var(--sepahan-gold);
    border-color: var(--sepahan-gold);
    color: #000;
    transform: rotate(45deg); /* افکت چرخش */
}

/* --- 8.2. استایل کارت آکادمی (Academy Card) --- */
.sap-academy-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 380px; /* ارتفاع ثابت برای هم‌اندازه بودن */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
}

.sap-academy-card .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.sap-academy-card:hover .bg-img {
    transform: scale(1.15) rotate(1deg); /* زوم و چرخش بسیار ملایم */
}

.academy-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 1;
    transition: 0.3s;
}

.sap-academy-card:hover .academy-overlay {
    background: linear-gradient(to top, #000 10%, rgba(0,0,0,0.7) 70%, transparent 100%);
}

.academy-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: #fff;
    transform: translateY(20px); /* کمی پایین‌تر برای افکت */
    transition: 0.4s;
}

.sap-academy-card:hover .academy-content {
    transform: translateY(0);
}

.academy-loc {
    color: var(--sepahan-gold);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.academy-title a {
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    display: block;
    margin-bottom: 5px;
}

.academy-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* باز شدن اطلاعات در هاور */
.sap-academy-card:hover .academy-info {
    max-height: 100px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.academy-info .more-link {
    color: var(--sepahan-gold) !important;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.academy-info .more-link:hover {
    padding-right: 5px;
}