/* Font Fallbacks for Hostinger Compatibility */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Fallback fonts if Google Fonts fails to load */
body, html {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 📚 Ebook Covers */
.ebook-cover {
  display: block;
  width: 100%;
  max-width: clamp(120px, 60vw, 180px); /* Fluid scaling */
  aspect-ratio: 1 / 1;                  /* Keep covers perfectly square */
  height: auto;
  object-fit: contain;                   /* No cropping, keeps proportions */
  margin: 0 auto 1rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover / focus for a subtle interactive feel */
.ebook-cover:hover,
.ebook-cover:focus {
  transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 255, 136, 0.18);
}

/* 📱 Extra small screens (mobile) */
@media screen and (max-width: 480px) {
  .ebook-cover {
    max-width: 70vw;         /* Scales down further */
    margin-bottom: 0.75rem;  /* Adjust spacing for smaller viewports */
  }
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto; /* Better performance on mobile */
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Ensure mobile menu is above other content */
@media (max-width: 768px) {
    .navbar {
        z-index: 1002;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0 auto;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00ff88;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://via.placeholder.com/1920x1080/1a1a1a/ffffff?text=Trading+Background') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #cccccc;
    font-weight: 400;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    animation: fadeInRight 1s ease-out 0.5s both;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    color: #000;
}

/* Products Section */
.products {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.product-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.product-cta {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.blue-glow {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.blue-glow:hover {
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.5);
    color: #ffffff;
}

.green-glow {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.green-glow:hover {
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    color: #ffffff;
}

.gradient-glow {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.gradient-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    color: #ffffff;
}

/* USP Section */
.usp {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.3);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.usp-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.usp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.1);
}

.usp-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.usp-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.usp-item p {
    color: #cccccc;
    font-size: 0.9rem;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Formation Section */
.formation {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.formation .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.formation .section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Formation Cards Grid */
.formation-cards-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;

}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
    .formation-cards-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .formation-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .formation-cards-grid {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* Glassmorphic Cards */
.formation-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.formation-card glassmorphic {
    position: absolute;
    top: 50%;
    left: 50%;

}
.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.05) 0%, 
        rgba(0, 212, 255, 0.05) 50%, 
        rgba(0, 255, 136, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.formation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 255, 136, 0.3),
        0 0 40px rgba(0, 255, 136, 0.2);
}

.formation-card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.card-badge {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-price {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    display: inline-block;
    border: 1px solid rgba(0, 255, 136, 0.3);
}


.old-price {
  text-decoration: line-through;
  color: #723434;
  margin-right: 8px; /* space between old and new price */
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}


/* Card Content */
.card-content {
    text-align: center;
}

.card-description {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Card Actions */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .details-btn,
    .access-btn,
    .cta-button,
    .affiliation-btn {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Additional mobile menu improvements */
@media (max-width: 768px) {
    .hamburger {
        position: relative;
        z-index: 1003;
    }
    
    .nav-menu {
        z-index: 1001;
    }
    
    /* Ensure the menu is properly positioned */
    .nav-menu.active {
        display: flex !important;
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.details-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    user-select: none;
}

.details-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.details-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.details-btn:focus {
    outline: 2px solid rgba(0, 255, 136, 0.5);
    outline-offset: 2px;
}

.access-btn {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.access-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00d4ff, #00ff88);
}

/* Card Details Section - ALWAYS VISIBLE */
.card-details {
    display: block;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: none;
    position: relative;
}

.card-details.hidden {
    display: block;
    max-height: none;
    opacity: 1;
    transform: none;
}

.card-details.show {
    display: block;
    max-height: none;
    opacity: 1;
    transform: none;
}

/* Enhanced Scrollable Details for All Devices */
.card-details {
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.5) transparent;
    padding-bottom: 2rem;
}

.card-details::-webkit-scrollbar {
    width: 8px;
}

.card-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.card-details::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.card-details::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.8);
}

/* Responsive Details Content */
.card-details .details-content {
    opacity: 1;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.5) transparent;
}

.card-details .details-content::-webkit-scrollbar {
    width: 6px;
}

.card-details .details-content::-webkit-scrollbar-track {
    background: transparent;
}

.card-details .details-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 3px;
}

.card-details .details-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.8);
}

.details-content {
    opacity: 1;
}

.details-content h4 {
    color: #00ff88;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.details-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    border-radius: 1px;
}

.module-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.module-group:hover::before {
    left: 100%;
}

.module-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.module-group h5 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.module-group h5::before {
    content: '📚';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.module-group ul {
    list-style: none;
    padding-left: 0;
}

.module-group li {
    color: #cccccc;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.module-group li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
    font-size: 1.1rem;
}

.bonus-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.bonus-section h5 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.bonus-section li {
    color: #ffd700;
}

.bonus-section li::before {
    color: #ffd700;
}

/* Scroll Indicators and Enhanced Mobile Experience */
.scroll-indicator {
    position: absolute;
    background: rgba(0, 255, 136, 0.8);
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
}

.scroll-indicator.top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator.bottom {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator:hover {
    background: rgba(0, 255, 136, 1);
    transform: translateX(-50%) scale(1.1);
}

/* Details Scroll Indicator */
.details-scroll-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 255, 136, 0.9);
    color: #000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.details-scroll-indicator:hover {
    opacity: 1;
    background: rgba(0, 255, 136, 1);
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 5px;
}

.scroll-hint i {
    font-size: 0.7rem;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: relative;
    }
    
    .nav-menu .nav-link {
        position: relative;
        overflow: hidden;
        margin: 0.5rem 0;
        padding: 1.2rem 2rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(45deg, #00ff88, #00d4ff);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-menu .nav-link:hover::after {
        width: 80%;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(0, 255, 136, 0.1);
        transform: translateX(5px);
    }
    
    /* Enhanced card details on mobile */
    .card-details {
        position: relative;
        padding-bottom: 20px;
        margin: 1rem 0;
    }
    
    .card-details .details-content {
        max-height: 60vh;
        overflow-y: auto;
        padding-right: 10px;
        padding-bottom: 20px;
    }
    
    /* Mobile scroll indicators */
    .scroll-indicator {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Enhanced mobile details */
    .module-group {
        margin-bottom: 1.5rem;
        padding: 1.2rem;
    }
    
    .module-group h5 {
        font-size: 1rem;
    }
    
    .module-group li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    /* Mobile-friendly bonus section */
    .bonus-section {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .bonus-section h5 {
        font-size: 1.1rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .card-details {
        padding-bottom: 1.5rem;
    }
    
    .card-details .details-content {
        max-height: 65vh;
    }
    
    .module-group {
        margin-bottom: 1.8rem;
        padding: 1.8rem;
    }
}

/* Large Desktop */
@media (min-width: 1025px) {
    .card-details {
        padding-bottom: 2.5rem;
    }
    
    .card-details .details-content {
        max-height: 75vh;
    }
    
    .module-group {
        margin-bottom: 2.5rem;
        padding: 2rem;
    }
    
    .module-group h5 {
        font-size: 1.2rem;
    }
    
    .module-group li {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
}

/* Affiliation Section */
.affiliation {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.3);
}

.affiliation-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.affiliation-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #cccccc;
}

.affiliation-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.affiliation-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.affiliation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    color: #ffffff;
}

.exness-btn:hover {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
}

.funded-btn:hover {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.footer-bottom {
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design - Comprehensive */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .formation-cards-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .formation-card {
        padding: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .usp-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .trust-stats {
        gap: 2rem;
    }
    
    .formation-cards-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 255, 136, 0.5) transparent;
    }
    
    .nav-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 136, 0.5);
        border-radius: 3px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 255, 136, 0.8);
    }
    
    .nav-menu.active {
        display: flex;
        left: 0;
    }
    
    .nav-menu.scrollable {
        overflow-y: auto;
    }
    
    .hamburger {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Ensure nav links are properly styled on mobile */
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }
    
    .nav-link:hover {
        background: rgba(0, 255, 136, 0.1);
        color: #00ff88;
    }
    
    /* Hero Section */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .products,
    .usp,
    .formation,
    .affiliation {
        padding: 80px 0;
    }
    
    /* Grids */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .formation-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .formation-card {
        padding: 2rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .details-btn,
    .access-btn {
        width: 100%;
    }
    
    /* Affiliation */
    .affiliation-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .affiliation-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 0 8px;
    }

    .social-link {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .formation .section-title {
        font-size: 1.8rem;
    }
    
    .formation .section-subtitle {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-price {
        padding: 0.6rem 1.2rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
    }
    
    .details-btn,
    .access-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .module-group {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .module-group h5 {
        font-size: 1rem;
    }
    
    .module-group li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .formation .section-title {
        font-size: 1.6rem;
    }
    
    .formation .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }
    
    .products,
    .usp,
    .formation,
    .affiliation {
        padding: 60px 0;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .product-card,
    .usp-item {
        padding: 1.5rem;
    }
    
    .formation-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .card-header {
        margin-bottom: 1.5rem;
    }
    
    .card-badge {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .card-price {
        padding: 0.5rem 1rem;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .card-actions {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .details-btn,
    .access-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    
    .details-content h4 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .module-group {
        padding: 1rem;
        margin-bottom: 1.2rem;
        border-radius: 12px;
    }
    
    .module-group h5 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .module-group li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        padding-left: 1.2rem;
    }
    
    .bonus-section {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 12px;
    }
    
    .bonus-section h5 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .bonus-section li {
        font-size: 0.85rem;
    }
    
    .affiliation-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .formation .section-title {
        font-size: 1.4rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .formation-card {
        padding: 1.2rem;
    }
    
    .details-btn,
    .access-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero .container {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .products,
    .usp,
    .formation,
    .affiliation {
        padding: 50px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .formation-card {
        border-width: 0.5px;
    }
    
    .card-price {
        border-width: 0.5px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .cta-button,
    .access-btn,
    .details-btn,
    .affiliation-btn {
        display: none !important;
    }
    
    .formation-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .card-details.hidden {
        display: block !important;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improve button touch targets */
    .details-btn,
    .access-btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .formation-card {
        margin: 0 5px;
    }
    
    /* Improve text readability */
    .card-description {
        line-height: 1.5;
    }
    
    .module-group li {
        line-height: 1.4;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* Light mode support (if needed) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme for brand consistency */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.3);
    z-index: 10000;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chatbot-widget.expanded {
    width: 350px;
    height: auto;
    border-radius: 20px;
    max-width: 90vw;
}

.chatbot-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.chatbot-widget.expanded:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.chatbot-header {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

.chatbot-header:hover {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
}

.chatbot-widget:not(.expanded) .chatbot-avatar {
    width: 100%;
    height: 100%;
    background: transparent;
    font-size: 1.5rem;
}

.chatbot-info {
    flex: 1;
    display: none !important;
}

.chatbot-widget.expanded .chatbot-info {
    display: block !important;
}

.chatbot-info h4 {
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
}

.chatbot-info p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.chatbot-toggle {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: none !important;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-widget.expanded .chatbot-toggle {
    display: flex !important;
}

.chatbot-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.chatbot-body {
    display: none !important;
    max-height: 500px;
    overflow: hidden;
}

.chatbot-widget.expanded .chatbot-body {
    display: block !important;
}

.chatbot-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #000;
}

.user-message .message-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content p {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message .message-content {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Suggested Questions in Bot Messages */
.suggested-questions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.suggested-title {
    margin: 0 0 0.8rem 0;
    font-size: 0.9rem;
    color: #00ff88;
}

.suggested-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggested-question {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #00ff88;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.suggested-question:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chatbot-input input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.chatbot-input button {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.chatbot-quick-questions {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.chatbot-quick-questions p {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0 0 0.8rem 0;
    text-align: center;
    font-weight: 500;
}

.quick-questions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quick-questions-grid:last-child {
    margin-bottom: 0;
}

.quick-question {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    outline: none;
}

.quick-question:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

/* Chatbot Responsive Design */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    
    .chatbot-widget.expanded {
        left: 15px;
        width: auto;
        max-width: none;
    }
    
    .chatbot-header {
        padding: 1rem;
    }
    
    .chatbot-info h4 {
        font-size: 1rem;
    }
    
    .chatbot-info p {
        font-size: 0.8rem;
    }
    
    .quick-questions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-question {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
        border-radius: 15px;
    }
    
    .chatbot-header {
        padding: 0.8rem;
    }
    
    .chatbot-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .chatbot-toggle {
        width: 30px;
        height: 30px;
    }
    
    .message-content {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .chatbot-input {
        padding: 0.8rem;
    }
    
    .chatbot-input input {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .chatbot-input button {
        width: 35px;
        height: 35px;
    }
}

/* Chatbot Animation */
@keyframes chatbotSlideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chatbot-widget {
    animation: chatbotSlideIn 0.5s ease-out;
}

/* Chatbot Message Animation */
.message {
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Typing indicators removed for cleaner experience */

/* Enhanced Chatbot Styles */
.chatbot-widget {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 136, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-widget:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.chatbot-header {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, #00ff88 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chatbot-widget.expanded .chatbot-header {
    height: auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.chatbot-header:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #00d4ff 100%);
    background-size: 200% 200%;
}

/* Enhanced Message Styles */
.message-content {
    position: relative;
    overflow: hidden;
}

.message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.message:hover .message-content::before {
    transform: translateX(100%);
}

/* Horizontal Scrolling Questions Container */
.questions-scroll-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.questions-scroll-wrapper {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.questions-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Enhanced Quick Questions */
.quick-question {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    min-width: 140px;
    white-space: nowrap;
}

/* Scroll Indicators */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #00ff88;
    font-size: 0.8rem;
}

.scroll-indicator:hover {
    background: rgba(0, 255, 136, 0.4);
    border-color: rgba(0, 255, 136, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.scroll-indicator.left {
    left: -15px;
}

.scroll-indicator.right {
    right: -15px;
}

.scroll-indicator.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Chatbot Actions */
.chatbot-actions {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Close Button */
.chatbot-close-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 59, 48, 0.1));
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    outline: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
}

.chatbot-close-btn:hover {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.4), rgba(255, 59, 48, 0.2));
    border-color: rgba(255, 59, 48, 0.6);
    color: #ff8e8e;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.3);
}

.quick-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
}

.quick-question:hover::before {
    left: 100%;
}

.quick-question:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 136, 0.1));
    border-color: rgba(0, 255, 136, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* Enhanced Input Field */
.chatbot-input input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-input input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2), 0 8px 25px rgba(0, 255, 136, 0.1);
    transform: scale(1.02);
}

/* Enhanced Send Button */
.chatbot-input button {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-input button:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
    background-position: 100% 50%;
}

/* Message Hover Effects */
.message:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.bot-message:hover .message-avatar {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Enhanced Scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .chatbot-widget {
        transform: none !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }
    
    .chatbot-widget:hover {
        transform: none !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }
    
    .quick-question:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    /* Mobile suggested questions */
    .suggested-buttons {
        gap: 0.4rem;
    }
    
    .suggested-question {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        min-width: 80px;
    }
}

/* Loading States */
.chatbot-widget.loading {
    pointer-events: none;
    opacity: 0.8;
}

.chatbot-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-top: 2px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide Details Button Styles */
.details-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hide-details-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    font-family: 'Poppins', sans-serif;
}

.hide-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #d32f2f);
}

.hide-details-btn:active {
    transform: translateY(0);
}

/* Mobile Responsiveness for Hide Details Button */
@media (max-width: 768px) {
    .hide-details-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        margin: 0;
    }
    
    .details-actions {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hide-details-btn {
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* Mobile Responsiveness for Card Details */
@media (max-width: 768px) {
    .card-details {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .details-content h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .module-group {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .module-group h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .module-group li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }
    
    .bonus-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .bonus-section h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .card-details {
        padding: 0.8rem;
    }
    
    .module-group {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .module-group h5 {
        font-size: 0.95rem;
    }
    
    .module-group li {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
}

/* Hostinger Compatibility Fallbacks */
@supports not (backdrop-filter: blur(20px)) {
    .nav-menu.active {
        background: rgba(10, 10, 10, 0.98);
    }
    
    .hero-background {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Fallback for browsers that don't support CSS Grid */
@supports not (display: grid) {
    .products-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .product-card {
        flex: 0 1 300px;
        margin: 1rem;
    }
}

/* Fallback for browsers that don't support CSS Variables */
@supports not (--custom-property: value) {
    .cta-button {
        background: linear-gradient(135deg, #00ff88, #00cc6a);
    }
    
    .hero-title {
        color: #ffffff;
    }
}

/* Ensure smooth scrolling works on all browsers */
html {
    scroll-behavior: smooth;
}

/* Fallback for older browsers */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .formation-card {
        display: block;
        margin-bottom: 2rem;
    }
    
    .products-grid {
        display: block;
    }
}

/* Enhanced Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger span {
        width: 100%;
        height: 3px;
        background: #00ff88;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        margin: 1rem 0;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        width: 80%;
        text-align: center;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(0, 255, 136, 0.1);
        transform: translateY(-2px);
    }
    
    /* Ensure body scroll is prevented when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Enhanced Toggle Details Animation */
.card-details {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-details.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
}

.card-details.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    display: none;
}

/* Touch-friendly button styles */
.details-btn, .hide-details-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ensure smooth animations on all devices */
@media (prefers-reduced-motion: no-preference) {
    .card-details {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu {
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Fallback for devices that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .nav-menu.active {
        background: rgba(10, 10, 10, 0.98);
    }
}

/* Ensure proper z-index stacking */
.navbar {
    z-index: 1000;
}

.hamburger {
    z-index: 1001;
}

.nav-menu {
    z-index: 999;
}

/* Enhanced scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.8);
}

/* Enhanced Details Section Styling */
.card-details {
    background: rgba(0, 255, 136, 0.02);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-details .details-content {
    padding: 2rem;
}

.card-details .details-content h4 {
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Enhanced Module Groups */
.module-group {
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.15);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.1);
}

.module-group:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.25);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.15);
}

/* Enhanced Bonus Section */
.bonus-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.bonus-section:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.12));
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.5) rgba(255, 255, 255, 0.05);
}

/* Enhanced focus states for better accessibility */
.nav-link:focus,
.details-btn:focus,
.access-btn:focus {
    outline: 2px solid rgba(0, 255, 136, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Test Sections Styles */
.test-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.02) 0%, rgba(0, 212, 255, 0.02) 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.test-section .section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.test-section .section-subtitle {
    text-align: center;
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.test-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
}

.test-card h3 {
    color: #00ff88;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.test-card p {
    color: #cccccc;
    text-align: center;
    margin-bottom: 2rem;
}

/* Scroll Demo Styles */
.scroll-demo {
    height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.scroll-item {
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00ff88;
    color: #ffffff;
    transition: all 0.3s ease;
}

.scroll-item:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateX(5px);
}

/* Test Section Responsive */
@media (max-width: 768px) {
    .test-section {
        padding: 80px 0;
    }
    
    .test-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .test-card h3 {
        font-size: 1.3rem;
    }
    
    .scroll-demo {
        height: 250px;
    }
    
    .scroll-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Loading states for better UX */
.card-details.loading {
    position: relative;
}

.card-details.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* CRITICAL: Ensure hamburger button works on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
        margin: 0;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .hamburger span {
        width: 100%;
        height: 3px;
        background: #00ff88;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Ensure the button area is large enough for touch */
    .hamburger::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
    
    /* Force display on mobile */
    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Mobile: show nav menu as horizontal scroller, hide hamburger */
@media (max-width: 768px) {
	/* Hide hamburger button */
	.hamburger { display: none !important; }

	/* Make nav menu always visible and horizontally scrollable */
	.nav-menu {
		position: sticky !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: auto !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 0.5rem !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		white-space: nowrap !important;
		padding: 10px 12px !important;
		background: rgba(10, 10, 10, 0.9) !important;
		backdrop-filter: saturate(120%) blur(8px) !important;
		-webkit-backdrop-filter: saturate(120%) blur(8px) !important;
		z-index: 1000 !important;
		box-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
		/* Smooth, gesture-friendly horizontal scroll */
		-webkit-overflow-scrolling: touch !important;
		scroll-behavior: smooth !important;
		scroll-snap-type: x mandatory !important;
	}

	/* Keep active class harmless */
	.nav-menu.active { left: 0 !important; }

	/* Links inside horizontal scroller */
	.nav-menu .nav-link {
		flex: 0 0 auto !important;
		display: inline-block !important;
		padding: 10px 14px !important;
		border-radius: 10px !important;
		font-size: 0.95rem !important;
		color: #fff !important;
		text-decoration: none !important;
		background: rgba(255,255,255,0.04) !important;
		border: 1px solid rgba(255,255,255,0.08) !important;
		transition: background .2s ease, transform .2s ease !important;
		scroll-snap-align: center !important;
	}
	.nav-menu .nav-link:hover { background: rgba(255,255,255,0.08) !important; transform: translateY(-1px) !important; }

	/* Active link emphasis */
	.nav-menu .nav-link.active {
		background: rgba(0,255,136,0.15) !important;
		border-color: rgba(0,255,136,0.35) !important;
	}

	/* Visible thin scrollbar for overflow */
	.nav-menu::-webkit-scrollbar { height: 6px; }
	.nav-menu::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
	.nav-menu::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.5); border-radius: 4px; }

	/* Neutralize body scroll lock if any JS toggles it */
	body.menu-open { overflow: auto !important; position: static !important; width: auto !important; }

	/* Mobile: Always show hidden details sections */
	.card-details {
		display: block !important;
		opacity: 1 !important;
		transform: none !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.card-details.hidden,
	.card-details.show {
		display: block !important;
		opacity: 1 !important;
		transform: none !important;
		max-height: none !important;
	}

	/* Hide toggle buttons on mobile since details are always visible */
	.details-btn,
	.hide-details-btn {
		display: none !important;
	}

	/* Make details content scrollable if too long */
	.details-content {
		max-height: 60vh !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		padding-right: 10px !important;
	}

	/* Add scrollbar styling for details */
	.details-content::-webkit-scrollbar { width: 6px; }
	.details-content::-webkit-scrollbar-track { background: rgba(0,255,136,0.1); border-radius: 3px; }
	.details-content::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.5); border-radius: 3px; }

	/* Optimize module groups for mobile */
	.module-group {
		margin-bottom: 1.5rem !important;
		padding: 1rem !important;
	}

	.module-group h5 {
		font-size: 1rem !important;
		margin-bottom: 0.8rem !important;
	}

	.module-group li {
		font-size: 0.9rem !important;
		margin-bottom: 0.6rem !important;
		line-height: 1.4 !important;
	}
}

/* Final Mobile Navbar Responsiveness Override (Simple horizontal scroller, no hamburger) */
@media (max-width: 768px) {
	.navbar { height: 70px; }
	.nav-container { position: relative !important; height: 70px; display: flex; align-items: center; }

	/* Hide hamburger completely */
	.hamburger { display: none !important; }

	/* Always-visible horizontal scroller */
	.nav-menu {
		position: sticky !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 0.5rem !important;
		padding: 10px 12px !important;
		background: rgba(10,10,10,0.9) !important;
		backdrop-filter: saturate(120%) blur(8px) !important;
		-webkit-backdrop-filter: saturate(120%) blur(8px) !important;
		z-index: 1001 !important;
		box-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
		white-space: nowrap !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.nav-menu.active { left: 0 !important; display: flex !important; }

	.nav-menu .nav-link {
		flex: 0 0 auto !important;
		display: inline-block !important;
		padding: 10px 14px !important;
		border-radius: 10px !important;
		font-size: 0.95rem !important;
		color: #fff !important;
		text-decoration: none !important;
		background: rgba(255,255,255,0.04) !important;
		border: 1px solid rgba(255,255,255,0.08) !important;
		transition: background .2s ease, transform .2s ease !important;
	}
	.nav-menu .nav-link:hover { background: rgba(255,255,255,0.08) !important; transform: translateY(-1px) !important; }
}

/* Details inside card-content adjustments */
.formation-card .card-content .details-content {
	margin-top: 1rem;
	max-height: none;
	padding-right: 0;
}

/* Keep inner scrolling tidy if needed */
@media (max-width: 768px) {
	.formation-card .card-content .details-content {
		max-height: none; /* allow full content flow; outer page scroll handles */
	}
}

/* Mobile Bottom Navigation Bar Override */
@media (max-width: 768px) {
	:root { --bottom-nav-height: 64px; }
	/* Prevent content from being hidden behind bottom nav */
	body { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px)) !important; }

	/* Bottom-fixed, horizontally scrollable nav */
	.nav-menu {
		position: fixed !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 0.5rem !important;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
		background: rgba(10,10,10,0.9) !important;
		backdrop-filter: saturate(120%) blur(8px) !important;
		-webkit-backdrop-filter: saturate(120%) blur(8px) !important;
		border-top: 1px solid rgba(255,255,255,0.08) !important;
		box-shadow: 0 -6px 16px rgba(0,0,0,0.35) !important;
		white-space: nowrap !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch !important;
		scroll-behavior: smooth !important;
		scroll-snap-type: x mandatory !important;
		z-index: 1002 !important;
	}

	.nav-menu .nav-link {
		flex: 0 0 auto !important;
		display: inline-block !important;
		padding: 8px 12px !important;
		border-radius: 10px !important;
		font-size: 0.95rem !important;
		background: rgba(255,255,255,0.06) !important;
		border: 1px solid rgba(255,255,255,0.08) !important;
		scroll-snap-align: center !important;
	}

	/* Hide hamburger completely */
	.hamburger { display: none !important; }

	/* Lift chatbot above bottom nav */
	.chatbot-widget,
	.chatbot-widget.expanded {
		position: fixed !important;
		bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px)) !important;
		right: 16px !important;
		z-index: 1100 !important;
	}
}