/* ===========================
   Google Fonts Import
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Inter:wght@400;500&display=swap');

/* ===========================
   Design System Tokens
   =========================== */
:root {
    /* Colors */
    --deep-learning-blue: #0B2A5B;
    --memory-orange: #FF6B00;
    --success-gold: #FFC107;
    --growth-green: #34A853;
    --smart-blue: #1E5EFF;
    --red-orange: #ff5e3a;

    /* Gradients */
    --cta-gradient: linear-gradient(135deg, #FF6B00, #ff5e3a);
    --topbar-gradient: linear-gradient(135deg, #FF6B00, #ff5e3a);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max: 1200px;

    /* Shadows */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --cta-shadow: 0 8px 25px rgba(255, 94, 58, 0.4);

    /* Border Radius */
    --radius-card: 16px;
    --radius-pill: 50px;

    /* Transitions */
    --transition-base: 0.3s ease;
}

/* ===========================
   Base Reset
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Content Protection Popup */
#protection-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.protection-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.protection-icon {
    font-size: 3rem;
    color: #c0392b;
    margin-bottom: 16px;
}

.protection-modal h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.protection-modal p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.protection-modal button {
    background: var(--cta-gradient);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.protection-modal button:hover {
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

/* ===========================
   Utility Classes
   =========================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===========================
   CTA Button Component
   =========================== */
.cta-button {
    background: var(--cta-gradient);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 18px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 94, 58, 0.4);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-anim 2s infinite;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 94, 58, 0.5);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Pulse Animation */
@keyframes pulse-anim {
    0% {
        box-shadow: 0 8px 25px rgba(255, 94, 58, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(255, 94, 58, 0.6);
    }
    100% {
        box-shadow: 0 8px 25px rgba(255, 94, 58, 0.4);
    }
}

/* Shine Pseudo-element */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.cta-button:hover::after {
    left: 100%;
}

/* ===========================
   Card Component
   =========================== */
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: var(--deep-learning-blue);
    padding: 100px 20px 80px;
    color: #ffffff;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero-text .highlight {
    color: var(--success-gold);
}

.hero-text .sub-headline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-image {
    flex-shrink: 0;
}

.hero-coach-img {
    width: 420px;
    height: auto;
    max-height: 480px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

.coach-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--smart-blue);
    box-shadow: 0 15px 40px rgba(30, 94, 255, 0.3);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.coach-fallback {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--smart-blue);
    box-shadow: 0 15px 40px rgba(30, 94, 255, 0.3);
    background: var(--deep-learning-blue);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-section .coach-fallback {
    width: 100%;
    height: 240px;
    border-radius: 0;
    border: none;
}

/* ===========================
   Scroll Reveal Animation
   =========================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Reduced Motion Override
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-reveal.visible {
        transform: none;
    }

    .cta-button {
        animation: none;
        transition: none;
    }

    .cta-button::after {
        display: none;
    }

    .cta-button:hover {
        transform: none;
    }

    .card {
        transition: none;
    }

    .card:hover {
        transform: none;
    }

    .hero-coach-img,
    .coach-img,
    .coach-fallback {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   Top Bar (Urgency Banner)
   =========================== */
@keyframes blinker {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #FF6B00, #ff5e3a);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
}

.blink-text {
    animation: blinker 1s linear infinite;
}

/* Body offset for fixed top bar */
body {
    padding-top: 50px;
}

/* ===========================
   Countdown Timer Section
   =========================== */
.countdown-section {
    background: linear-gradient(135deg, #0a1628, #0B2A5B);
    padding: var(--section-padding);
    text-align: center;
    color: #ffffff;
}

.countdown-section .section-title.light {
    color: #ffffff;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 24px;
    min-width: 100px;
    text-align: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--success-gold);
    display: block;
}

.countdown-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    display: block;
}

.countdown-expired {
    font-size: 1.5rem;
    color: var(--success-gold);
    font-weight: 700;
    margin-top: 2rem;
}

/* ===========================
   Challenges Section
   =========================== */
.challenges-section {
    padding: var(--section-padding);
    background: #f8f9fa;
    text-align: center;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.challenge-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.challenge-icon {
    font-size: 2.5rem;
    color: var(--memory-orange);
    margin-bottom: 1rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===========================
   Curriculum Section
   =========================== */
.curriculum-section {
    padding: var(--section-padding);
    background: #ffffff;
    text-align: center;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.day-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.day-card-header {
    background: linear-gradient(135deg, #FF6B00, #ff5e3a);
    padding: 24px;
    color: #ffffff;
}

.day-card-header.day-2-header {
    background: linear-gradient(135deg, #1E5EFF, #0B2A5B);
}

.day-card-header.day-3-header {
    background: linear-gradient(135deg, #34A853, #1a6b3c);
}

.curriculum-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.day-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.day-checklist {
    padding: 24px;
    text-align: left;
}

.day-checklist li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-checklist i.fa-check {
    color: var(--growth-green);
}

/* ===========================
   Who This Event Is For Section
   =========================== */
.who-for-section {
    padding: var(--section-padding);
    background: #fff5f5;
}

.who-for-section .section-title {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.who-for-card {
    max-width: 800px;
}

.who-for-list {
    list-style: none;
    padding: 0;
}

.who-for-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
}

.who-check {
    flex-shrink: 0;
    margin-top: 2px;
}

.who-check i {
    color: var(--memory-orange);
    font-size: 1.2rem;
}

/* ===========================
   Coach Section
   =========================== */
.coach-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.coach-section .section-title {
    text-align: center;
}

.coach-content {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.coach-card {
    flex-shrink: 0;
    width: 260px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    background: linear-gradient(180deg, #1a3a6b 0%, #0B2A5B 100%);
}

.coach-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.coach-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    border: none;
    box-shadow: none;
    animation: none;
    display: block;
}

.coach-card-image img.coach-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    animation: none;
}

.coach-card .coach-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
}

.coach-card-overlay {
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

.coach-card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.coach-card-role {
    font-size: 0.85rem;
    color: var(--success-gold);
    font-weight: 500;
}

.coach-card-badge {
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-card-badge i {
    color: var(--memory-orange);
}

.ebook-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--memory-orange);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.ebook-download-btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.ebook-download-btn i {
    font-size: 1rem;
}

.coach-ebook {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.coach-ebook-label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-ebook-label i {
    color: var(--memory-orange);
}

.coach-card .coach-fallback {
    width: 100%;
    height: 240px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: linear-gradient(135deg, #1a3a6b, #0B2A5B);
    font-size: 4rem;
}

.coach-bio {
    flex: 1;
}

.coach-name {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.coach-role-subtitle {
    color: var(--smart-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.coach-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.coach-credentials {
    margin-bottom: 1.5rem;
    display: inline-block;
    text-align: left;
}

.coach-credentials li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333;
    text-align: left;
}

.coach-credentials i.fa-check {
    color: var(--growth-green);
    font-size: 0.85rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.coach-tagline {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--memory-orange);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ===========================
   Quotes Slider Section
   =========================== */
.quotes-section {
    padding: 50px 20px;
    background: linear-gradient(135deg, #0a1628, #0B2A5B);
}

.quotes-slider {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 20px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--success-gold);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.quote-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1rem;
    min-height: 60px;
    transition: opacity 0.5s ease;
}

.quote-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--success-gold);
    letter-spacing: 0.5px;
}

.quote-text.fade-out {
    opacity: 0;
}

.quote-text.fade-in {
    opacity: 1;
}

/* ===========================
   Included Section
   =========================== */
.included-section {
    padding: var(--section-padding);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.included-card {
    text-align: center;
    padding: 32px;
}

.included-icon {
    font-size: 2.5rem;
    color: var(--smart-blue);
    margin-bottom: 1rem;
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--deep-learning-blue);
    color: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
}

.testimonial-stars {
    color: var(--success-gold);
    margin-bottom: 1rem;
}

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

.testimonial-author strong {
    display: block;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Pricing Section
   =========================== */
.pricing-section {
    padding: var(--section-padding);
    background: var(--deep-learning-blue);
    color: #ffffff;
    text-align: center;
}

.pricing-section .section-title.light {
    color: #ffffff;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 48px;
    max-width: 500px;
    margin: 0 auto;
}

.price-anchor {
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.discount-badge {
    background: var(--growth-green);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 12px;
}

.current-price {
    margin-bottom: 1.5rem;
}

.currency {
    font-size: 2rem;
    vertical-align: super;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--success-gold);
}

.price-suffix {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-note {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.seats-left {
    margin-top: 1.5rem;
    color: var(--success-gold);
}

.payment-gateway-img {
    margin-top: 1.5rem;
    max-width: 380px;
    width: 100%;
    opacity: 0.85;
    border-radius: 8px;
    display: block;
}

.section-cta .payment-gateway-img,
.pricing-card .payment-gateway-img {
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    padding: var(--section-padding);
    background: #f8f9fa;
    text-align: center;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    gap: 16px;
}

.faq-question span {
    flex: 1;
    text-align: left;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: #666;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease, opacity 300ms ease;
    padding: 0 24px;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
    opacity: 1;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 30px 20px;
    text-align: center;
    background: #0a1628;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===========================
   Sticky CTA
   =========================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    text-align: center;
    z-index: 9990;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* ===========================
   Scroll-to-Top Button
   =========================== */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--memory-orange);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9980;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: transform 0.3s;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* ===========================
   Thank-You Page Overrides
   =========================== */
.thank-you-page {
    padding-top: 0;
}

/* ===========================
   Thank-You Page — New Card Design
   =========================== */
.thankyou-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f5f0e8;
}

.thankyou-card {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
    margin-top: 30px;
}

.thankyou-header {
    background: linear-gradient(135deg, #1a6b3c, #0f5132);
    padding: 50px 30px 30px;
    text-align: center;
    color: #ffffff;
    border-radius: 16px 16px 0 0;
}

.thankyou-checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #1a6b3c;
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    z-index: 1;
}

.thankyou-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.thankyou-header h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.thankyou-body {
    padding: 32px 30px;
    text-align: center;
}

.thankyou-incomplete {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f5132;
    margin-bottom: 8px;
}

.thankyou-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.redirect-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #333;
}

.redirect-label {
    font-weight: 600;
}

.redirect-percent {
    font-weight: 700;
    color: #0f5132;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 28px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1a6b3c, #25a55f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.whatsapp-join-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #25D366;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    margin-bottom: 20px;
}

.whatsapp-join-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.whatsapp-join-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.back-home-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #0f5132;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.back-home-link:hover {
    opacity: 0.7;
}

/* Thank-you page body override — no top-bar padding */
.thank-you-page {
    padding-top: 0;
}

/* ===========================
   Thank-You Hero Section (legacy — keep for compatibility)
   =========================== */
.thank-you-hero {
    background: linear-gradient(135deg, #0a1628, #0B2A5B);
    color: #ffffff;
    padding: 100px 20px 80px;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    font-size: 5rem;
    color: var(--growth-green);
    margin-bottom: 1.5rem;
    animation: checkmark-pop 0.6s ease-out;
}

.success-icon i {
    filter: drop-shadow(0 4px 20px rgba(52, 168, 83, 0.4));
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.workshop-name {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-weight: 500;
}

.workshop-datetime {
    font-size: 1.05rem;
    color: var(--success-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===========================
   Next Steps Cards
   =========================== */
.next-steps-section {
    padding: var(--section-padding);
    background: #f8f9fa;
}

.next-steps-section .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1a1a2e;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.next-step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.next-step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.next-step-card p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
}

.next-step-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ff8c00, #ff5e3a);
}

.next-step-icon.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.next-step-icon.share-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* ===========================
   Workshop Details Section
   =========================== */
.workshop-details-section {
    padding: var(--section-padding);
    text-align: center;
    background: #ffffff;
}

.workshop-details-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.workshop-details-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 600px;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    color: var(--smart-blue);
    font-size: 1.3rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.detail-item div {
    text-align: left;
}

.detail-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 2px;
}

.detail-item span {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* ===========================
   WhatsApp CTA Section
   =========================== */
.whatsapp-cta-section {
    padding: var(--section-padding);
    text-align: center;
    background: #f8f9fa;
}

.whatsapp-cta-section .section-title {
    text-align: center;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.whatsapp-description {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 2rem;
}

.whatsapp-cta {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-cta:hover {
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.whatsapp-cta i {
    margin-right: 8px;
    font-size: 1.2rem;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
}

/* ===========================
   Confetti Animation
   =========================== */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===========================
   Responsive Breakpoints
   =========================== */

/* --- Tablet/Small Desktop (≤992px) --- */
@media (max-width: 992px) {
    /* Stack hero section vertically */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    /* Limit grids to max 2 columns */
    .grid-3,
    .challenges-grid,
    .included-grid,
    .testimonials-grid,
    .next-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Coach section stacked */
    .coach-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .coach-card {
        width: 240px;
    }
}

/* --- Mobile Landscape/Tablet Portrait (≤768px) --- */
@media (max-width: 768px) {
    /* Single-column grids */
    .grid-2,
    .grid-3,
    .challenges-grid,
    .included-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Day-cards stack vertically */
    .curriculum-grid,
    .curriculum-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Next-steps cards single column (Thank-You page) */
    .next-steps-grid {
        grid-template-columns: 1fr;
    }

    /* Workshop details card full width */
    .workshop-details-card {
        padding: 24px 20px;
    }

    .detail-item {
        gap: 12px;
    }

    /* Minimum 44×44px touch targets for interactive elements */
    .cta-button,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* FAQ touch targets */
    .faq-question {
        min-height: 44px;
        padding: 14px 16px;
    }

    /* Ensure links/buttons have adequate tap area */
    .nav-link,
    .footer-link {
        padding: 10px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* --- Mobile Portrait (≤480px) --- */
@media (max-width: 480px) {
    /* Reduced section padding */
    section,
    .section {
        padding: 40px 16px;
    }

    /* Override CSS variable for section padding */
    :root {
        --section-padding: 40px 16px;
    }

    /* Heading font sizes capped at 1.5rem */
    h1, h2, h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .thank-you-hero h1 {
        font-size: 1.6rem;
    }

    .success-icon {
        font-size: 3.5rem;
    }

    /* Full-width CTA buttons */
    .cta-button {
        display: block;
        width: 100%;
        padding: 16px 24px;
        text-align: center;
    }

    /* Countdown boxes tighter */
    .countdown-box {
        padding: 12px 8px;
    }

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

    /* Container reduced padding */
    .container {
        padding: 0 12px;
    }
}

/* --- Overflow Prevention (320px–1920px) --- */
/* Note: overflow-x: hidden is already set on body in the base reset above.
   These rules ensure grid items, images, and embedded content don't
   break out of their containers at any viewport width. */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

.grid,
.grid-2,
.grid-3 {
    width: 100%;
    min-width: 0;
}

/* Ensure grid children cannot overflow their track */
.grid > *,
.grid-2 > *,
.grid-3 > * {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
