/* ============================================================
   BavariaStrat Education – Main Stylesheet
   ============================================================ */

/* ---------- Google Font Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --green-primary: #2e8b57;
  --green-dark:    #1f6b40;
  --green-light:   #e8f5ee;
  --text-dark:     #1a1a2e;
  --text-mid:      #4a4a6a;
  --text-light:    #6b7280;
  --bg-white:      #ffffff;
  --bg-light:      #f7faf8;
  --border-color:  #e2e8f0;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.07);
  --shadow-md:     0 6px 24px rgba(0,0,0,.10);
  --radius:        12px;
  --transition:    .25s ease;
  --max-width:     1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--green-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

p { font-weight: 300; color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

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

/* ---------- Section Spacing ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-bg { background: var(--bg-light); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { font-size: 2rem; margin-bottom: .75rem; }
.section-header p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-primary);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .8rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .72rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46,139,87,.30);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline:hover {
  background: var(--green-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--green-primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: var(--green-light);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.navbar-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--green-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.navbar-brand span { color: var(--green-primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-weight: 400;
  color: var(--text-mid);
  font-size: .95rem;
  position: relative;
  padding-bottom: 2px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-primary);
  transition: width var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--green-primary); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  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; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,70,50,.80) 0%, rgba(20,50,35,.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}
.hero-content .section-tag { background: rgba(255,255,255,.15); color: #fff; }
.hero-content h1 { font-size: 2.6rem; color: #fff; margin-bottom: 1rem; }
.hero-content p { color: rgba(255,255,255,.88); font-size: 1.1rem; margin-bottom: 1.8rem; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- FEATURE CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-primary);
}

.card-icon {
  width: 56px; height: 56px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p { font-size: .9rem; margin-bottom: 0; }

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-primary);
  display: block;
}
.stat-label {
  font-size: .9rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ---------- TESTIMONIALS ---------- */
.testimonial {
  background: var(--bg-white);
  border-left: 4px solid var(--green-primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
.testimonial p { font-style: italic; margin-bottom: .8rem; }
.testimonial-author { font-weight: 600; font-size: .9rem; color: var(--green-primary); }

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-block h2 { color: #fff; font-size: 1.9rem; margin-bottom: .75rem; }
.cta-block p { color: rgba(255,255,255,.88); margin-bottom: 1.5rem; }

/* ---------- IMAGE WITH TEXT ---------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-block.reverse { direction: rtl; }
.split-block.reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-img img { width: 100%; height: 340px; object-fit: cover; }

.split-text h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.split-text ul { margin: 1rem 0; }
.split-text ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .6rem;
  font-size: .95rem;
  color: var(--text-mid);
  font-weight: 300;
}
.split-text ul li .check { color: var(--green-primary); font-size: 1rem; flex-shrink: 0; margin-top: .15rem; }

/* ---------- BLOG CARD ---------- */
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.blog-card-img {
  height: 200px;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta { font-size: .78rem; color: var(--text-light); margin-bottom: .5rem; font-weight: 400; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.blog-card-body p { font-size: .88rem; flex: 1; }
.blog-card-body .btn { margin-top: 1rem; align-self: flex-start; }

/* ---------- ARTICLE PAGE ---------- */
.article-hero {
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-meta span { font-size: .85rem; color: var(--text-light); display: flex; align-items: center; gap: .35rem; }

.article-body h2 { font-size: 1.5rem; margin: 1.8rem 0 .8rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; }
.article-body p { font-size: .97rem; margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { font-size: .95rem; color: var(--text-mid); margin-bottom: .4rem; font-weight: 300; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }

.sidebar-widget {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--green-primary); }
.sidebar-widget ul li { margin-bottom: .5rem; }
.sidebar-widget ul li a { font-size: .9rem; font-weight: 300; }

/* ---------- TEAM CARDS ---------- */
.team-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-card-img { height: 220px; overflow: hidden; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body { padding: 1.2rem; }
.team-card-body h4 { font-size: 1rem; margin-bottom: .2rem; }
.team-card-body span { font-size: .85rem; color: var(--green-primary); font-weight: 400; }

/* ---------- CONTACT FORM ---------- */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text-dark); }

.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(46,139,87,.12);
}
textarea.form-control { resize: vertical; min-height: 140px; }

.form-success {
  display: none;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green-primary);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin-top: 1rem;
  font-weight: 600;
}

/* ---------- GOOGLE MAP ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}
.map-wrap iframe { width: 100%; height: 380px; border: none; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--bg-white);
  border: none;
  padding: 1.1rem 1.4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .97rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--green-light); }
.faq-question.open { background: var(--green-light); color: var(--green-primary); }
.faq-question .faq-icon { font-size: 1.1rem; transition: transform var(--transition); }
.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.2rem;
  font-size: .93rem;
  font-weight: 300;
  color: var(--text-mid);
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}
.faq-answer.open { display: block; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 1rem 0;
  font-size: .85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--green-primary); }
.breadcrumb span { margin: 0 .4rem; }

/* ---------- LEGAL PAGES ---------- */
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; color: var(--green-primary); }
.legal-content h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.legal-content p, .legal-content li { font-size: .95rem; font-weight: 300; color: var(--text-mid); }
.legal-content ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.legal-content ol { padding-left: 1.5rem; list-style: decimal; margin-bottom: 1rem; }

/* ---------- FOOTER ---------- */
.footer {
  background: #0f1f17;
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}

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

.footer-brand .navbar-brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.6); font-weight: 300; }

