/* PREMIUM YELLOW DESIGN SYSTEM */
:root {
    /* Premium Warm Yellow Theme */
    --brand: #f59e0b;
    /* Premium Amber/Gold */
    --brand-dark: #d97706;
    /* Deeper Amber */
    --brand-light: #fffbeb;
    /* Very soft warm white */
    --brand-glow: rgba(245, 158, 11, 0.4);

    --accent: #14b8a6;
    /* Modern Teal (keeps specific contrast) */
    --accent-dark: #0f766e;

    --text-dark: #1e293b;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */

    --bg-white: #ffffff;
    --bg-section-1: #fffaf0;
    /* Warm Cream */
    --bg-section-2: #f0fdf4;
    /* Minty White (matched with teal) */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-brand: 0 10px 25px -5px rgba(245, 158, 11, 0.3);

    --radius-btn: 16px;
    /* Modern rounded, not pill */
    --radius-card: 1.5rem;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* UTILITIES */
.text-brand {
    color: var(--brand) !important;
}

.bg-brand {
    background-color: var(--brand) !important;
}



.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-section-1 {
    background-color: var(--bg-section-1);
}

.bg-section-2 {
    background-color: var(--bg-section-2);
}

.rounded-4 {
    border-radius: var(--radius-card) !important;
}

.shadow-brand {
    box-shadow: var(--shadow-brand) !important;
}

/* 3D BACKGROUND BLOB ANIMATION */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
    background: radial-gradient(circle at top right, #fffbeb, transparent 50%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.25;
    border-radius: 50%;
    animation: floatBlob 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    background: #fcd34d;
    top: -10%;
    right: -15%;
}

/* Soft Yellow */
.blob-2 {
    width: 45vw;
    height: 45vw;
    background: #fbbf24;
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

/* Amber */
.blob-3 {
    width: 35vw;
    height: 35vw;
    background: #99f6e4;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    opacity: 0.15;
}

/* Soft Teal */

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.05);
    }
}

/* NAVBAR */
#mainNav {
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    padding: 0.75rem 0;
}

#mainNav.scrolled .navbar-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent) !important;
    /* Teal */
    background: rgba(20, 184, 166, 0.05);
    border-radius: 50px;
}

.nav-link::after {
    display: none;
    /* Remove old underline */
}

/* REDESIGNED BUTTONS - Clean & Premium */
.btn {
    border-radius: var(--radius-btn);
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

/* Primary CTA (Solid Gradient + Inner Highlight) */
.btn-brand {
    position: relative;
    background: linear-gradient(to bottom, #fbbf24, #d97706);
    /* Warm Yellow to Amber */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-btn);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(217, 119, 6, 0.3);
    /* Inner highlight + drop shadow */
    font-weight: 700;
    text-transform: capitalize;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.btn-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px rgba(217, 119, 6, 0.4);
    filter: brightness(1.05);
    color: #fff;
}

.btn-brand:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(217, 119, 6, 0.2);
}

/* Secondary CTA (Gradient Border + Soft Fill) */
.btn-outline-brand {
    position: relative;
    background: #fff;
    color: var(--text-dark);
    font-weight: 700;
    border: 2px solid transparent;
    /* Placeholder for spacing */
    border-radius: var(--radius-btn);
    background-clip: padding-box;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Pseudo-element for Gradient Border */
.btn-outline-brand::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    z-index: -1;
    border-radius: var(--radius-btn);
}

.btn-outline-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: -1;
    border-radius: calc(var(--radius-btn) - 2px);
    transition: background 0.3s ease;
}

