/* ---------------- LIGHT THEME HERO SECTION (lth-) ---------------- */

/* تنظیمات اسکرول نرم برای مرورگر */
html {
    scroll-behavior: smooth;
}

/* استایل بدنه هیرو سکشن */
body .lth-hero-section {
    padding: 110px 0 !important;
    background-color: var(--bg-light) !important; /* پس‌زمینه لایت از روت */
    color: var(--secondary-color) !important; /* رنگ اصلی متن هماهنگ با روت */
    overflow: hidden;
    position: relative;
    direction: rtl !important;
    text-align: right !important;
    display: block !important;
    width: 100% !important;
}

body .lth-hero-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ساختار گرید دو ستونه */
.lth-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* ========================================================
   ستون راست: بخش متنی هیرو
   ======================================================== */
.lth-content {
    position: relative;
    z-index: 10;
}

.lth-badge {
    color: var(--accent-color) !important; /* صورتی شاخص روت */
    background-color: rgba(217, 56, 108, 0.06) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
    margin-bottom: 22px !important;
    padding: 6px 18px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(217, 56, 108, 0.12);
}

.lth-title {
    font-size: clamp(1.9rem, 4vw, 2.9rem) !important;
    line-height: 1.45 !important;
    margin-bottom: 25px !important;
    font-weight: 900 !important;
    color: var(--secondary-color) !important; /* رنگ تیره روت */
}

/* گرادیان متن مابین رنگ ثانویه روت و رنگ صورتی شاخص */
.lth-text-gradient {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.lth-description {
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    color: var(--text-light) !important; /* طوسی ملایم از روت */
    margin-bottom: 35px !important;
    text-align: justify !important;
}

/* لیست ویژگی‌ها */
.lth-points {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: grid !important;
    gap: 15px !important;
}

.lth-points li {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 0.95rem !important;
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    transition: var(--transition);
}

.lth-point-text {
    transition: var(--transition);
}

.lth-points li:hover {
    transform: translateX(-5px);
}

.lth-points li:hover .lth-point-text {
    color: var(--accent-color) !important;
}

.lth-point-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(26, 31, 48, 0.05);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid rgba(26, 31, 48, 0.08);
}

.lth-points li:hover .lth-point-icon {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.15);
}

/* ========================================================
   ستون چپ: گرید هوشمند و استایل شیشه‌ای (Glassmorphism)
   ======================================================== */

.lth-visual {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    z-index: 5 !important;
}

/* ساختار گرید که با هر تعداد رشته خودش را تطبیق می‌دهد */
.glass-majors-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 500px !important;
    position: relative !important;
    padding-bottom: 25px !important; /* جا برای کارت شناور */
}

/* کارت اصلی رشته */
.glass-major-card {
    position: relative !important;
    display: block !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important; /* کارت‌های مربع شکل */
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(13, 18, 31, 0.08) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* ترفند گرید هوشمند: کارت آخر اگر فرد باشد کل عرض را می‌گیرد */
.glass-major-card:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    aspect-ratio: 2.2 / 1 !important;
}

/* هاور روی کل کارت */
.glass-major-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(217, 56, 108, 0.2) !important;
    border-color: rgba(217, 56, 108, 0.4) !important;
    z-index: 10 !important;
}

/* عکس پس زمینه کارت */
.glass-major-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0 !important;
    transition: transform 0.6s ease !important;
}

.glass-major-card:hover .glass-major-img {
    transform: scale(1.1) !important; /* زوم نرم روی عکس */
}

/* پنل شیشه‌ای روی عکس (Glassmorphism) */
.glass-major-panel {
    position: absolute !important;
    inset: 0 !important;
    /* گرادیانت تیره در پایین برای خوانایی، شفاف در بالا */
    background: linear-gradient(to top, rgba(13, 18, 31, 0.85) 0%, rgba(13, 18, 31, 0.1) 60%, rgba(13, 18, 31, 0) 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 20px 15px !important;
    color: var(--white) !important;
    transition: all 0.4s ease !important;
}

/* افکت شیشه‌ای در حالت هاور */
.glass-major-card:hover .glass-major-panel {
    background: rgba(217, 56, 108, 0.75) !important; /* صورتی/سرخابی شفاف */
    backdrop-filter: blur(8px) !important; /* افکت تار شدن شیشه */
    -webkit-backdrop-filter: blur(8px) !important;
    justify-content: center !important; /* قرارگیری متن در مرکز */
    align-items: center !important;
}

/* آیکون کلاه */
.glass-major-icon {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    font-size: 0.9rem !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.4s ease !important;
}

.glass-major-card:hover .glass-major-icon {
    background-color: var(--white) !important;
    color: var(--accent-color) !important;
    transform: scale(1.2) !important;
    border-radius: 50% !important;
    margin-bottom: 15px !important;
}

/* عنوان رشته */
.glass-major-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
    transition: all 0.4s ease !important;
}

.glass-major-card:hover .glass-major-title {
    font-size: 1.15rem !important;
    text-shadow: none !important;
}

/* فلش کوچکی که در حالت هاور ظاهر می‌شود */
.glass-major-arrow {
    opacity: 0 !important;
    transform: translateY(15px) !important;
    margin-top: 10px !important;
    background-color: var(--white) !important;
    color: var(--accent-color) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    transition: all 0.4s ease !important;
}

.glass-major-card:hover .glass-major-arrow {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================================
   المان‌های تزئینی و شناور
   ======================================================== */

/* کارت آماری شناور */
.lth-info-badge {
    position: absolute !important;
    bottom: -10px !important;
    left: 10px !important;
    background-color: var(--secondary-color) !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 15px 30px rgba(26, 31, 48, 0.25) !important;
    z-index: 10 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    animation: lth-badge-float 4.5s ease-in-out infinite;
}

.lth-info-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.lth-info-text {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    white-space: nowrap !important;
}

/* هاله تزیینی */
.lth-light-glow {
    position: absolute !important;
    top: -10% !important;
    right: -10% !important;
    width: 550px !important;
    height: 550px !important;
    background: radial-gradient(circle, rgba(217, 56, 108, 0.04) 0%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: lth-glow-pulse 8s ease-in-out infinite;
}

/* ========================================================
   انیمیشن‌ها
   ======================================================== */

@keyframes lth-badge-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes lth-glow-pulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    50% { transform: scale(1.15) translate(20px, -10px); opacity: 1; }
}

/* ========================================================
   ریسپانسیو
   ======================================================== */

@media (max-width: 992px) {
    .lth-wrapper {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
    
    .lth-visual {
        order: 2 !important; /* قرار دادن عکس‌ها در زیر متن‌ها */
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    .glass-majors-grid {
        max-width: 600px !important; /* در تبلت اجازه می‌دهیم بزرگتر شود */
        margin: 0 auto !important;
    }

    .lth-title, 
    .lth-description,
    .lth-points {
        text-align: center !important;
    }
    
    .lth-points {
        justify-content: center !important;
    }
    
    .lth-badge {
        display: table !important;
        margin: 0 auto 22px auto !important;
    }
}

@media (max-width: 576px) {
    body .lth-hero-section {
        padding: 55px 0 !important;
    }
    
    .lth-title {
        font-size: 1.8rem !important;
    }
    
    .lth-description {
        font-size: 0.95rem !important;
    }

    .glass-majors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .glass-major-title {
        font-size: 0.85rem !important;
    }

    .glass-major-panel {
        padding: 12px 10px !important;
    }
    
    .lth-info-badge {
        padding: 8px 12px !important;
        bottom: -15px !important;
    }
}