:root {
    --primary: #2B580C;
    --primary-light: #639A67;
    --secondary: #D8E2DC;
    --accent: #F4A261;
    --dark: #1A2215;
    --light: #F9F9F9;
    --text: #333333;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(43, 88, 12, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
}

.section-padding {
    padding: 100px 5%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249, 249, 249, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: rgba(43, 88, 12, 0.1);
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.cta-btn {
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 154, 103, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(249,249,249,0.95) 0%, rgba(249,249,249,0.7) 50%, rgba(249,249,249,0) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: var(--radius);
    z-index: -1;
}

.about-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit';
}

.stat .label {
    font-size: 14px;
    color: #666;
}

/* Courses */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(43, 88, 12, 0.15);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.syllabus {
    list-style: none;
    margin-bottom: 20px;
}

.syllabus li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.syllabus li i {
    color: var(--primary-light);
    width: 18px;
    height: 18px;
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Quiz Section */
.quiz {
    background-color: var(--secondary);
    text-align: center;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quiz h2 {
    margin-bottom: 10px;
}

.quiz > p {
    margin-bottom: 30px;
}

.question {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    padding: 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--primary);
    background: rgba(43, 88, 12, 0.05);
}

.hidden {
    display: none !important;
}

#result-course {
    color: var(--primary);
    display: block;
    font-size: 28px;
    margin: 10px 0;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 5%;
    text-align: center;
}

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

.footer-content .logo {
    color: white;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials i {
    cursor: pointer;
    transition: color 0.3s;
}

.socials i:hover {
    color: var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 42px; }
    .about-container { grid-template-columns: 1fr; }
    nav { display: none; }
    .footer-content { flex-direction: column; }
}
