/*
Theme Name: LVN University
Theme URI: https://lvn.university
Author: LVN Team
Author URI: https://lvn.university
Description: قالب مدرن، مینیمال، فوق‌العاده سریع و ریسپانسیو با تم آبی آکادمیک
Version: 3.2.0
License: GNU General Public License v2 or later
Text Domain: lvn
*/

:root {
    --color-primary: #1e40af;
    --color-primary-dark: #0f172a;
    --color-primary-light: #3b82f6;
    --color-accent: #0284c7;
    
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.15);
    --radius-md: 10px;
    --radius-lg: 16px;
    --container-width: 1200px;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.75;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* ==========================================
   RESET & HEADER FIXES
   ========================================== */

/* Top Bar Fixes */
.top-bar {
    background: #0f172a;
    color: #cbd5e1;
    padding: 8px 0;
    font-size: 13px;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

/* Header Container */
.site-header {
    background: #ffffff;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

/* Logo Fix */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding img,
.custom-logo {
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.logo-acronym {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.logo-title {
    font-size: 11px;
    display: block;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

/* Desktop Navigation Fixes */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.primary-menu > li {
    position: relative;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.primary-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.primary-menu > li:hover > a,
.primary-menu .current-menu-item > a {
    background: #f8fafc;
    color: #1e40af;
}

/* Dropdown Submenus Fix */
.primary-menu ul,
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.primary-menu li:hover > ul,
.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li {
    list-style: none !important;
    margin: 0;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
}

.primary-menu .sub-menu a:hover {
    background: #f1f5f9;
    color: #1e40af;
}

/* Header CTA Button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile Drawer Fix (پنهان‌سازی کامل منوی موبایل در دسکتاپ) */
.mobile-navigation {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
}

.mobile-navigation.is-active {
    right: 0;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .desktop-nav, 
    .top-bar {
        display: none !important;
    }

    .mobile-navigation {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
        background: #0f172a;
        border-radius: 2px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 550px;
    margin: 0 auto;
    gap: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #60a5fa;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* General Sections */
.section {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Grids */
.services-grid,
.levels-grid,
.universities-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card,
.level-card,
.university-card,
.blog-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.level-card:hover,
.university-card:hover,
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.service-card h3,
.level-card h3,
.university-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.service-card p,
.level-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Floating Contact (مجموعه کامل دکمه‌ها در تمام صفحه نمایش‌ها) */
.contact-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: fit-content;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -5px rgb(0 0 0 / 0.25);
}

.floating-btn.whatsapp {
    background-color: #16a34a;
}

.floating-btn.phone {
    background-color: var(--color-primary);
}

.floating-btn-icon {
    font-size: 16px;
}

.floating-btn span {
    display: inline-block !important; /* تضمین عدم مخفی‌شدن متن در موبایل */
    white-space: nowrap;
}

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: #94a3b8;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer-contact li,
.footer-posts li {
    list-style: none;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Responsive Mobile Rules */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-primary-dark);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .desktop-nav, .top-bar { 
        display: none !important; 
    }
    
    .mobile-menu-toggle { 
        display: flex; 
    }
    
    .hero-title { 
        font-size: 1.65rem; 
    }
    
    .hero-stats { 
        grid-template-columns: 1fr; 
    }
    
    .header-cta {
        display: none;
    }
    
    /* دکمه‌های شناور در موبایل همچنان کاملا خوانا با متن بمانند */
    .contact-floating {
        bottom: 16px;
        left: 16px;
        gap: 8px;
    }
    
    .floating-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}