.footer h5 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.1rem;
}

.footer ul li { margin-bottom: .55rem; }
.footer ul li a { color: rgba(255,255,255,.6); font-size: .88rem; font-weight: 300; transition: color var(--transition); }
.footer ul li a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 300;
  margin-bottom: .6rem;
  color: rgba(255,255,255,.6);
}
.footer-contact li .icon { margin-top: .15rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.45); margin: 0; font-weight: 300; }
.footer-bottom a { color: rgba(255,255,255,.55); font-size: .82rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #0f1f17;
  color: rgba(255,255,255,.85);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  margin: 0;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  font-weight: 300;
  max-width: 700px;
}
.cookie-banner a { color: #6ee89b; }
.cookie-banner .cookie-buttons { display: flex; gap: .8rem; flex-shrink: 0; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin: 0; max-width: 580px; margin: 0 auto; }

/* ---------- RESOURCES ---------- */
.resource-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--green-primary); }
.resource-card-img { height: 180px; overflow: hidden; }
.resource-card-img img { width: 100%; height: 100%; object-fit: cover; }
.resource-card-body { padding: 1.4rem; }
.resource-card-body .tag {
  font-size: .75rem;
  background: var(--green-light);
  color: var(--green-primary);
  font-weight: 600;
  padding: .2rem .7rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: .6rem;
}
.resource-card-body h3 { font-size: 1rem; margin-bottom: .5rem; }
.resource-card-body p { font-size: .87rem; margin-bottom: .8rem; }
.resource-card-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--text-light); }
.resource-card-meta span { display: flex; align-items: center; gap: .3rem; }

/* ---------- ABOUT PAGE ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-primary), var(--green-light));
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.42rem; top: .4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--green-light);
}
.timeline-year { font-size: .8rem; font-weight: 600; color: var(--green-primary); margin-bottom: .2rem; }
.timeline-item h4 { font-size: 1rem; margin-bottom: .3rem; }
.timeline-item p { font-size: .88rem; margin: 0; }

/* ---------- VALUES GRID ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.value-item .value-icon { font-size: 2rem; margin-bottom: .8rem; }
.value-item h4 { font-size: 1rem; margin-bottom: .4rem; }
.value-item p { font-size: .88rem; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet (≤ 992px) --- */
@media (max-width: 992px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split-block { grid-template-columns: 1fr; gap: 2rem; }
  .split-block.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

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

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  .section { padding: 55px 0; }
  .section-header h2 { font-size: 1.6rem; }

  /* Navbar Mobile */
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-cta { margin-left: 0; }
  .hamburger { display: flex; }
  .navbar { position: relative; }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .hero-content h1 { font-size: 1.7rem; }
  .hero { min-height: 480px; }

  .split-img img { height: 240px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .cookie-banner { flex-direction: column; align-items: flex-start; }

  .cta-block h2 { font-size: 1.5rem; }

  .page-hero h1 { font-size: 1.7rem; }
}

/* --- Small Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .stat-number { font-size: 2rem; }
}
