/* ==========================================================================
   0. RESET AND NORMALIZE
   ========================================================================= */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, blockquote { margin: 0; padding: 0; font-weight: normal; }
a { background: none; color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; }
:root {
  --color-ink: #1A2653;
  --color-saffron: #F2C14E;
  --color-accent: #EFE8D8;
  --color-bg: #FFF8ED;
  --color-offwhite: #FCF6EA;
  --color-brown: #6C4325;
  --color-blue-fade: #AEB7C6;
  --color-red-retro: #DE6E4B;
  --color-border: #B7A076;
  --radius-main: 14px;
  --radius-btn: 20px;
  --shadow-main: 0 4px 24px rgba(80,60,30,0.10);
  --shadow-card: 0 2px 8px rgba(153,107,51,0.09);
  --font-display: 'Montserrat', 'Arial Rounded MT', Arial, sans-serif;
  --font-body: 'Roboto', 'Nunito', Arial, sans-serif;
  --pattern-lines: repeating-linear-gradient(90deg, #F7EDD0 0 1px, transparent 1px 32px);
}

/* ==========================================================================
   1. GENERAL BODY & TYPOGRAPHY
   ========================================================================= */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
  text-shadow: 1px 2px 0 #F2C14E55;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-brown);
  text-shadow: 0 2px 0 #FFF7E0A0;
}
h3 { font-size: 1.25rem; margin-bottom: 14px; color: var(--color-red-retro); }
p, li, blockquote, dd {
  font-size: 1rem;
  color: var(--color-ink);
  line-height: 1.7;
}
blockquote {
  font-family: var(--font-display);
  background: var(--color-offwhite);
  border-left: 6px solid var(--color-saffron);
  padding: 18px 24px;
  border-radius: var(--radius-main);
  margin: 24px 0 12px 0;
  color: var(--color-brown);
}
ul, ol { margin-left: 1em; }
li { margin-bottom: 8px; }
strong {font-weight: 700; }

/* Vintage retro display font for headings. Add a second fallback retro font. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');

/* ==========================================================================
   2. SPACING & FLEXBOX PATTERNS
   ========================================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pattern-lines), var(--color-bg);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid, .team-grid, .course-cards, .price-table, .content-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.feature-grid > div,
.team-grid > div,
.course-cards > div,
.price-table > ul, .price-table > table {
  background: var(--color-offwhite);
  padding: 24px 22px;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 2px dashed var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-main);
  padding: 20px 28px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: #222;
  position: relative;
  min-width: 260px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* For curriculum and price table */
.price-table { flex-direction: column; gap: 20px; }
.price-table table thead { background: var(--color-saffron); color: var(--color-ink); }
.price-table table th, .price-table table td { padding: 12px 10px; border-bottom: 1.5px solid var(--color-border); font-size: 1rem; }
.price-table table th { font-weight: 700; }
.price-table table tr:last-child td { border-bottom: none; }
.price-table ul { background: transparent; box-shadow: none; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   3. HEADER, NAVIGATION, AND CTA BUTTONS
   ----------------------------------------------------------------------- */
header {
  padding: 0;
  background: var(--color-ink);
  border-bottom: 4px solid var(--color-saffron);
  box-shadow: 0 5px 24px rgba(26,38,83,0.09);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;  padding-bottom: 16px;
  gap: 16px;
}
header img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--color-saffron);
  padding: 3px 0;
  position: relative;
  transition: color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
}

.cta-btn {
  font-family: var(--font-display);
  font-size: 1.09rem;
  color: var(--color-ink);
  background: var(--color-saffron);
  border-radius: var(--radius-btn);
  border: none;
  padding: 12px 32px;
  margin-left: 10px;
  font-weight:  bold;
  letter-spacing: 0.3px;
  box-shadow: 0 1.5px 8px rgba(242, 193,78,0.12);
  transition: background 0.24s, color 0.18s, transform 0.14s;
  outline: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-brown);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* --------------------------------------------------------------------------
   4. MOBILE NAVIGATION (BURGER MENU) [MANDATORY]
   ----------------------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-saffron);
  cursor: pointer;
  z-index: 101;
  margin-left: 10px;
  transition: color 0.2s, transform 0.18s;
  border-radius: 8px;
}
.mobile-menu-toggle:active {
  color: var(--color-red-retro);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.55,0,.3,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(80, 60,30,0.22);
  padding: 32px 0;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-ink);
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 102;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--color-saffron); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 64px 32px 32px 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--color-brown);
  padding: 12px 0;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--color-saffron);
  color: #1A2653;
}

