/* --- Global Styles & Resets (Foundational) --- */
@import url('https://fonts.googleapis.com/css2?family=Marcellus+SC&family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Artistic & Inviting */
    --color-primary-dark: #2c3e50; /* Deep Charcoal/Slate */
    --color-primary-medium: #34495e; /* Slightly lighter slate */
    --color-accent: #e74c3c; /* A vibrant, inspiring coral/red for CTAs */
    --color-secondary-accent: #2ecc71; /* A subtle green for highlights */
    --color-light-background: #fdfdfd; /* Off-white, slightly brighter for gradient contrast */
    --color-dark-text: #333333; /* For most body text */
    --color-light-text: #ffffff; /* For text on dark backgrounds */
    --color-border: #bdc3c7; /* Light grey for subtle lines */

    /* Font Families */
    --font-heading: 'Marcellus SC', serif; /* Elegant, classic, artistic */
    --font-body: 'Montserrat', sans-serif; /* Clean, modern, highly readable */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-dark-text);
    /* Subtle gradient background for the entire body */
    background: linear-gradient(135deg, var(--color-light-background) 0%, #edf1f4 100%);
    -webkit-font-smoothing: antialiased; /* Better text rendering */
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

img {
    max-width: 100%; /* Ensure images don't overflow their containers */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Removes extra space below images */
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 600; /* Medium bold for elegance */
}

h1 {
    font-size: 3.2rem; /* Larger for impact */
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Subtle underline for section titles */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem; /* Slightly larger for readability */
}

ul {
    list-style: none; /* Remove default bullets */
    margin-bottom: var(--spacing-md);
}

ul li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

/* Custom bullet points for lists */
ul li::before {
    content: '\2713'; /* Checkmark Unicode */
    font-family: 'Arial', sans-serif; /* Ensure checkmark displays */
    color: var(--color-secondary-accent);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* --- Fixed Social Proof (Sticks to the corner) --- */
.social-proof-fixed {
    position: fixed; /* Makes it stick to the viewport */
    bottom: var(--spacing-md); /* Adjust to desired bottom position */
    right: var(--spacing-md); /* Adjust to desired right position */
    background-color: rgba(46, 204, 113, 0.9); /* Green accent with slight transparency */
    color: var(--color-light-text);
    padding: 0.7rem 1.5rem;
    border-radius: 8px; /* Slightly more rounded */
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Ensure it's above most content but below popups */
    cursor: default; /* Not clickable itself */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-proof-fixed:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    background-color: var(--color-secondary-accent); /* Solid green on hover */
}

.social-proof-fixed .icon {
    margin-right: 0.8rem;
    font-size: 1.5rem;
}

/* For the dynamic number */
.social-proof-fixed #active-buyers {
    color: var(--color-primary-dark); /* Darker text for numbers on green background */
    font-weight: 700;
}

/* --- Hero Section --- */
.hero {
    /* Gradient background - subtle blue-grey to dark slate */
    background: linear-gradient(135deg, #4a6c8e, var(--color-primary-dark));
    color: var(--color-light-text);
    text-align: center;
    padding: 6rem 0; /* Reduced from 8rem for a tighter look */
    position: relative;
    overflow: hidden;
}

/* Ensure hero content is above any potential overlays */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: var(--spacing-md) auto;
    line-height: 1.5;
    font-weight: 300; /* Lighter for a more sophisticated feel */
}

.hero h1 {
    color: var(--color-light-text);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

/* --- CTA Button (Re-styled for prominence) --- */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-light-text);
    padding: 1.2rem 2.5rem;
    border-radius: 50px; /* Pill shape for friendly appeal */
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    margin-top: var(--spacing-md);
}

.cta-button:hover {
    background-color: #c0392b; /* Darker accent on hover */
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* --- Sections Styling --- */
section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--color-border);
    /* Ensure sections have a background to sit on top of body gradient */
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for subtle blend */
}

section:last-of-type {
    border-bottom: none;
}

/* Specific section backgrounds (slightly transparent to let body gradient show through) */
.welcome, .what-you-learn, .testimonials, .instructor-bio, .faq {
    background-color: rgba(255, 255, 255, 0.9);
}

.gallery, .what-you-get {
    background-color: rgba(247, 249, 250, 0.9); /* Slightly off-white, slightly transparent */
}

/* --- Image Gallery --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.image-gallery img {
    width: 100%; /* Image takes full width of its grid cell */
    height: auto; /* **Crucially, allow height to adjust proportionally** */
    object-fit: cover; /* This will ensure the image covers the area, potentially cropping excess */
    border-radius: 8px; /* Soften corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Testimonials --- */
