/* ============================================
   Variables & Reset
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #2C3E6B;
  --primary-light: #4A5F9A;
  --gold:          #C9A84C;
  --gold-hover:    #A88930;
  --nav-bg:        rgba(12, 15, 28, 0.92);
  --bg:            #F7F4EC;
  --bg-alt:        #EDE8D8;
  --text:          #1E1E1E;
  --text-muted:    #636363;
  --white:         #FFFFFF;
  --nav-height:    68px;
  --radius:        12px;
  --shadow:        0 4px 24px rgba(44, 62, 107, 0.10);
  --transition:    0.3s ease;
  --max-width:     1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Fade-in Animation
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 999;
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

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

.nav-links a {
  font-family: Arial, sans-serif;
  font-size: 0.91rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.2px;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Navbar CTA */
.btn-nav {
  display: inline-block;
  padding: 0.52rem 1.2rem;
  background: var(--gold);
  color: #1a1100;
  border-radius: 50px;
  font-family: Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.btn-nav:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(201, 168, 76, 0.38);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(12, 15, 28, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-dropdown.open { max-height: 320px; }

.nav-dropdown a {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition);
}

.nav-dropdown a:hover,
.nav-dropdown a.active { color: var(--white); }

.nav-dropdown-btn {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.78rem 1.9rem;
  background: var(--gold);
  color: #1a1100;
  border-radius: 50px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  box-shadow: none;
  transform: translateY(-2px);
}

/* ============================================
   Section Headings
   ============================================ */
.section-label {
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--primary);
  text-align: center;
  line-height: 1.25;
}

.section-subtitle {
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  text-align: center;
  max-width: 500px;
  margin: 0.75rem auto 0;
  font-size: 0.96rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 6.5rem 0 5.5rem;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  opacity: 0.88;
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Feature Cards
   ============================================ */
.features {
  padding: 5.5rem 0;
}

.features-head { margin-bottom: 3rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 36px rgba(44, 62, 107, 0.15);
}

.card-icon { font-size: 2.4rem; display: block; margin-bottom: 1rem; }

.card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.5rem; }

.card p {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 5.5rem 0;
  background: var(--bg-alt);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.97rem;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 4.5rem 0 4rem;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.page-header p {
  font-family: Arial, sans-serif;
  opacity: 0.82;
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   About Page
   ============================================ */
.about-mission { padding: 5.5rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-text h2 { font-size: 1.85rem; color: var(--primary); margin-bottom: 1.1rem; }

.about-text p {
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-visual {
  background: linear-gradient(140deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.about-visual .big-icon { font-size: 5rem; }

.about-visual p {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 220px;
}

.about-story {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.story-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.story-text h2 { font-size: 1.85rem; color: var(--primary); margin-bottom: 1rem; }

.story-text p {
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.values-section { padding: 5.5rem 0; }

/* ============================================
   Courses Page
   ============================================ */
.courses-section { padding: 5.5rem 0; }

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

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 36px rgba(44, 62, 107, 0.15);
}

.course-tag {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: var(--bg-alt);
  border-radius: 50px;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  width: fit-content;
}

.course-tag.beginner     { background: #d4f0e0; color: #1a6640; }
.course-tag.intermediate { background: #fff0d4; color: #7a5500; }
.course-tag.advanced     { background: #ffe4dc; color: #8b2500; }
.course-tag.all-levels   { background: #e8e4f5; color: #3a2b8c; }

.course-card h3 { font-size: 1.1rem; color: var(--primary); line-height: 1.35; }

.course-card p {
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.course-meta {
  display: flex;
  gap: 1.25rem;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.25rem;
}

.course-card .btn {
  align-self: flex-start;
  padding: 0.5rem 1.3rem;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section { padding: 5.5rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-info h2 { font-size: 1.75rem; color: var(--primary); margin-bottom: 1rem; }

.contact-info > p {
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
}

.detail-icon { font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }

.detail-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.15rem;
}

/* Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.75rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--bg-alt);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: #f0ead4;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--primary);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.footer-brand p {
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.75;
  max-width: 270px;
}

.footer-col h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 1rem; }

.footer-col a {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.55rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--gold); }

.footer-col p { font-family: Arial, sans-serif; font-size: 0.86rem; line-height: 1.75; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .nav-right   { display: none; }
  .hamburger   { display: flex; }
  .nav-dropdown { display: block; }
}

@media (max-width: 768px) {
  .hero { padding: 4.5rem 0 4rem; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual { min-height: 200px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .card-grid,
  .courses-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .contact-form { padding: 1.5rem; }

  .hero-btns { flex-direction: column; align-items: center; }
}