.btn-outline-brand:hover {
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-outline-brand:hover::before {
    background: #fffbeb;
    /* Soft warm tint (var(--brand-light)) */
}

.btn-outline-brand:active {
    transform: scale(0.98);
}

.hover-lift:hover {
    transform: none;
}

/* Reset generic lift */

/* HERO */
.hero-section {
    padding-top: 120px;
    min-height: 100vh;
}

.hero-text h1 {
    letter-spacing: -1.5px;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
    /* Fun playful shadow */
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

/* HERO IMAGE ENHANCEMENTS & PRO OUTLINE */
.hero-image-wrapper {
    position: relative;
    padding: 3rem;
    /* Extra space for outline */
}

.hero-image-wrapper img {
    border-radius: 2rem;
    position: relative;
    z-index: 2;
    /* The "Pro" Outline */
    outline: 8px solid rgba(245, 158, 11, 0.1);
    outline-offset: 15px;
    box-shadow:
        0 0 0 1px var(--brand),
        /* Tight border */
        0 20px 50px rgba(0, 0, 0, 0.1),
        /* Soft drop shadow */
        0 0 40px rgba(245, 158, 11, 0.2);
    /* Outer glow */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image-wrapper:hover img {
    outline: 12px solid rgba(20, 184, 166, 0.15);
    /* Changes to Teal tint */
    outline-offset: 25px;
    transform: scale(1.02) translateY(-10px);
    box-shadow:
        0 0 0 2px var(--accent),
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(20, 184, 166, 0.3);
}

.hero-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 75%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

/* Floating Educational Icons */
.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: floatIcon 6s infinite ease-in-out;
}

.floating-icon.icon-1 {
    top: 0%;
    left: 0%;
    animation-delay: 0s;
    color: var(--brand);
}

.floating-icon.icon-2 {
    top: 15%;
    right: 5%;
    animation-delay: 1.5s;
    color: var(--accent);
}

.floating-icon.icon-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 3s;
    color: #f43f5e;
}

.floating-icon.icon-4 {
    bottom: 20%;
    right: 0%;
    animation-delay: 4.5s;
    color: #8b5cf6;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* PARALLAX EFFECT CLASS (Controlled by JS) */
.parallax-layer {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

@keyframes hovering {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

/* Desktop Navbar Polish */
@media (min-width: 992px) {
    #mainNav .navbar-nav .nav-link {
        margin: 0 5px;
        padding: 0.5rem 1.25rem !important;
        font-weight: 700;
        letter-spacing: -0.2px;
    }

    #mainNav.scrolled .nav-link {
        color: var(--text-dark) !important;
    }
}

/* CARDS & FEATURES */
.section-padding {
    padding: 6rem 0;
}

.divider {
    height: 6px;
    width: 80px;
    background: linear-gradient(to right, var(--brand), var(--accent));
    border-radius: 3px;
    margin-bottom: 2rem;
}

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: transparent;
}

/* Playful Icons */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.bg-light-1 {
    background: #ffeaa7;
    color: #d35400;
}

/* Yellow/Orange */
.bg-light-2 {
    background: #81ecec;
    color: #00897b;
}

/* Teal */
.bg-light-3 {
    background: #fab1a0;
    color: #c0392b;
}

/* Coral */
.bg-light-4 {
    background: #74b9ff;
    color: #2980b9;
}

/* Blue */

/* SUBJECT GRID */
.course-card {
    height: 280px;
    background: #fff;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 10%, transparent 60%);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.course-card:hover .course-img {
    transform: scale(1.15);
}

.course-card:hover .course-overlay {
    opacity: 1;
    background: linear-gradient(to top, var(--brand) 0%, rgba(255, 107, 107, 0.4) 100%);
}

/* Text Links in Cards (Idea #5 - Animated Underline) */
.course-card .nav-link {
    display: inline-flex;
    /* Fix alignment */
    align-items: center;
    padding: 0 !important;
    /* Reset padding */
    background: transparent !important;
    /* Remove any pill bg */
    color: #fff !important;
    position: relative;
    text-decoration: none;
}

.course-card .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    /* Center start */
    width: 0;
    height: 2px;
    background: #fff;
    /* White underline for visibility on dark overlay */
    transition: width 0.3s ease;
    display: block !important;
    /* Force display override */
    border-radius: 2px;
}

.course-card .nav-link:hover::after {
    width: 100%;
    /* Expand from center */
}

.course-card .nav-link:hover i {
    transform: translateX(4px);
    /* Shift icon */
    transition: transform 0.3s ease;
}

/* PATHWAY STEPPER (Revamp) */
.pathway-line {
    display: none;
    /* Removed as requested */
    z-index: 1;
    position: relative;
    border: 2px solid transparent;
    transition: 0.3s;
}

/* PATHWAY STEPPER (Revamp) */
.pathway-line {
    display: none;
    /* Removed as requested */
}

.step-card {
    z-index: 1;
    position: relative;
    background: transparent;
    /* Removed white box */
    border: none;
    box-shadow: none !important;
    text-align: center;
    transition: 0.3s;
}

