/* ============================================================
   base.css — shared site chrome (StudyXperts)
   Top info bar · main header / navigation · dropdowns ·
   mobile menu · floating WhatsApp button · site footer.

   This sheet is the canonical home of the shared layout styles.
   Page-specific sheets (Home.css, Stylee.css, ...) keep their own
   page styles only.
   ============================================================ */

/* Box model: apply border-box everywhere. Page sheets keep their
   own margin/padding resets, so those are not duplicated here. */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-dark-blue: #010a26;
    --brand-blue: #0b1a4a;
    --brand-red: #c91818;
    --text-dark: #1e293b;
    --white: #ffffff;
    --border-capsule: #cbd5e1;
    --pill-active-bg: #fee2e2;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    background-color: #f8fafc;
}

html {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar { width: 0px; background: transparent; }

/* --- TOP INFORMATION BAR --- */
.top-bar {
    background-color: #0d1b41;
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.contact-info a,
.contact-info span {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 13px;
}

.contact-info a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--brand-red);
    transform: translateY(-2px);
}

/* --- MAIN HEADER & NAVIGATION --- */
.main-header {
    background-color: var(--white);
    padding: 16px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 1002;
    overflow: visible;
}

.header-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    overflow: visible;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.custom-picture-logo {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

/* Scoped to the navbar so page-specific `.logo-text` rules
   (e.g. eligibility's white form-panel brand) are not overridden. */
.brand-logo-link .logo-text {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 25px;
    font-weight: 700;
    color: #0b2240;
    letter-spacing: -1.4px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
}

.brand-logo-link .logo-text .highlight {
    font-family: 'Lora', 'Georgia', serif;
    color: #c91818;
    font-weight: 700;
}

.brand-logo-link:hover .custom-picture-logo {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-capsule);
    border-radius: 40px;
    padding: 4px 6px;
    background-color: var(--white);
    flex-shrink: 1;
    min-width: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link i {
    font-size: 10px;
    margin-top: 1px;
    transition: transform 0.2s ease;
}

.nav-item.active .nav-link {
    background-color: var(--pill-active-bg);
    color: var(--brand-red);
}

.nav-item:not(.active) .nav-link:hover {
    color: var(--brand-red);
}

/* --- DROPDOWN MENUS --- */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--white);
    min-width: 210px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-panel a:hover {
    background-color: #f8fafc;
    color: var(--brand-red);
}

.dropdown-panel a.active-dropdown-link {
    color: var(--brand-red);
    font-weight: 700;
}

@media (min-width: 1024px) {
    .nav-item.dropdown:hover .dropdown-panel {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
    .nav-item.dropdown:hover .nav-link i {
        transform: rotate(180deg);
    }
}

/* --- CTA WRAPPER --- */
.cta-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* --- CALL TO ACTION BUTTON --- */
.btn-cta {
text-decoration: none;
background-color: var(--brand-red);
color: var(--white);
padding: 12px 26px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
display: inline-block;
transition: background-color 0.2s ease;
}
/* HIGH: Increase touch target for accessibility - min 44px height */
.btn-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta:hover {
    background-color: #a71212;
}

/* --- MOBILE NAVIGATION TOGGLE --- */
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--brand-blue, #0b1a4a);
    cursor: pointer;
}

