:root {
    /* Primary Colors */
    --primary-blue: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --bg-dark: #0f172a;
    --bg-darker: #020617;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Spacing & Borders */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --section-padding: 100px 0;
}

/* Base Styles */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
}

/* Fix for horizontal overflow across all pages */
.row {
    margin-right: 0;
    margin-left: 0;
}

.container,
.container-fluid {
    overflow-x: hidden;
    padding-right: 15px;
    padding-left: 15px;
}

.custom-navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Background Circles (Premium Feel) */
.bg-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.circle1 {
    width: 400px;
    height: 400px;
    background: #00d2ff;
    top: -100px;
    left: -100px;
}

.circle2 {
    width: 500px;
    height: 500px;
    background: #3a7bd5;
    bottom: -100px;
    right: -100px;
}

.circle3 {
    width: 300px;
    height: 300px;
    background: #2563eb;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Custom Navbar Styles (Shared) */
.custom-navbar {
    background: #ffffff !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 15px 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.logo-img {
    height: 65px;
    /* Increased from 50px */
    width: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    border-radius: 8px;
    /* Subtle rounding if the img has sharp corners */
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 15px rgba(37, 99, 235, 0.15));
}

.nav-link {
    color: #1e293b !important;
    /* Dark Slate for visibility on white */
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Hamburger Toggler */
.navbar-toggler {
    border: 2px solid rgba(37, 99, 235, 0.3);
    padding: 6px 10px;
    border-radius: 8px;
    z-index: 1100;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e293b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 10px 0;
    }

    .logo-img {
        height: 45px;
    }

    .navbar-collapse {
        background: #ffffff;
        border-radius: 0 0 16px 16px;
        padding: 15px 20px;
        margin-top: 10px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-item:last-child .nav-link,
    .navbar-nav .nav-item:last-child .apply-btn {
        border-bottom: none;
    }

    .navbar-nav .apply-btn {
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }
}

.apply-btn {
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 50px;
    padding: 12px 28px;
    border: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3);
}

/* Section Shared Styles */
.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    -webkit-text-fill-color: initial !important;
}

.section-text {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 4px;
}

/* Footer Shared Styles */
.footer {
    background: var(--bg-darker);
    padding: 70px 0 36px;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    max-height: 85px;
    /* Increased from 60px */
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.03);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.copyright-text {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Animations */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* ══════════════════════════════════════════
   MOBILE FOOTER — Professional Compact Layout
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Reset the 3-col grid to a compact single-column */
    .footer {
        padding: 36px 0 20px;
    }

    .footer .row.g-5 {
        --bs-gutter-y: 0 !important;
        gap: 0 !important;
        flex-direction: column;
        align-items: center;
    }

    /* Hide: brand description text (col 1) */
    .footer .col-lg-4:first-child p.text-secondary {
        display: none;
    }

    /* Hide: entire Quick Links column (redundant — hamburger nav covers it) */
    .footer .col-lg-4:nth-child(2) {
        display: none !important;
    }

    /* Hide: "Join Our Journey" heading + tagline text (col 3) */
    .footer .col-lg-4:nth-child(3) h4.footer-title,
    .footer .col-lg-4:nth-child(3) p.text-secondary {
        display: none;
    }

    /* All cols: full width and centered */
    .footer .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-bottom: 0 !important;
    }

    /* Logo: compact */
    .footer-logo {
        max-height: 52px;
        margin-bottom: 16px !important;
    }

    /* ── Horizontal Quick Nav Pills ── */
    /* Inject a horizontal nav bar for mobile via CSS generated from footer-nav links */
    .footer .col-lg-4:nth-child(2) {
        display: none !important;
    }

    /* CTA Button: full width, prominent */
    .footer .col-lg-4:nth-child(3) .btn.apply-btn {
        display: block;
        width: calc(100% - 32px);
        margin: 0 16px 20px;
        padding: 13px 0;
        font-size: 15px;
        font-weight: 700;
        border-radius: 14px;
        text-align: center;
    }

    /* Social Icons: centered in a tighter row */
    .footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 0;
    }

    .footer .social-icons a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(37, 99, 235, 0.08);
        border: 1px solid rgba(37, 99, 235, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.3s ease;
        margin-right: 0;
    }

    .footer .social-icons a:hover {
        background: var(--primary-blue);
        color: #fff;
        border-color: var(--primary-blue);
        transform: translateY(-2px);
    }

    /* Copyright strip: compact */
    .copyright-text {
        margin-top: 20px;
        padding-top: 16px;
        font-size: 0.78rem;
        text-align: center;
        color: var(--text-muted);
    }
}

/* ── Mobile Responsive (shared sections) ── */
@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }

    .footer-logo {
        max-height: 48px;
    }

    .apply-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 48px 0;
    }

    .section-text {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .footer {
        padding: 28px 0 16px;
    }

    .logo-img {
        height: 40px;
    }

    .copyright-text {
        font-size: 0.73rem;
    }
}