.step-icon {
    width: 70px;
    /* Larger */
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    background: #fff;
    color: var(--brand);
    border: 3px solid var(--brand);
    box-shadow: 0 0 0 8px var(--bg-section-1);
    /* Matches bg to fake gap */
    margin: 0 auto 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-icon {
    transform: scale(1.15) rotate(10deg);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

.step-card h5 {
    font-weight: 800;
    color: var(--text-dark);
}

/* Number Badge on Icon */
.step-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Specific Colors per step */
.col-lg-3:nth-child(2) .step-icon {
    border-color: #f59e0b;
}

.col-lg-3:nth-child(3) .step-icon {
    border-color: #14b8a6;
}

.col-lg-3:nth-child(4) .step-icon {
    border-color: #f43f5e;
}

.col-lg-3:nth-child(5) .step-icon {
    border-color: #8b5cf6;
}

/* PRICING */
.pricing-card {
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--text-dark) !important;
    /* Bold border match */
    background: #fff;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.05) !important;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.05) !important;
}

.pricing-card.scale-up {
    transform: scale(1.05);
    z-index: 2;
    border: 3px solid var(--brand) !important;
    box-shadow: 15px 15px 0 rgba(245, 158, 11, 0.15) !important;
}

.bg-pop {
    background-color: #ff9f43;
}

/* Pop Orange */

/* ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Fades */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {

    *,
    .blob {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .pricing-card.scale-up {
        transform: none;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .pathway-line {
        display: none;
    }

    .navbar-container {
        background: white;
        margin: 0 10px;
        position: relative;
        z-index: 1050;
        /* Lower than offcanvas (1080) */
    }

    .navbar-toggler {
        z-index: 1060;
    }

    /* Mobile Alignment Fix for Hero Buttons */
    .hero-text .d-flex {
        justify-content: center !important;
    }
}

/* CHATBOT WIDGET */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 60px;
    width: 60px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chatbot-toggler:hover {
    transform: scale(1.1);
}

.chatbot-toggler span {
    color: #fff;
    position: absolute;
}

.chatbot-toggler span:last-child,
.show-chatbot .chatbot-toggler span:first-child {
    opacity: 0;
}

.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot {
    position: fixed;
    right: 35px;
    bottom: 100px;
    width: 350px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    z-index: 999;
}

.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.source-mark {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
}

.chatbot header span {
    position: absolute;
    right: 15px;
    top: 50%;
    display: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.chatbot .chatbox {
    overflow-y: auto;
    height: 300px;
    padding: 20px 20px 30px;
}

.chatbot .chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
}

.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
}

.chat-input span {
    align-self: flex-end;
    color: var(--brand);
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the icon horizontally */
    visibility: hidden;
    font-size: 1.35rem;
    width: 40px;
    /* Give it some width */
}

.chat-input textarea:valid~span {
    visibility: visible;
}

@media (max-width: 490px) {
    .chatbot {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }

    .chatbot .chatbox {
        height: 90%;
        padding: 25px 15px 100px;
    }

    .chatbot .chat-input {
        padding: 5px 15px;
    }

    .chatbot header span {
        display: block;
    }
}

/* Chatbox Messages */
.chatbox .chat {
    display: flex;
    list-style: none;
}

.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}

.chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: var(--brand);
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatbox .chat p {
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    font-size: 0.95rem;
    background: var(--brand);
}

.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
    color: #000;
    background: #f2f2f2;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent) !important;
    /* Teal as requested */
    background: rgba(20, 184, 166, 0.05);
    /* Subtle teal tint */
    border-radius: 50px;
}

/* FOOTER (Premium Light Theme) */
footer {
    background-color: #fff8e1 !important;
    /* Very soft cream/yellow tint */
    color: var(--text-dark) !important;
    border-top: 4px solid var(--brand) !important;
}

footer .text-muted {
    color: #64748b !important;
}

footer .text-brand {
    color: var(--brand-dark) !important;
}

footer h5,
footer h6 {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
}

footer a.text-muted:hover {
    color: var(--brand) !important;
    text-decoration: underline !important;
}

footer .btn-light {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--brand-glow);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

footer .btn-light:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    transform: translateY(-2px);
}

/* MOBILE NAVBAR (Structural Fix) */
@media (max-width: 991px) {
    .offcanvas {
        z-index: 1080 !important;
        background-color: #ffffff !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        border: none !important;
    }

    .offcanvas-backdrop {
        z-index: 1070 !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
    }

    /* Clean Toggler Hiding (Triggered by JS) */
    #mainNav.mobile-nav-open .navbar-toggler {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        transform: scale(0.8);
        transition: all 0.2s ease;
    }

    .offcanvas-header {
        padding: 1.5rem;
        background: #fff;
        border-bottom: 2px solid var(--brand-light);
    }

    .offcanvas-title {
        font-size: 1.6rem;
        color: var(--text-dark);
        letter-spacing: -0.5px;
    }

    .offcanvas-body {
        padding: 2.5rem 1.5rem;
    }

    .nav-link {
        font-size: 1.3rem;
        font-weight: 700;
        padding: 18px 0 !important;
        color: var(--text-dark) !important;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
        transition: all 0.2s ease;
    }

    .nav-link:hover {
        color: var(--brand) !important;
        padding-left: 10px !important;
    }

    .nav-link.active {
        color: var(--accent) !important;
    }

    /* Mobile CTA in Offcanvas */
    .cta-mobile .btn {
        border-radius: var(--radius-btn);
        font-weight: 800;
        box-shadow: var(--shadow-brand);
    }
}

/* BACK TO TOP (Middle Left) */
#backToTop {
    position: fixed;
    top: 50%;
    /* Middle of screen */
    left: 20px;
    right: auto;
    bottom: auto;
    /* Reset bottom */
    width: 45px;
    height: 45px;
    background: #fff;
    color: var(--brand);
    border: 2px solid var(--brand);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-20px);
    /* Center vertical + hide offset */
    border-radius: 50%;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

#backToTop:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* LOGO STYLES */
.nav-logo {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 50px;
    /* Adjusted for icon-style logo */
    width: auto;
    filter: none;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 991px) {
    .nav-logo {
        height: 30px;
    }
}