/* General Styles */
:root {
    --nav-height: 90px;
}

html {
    scroll-padding-top: var(--nav-height);
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}

.navbar {
    box-sizing: border-box;
}

.hero {
    margin: 0;
    background: linear-gradient(180deg, #004aad, #004aad, #004aad);
    font-family: 'Poppins', sans-serif;
}

/* Animated Background Container */
.animated-background {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* Geometric Shapes */
.shape {
    position: absolute;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 12s infinite linear;
}

/* Different Colors for Shapes */
.shape:nth-child(odd) {
    background: rgba(0, 30, 80, 0.4); /* Transparent Navy Blue */
}

/* Positioning multiple squares for more animation */
.shape:nth-child(1) { top: 10%; left: 15%; animation-duration: 9s; width: 50px; height: 50px; }
.shape:nth-child(2) { top: 60%; left: 40%; animation-duration: 12s; width: 35px; height: 35px; }
.shape:nth-child(3) { top: 30%; left: 70%; animation-duration: 10s; width: 45px; height: 45px; }
.shape:nth-child(4) { top: 80%; left: 20%; animation-duration: 14s; width: 30px; height: 30px; }
.shape:nth-child(5) { top: 50%; left: 90%; animation-duration: 9s; width: 40px; height: 40px; }
.shape:nth-child(6) { top: 25%; left: 10%; animation-duration: 11s; width: 50px; height: 50px; }
.shape:nth-child(7) { top: 75%; left: 60%; animation-duration: 13s; width: 40px; height: 40px; }
.shape:nth-child(8) { top: 15%; left: 85%; animation-duration: 10s; width: 35px; height: 35px; }
.shape:nth-child(9) { top: 90%; left: 50%; animation-duration: 12s; width: 45px; height: 45px; }

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 1;
    }
}
iframe {
    border: 2px solid white; /* Sets a white border */
    border-radius: 8px; /* Optional: Adds rounded corners */
    padding: 0; /* Ensures no padding is added */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}

/* Premium Features Grid */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.premium-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card:hover::after {
    opacity: 1;
}

.premium-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.premium-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.premium-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.premium-benefit i {
    color: #4CAF50;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .premium-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .premium-card {
        padding: 1.5rem;
    }

    .premium-icon {
        font-size: 2rem;
    }

    .premium-content h3 {
        font-size: 1.3rem;
    }
}

/* Gamified Progress Styles - Redesigned to match Discord panel aesthetic */
.gamified-header {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.gamified-progress-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.animated-rank-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.animated-rank-bar:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.3);
}

.animated-rank-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    min-width: 120px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4FC3F7, #81D4FA);
    width: 75%;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.8), 0 0 40px rgba(79, 195, 247, 0.4), 0 0 60px rgba(79, 195, 247, 0.2);
}

.ratings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}



.rating-box:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.rating-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rating-box:hover::before {
    opacity: 1;
}

.progress-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.progress-ring__background {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.progress-ring__circle[stroke="#4CAF50"] {
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.3));
}

.progress-ring__circle[stroke="#D9534F"] {
    filter: drop-shadow(0 0 5px rgba(213, 83, 79, 0.3));
}

.progress-ring__circle[stroke="#0047AB"] {
    filter: drop-shadow(0 0 5px rgba(0, 71, 171, 0.3));
}

.rating-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rating-info {
    text-align: center;
}

