* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --success: #10b981;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 0 40px;
    height: 72px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--primary);
}

.navbar-links a.btn-login {
    color: var(--primary);
    font-weight: 600;
}

/* Wrapper */
.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 100px 24px;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.hero-visual {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 24px;
    padding: 32px;
    color: var(--white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.hero-stat-value {
    font-size: 18px;
    font-weight: 700;
}

/* Sections */
.section-header {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subheading {
    color: var(--text-gray);
    font-size: 16px;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.course-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(79, 70, 229, 0.1);
}

.card-img-wrapper {
    position: relative;
    padding-top: 58%; /* Slightly taller for elegance */
    background: #f1f5f9;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.7rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    width: fit-content;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.25rem;
}

.card-instructor {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-instructor i {
    color: var(--primary);
    opacity: 0.7;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.price-tag {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--success);
}

.course-meta-info {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-action-wrapper {
    margin-top: 20px;
}

.btn-learn-modern {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn-learn-modern:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

.btn-learn-modern i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.btn-learn-modern:hover i {
    transform: translateX(3px);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
    background-color: var(--bg-light);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer CTA */
.cta-strip {
    background: var(--text-dark);
    padding: 40px;
    border-radius: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    margin-top: 40px;
}

.cta-text {
    font-size: 18px;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 12px;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-strip { flex-direction: column; text-align: center; gap: 32px; }
}
