/* ============================================
   THEME: FRESH GREEN & WARM ORANGE
   Modern • Elegant • Light
   Replace: F:\SiteBuilder\themes\bright-scholars\style.css
   ============================================ */

/* === TOP INFO BAR === */
.top-info-bar {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7) !important;
    font-size: 13px; letter-spacing: 0.3px;
    border-bottom: 1px solid #BBF7D0;
    color: #14532D !important;
}
.top-info-bar span { color: #14532D !important; }
.top-info-bar i { color: #F97316 !important; }
.top-info-bar a { color: #EA580C !important; text-decoration: none; }
.top-info-bar a:hover { color: #C2410C !important; }

/* === HEADER / NAV - FULL WIDTH FIX === */
.site-header {
    background: rgba(255,255,255,0.98) !important;
    border-bottom: 2px solid #F97316 !important;
    box-shadow: 0 2px 20px rgba(22,163,74,0.08) !important;
    backdrop-filter: blur(12px);
}
.site-header.scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 4px 24px rgba(22,163,74,0.1) !important;
}

/* Full-width nav container */
.nav-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 30px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Logo - fixed on left, no shrink */
.nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    margin-right: 10px !important;
}
.nav-brand img {
    height: 44px !important;
    width: auto !important;
}
.nav-brand span {
    color: #15803D !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    white-space: nowrap !important;
}

/* Menu - centered, flexible, no overlap */
.nav-menu {
    display: flex !important;
    list-style: none !important;
    align-items: center !important;
    gap: 2px !important;
    flex: 1 !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}
.nav-menu li a {
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}
.nav-menu li a:hover {
    color: #15803D !important;
    background: rgba(22,163,74,0.06) !important;
}
.nav-menu li a.active {
    color: #15803D !important;
    background: rgba(22,163,74,0.08) !important;
    font-weight: 600 !important;
}

/* Actions - fixed on right */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
}

/* Language switch button */
.nav-lang-btn {
    background: #F97316 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
}
.nav-lang-btn:hover {
    background: #EA580C !important;
    transform: translateY(-1px) !important;
}

/* Login button */
.nav-login-btn {
    color: #374151 !important;
    font-size: 18px !important;
}
.nav-login-btn:hover {
    color: #15803D !important;
}

/* Hamburger toggle */
.nav-toggle, .nav-toggle i { color: #15803D !important; }

/* === HERO === */
.hero-section { min-height: 500px; }
.hero-section h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: 3rem; font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-section .lead { font-size: 1.15rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.95; }
.hero-section .btn-primary {
    background: #F97316 !important; border-color: #F97316 !important; color: #fff !important;
    font-weight: 700; padding: 14px 36px; border-radius: 50px;
    font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-section .btn-primary:hover {
    background: #EA580C !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249,115,22,0.4);
}
.hero-section .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    padding: 14px 36px; border-radius: 50px; font-weight: 600; color: #fff;
}
.hero-section .btn-outline-light:hover { background: #fff; color: #15803D; }

/* === SECTION HEADERS === */
.section-header h2 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700; color: #15803D; font-size: 2rem;
    position: relative; padding-bottom: 16px;
}
.section-header h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 60px; height: 3px;
    background: linear-gradient(90deg, #F97316, #FB923C); border-radius: 3px;
}

/* === FEATURE CARDS === */
.feature-card {
    background: #fff; border-radius: 16px; padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #F0FDF4; transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(22,163,74,0.1);
    border-color: #F97316;
}
.feature-icon {
    width: 70px; height: 70px; border-radius: 20px;
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7) !important;
    color: #15803D !important;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.feature-icon i { font-size: 28px; color: #F97316 !important; }
.feature-card h3 { color: #15803D; font-weight: 700; }

/* === CONTENT BLOCKS === */
.content-text h2 { font-family: 'Playfair Display', serif !important; color: #15803D; }
.content-image img { border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

/* === CTA === */
.cta-section {
    background: linear-gradient(135deg, #15803D 0%, #16A34A 50%, #F97316 100%) !important;
    overflow: hidden; position: relative;
}
.cta-section::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 500px; height: 500px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.cta-section h2 { font-family: 'Playfair Display', serif !important; color: #fff; }
.cta-section .btn-primary {
    background: #fff !important; color: #15803D !important;
    font-weight: 700; padding: 14px 40px; border-radius: 50px; text-transform: uppercase;
}

/* === FAQ === */
.faq-question {
    font-weight: 600; color: #15803D; background: #FEFCE8;
    border-left: 4px solid #F97316; border-radius: 8px;
}
.faq-question:hover { background: #FFF7ED; }

/* === CONTACT FORM === */
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.btn-submit {
    background: linear-gradient(135deg, #15803D, #16A34A) !important;
    color: #fff !important; padding: 14px 40px; border-radius: 50px;
    font-weight: 600; border: none;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(22,163,74,0.3); }

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #14532D, #15803D) !important;
    border-top: 3px solid #F97316;
}
.site-footer h3, .site-footer h4 { color: #F97316 !important; font-family: 'Playfair Display', serif !important; }
.footer-social a { background: rgba(249,115,22,0.15) !important; color: #F97316 !important; }
.footer-social a:hover { background: #F97316 !important; color: #fff !important; }

/* === BUTTONS GLOBAL === */
.btn-primary { background: #F97316; border-color: #F97316; color: #fff; border-radius: 50px; }
.btn-primary:hover { background: #EA580C; border-color: #EA580C; }

/* === GALLERY / TESTIMONIALS / PRICING === */
.gallery-item img { border-radius: 12px; }
.gallery-item:hover img { transform: scale(1.03); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.testimonial-card { border-radius: 16px; border: 1px solid #F0FDF4; }
.testimonial-card .quote::before { color: #F97316; }
.pricing-card { border-radius: 16px; }
.pricing-card.featured { border-color: #F97316; box-shadow: 0 8px 30px rgba(249,115,22,0.15); }
.pricing-card .price { color: #15803D; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .nav-menu li a {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    .nav-brand span {
        font-size: 16px !important;
    }
    .nav-container {
        padding: 0 16px !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; }
    .top-info-bar .container { flex-direction: column; text-align: center; gap: 8px; }

    .nav-container {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 10px 16px !important;
    }
    .nav-brand span {
        font-size: 15px !important;
    }
    .nav-menu {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
        order: 3 !important;
    }
    .nav-menu.open {
        background: #F9FAFB !important;
        border-top: 1px solid #E5E7EB !important;
        padding: 8px 0 !important;
    }
    .nav-menu li { width: 100%; }
    .nav-menu li a {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #F3F4F6 !important;
    }
    .nav-menu.open a { color: #374151 !important; }
    .nav-menu.open a:hover { background: #F0FDF4 !important; color: #15803D !important; }
}

/* === FULL WIDTH LAYOUT === */
.container-fluid { max-width: 100% !important; width: 100% !important; padding-left: 40px; padding-right: 40px; margin: 0 auto; box-sizing: border-box; }
.container { max-width: 1400px !important; width: 100% !important; padding-left: 20px; padding-right: 20px; margin: 0 auto; box-sizing: border-box; }
.page-section .container-fluid { padding-left: 40px; padding-right: 40px; }
.container-fluid .cards-grid, .container-fluid .features-grid, .container-fluid .team-grid, .container-fluid .gallery-grid { max-width: 1400px; margin: 0 auto; }
@media (max-width: 768px) {
    .container-fluid { padding-left: 16px !important; padding-right: 16px !important; }
    .container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* === DROPDOWN MENU (Theme Level) === */
.nav-menu > li > .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 220px; border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12); padding: 8px 0;
    z-index: 1000; border: 1px solid #E5E7EB; list-style: none; margin: 0;
}
.nav-menu > li:hover > .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
    display: block !important; padding: 10px 20px !important;
    color: #374151 !important; font-size: 14px !important;
    text-decoration: none !important; transition: all .2s !important;
    white-space: nowrap; background: none !important;
    border: none !important; border-radius: 0 !important;
}
.dropdown-menu li a:hover {
    background: #F0FDF4 !important; color: #15803D !important;
    padding-left: 24px !important;
}
.dropdown-menu li a i { color: #F97316 !important; opacity: 0.7; }
.nav-menu > li > a.has-dropdown::after {
    content: '\f107'; font-family: 'Font Awesome 6 Free';
    font-weight: 900; margin-left: 6px; font-size: 11px;
}
@media(max-width:768px) {
    .nav-menu > li > .dropdown-menu {
        position: static; box-shadow: none; border: none;
        background: #f8f8f8; border-radius: 0; display: none;
    }
    .nav-menu > li.dropdown-open > .dropdown-menu { display: block; }
    .dropdown-menu li a { padding: 10px 30px !important; font-size: 14px !important; }
}

/* === NAV ACTION BUTTONS (Theme Level) === */
.nav-btn-ebook {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; background: #16A34A; color: #fff !important;
    border-radius: 25px; font-size: 13px; font-weight: 700;
    text-decoration: none; letter-spacing: 0.3px; transition: all 0.3s;
}
.nav-btn-ebook:hover { background: #15803D; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.nav-btn-taaleb {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; background: #F97316; color: #fff !important;
    border-radius: 25px; font-size: 13px; font-weight: 700;
    text-decoration: none; letter-spacing: 0.3px; transition: all 0.3s;
}
.nav-btn-taaleb:hover { background: #EA580C; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.3); }

/* === TOP INFO BAR (Theme Level) === */
.top-info-bar {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7) !important;
    border-bottom: 1px solid #BBF7D0; color: #14532D !important;
}
.top-info-bar .info-item i { color: #F97316 !important; }
.top-info-bar a { color: #EA580C !important; }
.top-info-bar .social-icons a { color: #14532D !important; }
.top-info-bar .social-icons a:hover { color: #F97316 !important; }

/* === UCA CALENDAR WIDGET === */
.uca-cal-section { width: 100%; }
.uca-cal-container { max-width: 500px; margin: 0 auto; }
.uca-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.uca-cal-title { font-family: 'Playfair Display', serif !important; font-size: 1.8rem; font-weight: 700; color: #374151; margin: 0; }
.uca-cal-link { color: #374151; font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid #9CA3AF; }
.uca-cal-link:hover { color: #F97316; border-color: #F97316; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; background: #F59E0B; border-radius: 12px; padding: 12px 16px; }
.cal-arrow { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 10px; border-radius: 6px; transition: background .2s; }
.cal-arrow:hover { background: rgba(255,255,255,0.2); }
.cal-month { text-align: center; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 2px; line-height: 1.2; }
.cal-year { font-size: 14px; font-weight: 400; opacity: 0.9; letter-spacing: 0; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { padding: 8px 4px; font-size: 12px; font-weight: 700; color: #F59E0B; letter-spacing: 0.5px; }
.cal-dow.sat, .cal-dow.sun { color: #EF4444; }

.cal-day { padding: 10px 4px; font-size: 14px; font-weight: 500; color: #374151; border-radius: 6px; cursor: pointer; transition: all .2s; }
.cal-day:hover { background: #FEF3C7; }
.cal-day.prev, .cal-day.next { color: #D1D5DB; }
.cal-day.today { background: #F59E0B; color: #fff; font-weight: 800; border-radius: 50%; }
.cal-day.weekend { color: #EF4444; }
.cal-day.weekend.today { background: #EF4444; color: #fff; }

/* Event days - full colored background */
.cal-day.has-event { position: relative; font-weight: 800; cursor: pointer; background: #15803D !important; color: #fff !important; border-radius: 6px; }
.cal-day.has-event:hover { background: #166534 !important; transform: scale(1.08); }
.cal-day.has-event.today { background: #F59E0B !important; color: #fff !important; box-shadow: 0 0 0 2px #15803D; }
.cal-day.has-event.weekend { background: #DC2626 !important; color: #fff !important; }
.cal-day.has-event.weekend:hover { background: #B91C1C !important; }
.ev-dot { display: none; }

/* Event list below calendar */
.cal-event-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #E5E7EB; border-radius: 10px; margin-top: 8px; transition: all .2s; }
.cal-event-item:hover { border-color: #F59E0B; box-shadow: 0 4px 12px rgba(245,158,11,0.12); }
.cal-event-date { min-width: 50px; height: 50px; border-radius: 10px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cal-ev-day { font-size: 18px; font-weight: 800; line-height: 1; }
.cal-ev-mon { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.cal-event-title { font-weight: 600; color: #1F2937; font-size: 14px; }
.cal-no-events { text-align: center; color: #9CA3AF; padding: 20px; font-size: 14px; }

/* ============================================
   RTL OVERRIDES
   KEY FIX: direction:rtl + flex-direction:row = R→L
   DO NOT use row-reverse with rtl (they cancel!)
   ============================================ */
html[dir="rtl"] .site-header {
    direction: rtl !important;
}
html[dir="rtl"] .nav-container {
    direction: rtl !important;
    /* NO flex-direction: row-reverse — direction:rtl handles it */
}
html[dir="rtl"] .nav-menu {
    direction: rtl !important;
    justify-content: center !important;
    /* NO flex-direction: row-reverse — direction:rtl handles it */
}
html[dir="rtl"] .nav-menu li {
    direction: rtl !important;
}
html[dir="rtl"] .nav-menu li a {
    direction: rtl !important;
    text-align: right !important;
}
html[dir="rtl"] .nav-brand {
    direction: rtl !important;
    margin-right: 0 !important;
    margin-left: 10px !important;
}
html[dir="rtl"] .nav-actions {
    direction: rtl !important;
    margin-left: 0 !important;
    margin-right: 10px !important;
}
html[dir="rtl"] .nav-menu > li > .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}
html[dir="rtl"] .dropdown-menu li a {
    text-align: right !important;
    direction: rtl !important;
}
html[dir="rtl"] .dropdown-menu li a i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}
html[dir="rtl"] .nav-menu > li > a.has-dropdown::after {
    margin-left: 0 !important;
    margin-right: 6px !important;
}
html[dir="rtl"] .top-info-bar {
    direction: rtl !important;
}
html[dir="rtl"] .cal-event-item {
    direction: rtl !important;
    text-align: right !important;
}
html[dir="rtl"] .footer-content {
    direction: rtl !important;
}
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .footer-links h4,
html[dir="rtl"] .footer-links li {
    text-align: right !important;
}
/* RTL Mobile */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-container {
        direction: rtl !important;
    }
    html[dir="rtl"] .nav-menu {
        direction: rtl !important;
        flex-direction: column !important;
        text-align: right !important;
    }
    html[dir="rtl"] .nav-menu li a {
        text-align: right !important;
    }
}
