/* --- Base Styles & Variables --- */
:root {
    --primary-color: rgb(51, 162, 255); /* Blue */
    --secondary-color: rgb(158, 150, 137); /* Gray */
    --accent-color: #d29d00; /* Yellow/Gold */
    /* background-color: #0d1117; */
    --background-color: rgb(24, 26, 27);
    --text-color: rgb(216, 212, 207);
    --heading-color: rgb(216, 212, 207);
    --light-gray: rgb(50, 54, 56);
    --border-color: #787063;
    --card-color: rgb(24, 26, 27);

    --container-width: 1140px;
    --spacing-unit: 1rem; /* Approx 16px */
}

html {
    background-color: var(--background-color);
    color: white;
    font-size: 16px;
    /*text-align: center;*/
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing border-box;
}

img {
    max-width: none;
    max-height: none;
    width:  100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

body {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;   /* Remove underline */
    color: inherit;          /* Inherit color from parent */
}

.hidden {
    display: none !important;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.break-word {
    word-wrap: break-word;
}

.no-wrap {
    white-space: nowrap;
}

#panel {
    padding: 20px 0px;
    margin: -20px 0px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    width: 100%;
@media (min-aspect-ratio: 1/1) {
    max-width: 80%;
}
}

#panel-home {
    cursor: pointer;
}

#panel-login {
    cursor: pointer;
}

#menu {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#lesson-steps, #courses, #lessons, .lesson-step, .lesson-block {
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#lesson-steps, #lessons, .lesson-step, .lesson-block {
    flex-direction: column;
}

#lesson-steps {
    margin: 0px;
}

#lesson {
    width: 100%;
}

#courses {
    flex-direction: row;
    align-items: stretch;
}

.lesson-block, .highlight {
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-text {
    white-space: nowrap;
    font-size: 6.3vw;
    color: #0ed145;
@media (min-aspect-ratio: 1/1) {
    font-size: 5vw;
}
}

.card-img {
    width: 95vw;
@media (min-aspect-ratio: 1/1) {
    width: 73vw;
}
}

.lesson-step {
    margin: 0px;
    padding: 20px 0px;
    width: 100%;
    max-width: 600px;
    text-align: start;
    justify-content: start;
    align-items: start;
}

.lesson-block {
    text-align: start;
    justify-content: start;
    align-items: start;
    padding: 15px 25px;
    margin: -15px -25px;
    background-color: #212830;
    width: 100%;
}

.lesson-form {
    width: 100px;
    height: 100px;
    border: 3px solid #27c654;
    border-radius: 50%;
    cursor: pointer;
    background-color: #2bcc58;
}

.lesson-name {
    z-index: 1;
    width: 150px;
}

.lesson-button {
    width: auto;
    cursor: pointer;
    padding: 10px;
    margin-top: 5px;
    margin-right: -10px;
    margin-left: -10px;
    border-radius: 10px;
    border: 0px;
    border-color: transparent;
    /*border: 3px solid #373c3e;*/
}


#course-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.flex-start {
    align-self: flex-start;
}

.flex-end {
    align-self: flex-end;
}

.highlight {
    width: 100%;
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

code {
    background-color: #2f3742;
    padding: 2px 4px;
    margin: -0px -2px;
    border-radius: 3px;
}

#login-popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0000007F; /* Semi-transparent background */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#login-popup {
    background-color: #212830;
    padding: 50px;
    padding-bottom: 30px;
    border-radius: 16px;
    position: relative;
    width: 300px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

#login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

#login-button {
    /*background-color: #2bcc58;*/
    background-color: #2f3742;
    cursor: pointer;
}

#login-form > * {
    width: 100%;
    margin: 0px -8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
}

#login-good {
    color: #04e587;
}

#login-bad {
    color: red;
}

button:hover {
    opacity: 0.8;
}

/*section {*/
/*    background: #3030a0;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    width: 400px;*/
/*    height: 112px;*/
/*    border-radius: 6px;*/
/*    justify-content: space-between;*/
/*}*/