.testimonials .testimonial {
    background-color: #ffffff;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-md);
    border-left: 5px solid var(--color-secondary-accent);
    position: relative;
    overflow: hidden; /* For pseudo-element */
}

.testimonials .testimonial p {
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary-dark);
}

.testimonials .testimonial strong {
    display: block;
    text-align: right;
    margin-top: var(--spacing-sm);
    font-weight: 700;
    color: var(--color-accent);
}

/* Subtle quote icon in testimonials */
.testimonials .testimonial::before {
    content: '\201C'; /* Left double quotation mark */
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -20px;
    left: 20px;
    z-index: 0;
}


/* --- Course Features & Bonuses --- */
.course-feature-list, .course-bonus-list {
    background-color: #ffffff;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.course-feature-list h3, .course-bonus-list h3 {
    text-align: center;
    margin-top: 0;
    color: var(--color-accent);
    font-size: 2rem;
    font-weight: 700;
}

.course-bonus-list p {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-style: italic;
    font-weight: 300;
}

/* --- Course Pricing --- */
.course-pricing {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-medium));
    color: var(--color-light-text);
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-top: var(--spacing-xl);
}

.course-pricing h2 {
    color: var(--color-light-text);
    margin-bottom: var(--spacing-lg);
}

.course-pricing h2::after {
    background-color: var(--color-secondary-accent);
}

/* --- Countdown Timer --- */
.countdown-timer {
    background-color: rgba(0, 0, 0, 0.2); /* Darker semi-transparent for contrast */
    padding: 1rem; /* Smaller padding for the box */
    border-radius: 8px;
    margin: var(--spacing-lg) auto;
    max-width: 450px; /* Reduced max-width for smaller box */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    gap: 0.8rem; /* Space between time units */
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px; /* Default min-width */
    margin: 0; /* Remove any default margins */
}

