:root {
    --bg-color: #001236;
    --primary-gold: #E2B755;
    --text-dark: #000330;
    --white: #ffffff;
    --gradient-gold: linear-gradient(-90deg,
            #D6A94C 17%,
            /* Deep Bronze Shadow */
            #f7ECAD 53%,
            /* Polished Gold */
            #CE9F46 98%
            /* Mid-Tone Luster */
        );
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* This is the nuclear option to kill the horizontal scroll */
    position: relative;
}

* {
    max-width: 100%;
    /* Ensures no specific width pushes the container */
}

body {
    background-color: var(--bg-color);
    color: var(--white);
    overflow-x: hidden;
}

/* Specific Fix for the TradingView Widget */
.tradingview-widget-wrapper {
    width: 100%;
    background-color: #ffffff;
    /* Match the light theme of your widget */
    height: 46px;
    /* Standard height for the ticker widget */
    overflow: visible !important;
    position: relative;
    z-index: 1001;
    /* Ensure it stays above other elements */
}

.tradingview-widget-container {
    width: 100%;
    height: 100%;
}



/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 8% 60px;
    background-image: radial-gradient(circle at 90% 20%, rgba(226, 183, 85, 0.08) 0%, transparent 40%);
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.gold-text {
    font-size: clamp(32px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: #b0b8c4;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

/* --- Buttons --- */
.btn {
    padding: 15px 30px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    text-align: center;
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--text-dark);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(226, 183, 85, 0.3);
}

.btn-outline {
    border: 1.5px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(226, 183, 85, 0.1);
}

/*==============================================
2nd section
============================================== */

/* About Section Styles */
.about-section {
    padding: 80px 8%;
    background-color: #ffffff;
    /* White background as per design */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
}

/* Image Styling */
.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    /* Matching the rounded corners in the image */
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Content Styling */
.about-content {
    flex: 1;
}

.about-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: #000330;
    /* Dark navy color from your theme */
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.about-text {
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.6;
    color: #444;
    /* Slightly softer black for readability */
    margin-bottom: 20px;
}

.about-text strong {
    color: #000330;
    font-weight: 700;
}

/* Reusing your Gold Button Style */
.view-more {
    display: inline-block;
    margin-top: 10px;
    padding: 15px 40px !important;
    text-transform: none;
    border-radius: 8px;
}

/* Helper for the button if not already in your global CSS */
.btn-gold {
    background: linear-gradient(90deg, #CE9F46 0%, #f7ECAD 50%, #D6A94C 100%);
    color: #000330;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-3px);
}




/*==================================================
Mission-vission
===================================================*/


/* Section Wrapper */
.freedom-section {
    background-color: var(--bg-color);
    padding: 80px 8%;
    color: #ffffff;
}

.freedom-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.freedom-title {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(28px, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.freedom-subtitle {
    font-size: clamp(16px, 2vw, 1.1rem);
    opacity: 0.9;
    line-height: 1.6;
}

/* Container and Cards */
.freedom-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.freedom-vission {
    flex: 1;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    /* Soft blue glow border as seen in design */
    transition: transform 0.3s ease;
    padding: 4px;
}

.freedom-card {
    flex: 1;
    background: var(--gradient-gold);
    border-radius: 20px;
    overflow: hidden;
    /* Soft blue glow border as seen in design */
    transition: transform 0.3s ease;
    padding: 4px;
}

.freedom-card:hover {
    transform: translateY(-10px);
}

.freedom-vission:hover {
    transform: translateY(-10px);
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}

.card-body {
    padding: 30px;
    color: #000330;
    /* Dark text for white background */
}

.card-title {
    font-size: clamp(24px, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--bg-color);
}

.card-mission {
    font-size: clamp(24px, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #001236;
}

.card-text {
    font-size: clamp(16px, 2vw, 1.2rem);
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.85;
    color: var(--bg-color);

}




/*==================================================
Core elements
===================================================*/

/* Core Elements Section Base */
.core-elements-section {
    background-color: #000330;
    /* Dark navy background */
    padding: 60px 0 0 0;
    width: 100%;
    overflow: hidden;
}

/* Header Pill Styling */
.core-header-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.core-pill {
    border: 1.5px solid #E2B755;
    border-radius: 50px;
    padding: 10px 40px;
    display: inline-block;
}

.core-pill-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

/* Marquee Gold Bar Styling */
.marquee-wrapper {
    background: var(--gradient-gold);
    padding: 20px 0;
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 5s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.marquee-group span {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 400;
    color: #000330;
    /* Dark text on gold */
    padding: 0 30px;
    font-family: 'Inter', sans-serif;
}

.marquee-group .sep {
    opacity: 0.3;
    font-weight: 300;
    padding: 0;
}

/* Animation Logic */
@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

/* Pause on hover for better UX */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}


/*==================================================
Why choose Gstock
===================================================*/

.why-choose {
    padding: 80px 8%;
    background-color: var(--bg-color);
    text-align: center;
}

.section-title {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: clamp(32px, 4vw, 44px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    position: relative;
    perspective: 1000px;
}

/* The dark background "shadow layer" visible in your design */
.info-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 20px;
    z-index: 1;
    opacity: 0;
    transition: all 0.4s ease;
}

.card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(226, 183, 85, 0.4);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
    height: 100%;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-inner h3 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 15px;
}

.card-inner p {
    color: #b0b8c4;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
}

/* Hover Effects */
.info-card:hover .card-inner {
    background: var(--gradient-gold);
    transform: rotate(-3deg) translateY(-10px);
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.info-card:hover::before {
    opacity: 1;
    transform: translateY(5px) translateX(5px);
}

/* Text color swap for the gold state */
.info-card:hover h3 {
    -webkit-text-fill-color: var(--text-dark) !important;
    color: var(--text-dark) !important;
    background: none;
}

.info-card:hover p {
    color: var(--text-dark) !important;
}


/*==================================================
Mentor section
===================================================*/

.mentor-section {
    padding: 80px 8%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
}

.mentor-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    border: 3px solid var(--primary-gold);
    padding: 50px;
    border-radius: 40px;
    position: relative;
}

/* --- Left Side: Visuals --- */
.mentor-visual {
    flex: 1;
    position: relative;
    height: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mentor-img {
    height: 110%;
    width: auto;
    max-width: 100%;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    object-fit: contain;
}

/* --- Right Side: Content --- */
.mentor-content {
    flex: 1;
}

.mentor-subtitle {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 25px;
}

.mentor-description {
    color: #ffffff;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    margin-bottom: 30px;
}

.mentor-description strong {
    color: var(--white);
    font-weight: 600;
}

.mentor-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: clamp(14px, 1.8vw, 16px);
}

.stat-item span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/*==================================================
CTA section
===================================================*/

/* CTA Section Styles */
.cta-section {
    padding: 80px 8%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
}

.cta-container {
    width: 100%;
    max-width: 1100px;
    background: var(--gradient-gold);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-title {
    color: var(--text-dark);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-subtitle {
    color: var(--text-dark);
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--primary-gold);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 18px);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn:hover {
    transform: scale(1.05);
    background-color: #001a4d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/*==================================================
Footer
===================================================*/

/* Footer Section Base with Split Background */

/* Footer Section Base with Split Background */
.main-footer {
    /* Top 50% is Navy, Bottom 50% is Gold */
    background: linear-gradient(to bottom, #001236 50%, #E2B755 50%);
    padding: 0 5% 20px;
    width: 100%;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* The Navy Inner Card */
.footer-inner-card {
    background-color: #001236;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 60px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    /* Ensure it sits nicely in the middle of the split */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Brand Section */
.footer-brand {
    flex: 1;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
    
}

.social-icons a {
    background: var(--gradient-gold);
     -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 25px;
    opacity: 0.8;
    transition: 0.3s;
}

.social-icons a:hover {
    opacity: 1;
    color: #E2B755;
}

/* Links Columns */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

/* Newsletter */
.footer-newsletter {
    flex: 1.2;
    max-width: 350px;
}

.footer-newsletter p {
    color: #ffffff;
   font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.subscribe-field {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2px;
}

.subscribe-field input {
    background: transparent;
    border: none;
    padding: 12px;
    color: #ffffff;
    width: 100%;
    outline: none;
}

.subscribe-field button {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Copyright Text on Gold Background */
.footer-bottom-text {
    padding-top: 30px;
    color: #000330;
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    text-align: left;
}

/*==================================================
Responsive Design
===================================================*/

/* Tablet Styles */
@media (max-width: 1024px) {
    .freedom-container {
        gap: 30px;
    }

    .mentor-container {
        padding: 40px;
    }

    .footer-inner-card {
        padding: 40px;
        flex-wrap: wrap;
    }

    .footer-newsletter {
        min-width: 100%;
        margin-top: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {


    /* Hero Section */
    .hero {
        text-align: left;
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: none;
        text-align: center;
        box-sizing: border-box;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        gap: 40px;
    }

    .about-section {
        padding: 60px 5%;
    }

    /* Freedom Section */
    .freedom-container {
        flex-direction: column;
        gap: 40px;
    }

    .freedom-section {
        padding: 60px 5%;
    }

    .freedom-title {
        text-align: left;
    }

    .freedom-subtitle {
        text-align: left;
    }

    .card-image img {
        height: 200px;
    }

    .card-body {
        padding: 25px 20px;
    }

    /* Core Elements */
    .core-pill {
        padding: 8px 25px;
    }

    .core-pill-text {
        font-size: 18px;
    }

    .marquee-group span {
        font-size: 16px;
        padding: 0 15px;
    }

    .marquee-wrapper {
        padding: 15px 0;
    }

    /* Why Choose Section */
    .card-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 30px;
    }

    .info-card:hover .card-inner {
        transform: rotate(0deg) translateY(-10px);
    }

    .why-choose {
        padding: 60px 5%;
    }

    /* Mentor Section */
    .mentor-container {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 30px;
    }

    .mentor-visual {
        width: 100%;
        height: 350px;
        margin-bottom: 0;
    }

    .mentor-section {
        padding: 60px 5%;
    }

    /* CTA Section */
    .cta-container {
        padding: 40px 20px;
        border-radius: 25px;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-section {
        padding: 60px 5%;
    }

    /* Footer */
    .main-footer {
        background: linear-gradient(to bottom, #001236 30%, #E2B755 30%);
    }

    .footer-inner-card {
        flex-direction: column;
        gap: 40px;
        border-radius: 30px;
        text-align: center;
        padding: 40px 25px;
    }

    .footer-brand,
    .social-icons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        flex-direction: row;
        justify-content: center;
    }

    .footer-links {
        width: 100%;
        align-items: center;
    }

    .subscribe-field {
        max-width: 100%;
    }

    .footer-bottom-text {
        text-align: center;
    }

    .mentor-section h2,
    .mentor-section p {
        text-align: left;
    }

    .mentor-section h2 {
        font-size: 1.5rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .gold-text {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .about-title {
        font-size: 24px;
    }

    .about-text {
        font-size: 16px;
    }

    .freedom-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .mentor-subtitle {
        font-size: 22px;
    }

    .cta-title {
        font-size: 24px;
    }

    .card-inner {
        padding: 30px 20px;
    }

    .mentor-img {
        height: 100%;
    }
}


/* --- Scroll Reveal Base Styles --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Fade Up (for headings and text) */
.reveal-up {
    transform: translateY(40px);
}

/* Fade Left (for images on the left) */
.reveal-left {
    transform: translateX(-50px);
}

/* Fade Right (for images on the right) */
.reveal-right {
    transform: translateX(50px);
}

/* Scale In (for cards and containers) */
.reveal-scale {
    transform: scale(0.92);
}

/* Active Class - This is what the JS triggers */
.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Staggering Delays for Grids (Card 1, Card 2, etc.) */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Adjustments for existing layouts to ensure smoothness */
.info-card,
.freedom-vission,
.freedom-card,
.stat-item {
    transition: transform 0.4s ease, opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}


/* --- ULTIMATE FIXED BOTTOM TICKER --- */
.tradingview-widget-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    /* This kills the 37rem issue */
    width: 100% !important;
    height: 46px !important;
    z-index: 99999 !important;
    /* Higher than everything else */
    background-color: #001236 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    /* Removes weird spacing */
}

/* Ensure the widget inside is visible */
.tradingview-widget-container {
    width: 100% !important;
    height: 46px !important;
}

/* Fix for Mobile: ensuring it doesn't jump */
@media (max-width: 768px) {
    .tradingview-widget-wrapper {
        bottom: 1.5rem !important;
        position: fixed !important;
    }
}

/* Floating Icon */
#wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    color: white;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

#wa-float a {
    text-decoration: none;
    color: white;
    display: flex;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-gold);
}

.btn-join {
    background: var(--gradient-gold);
    color: var(--text-dark);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 2px;
}

/* ==========================================
Responsive Breakpoints
=========================================== */

/* Tablet Adjustment */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 4%;
    }

}

/* Mobile Menu (768px and down) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-desktop-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        height: 100vh;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
        /* Slides in */
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.5rem;
        display: block;
        width: auto;
    }

    .mobile-only {
        display: inline-block !important;
        margin-top: 20px;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* 1. Desktop Button: Show by default, hide on mobile */
.nav-desktop-btn {
    display: inline-block; /* Show on desktop */
}

/* 2. Mobile-only elements: ALWAYS hide by default (Desktop) */
.mobile-only {
    display: none !important;
}

/* 3. Media Query for Mobile (768px and below) */
@media (max-width: 768px) {
    /* Hide the desktop version of the button */
    .nav-desktop-btn {
        display: none !important;
    }

    /* Show the mobile version of the button inside the menu */
    .nav-links .mobile-only {
        display: inline-block !important;
        width: auto;
        margin-top: 25px;
        text-align: center;
        color: #001236;
    }
}

/* --- Sticky/Scrolled Navbar Styles --- */
/* Base Transition for smoothness */
.navbar, .nav-links, .nav-links a, .bar, .logo img {
    transition: all 0.3s ease-in-out !important;
}

/* THE SCROLLED STATE */
/* 1. Background Change */
header.navbar.scrolled {
    background: #ffffff !important; /* Force white background */
    padding: 10px 8% !important;   /* Slightly smaller height */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* 2. Logo Size Fix */
header.navbar.scrolled .logo img {
    height: 50px !important;
    width: auto !important;
    z-index: 101 !important;
}

/* 3. Text Color Change */
header.navbar.scrolled .nav-links a {
    color: #000000 !important; /* Force text to black */
}
.navbar.scrolled .nav-links a.active {
    color: var(--primary-gold) !important;
    font-weight: 800 !important; /* Extra Bold */
    transform: scale(1.05);      /* Optional: slightly larger for emphasis */
}

/* --- Hover Style (Scrolled) --- */
/* Makes other links bold when you hover over them */
.navbar.scrolled .nav-links a:hover {
    color: var(--primary-gold) !important;
    font-weight: 700 !important; 
}

/* 4. Hamburger Bars Change */
header.navbar.scrolled .menu-toggle .bar {
    background-color: var(--primary-gold) !important; /* Force bars to black */
}

/* 5. Mobile Menu Background fix */
@media (max-width: 768px) {
    header.navbar.scrolled .nav-links {
        background-color: #ffffff !important;
    }

}