:root {
  --bg-color: #F7F3EE;
  --text-color: #2C2C2C;
  --accent-color: #C4714A;
  --secondary-color: #8A9E7E;
  --card-bg: #FFFFFF;
  --light-border: #E8E2DA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

section {
  padding: 80px 24px;
}

#main-nav {
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

#main-nav.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  margin-bottom: 4px;
  transition: 0.2s ease;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn:hover {
  background-color: #a85d39;
}

#hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 60px 24px 80px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #4a4a4a;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.card {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.two-col {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.two-col-reverse {
  flex-direction: row-reverse;
}

.two-col-content {
  flex: 1;
}

.two-col-image {
  flex: 1;
}

.two-col-image img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1rem;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.teacher-img {
  border-radius: 200px 200px 12px 12px !important;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

#form {
  position: relative;
  color: #fff;
  background: url('images/community.png') center/cover no-repeat;
  padding: 100px 24px;
}

.form-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(44, 44, 44, 0.85);
  z-index: 1;
}

.form-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.form-container h2 {
  color: #fff;
}

.form-box {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: left;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-box .btn {
  width: 100%;
  margin-bottom: 1rem;
}

.privacy-notice {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

.privacy-notice a {
  text-decoration: underline;
}

footer {
  background-color: #2C2C2C;
  color: #f7f7f7;
  padding: 60px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

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

.footer-info {
  font-size: 0.875rem;
  color: #999;
}

#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: var(--bg-color);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--light-border);
}

#cookie-banner.visible {
  display: flex;
}

#cookie-banner a {
  text-decoration: underline;
  color: var(--accent-color);
}

.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.legal-page {
  padding: 60px 0;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }

  .nav-links.active {
    display: flex;
  }

  #hero, .two-col {
    flex-direction: column;
    gap: 2rem;
  }

  .two-col-reverse {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  #cookie-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