.time-unit span.digit {
    font-family: var(--font-heading);
    font-size: 3rem; /* Slightly smaller digits for smaller box */
    font-weight: 700;
    color: var(--color-secondary-accent);
    line-height: 1;
    display: flex; /* Make digit a flex container */
    justify-content: center;
    align-items: center;
    width: 60px; /* Fixed width for circle */
    height: 60px; /* Fixed height for circle */
    border-radius: 50%; /* Make it a circle */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background for digits */
    border: 2px solid var(--color-secondary-accent); /* Border for the circle */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.time-unit span.label {
    font-family: var(--font-body);
    font-size: 0.8rem; /* Smaller label text */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 0.4rem; /* Space between digit circle and label */
    white-space: nowrap;
}

.product-image-wrapper {
    margin-bottom: var(--spacing-md);
}

.product-image-above-price {
    width: 100%; /* Ensure it takes full available width in its container */
    max-width: 300px; /* Optional: Keep a max-width if it gets too large on very big screens */
    margin: 0 auto var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.price-highlight-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.old-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.current-price {
    font-size: 4rem; /* Huge for impact! */
    font-weight: 700;
    color: var(--color-secondary-accent); /* Green for "money" */
    line-height: 1;
}

.price-breakdown {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
}

/* --- Guarantee Section --- */
.guarantee-section {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.guarantee-section h2 {
    color: var(--color-primary-dark);
}

.guarantee-section ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) auto;
    max-width: 800px;
}

.guarantee-section ul li {
    position: relative;
    text-align: left;
    padding-left: 40px;
    margin-bottom: var(--spacing-sm);
    font-size: 1.15rem;
    color: var(--color-primary-dark);
}

.guarantee-section ul li::before {
    content: '\2714'; /* Heavy Check Mark */
    font-family: 'Arial', sans-serif;
    color: var(--color-secondary-accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.guarantee-section p {
    font-size: 1.2rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.button-subline {
    font-size: 0.95rem;
    color: var(--color-primary-dark);
    margin-top: var(--spacing-xs);
    font-style: italic;
    font-weight: 400;
}

.purchase-process-link a {
    display: inline-block;
    margin-top: var(--spacing-md);
    font-size: 1rem;
    color: var(--color-primary-medium);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.purchase-process-link a:hover {
    color: var(--color-accent);
}

/* --- Instructor Bio --- */
.instructor-bio .bio-content {
    display: flex;
    flex-direction: column; /* Stack on small screens */
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.instructor-bio img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Circular image */
    object-fit: cover;
    border: 5px solid var(--color-accent); /* Artistic border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0; /* Prevent shrinking */
}

.instructor-bio .bio-content p {
    max-width: 700px; /* Constrain text width */
    margin: 0 auto;
    text-align: left; /* Align text within its constrained width */
}

@media (min-width: 768px) {
    .instructor-bio .bio-content {
        flex-direction: row; /* Row on larger screens */
        text-align: left;
    }

    .instructor-bio img {
        margin-right: var(--spacing-md); /* Space next to text */
        margin-bottom: 0;
    }
}


/* --- FAQ Section --- */
.faq-item {
    background-color: #ffffff;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-xs);
    cursor: pointer; /* Implies expand/collapse behavior */
}

.faq-item p {
    font-size: 1rem;
    margin-top: 0;
    padding-left: var(--spacing-xs); /* Indent for readability */
}

/* --- Footer --- */
footer {
    background-color: var(--color-primary-dark);
    color: var(--color-light-text);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-links h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: normal;
    font-family: var(--font-body); /* Footer links use body font */
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* --- Exit-Intent Pop-up --- */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* High z-index to be on top */
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Fully transparent by default */
    transition: visibility 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

.exit-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.exit-popup-content {
    background: linear-gradient(135deg, var(--color-primary-medium), var(--color-primary-dark));
    color: var(--color-light-text);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9); /* Start slightly smaller */
    transition: transform 0.3s ease;
}

.exit-popup-overlay.active .exit-popup-content {
    transform: scale(1); /* Scale up when active */
}

.exit-popup-content h3 {
    color: var(--color-secondary-accent);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.exit-popup-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.exit-popup-price {
    margin-bottom: var(--spacing-md);
}

.old-price-popup {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 1rem;
}

.new-price-popup {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent); /* Use accent color for new price */
    line-height: 1;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-popup:hover {
    color: var(--color-light-text);
}

.exit-popup-button {
    /* Inherits cta-button styles, but ensure it's centered and has appropriate margin */
    margin: var(--spacing-md) auto; 
}

.popup-small-text {
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 6rem var(--spacing-md); /* Apply responsive padding for hero */
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Adjust fixed social proof for smaller screens */
    .social-proof-fixed {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        bottom: var(--spacing-sm); /* Move slightly up */
        right: var(--spacing-sm); /* Move slightly left */
    }
    .social-proof-fixed .icon {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .image-gallery {
        grid-template-columns: 1fr; /* Stack images on small screens */
    }

    .testimonials .testimonial {
        padding: var(--spacing-md);
    }

    /* Countdown Timer adjustments for 768px */
    .countdown-timer {
        padding: 0.8rem; /* Smaller padding */
        gap: 0.6rem; /* Reduced gap */
        max-width: 380px; /* Further reduced max-width */
    }
    .time-unit {
        min-width: 60px; /* Slightly smaller min-width */
    }
    .time-unit span.digit {
        font-size: 2.5rem; /* Smaller digits */
        width: 55px; /* Adjust circle size */
        height: 55px; /* Adjust circle size */
    }
    .time-unit span.label {
        font-size: 0.75rem; /* Smaller labels */
    }

    .course-feature-list, .course-bonus-list {
        padding: var(--spacing-md);
    }

    .course-feature-list h3, .course-bonus-list h3 {
        font-size: 1.6rem;
    }

    .price-highlight-container {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .old-price {
        font-size: 1.1rem;
    }

    .current-price {
        font-size: 3rem;
    }

    .guarantee-section ul li {
        font-size: 1rem;
        padding-left: 30px;
    }

    .guarantee-section ul li::before {
        font-size: 1.2rem;
    }

    .instructor-bio .bio-content {
        flex-direction: column;
    }

    .exit-popup-content {
        padding: var(--spacing-md);
    }
    .exit-popup-content h3 {
        font-size: 1.6rem;
    }
    .new-price-popup {
        font-size: 2.5rem;
    }
    .old-price-popup {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 4rem var(--spacing-sm); /* Further reduce padding for very small screens */
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .container {
        padding: var(--spacing-sm);
    }

    /* Countdown Timer adjustments for 480px */
    .countdown-timer {
        padding: 0.6rem; /* Even smaller padding */
        gap: 0.4rem; /* Further reduced gap */
        max-width: 300px; /* Even smaller max-width */
    }
    .time-unit {
        min-width: 50px; /* Even smaller min-width */
    }
    .time-unit span.digit {
        font-size: 2.2rem; /* Even smaller digits */
        width: 50px; /* Adjust circle size */
        height: 50px; /* Adjust circle size */
    }
    .time-unit span.label {
        font-size: 0.65rem; /* Even smaller labels */
    }

    .price-breakdown {
        font-size: 1rem;
    }
}