.product {
    display: flex;
}

.description > * {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*.price {*/
/*    opacity: 0.5;*/
/*}*/

#checkout-button {
    height: 36px;
    background: #556cd6;
    border: 0;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 6px 6px;
    transition: all 0.2s ease;
}


















/* Apply box-sizing globally */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    color: var(--text-color);
    /*background-color: var(--background-color);*/
    line-height: 1.6;
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

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

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 1.8);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.cta-button:hover {
    background-color: darken(var(--primary-color), 10%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

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

.primary-cta {
    background-color: var(--accent-color);
    /*color: var(--heading-color); /* Dark text on yellow */*/
}
.primary-cta:hover {
    background-color: darken(var(--accent-color), 10%);
    color: var(--heading-color);
}
.cta-subtext {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: calc(var(--spacing-unit)*0.5);
}


/* --- Sections --- */
section {
    padding-top: calc(var(--spacing-unit) * 3);
    padding-bottom: calc(var(--spacing-unit) * 3);
}

section:nth-of-type(even) { /* Alternate background for visual separation */
    background-color: var(--light-gray);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
}

.hero h1 {
    color: #ffffff;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.hero .sub-headline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: calc(var(--spacing-unit) * 2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-placeholder {
    max-width: 800px; /* Limit video width */
    margin: calc(var(--spacing-unit) * 2) auto;
    background-color: #000; /* Placeholder background */
    border: 1px solid var(--secondary-color);
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For potential play button overlay */
}
.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vsl-prompt {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: var(--spacing-unit);
}


.hero .cta-button {
    margin-top: calc(var(--spacing-unit) * 1.5);
}

/* --- Problem Section --- */
.problem-section {
    text-align: center;
}
.problem-section h2 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.problem-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: var(--spacing-unit);
    text-align: center;
}
.problem-points .point .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* --- Solution Section --- */
.solution-section {
    padding-left: calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 2);
}
.solution-section ul {
    list-style: none;
    padding-left: 0;
}
.solution-section li {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-size: 1.1rem;
}
.solution-section li ✅ { /* Or use a background image/pseudo-element */
    color: #28a745; /* Green checkmark */
    margin-right: calc(var(--spacing-unit) * 0.5);
    font-weight: bold;
}

/* --- Modules Section --- */
.modules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 1.5);
}
.module {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.module-title {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.modules-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* --- Testimonials Section --- */
.testimonials-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    gap: calc(var(--spacing-unit) * 1.5);
}
.testimonial-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    max-width: 100%;
    min-width: 90%;
}
.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto calc(var(--spacing-unit) * 1);
    object-fit: cover;
    border: 3px solid var(--light-gray);
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-unit);
    border-left: 3px solid var(--primary-color);
    padding-left: var(--spacing-unit);
    text-align: left;
}
.testimonial-card cite {
    font-weight: bold;
    color: var(--heading-color);
    display: block;
    margin-top: var(--spacing-unit);
}

/* --- Instructor Section --- */
.instructor-layout {
    display: flex;
    flex-direction: column; /* Mobile first */
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}
.instructor-photo img {
    width: 150px; /* Adjust size */
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--background-color); /* Frame effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.instructor-bio {
    flex: 1; /* Takes remaining space on larger screens */
    text-align: center; /* Mobile */
}

/* --- Bonuses Section --- */
.bonuses-section h2,
.bonuses-section h3 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.bonus-list {
    max-width: 700px;
    margin: 0 auto;
}
.bonus-item {
    display: flex;
    align-items: flex-start; /* Align icon top */
    gap: var(--spacing-unit);
    background-color: var(--background-color);
    padding: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.bonus-item:hover {
    transform: scale(1.02); /* Slight scale up */
    background-color: lighten(var(--background-color), 5%);
}
.bonus-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.bonus-item strong {
    display: block;
    color: var(--heading-color);
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}
.bonus-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
}


