/* 
  Design System Tokens 
  Theme: Modern Educational (Jade & Gold accents)
*/
:root {
    --primary-color: #038C7F; /* Jade Green */
    --primary-hover: #026b61;
    --secondary-color: #F2B90F; /* Gold */
    --text-color: #333333;
    --text-light: #555555;
    --bg-color: #ffffff;
    --bg-light: #f5f9f8; /* Soft greenish white */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Noto Serif', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --border-radius: 16px;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.jade-text {
    color: var(--primary-color);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 14px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%);
    z-index: -1;
}

.hero-content {
    width: 100%;
}

.hero-text-box {
    max-width: 600px;
    animation: fadeUp 1s ease forwards;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(3, 140, 127, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #111;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-quick {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.contact-quick i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(3, 140, 127, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(3, 140, 127, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

/* Courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.course-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.popular-course {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.course-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.course-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-body p {
    margin-bottom: 32px;
    flex-grow: 1;
}

/* Instructor */
.instructor-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/5;
}

.xp-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.xp-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.xp-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.instructor-info .subtitle {
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.cred-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.cred-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(3, 140, 127, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cred-text h4 {
    margin-bottom: 4px;
    font-family: var(--font-main);
}

.cred-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Testimonials */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.review-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 32px;
    line-height: 1.8;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.125rem;
}

.reviewer-info h4 {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1rem;
}

.reviewer-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.quote-icon {
    position: absolute;
    right: 0;
    bottom: -10px;
    font-size: 4rem;
    color: rgba(3, 140, 127, 0.05);
}

/* Register CTA Section */
.cta-wrapper {
    background: var(--primary-color);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

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

.cta-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
}

.cta-form-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    color: var(--text-color);
}

.contact-form h3 {
    margin-bottom: 24px;
    text-align: center;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(3, 140, 127, 0.1);
}

.form-message {
    margin-top: 16px;
    text-align: center;
    font-size: 0.95rem;
    min-height: 24px;
}

.msg-success {
    color: var(--primary-color);
    font-weight: 500;
}

.msg-error {
    color: #e53e3e;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #f5f5f5;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p {
    color: #a0a0a0;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.contact-list li,
.footer-links li {
    margin-bottom: 16px;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.footer-links a:hover,
.contact-list a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    color: #777;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    .instructor-wrap,
    .cta-wrapper {
        grid-template-columns: 1fr;
    }
    .cta-wrapper {
        padding: 40px;
    }
    .img-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-bg-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%);
    }
    .hero-text-box {
        text-align: center;
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