@media (max-width: 1024px) {
  .main-nav { gap: 14px; }
  .cta-btn { padding: 12px 20px; font-size: 1rem; }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
  }
  .main-nav { gap: 10px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .cta-btn { padding: 10px 16px; font-size: 1rem; }
  .mobile-menu-toggle { display: block; }
}

/* --------------------------------------------------------------------------
   5. SECTIONS, CARDS, PATTERNS – RETRO-FLAVOR
   ----------------------------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  background: var(--pattern-lines), var(--color-bg);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-main);
}

.feature-grid > div img, .team-grid > div img, .course-cards > div img, .content-wrapper > ul img, .content-wrapper > li img {
  height: 48px;
  width: 48px;
  filter: sepia(0.15) saturate(1.1);
  margin-bottom: 8px;
}

.feature-grid > div, .team-grid > div, .course-cards > div {
  border: 2px solid var(--color-saffron);
  background: var(--color-offwhite);
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-grid > div:hover, .team-grid > div:hover, .course-cards > div:hover {
  box-shadow: 0 7px 22px rgba(112,78,14,0.09);
  transform: translateY(-3px) scale(1.04);
}

.content-wrapper ul, .content-wrapper ol { margin: 0 0 0 22px; }
.content-wrapper li { padding-left: 0; font-size: 1rem; line-height: 1.7; margin-bottom: 10px; }
.content-wrapper ul li:before {
  content: '\2022';
  color: var(--color-saffron);
  font-weight: bold;
  display: inline-block;
  width: 1.3em;
  margin-left: -1.3em;
}

@media (max-width: 900px) {
  .feature-grid, .team-grid, .course-cards, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div, .team-grid > div, .course-cards > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

.text-image-section {
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 8px; }
  section { padding: 24px 0; }
}

/* --------------------------------------------------------------------------
   6. TESTIMONIALS, QUOTES, SHADOWS – RETRO EFFECTS
   ----------------------------------------------------------------------- */
.testimonial-card {
  background: #fff;
  border: 2.5px dotted var(--color-saffron);
  position: relative;
  color: #232014;
  min-width: 220px;
  padding-left: 22px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.testimonial-card:before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--color-saffron);
  position: absolute;
  top: 8px; left: 12px;
  opacity: 0.18;
  pointer-events: none;
}
.testimonial-card span {
  color: var(--color-saffron);
  font-size: 1.18rem;
  font-weight: bold;
  margin-left: 2px;
}
.testimonial-card strong {
  color: var(--color-brown);
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(247,175,85,0.10);
  transform: scale(1.03);
}

