:root {
    --primary-color: #2E7D32;
    --dark-green: #1B5E20;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', -apple-system, sans-serif; line-height: 1.6; color: var(--text-color); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-green { background-color: var(--primary-color); }
.bg-white { background-color: var(--white); }

/* Header */
header { height: 80px; display: flex; align-items: center; border-bottom: 1px solid #eee; sticky; top: 0; background: var(--white); z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo a { font-size: 24px; font-weight: 800; color: var(--primary-color); text-decoration: none; }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; }
nav ul li a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: var(--primary-color); }

/* Hero Slider */
.hero-slider { height: 600px; position: relative; }
.slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; }
.hero-content { text-align: center; color: var(--white); }
.hero-content h2 { font-size: 3rem; margin-bottom: 20px; }

/* Sections */
.section { padding: 100px 0; }
.section-title { font-size: 32px; text-align: center; margin-bottom: 60px; font-weight: 700; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--primary-color); margin: 15px auto 0; }
.bg-green .section-title::after { background: var(--white); }

/* Grid Cards - 높이 통일 설정 */
.flex-grid { display: flex; flex-wrap: wrap; gap: 30px; }
.card { flex: 1; min-width: 300px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.card-img { height: 250px; background-size: cover; background-position: center; }
.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h4 { font-size: 20px; margin-bottom: 15px; color: var(--primary-color); }

/* Button */
.btn-main { display: inline-block; padding: 15px 40px; background: var(--primary-color); color: var(--white); text-decoration: none; border-radius: 30px; font-weight: 600; margin-top: 20px; transition: 0.3s; }
.btn-main:hover { background: var(--dark-green); }

/* Footer */
footer { padding: 60px 0 30px; background: #222; color: #bbb; font-size: 14px; }
.footer-top { border-bottom: 1px solid #444; padding-bottom: 20px; margin-bottom: 20px; text-align: left; line-height: 2; }
.copyright { text-align: center; width: 100%; }

/* Scroll Top */
#scrollTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: var(--primary-color); color: white; border: none; cursor: pointer; display: none; z-index: 99; transition: 0.3s; }
#scrollTop::after { content: '▲'; font-size: 18px; }

@media (max-width: 768px) {
    header nav { display: none; }
    .hero-content h2 { font-size: 2rem; }
    .section { padding: 60px 0; }
}