.rating-change {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.rating-change.positive {
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.rating-change.negative {
    color: #F44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.rating-change.neutral {
    color: rgba(255, 255, 255, 0.8);
}

.rating-label {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.practice-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    color: #004aad;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: buttonPulse 3s infinite;
}

.practice-btn i {
    font-size: 0.9em;
}

.practice-btn:hover {
    background: #004aad;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4);
}

@keyframes ambientFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) rotate(0.5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(6px) rotate(-0.5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}



@keyframes buttonPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (max-width: 768px) {
    .ratings {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rating-box {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .animated-rank-bar {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .animated-rank-text {
        min-width: auto;
        font-size: 1.2rem;
    }

    .progress-bar {
        width: 100%;
        max-width: 300px;
    }

    .rating-value {
        font-size: 1.6rem;
    }

    .rating-label {
        font-size: 1.1rem;
    }

    .practice-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}



/* General section styling */
section {
    position: relative;
    z-index: 2;
    background: rgba(248, 248, 248, 0.95);
}

.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #004aad, #004aad, #004aad);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    z-index: 2;
}

@media (min-width: 769px) {
    html {
        scroll-padding-top: var(--nav-height);
    }

    .hero {
        min-height: calc(100svh - var(--nav-height));
        align-items: flex-start;
        overflow: visible;
        padding: calc(var(--nav-height) + 1.5rem) 2rem 2rem;
    }
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#spaceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    color: white;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 769px) {
    .hero h2 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.metrics-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-container {
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #004aad;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.youtube-counter {
    margin-top: 2rem;
}

.counter-wrapper {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    overflow: visible;
    line-height: 0;
}

.counter-wrapper:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .metrics-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .metric-card {
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

.expect-intro {
    font-size: 1.1rem;
    color: #475569 !important;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400 !important;
}

.highlight-quote {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 2rem 3rem 4rem;
    color: white;
}

.quote-text {
    position: relative;
    font-size: 1.8rem;
    font-style: italic;
    padding-left: 3rem;
    max-width: 600px;
    line-height: 1.4;
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: Georgia, serif;
}

.quote-attribution {
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-header {
    background: linear-gradient(90deg, #81D4FA, #4FC3F7, #29B6F6, #81D4FA);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
}

.masterclass-gradient-header {
    background: linear-gradient(90deg, #a78bfa, #c4b5fd, #8b5cf6, #a78bfa);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
}

/* Feature Grid Styles */
.feature-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(79, 195, 247, 0.3);
}

.feature-item:hover i {
    color: #81D4FA !important;
    text-shadow: 0 0 10px rgba(129, 212, 250, 0.5);
}

.feature-item:hover span {
    color: white !important;
}

         @media (max-width: 768px) {
     .question-features-container {
         flex-direction: column !important;
         gap: 2rem !important;
         padding: 0 1rem !important;
     }

     .math-question-example {
         max-width: 100% !important;
     }

     .features-grid {
         flex: none !important;
         grid-template-columns: repeat(2, 1fr) !important;
         gap: 0.8rem !important;
         width: 100% !important;
         max-width: 300px !important;
     }

     .feature-item {
         padding: 0.8rem !important;
     }

     .feature-item i {
         font-size: 1.3rem !important;
     }

     .feature-item span {
         font-size: 0.75rem !important;
     }
 }

         @media (max-width: 480px) {
     .features-grid {
         grid-template-columns: repeat(3, 1fr) !important;
         gap: 0.5rem !important;
     }

     .feature-item {
         padding: 0.6rem !important;
     }

     .feature-item i {
         font-size: 1.1rem !important;
         margin-bottom: 0.3rem !important;
     }

     .feature-item span {
         font-size: 0.65rem !important;
     }
 }

 /* Feature Panels Styles */
 .feature-panel:hover {
     transform: translateY(-5px);
     background: rgba(255, 255, 255, 0.15) !important;
     border: 1px solid rgba(255, 255, 255, 0.2) !important;
     box-shadow: 0 8px 30px rgba(79, 195, 247, 0.3);
 }

 .feature-panel:hover .panel-icon i {
     color: #81D4FA !important;
     text-shadow: 0 0 15px rgba(129, 212, 250, 0.6);
     transform: scale(1.1);
 }

 .feature-panel .panel-icon i {
     transition: all 0.3s ease;
 }

 /* Course Cards Styles */
 .course-card:hover {
     transform: translateY(-5px);
     background: rgba(255, 255, 255, 0.15) !important;
     border: 1px solid rgba(255, 255, 255, 0.2) !important;
     box-shadow: 0 8px 30px rgba(79, 195, 247, 0.3);
 }

 .course-card:hover .course-icon i {
     color: #81D4FA !important;
     text-shadow: 0 0 15px rgba(129, 212, 250, 0.6);
     transform: scale(1.1);
 }

 .course-card .course-icon i {
     transition: all 0.3s ease;
 }

 @media (max-width: 1024px) {
     .feature-panels {
         grid-template-columns: repeat(2, 1fr) !important;
         gap: 1.5rem !important;
     }

     .feature-panel:last-child {
         grid-column: 1 / -1;
         max-width: 500px;
         margin: 0 auto;
     }
 }

 @media (max-width: 768px) {
     .feature-panels {
         grid-template-columns: 1fr !important;
         gap: 1.5rem !important;
         padding: 0 1rem !important;
     }

     .feature-panel {
         padding: 2rem !important;
     }

     .feature-panel:last-child {
         grid-column: auto;
         max-width: none;
     }

     .feature-panel .panel-icon {
         font-size: 2.5rem !important;
     }

     .feature-panel h3 {
         font-size: 1.5rem !important;
     }

     .what-is-section p {
         font-size: 1.1rem !important;
         padding: 0 1rem !important;
     }

     .what-is-section h2 {
         font-size: 2rem !important;
     }
 }

 @media (max-width: 480px) {
     .feature-panel {
         padding: 1.5rem !important;
     }

     .feature-panel .panel-icon {
         font-size: 2rem !important;
         margin-bottom: 1rem !important;
     }

     .feature-panel h3 {
         font-size: 1.3rem !important;
         margin-bottom: 0.8rem !important;
     }

     .feature-panel p {
         font-size: 0.9rem !important;
     }

     .what-is-section h2 {
         font-size: 1.8rem !important;
     }

     .what-is-section p {
         font-size: 1rem !important;
     }
 }

 /* Action Squares Styles */
 .action-square:hover {
     transform: translateY(-5px);
     background: rgba(255, 255, 255, 0.15) !important;
     border: 1px solid rgba(255, 255, 255, 0.2) !important;
     box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
 }

 .action-square:hover i {
     color: #81D4FA !important;
     text-shadow: 0 0 15px rgba(129, 212, 250, 0.6);
     transform: scale(1.1);
 }

 .action-square i {
     transition: all 0.3s ease;
 }

.action-square span {
    white-space: nowrap;
    display: block;
}

.action-square-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.action-square-icons i {
    font-size: 1.7rem;
    color: #4FC3F7;
}

.action-square--wide {
    width: auto !important;
    min-width: 145px;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
}

.action-square--hedge-fund {
    box-shadow: 0 0 16px rgba(255, 203, 5, 0.18);
}

.action-square--hedge-fund .action-square-hedge-icon {
    filter: drop-shadow(0 0 8px rgba(255, 203, 5, 0.55));
    transition: all 0.3s ease;
}

.action-square--hedge-fund:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 203, 5, 0.45) !important;
    box-shadow: 0 8px 25px rgba(255, 203, 5, 0.28), 0 0 22px rgba(255, 203, 5, 0.22) !important;
}

.action-square--hedge-fund:hover .action-square-hedge-icon {
    color: #ffe566 !important;
    filter: drop-shadow(0 0 12px rgba(255, 203, 5, 0.75));
    transform: scale(1.1);
}

 /* Live Courses Section Styles */
 .author-profile-panel:hover,
 .youtube-embed-panel:hover {
     transform: translateY(-5px);
     background: rgba(255, 255, 255, 0.15) !important;
     border: 1px solid rgba(255, 255, 255, 0.2) !important;
     box-shadow: 0 8px 30px rgba(79, 195, 247, 0.3);
 }

 .author-profile-panel a:not(.cta-button):hover,
 .youtube-embed-panel a:not(.cta-button):hover {
     color: #81D4FA !important;
     text-shadow: 0 0 10px rgba(129, 212, 250, 0.5);
     transform: scale(1.1);
 }

 .author-profile-panel a,
 .youtube-embed-panel a {
     transition: all 0.3s ease;
 }

 .youtube-counter-wrapper:hover {
     background: rgba(255, 255, 255, 0.2) !important;
     border: 1px solid rgba(255, 255, 255, 0.3) !important;
     transform: translateY(-2px);
 }

 /* Trading Games Section Styles */
 .game-showcase-panel:hover,
 .skills-panel:hover {
     transform: translateY(-5px);
     background: rgba(255, 255, 255, 0.15) !important;
     border: 1px solid rgba(255, 255, 255, 0.2) !important;
     box-shadow: 0 8px 30px rgba(79, 195, 247, 0.3);
 }

 .floating-game-image:hover img {
     transform: scale(1.05);
     box-shadow: 0 12px 35px rgba(0,0,0,0.3);
 }

 .skill-item:hover {
     background: rgba(255, 255, 255, 0.1) !important;
     transform: translateX(5px);
 }

 .skill-item:hover .fas {
     transform: scale(1.1);
 }

 /* Learn & Play Section Styles */
 .lessons-panel:hover,
 .games-panel:hover {
     transform: translateY(-5px);
     background: rgba(255, 255, 255, 0.15) !important;
     border: 1px solid rgba(255, 255, 255, 0.2) !important;
     box-shadow: 0 8px 30px rgba(79, 195, 247, 0.3);
 }

 .subject-item:hover {
     background: rgba(255, 255, 255, 0.1) !important;
     transform: translateX(5px);
 }

 .subject-item:hover .fas {
     transform: scale(1.1);
 }

 /* Adaptive Practice Mobile Responsiveness */
 @media (max-width: 768px) {
     .practice-engine-section > div:nth-child(3) {
         flex-direction: column !important;
         gap: 2rem !important;
         padding: 0 1rem !important;
     }

     .practice-engine-section > div:nth-child(3) > div {
         min-width: 100% !important;
         max-width: 100% !important;
         padding: 2rem !important;
     }

     .features-grid {
         grid-template-columns: repeat(2, 1fr) !important;
         gap: 0.8rem !important;
     }

     .practice-metrics-container {
         grid-template-columns: 1fr !important;
         gap: 1rem !important;
     }

     /* Compact progress ratings mobile */
     .practice-engine-section div[style*="grid-template-columns: repeat(3, 1fr)"] {
         grid-template-columns: 1fr !important;
         gap: 1rem !important;
     }

     .practice-engine-section div[style*="width: 80px; height: 80px"] {
         width: 70px !important;
         height: 70px !important;
     }

     .practice-engine-section div[style*="width: 80px; height: 80px"] svg {
         width: 70px !important;
         height: 70px !important;
     }

     .practice-engine-section div[style*="width: 80px; height: 80px"] circle[r="32"] {
         r: 27 !important;
         cx: 35 !important;
         cy: 35 !important;
     }

     .practice-btn {
         padding: 6px 12px !important;
         font-size: 0.7rem !important;
     }
 }

 @media (max-width: 480px) {
     .features-grid {
         grid-template-columns: repeat(3, 1fr) !important;
         gap: 0.5rem !important;
     }

     .feature-item {
         padding: 0.8rem !important;
     }

     .feature-item i {
         font-size: 1.2rem !important;
         margin-bottom: 0.3rem !important;
     }

     .feature-item span {
         font-size: 0.7rem !important;
     }

     .practice-engine-section > div:nth-child(3) > div {
         padding: 1.5rem !important;
     }

     .math-question-example {
         padding: 1.5rem !important;
     }
 }



 @media (max-width: 768px) {
     .learning-goals {
         margin-bottom: 2rem !important;
     }

     .learning-goals h3 {
         font-size: 1.5rem !important;
         padding: 0 1rem;
         margin-bottom: 1.5rem !important;
     }

     .action-squares {
         gap: 1rem !important;
         padding: 0 1rem;
     }

     .action-square {
         min-width: 120px !important;
         padding: 1.2rem !important;
     }

     .action-square i,
     .action-square-icons i {
         font-size: 1.6rem !important;
         margin-bottom: 0 !important;
     }

     .action-square-icons {
         margin-bottom: 0.8rem !important;
     }

     .action-square > i {
         margin-bottom: 0.8rem !important;
     }

     .action-square span {
         font-size: 1rem !important;
         white-space: nowrap;
     }

     .action-square--wide span {
         font-size: 0.82rem !important;
     }
 }

 @media (max-width: 480px) {
     .learning-goals h3 {
         font-size: 1.3rem !important;
     }

     .action-squares {
         gap: 0.8rem !important;
     }

     .action-square {
         min-width: 100px !important;
         padding: 1rem !important;
     }

     .action-square i,
     .action-square-icons i {
         font-size: 1.4rem !important;
         margin-bottom: 0 !important;
     }

     .action-square-icons {
         margin-bottom: 0.6rem !important;
         gap: 0.4rem !important;
     }

     .action-square > i {
         margin-bottom: 0.6rem !important;
     }

     .action-square span {
         font-size: 0.9rem !important;
         white-space: nowrap;
     }

     .action-square--wide span {
         font-size: 0.72rem !important;
     }

     /* Live Courses Mobile Styles */
     .live-content-grid {
         flex-direction: column !important;
         gap: 2rem !important;
         padding: 0 1rem !important;
     }

     .author-profile-panel {
         min-width: 100% !important;
         max-width: 100% !important;
         padding: 2rem !important;
         margin: 0 auto !important;
     }

     .youtube-embed-panel {
         min-width: 100% !important;
         max-width: 100% !important;
         padding: 1.5rem !important;
         margin: 0 auto !important;
     }

     .author-profile-panel img {
         width: 80px !important;
         height: 80px !important;
     }

     .author-profile-panel h3 {
         font-size: 1.2rem !important;
     }

     .author-profile-panel p {
         font-size: 0.9rem !important;
     }

     .youtube-counter-wrapper {
         padding: 0.8rem !important;
     }

     .youtube-counter-wrapper iframe {
         height: 70px !important;
     }

     /* Additional Live Courses Small Mobile Styles */
     .author-profile-panel {
         padding: 1.5rem !important;
     }

     .youtube-embed-panel {
         padding: 1.2rem !important;
     }

     .author-profile-panel img {
         width: 70px !important;
         height: 70px !important;
     }

     .author-profile-panel h3 {
         font-size: 1.1rem !important;
     }

     .author-profile-panel p {
         font-size: 0.85rem !important;
     }

     .youtube-counter-wrapper iframe {
         height: 60px !important;
     }

     .author-profile-panel .cta-button {
         padding: 0.8rem 1.5rem !important;
         font-size: 1rem !important;
     }
 }

 
 .discord-section {
    background: transparent;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    width: 95%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    animation: ambientFloat 8s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes ambientFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    }
    25% {
        transform: translateY(-6px) rotate(0.5deg);
        box-shadow: 0 6px 35px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    }
    75% {
        transform: translateY(6px) rotate(-0.5deg);
        box-shadow: 0 -6px 35px rgba(0, 0, 0, 0.25);
    }
    100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    }
}

.discord-panel h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.discord-panel p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.discord-button:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: #81D4FA !important;
}

.youtube-counter {
    transform: none;
    position: relative;
    z-index: 12;
}

.youtube-counter-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
}

.counter-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
    position: relative;
    z-index: 12;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    overflow: visible !important;
    line-height: 0;
}

.mobile-counter-wrapper {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: buttonPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    overflow: visible !important;
    line-height: 0;
}

.counter-wrapper:hover,
.youtube-counter-link:hover .counter-wrapper {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.counter-wrapper iframe,
.youtube-counter-wrapper iframe,
.mobile-counter-wrapper iframe,
[data-subscriber-counter] iframe {
    border: none;
    border-radius: 8px;
    pointer-events: none;
    display: block;
    overflow: visible !important;
    width: auto !important;
    max-width: 100%;
    vertical-align: top;
}

.counter-wrapper,
.youtube-counter-wrapper,
.mobile-counter-wrapper {
    overflow: visible !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Footer subscriber counter — pulse on wrapper, clip embed on inner child */
.footer-section {
    background-color: transparent;
}

.footer-section .panel {
    overflow: visible !important;
}

.footer-section .youtube-counter {
    overflow: visible !important;
    flex-shrink: 0;
}

.footer-section .youtube-counter-link {
    display: inline-block;
    line-height: 0;
    vertical-align: top;
    overflow: visible !important;
}

.footer-section .counter-wrapper,
.footer-section .mobile-counter-wrapper {
    overflow: visible !important;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-section .counter-wrapper > [data-subscriber-counter],
.footer-section .mobile-counter-wrapper > [data-subscriber-counter] {
    display: block;
    line-height: 0;
    overflow: hidden !important;
    border-radius: 10px;
    width: 330px;
    max-width: 100%;
    height: 92px;
}

.footer-section .counter-wrapper > [data-subscriber-counter] iframe,
.footer-section .mobile-counter-wrapper > [data-subscriber-counter] iframe {
    display: block;
    width: 330px !important;
    height: 100px !important;
    max-width: 100%;
    margin: 0;
    border: none !important;
    border-radius: 8px;
    overflow: hidden;
    vertical-align: top;
}

/* Ensure footer links are clickable */
.panel:last-child a {
    position: relative;
    z-index: 12;
    pointer-events: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(0, 74, 173, 0.95);
        backdrop-filter: blur(10px);
        padding: 0.5rem 1rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 80px;
    }

    body {
        padding-top: 80px;
    }

    /* Hero Section - original mobile layout */
    .hero {
        padding: calc(80px + 1rem) 2rem 2rem;
        min-height: calc(100vh - 80px);
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        margin-top: -10vh;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 2;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        position: relative;
        z-index: 2;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
        position: relative;
        z-index: 2;
    }

    /* Ensure animated background stays behind content */
    .animated-background {
        z-index: 0;
    }

    /* Metrics Container */
    .metrics-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .metric-card {
        width: 100%;
        padding: 1rem;
        margin: 0;
        box-sizing: border-box;
    }

    .metric-number {
        font-size: 2rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }

    /* Hide specific panels on mobile */
    .panel:has(.gamified-progress-container),
    .panel:has(.premium-grid),
    .panel:has(.hero-visual-container) {
        display: none !important;
    }

    /* Testimonials Section */
    .highlight-quote {
        margin: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .quote-text {
        font-size: 1.2rem;
        padding-left: 1rem;
        margin-bottom: 1rem;
    }

    .quote-attribution {
        margin-left: 1rem;
        padding-left: 1rem;
        font-size: 0.9rem;
    }

    .testimonial-marquee {
        width: 100%;
        overflow: hidden;
    }

    .testimonial-track {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-card {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .testimonial-user {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Keep Discord panel visible and style it */
    .discord-section {
        display: block !important;
        padding: 2rem 0;
        margin-top: 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .discord-panel {
        padding: 2.5rem;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
        max-width: 80%;
        text-align: center;
        box-sizing: border-box;
    }

    .discord-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        width: auto;
        min-width: 200px;
        text-align: center;
        margin: 0 auto;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    /* Footer - Updated */
    .panel:last-child {
        padding: 2rem 1rem;
    }

    .panel:last-child > div {
        flex-direction: column;
        gap: 2rem;
    }

    .youtube-counter {
        transform: none;
        margin: 0 auto;
        overflow: visible !important;
        padding: 0.35rem 0;
    }

    .footer-section .mobile-footer-youtube-counter {
        overflow: visible !important;
        padding: 0.35rem 0 !important;
    }

    .footer-section .counter-wrapper > [data-subscriber-counter],
    .footer-section .mobile-counter-wrapper > [data-subscriber-counter] {
        width: min(330px, calc(100vw - 2.5rem));
    }

    [data-subscriber-counter] iframe,
    .counter-wrapper iframe,
    .mobile-counter-wrapper iframe {
        width: auto !important;
        max-width: 100% !important;
    }

    .footer-section .counter-wrapper > [data-subscriber-counter] iframe,
    .footer-section .mobile-counter-wrapper > [data-subscriber-counter] iframe {
        width: min(330px, calc(100vw - 2.5rem)) !important;
        height: 100px !important;
    }

    .footer-socials {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin: 0 auto 1.5rem;
    }

    .footer-socials a {
        font-size: 1.5rem;
        color: white;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .footer-socials a:hover {
        transform: translateY(-3px);
        color: #81D4FA !important;
    }

    .panel:last-child > div > div:nth-child(2) {
        text-align: center;
        width: 100%;
    }

    .panel:last-child p {
        margin: 0.5rem 0;
        color: rgba(255, 255, 255, 0.9);
    }

    .panel:last-child a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        margin: 0 0.5rem;
        transition: color 0.3s ease;
    }

    .panel:last-child a:hover {
        color: rgba(255, 255, 255, 0.9);
    }

    /* Navbar Links */
    .navbar-links {
        display: flex;
        gap: 1rem;
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 1001; /* Ensure links are clickable */
    }
    
    .navbar-links a {
        font-size: 0.9rem;
        color: white;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .navbar-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Ensure logo is visible */
    .navbar-logo {
        position: relative;
        z-index: 1001;
    }

    .navbar-logo img {
        height: 60px;
        width: auto;
        margin-top: 15px;
        margin-left: -20px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-content {
        margin-top: -10vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .metric-number {
        font-size: 1.8rem;
    }

    .discord-panel h2 {
        font-size: 1.5rem;
    }

    .discord-button {
        width: 100%;
        padding: 1rem 2rem;
    }

    .testimonial-card {
        padding: 0.8rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    .testimonial-user {
        font-size: 0.75rem;
    }

    .discord-panel {
        width: 85%;
        max-width: 85%;
        padding: 2rem;
    }

    .discord-button {
        width: 100%;
        padding: 1rem 2rem;
    }

    .footer-socials {
        gap: 1.5rem;
    }

    .footer-socials a {
        font-size: 1.3rem;
    }

    .panel:last-child p {
        font-size: 0.9rem;
    }

    .panel:last-child a {
        font-size: 0.9rem;
    }
}

/* Short viewports — desktop only */
@media (min-width: 769px) and (max-height: 700px) {
    .hero {
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + 0.75rem);
    }

    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .learning-goals {
        margin-bottom: 1.5rem !important;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem;
    }

    .metrics-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .metric-card {
        width: calc(50% - 1rem);
    }
}

 /* Discord Button Centering */
 @media (max-width: 768px) {
    .discord-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 1rem auto !important;
        width: auto !important;
        min-width: 200px !important;
        max-width: 280px !important;
        text-align: center !important;
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
    }

    .discord-button i {
        margin-left: 0.5rem !important;
    }
    
    .discord-panel {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 90% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .discord-button {
        width: 90% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

 /* Mobile Responsive Styles */
 @media (max-width: 768px) {
    /* Previous mobile styles remain unchanged */
    
    /* Footer - Remove rounded border */
    .panel:last-child {
        border-radius: 0 !important;
    }

    /* Testimonials - Restore horizontal scrolling */
    .testimonial-marquee {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0;
    }

    .testimonial-track {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0 1rem;
    }

    .testimonial-list {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding-right: 1rem;
    }

    .testimonial-card {
        flex: 0 0 auto;
        width: 280px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.5rem;
        margin: 0;
        box-sizing: border-box;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.5;
    }

    .testimonial-user {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Hide scrollbar but keep functionality */
    .testimonial-marquee::-webkit-scrollbar {
        display: none;
    }
    
    .testimonial-marquee {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Rest of the styles remain unchanged */
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Previous small mobile styles remain unchanged */

    .testimonial-card {
        width: 260px;
        padding: 1.2rem;
    }

    /* Rest of the styles remain unchanged */
}

/* Metrics Mobile Centering */
@media (max-width: 768px) {
    .metrics-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 2rem auto !important;
    }

    .metric-card {
        width: 85% !important;
        max-width: 320px !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
    }

    .metric-number {
        font-size: 2.5rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.5rem !important;
        color: white !important;
    }

    .metric-label {
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
}

@media (max-width: 480px) {
    .metric-card {
        width: 90% !important;
        padding: 1.2rem !important;
    }

    .metric-number {
        font-size: 2.2rem !important;
    }

    .metric-label {
        font-size: 0.9rem !important;
    }
}

 /* Mobile Navbar Logo Centering */
 @media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(0, 74, 173, 0.95);
        backdrop-filter: blur(10px);
        padding: 0.8rem 1rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 80px;
    }

    .navbar-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .navbar-logo img {
        margin-top: 0;
        margin-left: -20px;
        margin-bottom: 0;
        height: 60px;
        display: block;
    }
    
    .navbar-links {
        position: absolute;
        right: 1rem;
        display: flex;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }
    
    .navbar-links a {
        font-size: 0.9rem;
        color: white;
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 1rem;
        height: 80px;
    }
    
    .navbar-logo img {
        margin-top: 0;
        margin-left: -20px;
        height: 60px;
    }
}

 /* Optimize animations with will-change and transform */
 .premium-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.rating-box {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize floating animations */
@keyframes floatStack1 {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-5deg);
    }
    50% {
        transform: translate3d(0, -15px, 0) rotate(-3deg);
    }
}

@keyframes floatStack2 {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(3deg);
    }
    50% {
        transform: translate3d(0, -10px, 0) rotate(5deg);
    }
}

@keyframes floatStack3 {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-2deg);
    }
    50% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
    }
}

/* Optimize transitions */
.premium-card, .rating-box, .metric-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce animation complexity */
.course-animation {
    animation: ambientMove 30s ease-in-out infinite alternate;
}

/* Optimize backdrop-filter usage */
.premium-card, .rating-box, .metric-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.partner-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-button {
    display: inline-block;
    padding: 1rem;
    background: white;
    color: #004aad;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    animation: buttonPulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.partner-button:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    background: #004aad !important;
    color: white !important;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        padding: 1rem;
    }

    .partner-card {
        width: 100%;
        max-width: 350px;
        padding: 2rem;
    }

    .partner-logo img {
        height: 50px;
    }

    .partner-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .partner-card {
        padding: 1.5rem;
    }

    .partner-logo img {
        height: 40px;
    }

    .partner-content h3 {
        font-size: 1.3rem;
    }

    .feature {
        font-size: 0.9rem;
    }
}

/* ===== Technical Edge Section - Base Styles ===== */
.technical-edge-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 195, 247, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Technical Edge Section - Desktop/Mobile Title Visibility ===== */
.technical-edge-title-mobile {
    display: none;
}

.technical-edge-title-desktop {
    display: inline;
}

/* ===== Technical Edge Section - "And More" Pill Styling ===== */
/* Base company pill styles */
.company-pill {
    padding: 0.75rem 1.375rem;
    gap: 0.625rem;
    border-radius: 12px;
}

.company-pill-icon {
    font-size: 1.3rem;
}

.company-pill-text {
    font-size: 1rem;
}

.company-pill-more {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1)) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    margin-left: 0;
    margin-right: 1.25rem;
}

.company-pill-more .company-pill-text {
    color: #fbbf24 !important;
}

/* ===== Real Results Section - Base Styles ===== */
.testimonial-video-quote {
    --quote-accent: rgba(245, 158, 11, 0.5);
    --quote-accent-bg: rgba(245, 158, 11, 0.07);
    --quote-mark: rgba(245, 158, 11, 0.75);
    position: relative;
    margin: 0 auto 2rem;
    max-width: 760px;
    padding: 1.35rem 1.75rem 1.35rem 3.25rem;
    border: none;
    border-left: 3px solid var(--quote-accent);
    border-radius: 0 14px 14px 0;
    background: var(--quote-accent-bg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-video-quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    text-align: left;
}

.testimonial-video-quote::before {
    content: '\201C';
    position: absolute;
    left: 0.85rem;
    top: 0.35rem;
    font-size: 2.75rem;
    line-height: 1;
    font-style: normal;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--quote-mark);
}

.real-results-line1,
.real-results-line2 {
    display: inline;
}

.real-results-line1-text-mobile,
.real-results-line2-mobile {
    display: none;
}

.real-results-line1-text-desktop,
.real-results-line2-desktop {
    display: inline;
}

/* ===== Pav, Phil and Anonymous Reviews - Hide on Mobile ===== */
@media (max-width: 768px) {
    .pav-review-section,
    .phil-review-section,
    .anonymous-reviews-grid {
        display: none !important;
    }
}

/* ===== Real Results Section - Mobile Styles ===== */
@media (max-width: 768px) {
    .real-results-title {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.35rem !important;
    }
    
    .real-results-line1,
    .real-results-line2 {
        display: block;
    }
    
    .real-results-line1-text-desktop,
    .real-results-line2-desktop {
        display: none;
    }
    
    .real-results-line1-text-mobile,
    .real-results-line2-mobile {
        display: inline;
    }
    
    .real-results-line2-mobile .fa-arrow-right {
        font-size: 0.9em;
        margin: 0 0.3rem;
    }
    
    .pol-video-section {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .pav-video-section {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .testimonial-video-quote {
        display: none !important;
    }
    
    #pol-video-container {
        border-radius: 12px !important;
    }
    
    #pav-video-container {
        border-radius: 12px !important;
    }
    
    #pol-video-loading {
        min-height: 180px !important;
    }
    
    #pav-video-loading {
        min-height: 180px !important;
    }
}

@media (max-width: 480px) {
    .pol-video-section {
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    .pav-video-section {
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    .real-results-title {
        font-size: 1.4rem !important;
    }
    
    #pol-video-container {
        border-radius: 10px !important;
    }
    
    #pav-video-container {
        border-radius: 10px !important;
    }
    
    #pol-video-loading {
        min-height: 150px !important;
    }
    
    #pav-video-loading {
        min-height: 150px !important;
    }
}

/* ===== Technical Edge Section - Mobile Styles ===== */
@media (max-width: 768px) {
    .technical-edge-section {
        padding: 1.5rem 1rem;
        margin: 0 1rem 2rem 1rem;
        border-radius: 14px;
        max-width: none;
        width: auto;
        box-sizing: border-box;
    }
    
    .technical-edge-header {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .technical-edge-icon {
        font-size: 1.3rem !important;
    }
    
    .technical-edge-title {
        font-size: 1.3rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    
    .technical-edge-title-desktop {
        display: none;
    }
    
    .technical-edge-title-mobile {
        display: inline;
    }
    
    .company-scroll-group {
        gap: 8px !important;
    }
    
    .technical-edge-section .company-pill,
    .company-scroll-group .company-pill,
    .company-pill {
        padding: 5px 12px !important;
        gap: 5px !important;
        border-radius: 6px !important;
    }
    
    .technical-edge-section .company-pill-icon,
    .company-pill-icon {
        font-size: 12px !important;
    }
    
    .technical-edge-section .company-pill-text,
    .company-pill-text {
        font-size: 12px !important;
        font-weight: 500 !important;
    }
    
    .technical-edge-section .company-pill-more,
    .company-scroll-group .company-pill-more,
    .company-pill-more {
        margin-left: 0 !important;
        margin-right: 8px !important;
    }
}

@media (max-width: 480px) {
    .technical-edge-section {
        padding: 1.25rem 0.75rem;
        margin: 0 0.75rem 1.5rem 0.75rem;
    }
    
    .technical-edge-header {
        margin-bottom: 0.75rem !important;
    }
    
    .technical-edge-title {
        font-size: 1.1rem !important;
    }
    
    .technical-edge-icon {
        font-size: 1.1rem !important;
    }
    
    .company-scroll-group {
        gap: 0.4rem !important;
    }
    
    .technical-edge-section .company-pill,
    .company-scroll-group .company-pill,
    .company-pill {
        padding: 4px 10px !important;
        gap: 4px !important;
        border-radius: 5px !important;
    }
    
    .technical-edge-section .company-pill-icon,
    .company-pill-icon {
        font-size: 10px !important;
    }
    
    .technical-edge-section .company-pill-text,
    .company-pill-text {
        font-size: 11px !important;
        font-weight: 500 !important;
    }
    
    .technical-edge-section .company-pill-more,
    .company-scroll-group .company-pill-more,
    .company-pill-more {
        margin-right: 8px !important;
        margin-left: 0 !important;
    }
}

/* ===== Masterclasses Section - Mobile Margins ===== */
@media (max-width: 768px) {
    #masterclasses-section {
        padding: 2rem 1rem !important;
        overflow-x: hidden !important;
    }
    
    .masterclasses-section {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .masterclasses-content-grid {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 0 !important;
        margin-top: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .masterclasses-info-panel,
    .masterclasses-video-panel {
        flex: 1 1 auto !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    #masterclasses-section {
        padding: 1.5rem 0.75rem !important;
    }
    
    .masterclasses-info-panel,
    .masterclasses-video-panel {
        padding: 1.5rem 1rem !important;
    }
    
    .masterclasses-section h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .masterclasses-section > p {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
    }
}

/* ===== Masterclasses Info Panel - Mobile Redesign ===== */
@media (max-width: 768px) {
    /* Panel Header - More Compact */
    .masterclasses-info-panel > div:first-of-type {
        margin-bottom: 1rem !important;
    }
    
    .masterclasses-info-panel h3 {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem !important;
        gap: 0.5rem !important;
    }
    
    .masterclasses-info-panel h3 i {
        font-size: 1.4rem !important;
    }
    
    .masterclasses-info-panel > div:first-of-type p {
        font-size: 0.9rem !important;
    }
    
    /* Featured Masterclass Section */
    .masterclasses-info-panel h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Financial Mathematics Card - Mobile Optimized */
    .masterclasses-info-panel > div:nth-of-type(2) > div {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }
    
    /* Card Header - Icon and Title */
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:first-of-type {
        margin-bottom: 0.6rem !important;
        gap: 0.6rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:first-of-type > div {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:first-of-type > div i {
        font-size: 0.95rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:first-of-type > span {
        font-size: 1rem !important;
    }
    
    /* Show mobile title, hide desktop title on mobile */
    .masterclasses-info-panel .masterclass-title-desktop {
        display: none !important;
    }
    
    .masterclasses-info-panel .masterclass-title-mobile {
        display: inline !important;
    }
    
    /* Hours Badge - Centered on Mobile */
    .masterclasses-info-panel .masterclass-hours-badge,
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:nth-of-type(2) {
        margin-bottom: 0.75rem !important;
        gap: 0.4rem !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .masterclasses-info-panel .masterclass-hours-badge i,
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:nth-of-type(2) i {
        font-size: 0.8rem !important;
    }
    
    .masterclasses-info-panel .masterclass-hours-badge span,
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:nth-of-type(2) span {
        font-size: 0.85rem !important;
    }
    
    /* Description */
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Feature Badges Grid - 1 Column on Mobile (Rows) */
    .masterclasses-info-panel .masterclass-features-grid,
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type > div {
        padding: 0.6rem 0.75rem !important;
        gap: 0.5rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type > div i {
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type > div span {
        font-size: 0.75rem !important;
        font-weight: 500 !important;
    }
    
    /* Continuous Development Section */
    .masterclasses-info-panel > div:nth-of-type(3) {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(3) > div > div {
        gap: 0.5rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(3) > div > div i {
        font-size: 1.1rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(3) > div > div h4 {
        font-size: 0.95rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(3) > div > p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    /* CTA Button */
    .masterclasses-info-panel > div:last-of-type a {
        width: 100% !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    /* Even More Compact for Small Mobile */
    .masterclasses-info-panel {
        padding: 1.25rem 0.875rem !important;
    }
    
    .masterclasses-info-panel > div:first-of-type {
        margin-bottom: 0.75rem !important;
    }
    
    .masterclasses-info-panel h3 {
        font-size: 1.25rem !important;
    }
    
    .masterclasses-info-panel h3 i {
        font-size: 1.25rem !important;
    }
    
    .masterclasses-info-panel > div:first-of-type p {
        font-size: 0.85rem !important;
    }
    
    .masterclasses-info-panel h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    /* Financial Mathematics Card */
    .masterclasses-info-panel > div:nth-of-type(2) > div {
        padding: 1rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:first-of-type > div {
        width: 32px !important;
        height: 32px !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:first-of-type > div i {
        font-size: 0.85rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:first-of-type > span {
        font-size: 0.9rem !important;
    }
    
    .masterclasses-info-panel .masterclass-hours-badge,
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:nth-of-type(2) {
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .masterclasses-info-panel .masterclass-hours-badge span,
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:nth-of-type(2) span {
        font-size: 0.8rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > p {
        font-size: 0.8rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    /* Feature Badges - 1 Column Rows (Small Mobile) */
    .masterclasses-info-panel .masterclass-features-grid,
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type > div {
        padding: 0.5rem 0.65rem !important;
        gap: 0.45rem !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type > div i {
        font-size: 0.7rem !important;
        flex-shrink: 0 !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(2) > div > div > div:last-of-type > div span {
        font-size: 0.7rem !important;
        font-weight: 500 !important;
    }
    
    /* Continuous Development */
    .masterclasses-info-panel > div:nth-of-type(3) {
        padding: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(3) > div > div i {
        font-size: 1rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(3) > div > div h4 {
        font-size: 0.9rem !important;
    }
    
    .masterclasses-info-panel > div:nth-of-type(3) > div > p {
        font-size: 0.75rem !important;
    }
    
    /* CTA Button */
    .masterclasses-info-panel > div:last-of-type a {
        padding: 0.85rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===== Bazaar Membership Panel Styles ===== */
.bazaar-membership-panel {
    transition: all 0.3s ease;
}

.bazaar-membership-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 195, 247, 0.3) !important;
    border-color: rgba(79, 195, 247, 0.5) !important;
}

.bazaar-membership-panel:hover .fa-crown {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .bazaar-membership-panel {
        margin-bottom: 1.25rem !important;
    }
    
    .bazaar-membership-panel h4 {
        font-size: 0.95rem !important;
    }
    
    .bazaar-membership-panel p {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .bazaar-membership-panel {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .bazaar-membership-panel > div:last-of-type {
        gap: 0.7rem !important;
    }
    
    .bazaar-membership-panel > div:last-of-type > div:first-of-type {
        width: 40px !important;
        height: 40px !important;
    }
    
    .bazaar-membership-panel .fa-crown {
        font-size: 1rem !important;
    }
    
    .bazaar-membership-panel h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .bazaar-membership-panel p {
        font-size: 0.75rem !important;
    }
}