/*
 * EdFlow Landing Page — Modern UI Enhancement Layer
 * Loaded LAST to win all specificity battles against Bootstrap + original style.css
 * All brand colors use CSS variables (admin-configurable)
 * Structural dark colors are hardcoded (not brand)
 * Compatible with Chrome 90+ (no color-mix)
 */

/* ============================================================
   TYPOGRAPHY — Inter (LTR) + Cairo (RTL)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif !important;
}

/* ============================================================
   AOS FALLBACK — If AOS.js fails to load, show everything
   ============================================================ */
.no-aos [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ============================================================
   GLOBAL BUTTON UPGRADE — Scoped to landing page only
   ============================================================ */
.container-scroller .commonBtn {
    border-radius: 50px;
    padding: 13px 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(22, 238, 202, 0.2);
    position: relative;
    overflow: hidden;
}

.container-scroller .commonBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(22, 238, 202, 0.3);
}

.container-scroller .commonBtn:active {
    transform: translateY(0);
}

/* ============================================================
   SECTION TITLE UPGRADE
   ============================================================ */
.sectionTitle::after {
    width: 80px !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
    border-radius: 10px !important;
}

.sectionTitle::before {
    display: none !important;
}

.sectionTitle span {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* ============================================================
   1. NAVBAR — Dark Glass, Always Visible Logo
   ============================================================ */
.navbar {
    background-color: rgba(11, 15, 25, 0.88) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.navbar ul li a:hover {
    color: #fff !important;
}

.navbar .dropdown-toggle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
}

.navbar .loginBtnsWrapper .commonBtn:first-child,
.navbar .loginBtnsWrapper .redirect-login {
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.navbar .loginBtnsWrapper .commonBtn:first-child:hover,
.navbar .loginBtnsWrapper .redirect-login:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.navbar .loginBtnsWrapper .commonBtn:last-child {
    background: var(--primary-color) !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(22, 238, 202, 0.25) !important;
}

.navbar .loginBtnsWrapper .commonBtn:last-child:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(22, 238, 202, 0.35) !important;
}

/* Navbar offcanvas mobile — dark theme */
.navbar .offcanvas {
    background-color: #0B0F19 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.navbar .offcanvas .btn-close {
    filter: invert(1);
}

.navbar hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============================================================
   2. HERO SECTION — Dark Gradient + Cyan Glow
   ============================================================ */
.heroSection {
    background: linear-gradient(135deg, #0B0F19 0%, #111827 50%, #0d2137 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 60px 0px !important;
}

.heroSection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 65% 40%, rgba(22, 238, 202, 0.08), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.heroSection .linesBg {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.heroSection .colorBg {
    background-color: transparent !important;
}

/* Hero text colors */
.heroSection .commonTag {
    color: var(--primary-color) !important;
    background: rgba(22, 238, 202, 0.08);
    border: 1px solid rgba(22, 238, 202, 0.15);
    border-radius: 50px;
    padding: 6px 16px !important;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.heroSection .commonTitle {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.heroSection .commonDesc {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.heroSection .commonText {
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 400 !important;
    line-height: 1.7;
}

.heroSection a {
    color: #fff !important;
}

.heroSection .commonBtn {
    margin-top: 8px;
}

/* Hero image treatment */
.heroSection .heroImg img {
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Floating badge — glassmorphism */
.heroSection .topRated {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.heroSection .topRated span {
    color: #fff !important;
}

.heroSection .topRated div:first-child {
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Floating text wrapper — glassmorphism */
.heroSection .textWrapper {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.heroSection .textWrapper span {
    color: #fff !important;
}

.heroSection .textWrapper span span {
    color: var(--primary-color) !important;
}

/* Hero mobile simplification */
@media screen and (max-width: 991px) {
    .heroSection {
        background: #0B0F19 !important;
    }

    .heroSection::after {
        background: radial-gradient(ellipse at 50% 20%, rgba(22, 238, 202, 0.06), transparent 50%);
    }
}

/* ============================================================
   3. FEATURES GRID — Light bg, Modern Cards
   ============================================================ */
.features {
    background-color: #f8fafc;
    padding-top: 20px;
}

.features .card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    padding: 20px 28px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    background: #fff !important;
}

.features .card::before {
    width: 4px !important;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.features .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(22, 238, 202, 0.08);
    border-color: rgba(22, 238, 202, 0.25) !important;
}

.features .card:hover::before {
    opacity: 1;
    width: 5px !important;
}

.features .card span {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

/* ============================================================
   4. SCHOOL LOGOS — Cleaner treatment
   ============================================================ */
.swiperSect {
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.swiperSect .card {
    transition: all 0.3s ease;
}

.swiperSect .card:hover {
    transform: scale(1.02);
}

/* ============================================================
   5. FEATURE DETAIL TABS — Smooth transitions
   ============================================================ */
.tabsContainer .tab {
    border-radius: 12px !important;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.tabsContainer .tab:hover {
    background-color: rgba(22, 238, 202, 0.05) !important;
}

.tabsContainer .tabs .active {
    background-color: rgba(22, 238, 202, 0.06) !important;
    border-left: 3px solid var(--primary-color) !important;
}

.tabsContainer .tabs .active::after {
    background-color: var(--primary-color) !important;
}

/* Smooth content transition */
.tabsContainer .content {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tabsContainer .content.active {
    opacity: 1;
}

/* Feature images treatment */
.tabsContainer .content img,
.studyManagement .content img {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Even section bg */
.right-feature-section,
.studyManagement {
    background-color: #f8fafc !important;
}

/* ============================================================
   6. ABOUT US / WHY BEST — Gradient accent
   ============================================================ */
.whyBest .whyBestTextWrapper::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)) !important;
    width: 4px !important;
    border-radius: 4px;
}

.whyBest img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.whyBest img:hover {
    transform: scale(1.02);
}

.whyBest .listWrapper span {
    transition: transform 0.2s ease;
}

.whyBest .listWrapper span:hover {
    transform: translateX(4px);
}

[dir="rtl"] .whyBest .listWrapper span:hover {
    transform: translateX(-4px);
}

/* ============================================================
   7. PRICING — Modernized cards
   ============================================================ */
.pricing {
    background-color: #f8fafc !important;
}

.pricing .pricingBox {
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.pricing .pricingBox:hover {
    transform: translateY(-6px);
    border-color: transparent !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

.pricing .premium {
    background: linear-gradient(135deg, rgba(22, 238, 202, 0.06), rgba(33, 86, 121, 0.06)) !important;
    border: 1.5px solid rgba(22, 238, 202, 0.15) !important;
}

.pricing .premium:hover {
    box-shadow: 0 20px 50px rgba(22, 238, 202, 0.12) !important;
}

.pricing .pricingBtn {
    border-radius: 50px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing .pricingBox:hover .pricingBtn {
    box-shadow: 0 4px 20px rgba(33, 86, 121, 0.2);
}

.pricing .owl-carousel button.owl-dot {
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.pricing .owl-carousel button.owl-dot.active {
    background: var(--primary-color) !important;
}

.pricing .pricingBox .badge {
    clip-path: none !important;
    right: 0px !important;
    top: 0px !important;
    border-radius: 0 20px 0 12px !important;
    font-weight: 600;
    font-size: 14px !important;
    padding: 6px 16px;
    height: auto !important;
    width: auto !important;
}

/* ============================================================
   8. CUSTOM PACKAGE CTA — Gradient enhancement
   ============================================================ */
.customPack .row {
    border-radius: 24px !important;
}

.customPack .commonBtn {
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.customPack .commonBtn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15) !important;
}

/* ============================================================
   9. FAQS — Rounded accordion
   ============================================================ */
.faqs .accordion-item {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    margin: 14px 0px !important;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faqs .accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faqs .accordion-button {
    border-radius: 14px !important;
    padding: 18px 24px;
}

.faqs .accordion-button:not(.collapsed) {
    border-radius: 14px 14px 0 0 !important;
}

.faqs .accordion-button span {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

/* ============================================================
   10. CONTACT FORM — Modern inputs
   ============================================================ */
.getInTouch {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9) !important;
}

.getInTouch input,
.getInTouch textarea {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 14px 16px !important;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    background: #fff;
}

.getInTouch input:focus,
.getInTouch textarea:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(22, 238, 202, 0.1);
}

.getInTouch .card {
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.getInTouch .infoWrapper {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.getInTouch .infoWrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

.getInTouch .infoWrapper .icon {
    border-radius: 14px !important;
}

.getInTouch .commonBtn {
    border-radius: 12px !important;
}

/* Subdue old decorative images */
.getInTouch .dots {
    opacity: 0.3;
}

.getInTouch .lineCircle {
    opacity: 0.3;
}

/* ============================================================
   11. DOWNLOAD APP — Float animation + shadow
   ============================================================ */
.ourApp .ourAppImg {
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    animation: floatApp 4s ease-in-out infinite;
}

@keyframes floatApp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.ourApp .text .title {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.ourApp .storeImgs a img {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.ourApp .storeImgs a img:hover {
    transform: translateY(-3px);
}

.student-web-btn {
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.student-web-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   12. FOOTER — Dark theme
   ============================================================ */
footer {
    background: #0B0F19 !important;
    padding: 60px 0px 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer .companyInfoWrapper .commonDesc,
footer .companyInfoWrapper span {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer .linksWrapper .title {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-bottom: 8px;
}

footer .linksWrapper span,
footer .linksWrapper span a {
    color: rgba(255, 255, 255, 0.55) !important;
    transition: color 0.2s ease;
    font-weight: 400;
}

footer .linksWrapper span a:hover {
    color: var(--primary-color) !important;
}

footer .iconsWrapper a span {
    color: rgba(255, 255, 255, 0.55) !important;
}

footer .iconsWrapper a:hover span {
    color: var(--primary-color) !important;
}

footer .iconsWrapper img {
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: all 0.3s ease;
}

footer .iconsWrapper a:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin: 30px 0 20px !important;
}

footer .copyright,
footer .copyright span,
footer .footer-text {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Footer logo — ensure visibility on dark bg */
footer .logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ============================================================
   13. REGISTRATION MODAL — Fix button + modern inputs
   ============================================================ */
.formModal .commonBtn.btn-primary,
.formModal input[type="submit"].commonBtn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 20px rgba(22, 238, 202, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
}

.formModal .commonBtn.btn-primary:hover,
.formModal input[type="submit"].commonBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(22, 238, 202, 0.3);
}

.formModal .rightSide .formWrapper .inputWrapper input,
.formModal .rightSide .formWrapper .form-control {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    transition: all 0.25s ease;
}

.formModal .rightSide .formWrapper .inputWrapper input:focus,
.formModal .rightSide .formWrapper .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(22, 238, 202, 0.1) !important;
}

.formModal .rightSide {
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.formModal .rightSide .headingWrapper span::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
}

/* ============================================================
   SMOOTH SCROLL
   ============================================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================================
   COMMON MARGINS — Slightly more breathing room
   ============================================================ */
.commonMT {
    margin-top: 100px;
}

@media screen and (max-width: 767px) {
    .commonMT {
        margin-top: 50px;
    }
}

/* ============================================================
   COUNTER SECTION — Modern treatment
   ============================================================ */
.counterSect .card div:first-child span {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* ============================================================
   SELECTION COLOR
   ============================================================ */
::selection {
    background: rgba(22, 238, 202, 0.2);
    color: #0B0F19;
}

/* ============================================================
   SCROLLBAR — Subtle
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