.menu-toggle-btn .close-icon { display: none; }

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(1, 10, 38, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* On mobile the dropdowns become accordions. The base `.dropdown-panel`
   transform is neutralized by this later rule (no !important needed). */
@media (max-width: 1024px) {
    .menu-toggle-btn {
        display: block;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0;
        border: none;
        border-right: 1px solid #e2e8f0;
        padding: 90px 24px 30px 24px;
        gap: 8px;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.06);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }
    .nav-menu.mobile-open { left: 0; }
    .nav-item { width: 100%; }
    .nav-link { width: 100%; padding: 12px 20px; border-radius: 8px; justify-content: space-between; }
    .dropdown-panel {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 15px;
        display: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
    }
    .nav-item.dropdown-active .dropdown-panel { display: block; }
    .nav-item.dropdown-active .nav-link i { transform: rotate(180deg); }
    .menu-toggle-btn.active .open-icon { display: none; }
    .menu-toggle-btn.active .close-icon { display: block; color: var(--brand-red, #c91818); }
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    z-index: 1005;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #ffffff;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 16px;
        right: 16px;
    }
}

/* --- SITE FOOTER --- */
.site-footer {
    background-color: var(--navy-dark-blue);
    padding: 60px 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1fr 1.2fr;
    gap: 24px;
    padding-bottom: 40px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand-logo .brand-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-brand-logo span {
    font-size: 16px;
    font-weight: 800;
    color: #d9d6d6;
}

.footer-brand-logo span .highlight {
    color: var(--brand-red);
}

.footer-col p {
    color: #d9d6d6;
    font-size: 11.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    background-color: var(--brand-red);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #d9d6d6;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: #d9d6d6;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--brand-red);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact-item i {
    color: var(--brand-red);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item span,
.footer-contact-item a {
    color: #d9d6d6;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.footer-subscribe-box {
    background-color: #0f1c3f;
    border-radius: 12px;
    padding: 20px;
}

.footer-subscribe-box h4 {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-subscribe-form {
    display: flex;
    margin-bottom: 14px;
    border-radius: 6px;
    overflow: hidden;
}

.footer-subscribe-form input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 12px;
    background-color: #ffffff;
    color: #1e293b;
    outline: none;
}

.footer-subscribe-form input::placeholder {
    color: #64748b;
}

.footer-subscribe-form button {
    background-color: var(--brand-red);
    border: none;
    color: #d5d3d3;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.footer-subscribe-form button:hover {
    background-color: #a71212;
}

.footer-subscribe-box p {
    color: #d9d6d6;
    font-size: 11.5px;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom-bar p {
    color: #64748B;
    font-size: 11.5px;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 1024px) {
    .nav-link {
        padding: 10px 10px;
        font-size: 13.5px;
    }
    .brand-logo-link .logo-text {
        font-size: 22px;
    }
    .cta-wrapper .btn-cta {
        padding: 10px 18px;
        font-size: 13px;
    }
    .contact-info {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
    }
    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
        font-size: 12px;
    }
    .social-links {
        gap: 10px;
    }
    .nav-link {
        padding: 10px 8px;
        font-size: 12.5px;
    }
    .brand-logo-link .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        font-size: 11px;
        gap: 4px 12px;
    }

    .social-links {
        gap: 10px;
    }

    .header-container {
        width: 100%;
        padding: 0 12px;
    }

    .brand-logo-link {
        gap: 8px;
    }

    .brand-logo-link .logo-text {
        font-size: 18px;
        letter-spacing: -1px;
    }

    .custom-picture-logo {
        height: 36px;
        width: 36px;
    }

.btn-cta {
padding: 10px 14px;
font-size: 12px;
min-height: 44px;
}

    .site-footer {
        padding: 40px 20px 0;
    }

    .top-bar {
        padding: 8px 0;
        font-size: 11px;
    }

    .contact-info a,
    .contact-info span {
        font-size: 11px;
    }

    .footer-col h4 {
        font-size: 12.5px;
        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-col ul a,
    .footer-contact-item span,
    .footer-contact-item a {
        font-size: 11px;
    }

    .footer-subscribe-box {
        padding: 16px;
    }

    .footer-subscribe-form input {
        padding: 8px 12px;
        font-size: 11px;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .top-bar {
        padding: 6px 0;
        font-size: 10px;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 4px;
    }

    .contact-info {
        gap: 4px 8px;
    }

    .contact-info a,
    .contact-info span {
        font-size: 10px;
        gap: 4px;
    }

    .header-container {
        padding: 0 10px;
    }

    .brand-logo-link .logo-text {
        font-size: 16px;
        letter-spacing: -0.8px;
    }

    .custom-picture-logo {
        height: 32px;
        width: 32px;
    }

    .brand-logo-link {
        gap: 6px;
    }

    .btn-cta {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 40px;
    }

    .nav-link {
        padding: 8px 6px;
        font-size: 11px;
    }

    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 22px;
        bottom: 14px;
        right: 14px;
    }

    .site-footer {
        padding: 30px 16px 0;
    }

    .footer-container {
        gap: 20px;
        padding-bottom: 30px;
    }

    .footer-col h4 {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-col p,
    .footer-col ul a,
    .footer-contact-item span,
    .footer-contact-item a {
        font-size: 10.5px;
    }

    .footer-subscribe-box {
        padding: 14px;
        border-radius: 8px;
    }

    .footer-subscribe-form input {
        padding: 8px 10px;
        font-size: 10px;
    }

    .footer-subscribe-form button {
        width: 36px;
        font-size: 12px;
    }

    .footer-socials {
        gap: 6px;
    }

    .footer-socials a {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }

    .footer-bottom-bar {
        padding: 16px;
        margin-top: 16px;
    }

    .footer-bottom-bar p {
        font-size: 10px;
    }
}