/* Proper color contrast for testimonial content */
.testimonial-card p, .testimonial-card strong, .testimonial-card span {
  color: #202014;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   ----------------------------------------------------------------------- */
footer {
  background: var(--color-ink);
  color: var(--color-saffron);
  padding: 40px 0 14px 0;
  font-size: 1rem;
  margin-top: 72px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  height: 42px; width: auto; margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}
.footer-nav a { color: var(--color-saffron); text-decoration: underline; }
.footer-nav a:hover, .footer-nav a:focus { color: #fff; }
footer a { text-decoration: underline dotted; transition: color 0.12s; }
footer a:hover, footer a:focus { color: #fff; }

@media (max-width: 700px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   8. FORMS & INPUTS (if present later)
   ----------------------------------------------------------------------- */
input, textarea, select {
  font-size: 1rem;
  padding: 10px 14px;
  border: 1.7px solid var(--color-border);
  border-radius: 8px;
  background: #FFF9E9;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-saffron);
  outline: none;
  box-shadow: 0 2px 8px rgba(242,193,78,0.09);
}

button, .btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--color-saffron);
  font-weight: 700;
  color: var(--color-ink);
  padding: 10px 26px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(242,193,78,0.08);
  transition: background 0.16s, color 0.16s, transform 0.12s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--color-red-retro);
  color: #fff;
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   9. COOKIE CONSENT BANNER & MODAL
   ----------------------------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--color-saffron);
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 16px;
  box-shadow: 0 -2px 24px rgba(80,60,30,0.13);
  animation: slideUpBanner 0.7s cubic-bezier(.55,0,.3,1) 0.2s both;
  border-radius: 18px 18px 0 0;
  font-family: var(--font-body);
  gap: 18px;
}
@keyframes slideUpBanner {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .btn-group {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-consent-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 13px;
  background: #fff;
  color: var(--color-ink);
  border: 1.5px solid var(--color-brown);
  margin: 0;
  padding: 10px 22px;
  box-shadow: 0 2px 10px rgba(180,140,82,0.09);
  transition: background 0.16s, color 0.12s, border 0.11s;
}
.cookie-consent-banner button.accept {
  background: var(--color-brown);
  color: #fff;
  border: none;
}
.cookie-consent-banner button.accept:hover, .cookie-consent-banner button.accept:focus {
  background: #cc5400;
  color: #fff;
}
.cookie-consent-banner button.reject { background: #fff; color: var(--color-red-retro); border: 1.5px solid var(--color-red-retro); }
.cookie-consent-banner button.reject:hover, .cookie-consent-banner button.reject:focus { background: var(--color-red-retro); color: #fff; }
.cookie-consent-banner button.settings { background: #fff; color: var(--color-ink); }
.cookie-consent-banner button.settings:hover, .cookie-consent-banner button.settings:focus { background: var(--color-saffron); color: #111; }

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -57%) scale(1);
  z-index: 4010;
  background: #fff;
  color: var(--color-ink);
  border: 3px solid var(--color-saffron);
  padding: 36px 20px 26px 20px;
  border-radius: 18px;
  min-width: 280px; max-width: 98%;
  box-shadow: 0 18px 54px rgba(140,95,35,0.15);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: popModal 0.32s cubic-bezier(.63,.02,.36,1.46) both;
}
@keyframes popModal {
  from { opacity: 0; transform: translate(-50%, -90%) scale(0.77); }
  to { opacity: 1; transform: translate(-50%, -57%) scale(1); }
}
.cookie-modal h2 {
  color: var(--color-brown);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: 1.05rem;
  font-weight: 700;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-saffron);
  width: 22px; height: 22px;
}
.cookie-modal .btn-group {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-modal .btn-close {
  position: absolute;
  top: 9px; right: 16px;
  background: none; border: none;
  font-size: 1.8rem;
  color: var(--color-brown);
  cursor: pointer;
  z-index: 103;
  transition: color 0.15s;
}
.cookie-modal .btn-close:hover, .cookie-modal .btn-close:focus { color: var(--color-red-retro); }

.cookie-modal .cookie-desc {
  font-size: .95rem;
  color: var(--color-brown);
}

@media (max-width:600px) {
  .cookie-modal { min-width: 0; padding: 22px 10px 18px 10px; }
  .cookie-consent-banner { font-size: .97rem; padding: 14px 6px; }
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE DESIGN
   ----------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .container { max-width: 920px; }
}
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .container { max-width: 97vw; padding: 0 8px; }
}
@media (max-width: 700px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.07rem; }
  .section, section { padding: 18px 2px; }
}

/* ==========================================================================
   11. UTILITIES & MICRO-INTERACTIONS
   ========================================================================= */
.fade-in { animation: fadein .8s both; }
@keyframes fadein { from { opacity: 0;} to { opacity: 1; } }
.shadow-hover:hover, .shadow-hover:focus {
  box-shadow: 0 10px 38px 0 rgba(80,60,25,0.21) !important;
  transform: scale(1.025);
}
/* Retro Accent Effects */
hr {
  border: none;
  border-top: 2px dotted var(--color-saffron);
  margin: 32px 0;
}

/* ==========================================================================
   12. SPECIAL RETRO PATTERNS
   ========================================================================= */
/* Use subtle background stripes for a nostalgic effect on sections */
.section, .testimonial-card, .feature-grid > div, .team-grid > div, .course-cards > div, .card {
  background-image: var(--pattern-lines);
}

/* ==========================================================================
   13. PRINT STYLES (simple for documents)
   ========================================================================= */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