/* --- Pricing Section --- */
.pricing-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.pricing-subtext {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}
.pricing-tiers {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: calc(var(--spacing-unit) * 2);
    max-width: 600px; /* Limit width */
    margin: 0 auto;
}
.pricing-tier {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-self: center;
}
.pricing-tier h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}
.pricing-tier .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}
.pricing-tier .original-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: calc(var(--spacing-unit) * 0.5);
}
.pricing-tier .billing-cycle {
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-size: 0.9rem;
}
.pricing-tier ul {
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-align: left;
    padding-left: 0;
    flex-grow: 1;
    display: inline-block; /* Treat the UL like a block, but size to content */
    margin-left: auto; /* Center the block horizontally */
    margin-right: auto; /* Center the block horizontally */
}
.pricing-tier li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    display: flex;
    align-items: flex-start; /* Align checkmark to top of text */
    gap: calc(var(--spacing-unit) * 0.5); /* Space between checkmark and text */
    align-items: flex-start;
    justify-content: flex-start;
}
.pricing-tier .cta-button {
    width: 100%;
    margin-top: auto; /* Push button to bottom */
}
.pricing-tier.featured {
    border-color: var(--accent-color);
    border-width: 3px;
    position: relative; /* For potential badge */
    transform: scale(1.02); /* Slightly larger */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Optional Featured Badge */
.pricing-tier.featured::before {
    content: 'Best Value';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--heading-color);
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    font-weight: bold;
}
.pricing-tier .tier-note {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: var(--spacing-unit);
}

/* --- Guarantee Section --- */
.guarantee-section {
    background-color: var(--light-gray); /* Or a distinct color */
}
.guarantee-box {
    border: 2px dashed var(--accent-color); /* Or primary color */
    border-radius: 5px;
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--background-color); /* White background inside */
}
.guarantee-box h3 {
    color: var(--heading-color); /* Or primary */
    margin-bottom: var(--spacing-unit);
}
.guarantee-signature {
    margin-top: var(--spacing-unit);
    font-weight: bold;
}

/* --- FAQ Section --- */
.faq-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item summary {
    padding: var(--spacing-unit) 0;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker */
    color: var(--heading-color);
}
.faq-item summary::after { /* Custom marker */
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    transition: transform 0.2s ease-in-out;
    color: var(--primary-color);
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 0 var(--spacing-unit) 0; /* Padding for the answer */
    margin-bottom: 0;
    color: var(--secondary-color);
}
/* Hide default marker for details */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* --- Final CTA Section --- */
.final-cta-section {
    background-color: var(--primary-color); /* Match primary cta */
    color: #ffffff;
    text-align: center;
}
.final-cta-section h2 {
    color: #ffffff;
}
.final-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.final-cta-section .cta-button {
    margin-top: var(--spacing-unit);
}


/* --- Footer --- */
footer {
    /*background-color: var(--heading-color);*/
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5) 0;
    font-size: 0.9rem;
}
footer p {
    margin: 0;
}


/* --- Responsive Adjustments --- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .instructor-layout {
        flex-direction: row; /* Side-by-side layout */
        text-align: left;
    }
    .instructor-bio {
        text-align: left;
    }

    .pricing-tiers {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Allow multiple columns */
    }

     .problem-points {
         gap: calc(var(--spacing-unit) * 1.5);
     }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    .modules-list {
         grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    }
    .testimonial-cards {
         grid-template-columns: repeat(2, 1fr); /* Adjust as needed */
    }
     .bonus-list {
        max-width: 900px; /* Wider bonus list */
    }

    .testimonial-card {
        max-width: 50%;
        min-width: 40%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* You might not need many changes here if --container-width is set */
    .container {
        padding-left: 0; /* Remove padding if container handles width */
        padding-right: 0;
    }

    .testimonial-card {
        max-width: 50%;
        min-width: 40%;
    }
}
