/* Base Styles */
:root {
    --primary-color: #007bff;
    --primary-hover: #0069d9;
    --bg-left: #eef8ff;
    --bg-right: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-color: #e9ecef;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-right);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    padding-top: 80px;
    /* Space for navbar */
    position: relative;
}

/* Left Column */
/* Better split background approach */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--bg-left);
    z-index: -1;
}

.left-column {
    flex: 1;
    padding: 60px 40px 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
}

.headline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #0f172a;
}

.headline .highlight {
    color: var(--primary-color);
    font-style: italic;
}

.subheadline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 480px;
}

.features {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #334155;
}

.hero-image-container {
    position: relative;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    border-radius: 16px;
    border: 8px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 6px solid white;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotate(4deg);
}

.floating-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column */
.right-column {
    flex: 1;
    padding: 60px 0 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
}

.checkout-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 440px;
}

.checkout-card h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-right);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.price-details {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
}

.price-sub {
    font-size: 0.8rem;
    color: #adb5bd;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    background-color: #ddd;
    background-size: cover;
}

.avatar:first-child {
    margin-left: 0;
}

.av1 {
    background-color: #FFCDD2;
}

.av2 {
    background-color: #E1BEE7;
}

.av3 {
    background-color: #C5CAE9;
}

/* Footer */
.footer {
    padding: 30px 0;
    margin-top: auto;
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-left) 0%, #fff 100%);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #fff, transparent);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.course-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.course-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.course-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Global Footer Fix */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .headline {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    body::before {
        display: none;
    }

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

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: 2;
    }

    .main-content {
        flex-direction: column;
        padding-top: 60px;
    }

    .left-column {
        padding: 40px 0;
        align-items: center;
        text-align: center;
    }

    .subheadline {
        margin: 0 auto 32px;
    }

    .features {
        justify-content: center;
    }

    .right-column {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .hero-image-container {
        margin: 0 auto;
    }
}