/* Articulate Mastery – VINTAGE RETRO FLEXBOX CSS 
   Brand: Modern-vintage, uplifted with intentional retro vibes
*/

/* ========================== */
/*      CSS RESET & NORMALIZE */
/* ========================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer, header,
hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #FAF3EA;
  color: #2d2926;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #24405C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ce7729;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ========= Retro Colors & Fonts ========= */
:root {
  /* Brand and retro palette */
  --primary: #24405C;
  --secondary: #5CB1A8;
  --accent: #FAF3EA;
  /* Nostalgic supporting colors */
  --retro-orange: #ce7729;
  --retro-yellow: #FFD369;
  --retro-coral: #F26B5C;
  --retro-teal: #40816A;
  --retro-brown: #816040;
  --retro-green: #B3BA7B;
  --dark-text: #22201a;
  --light-text: #fff9f6;
  --shadow: 0 2px 8px rgba(44,32,14,0.08), 0 1.5px 0 #eccdad; /* slightly warm shadow */
  --border-radius: 14px;
  --pattern-bg: repeating-linear-gradient(135deg, #FDF6E5 0px, #FDF6E5 24px, #F2E1CC 24px, #F2E1CC 48px);
  /* Spacing */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --section-gap: 60px;
}

/* Vintage fonts: Use Montserrat + Open Sans */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');


/* ========================== */
/*       TYPOGRAPHY SCALE     */
/* ========================== */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Open Sans', serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--primary);
}
h1 {
  font-size: 2.75rem;
  margin-bottom: var(--space-24);
  text-shadow: 0px 2.5px 0px #FFD369;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
}
h2 {
  font-size: 2rem;
  margin-bottom: var(--space-20);
  color: var(--retro-orange);
  text-shadow: 0 2px 0 #FFD369;
  text-transform: uppercase;
}
h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-12);
  text-transform: uppercase;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-text);
}

p, ul, ol, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--dark-text);
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--retro-teal);
  margin-bottom: var(--space-20);
}
strong, b {
  font-weight: bold;
  color: var(--retro-brown);
}

/* ========================== */
/*      LAYOUT CONTAINERS     */
/* ========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  align-items: flex-start;
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .container {
    padding: 0 var(--space-12);
  }
}

.section {
  margin-bottom: var(--section-gap);
  padding: var(--space-40) var(--space-20);
  background: var(--pattern-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
main .section:last-child {
  margin-bottom: 0;
}

/* ========================== */
/*   HEADER & NAVIGATION      */
/* ========================== */
header {
  background: var(--accent);
  border-bottom: 3.5px dotted var(--retro-orange);
  box-shadow: 0 2px 0 #FFD369;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-20);
  min-height: 65px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  background: none;
  border-radius: 8px;
  padding: 8px 10px;
  position: relative;
  transition: color 0.15s, background 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-orange);
  outline: none;
}
header .button.primary {
  margin-left: var(--space-16);
}

@media (max-width: 1000px) {
  header nav {
    gap: 12px;
  }
}

/* ========================== */
/*          BUTTONS           */
/* ========================== */
.button, .button.primary {
  appearance: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--retro-orange);
  color: var(--light-text);
  padding: 12px 28px;
  border-radius: 30px;
  border: 2.5px solid var(--primary);
  box-shadow: 0 2px 8px rgba(130,76,31,0.1); /* soft retro effect */
  transition: box-shadow 0.22s, background 0.22s, color 0.16s, border 0.18s;
  margin-top: var(--space-8);
  display: inline-block;
}
.button.primary:hover, .button.primary:focus, .button:hover, .button:focus {
  background: var(--primary);
  color: var(--retro-yellow);
  box-shadow: 0 4px 18px 0 #ce7729c4;
  border-color: var(--retro-orange);
}
.button:active {
  transform: translateY(2px) scale(0.98);
  background: var(--retro-teal);
  color: var(--light-text);
}

/* ========================== */
/*         FLEX LAYOUTS       */
/* ========================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 0;
}
.feature-grid li {
  background: #fffefb;
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 0 #FFD369, var(--shadow);
  padding: 24px 20px 20px 20px;
  flex: 1 1 240px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  border-left: 8px solid var(--retro-orange);
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 7px 16px #FFD36930;
  border-left: 8px solid var(--primary);
  z-index: 2;
}
.feature-grid img {
  width: 38px;
  margin-bottom: var(--space-8);
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}
.course-list > div {
  background: #fffefb;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 20px 18px;
  flex: 1 1 275px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 6px solid var(--retro-orange);
  position: relative;
  transition: box-shadow .18s, border-color .18s;
}
.course-list > div:hover {
  box-shadow: 0 2px 28px #FFD36933;
  border-bottom: 6px solid var(--primary);
  z-index: 2;
}

/* Tables (courses) */
table {
  width: 100%;
  background: #fffefb;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: var(--space-24);
  font-size: 1rem;
  overflow: hidden;
}
thead {
  background: var(--retro-orange);
  color: var(--light-text);
}
thead th {
  padding: 14px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 800;
}
tbody td {
  padding: 13px 10px;
  border-bottom: 1.5px dotted #FFD369;
  text-align: left;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--dark-text);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ========================== */
/*         CARDS              */
/* ========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fffefb;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

/* ========================== */
/*         CONTENT GRID       */
/* ========================== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ========================== */
/*      TEXT-IMAGE SECTION    */
/* ========================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
}

/* ========================== */
/*     FEATURE ITEM           */
/* ========================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================== */
/*    TESTIMONIAL CARD        */
/* ========================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 24px #FFD36932, var(--shadow);
  margin-bottom: 20px;
  border-left: 8px solid var(--retro-teal);
  position: relative;
  min-width: 260px;
  max-width: 700px;
  z-index: 1;
  transition: transform .16s, box-shadow .18s;
}
.testimonial-card:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 8px 36px 0 #40816A44;
  background: #FAF3EA;
}
.testimonial-quote {
  font-family: 'Montserrat', Arial, serif;
  color: var(--primary);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  margin-right: var(--space-20);
}
.testimonial-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  color: var(--dark-text);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
@media (max-width: 540px) {
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 15px 10px;
  }
  .testimonial-quote {
    margin-right: 0;
  }
}
.testimonial-details span {
  font-size: 1.1rem;
  color: #FFD369;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 4px;
}

/* ========================== */
/*           FOOTER           */
/* ========================== */
footer {
  background: var(--accent);
  border-top: 4px dashed var(--retro-orange);
  box-shadow: 0 -2px 0 #FFD369;
  margin-top: 0;
  padding: var(--space-24) 0 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-40);
  min-height: 140px;
  padding: var(--space-20);
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--retro-orange);
  font-family: 'Montserrat', Arial, serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  text-decoration: underline dotted var(--retro-orange);
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  text-decoration: underline solid var(--primary);
}
footer .text-section {
  font-size: 1rem;
  color: var(--primary);
  margin-top: 8px;
}
footer address, footer .text-section p {
  font-style: normal;
  color: var(--primary);
}

@media (max-width: 1000px) {
  footer .container {
    flex-wrap: wrap;
    gap: 18px 0px;
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
  }
}

/* =========== Text-Section ============= */
.text-section {
  margin-bottom: var(--space-20);
}


/* =============================== */
/*         MOBILE NAVIGATION        */
/* =============================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.7rem;
  color: var(--retro-orange);
  background: transparent;
  border: none;
  padding: 4px 14px 0px 8px;
  margin-left: var(--space-24);
  line-height: 1;
  z-index: 130;
  cursor: pointer;
  transition: transform 0.18s;
}
.mobile-menu-toggle:active {
  transform: scale(0.9);
}
@media (max-width: 880px) {
  header nav, header .button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(38,28,14,0.69);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu nav {
  background: var(--pattern-bg);
  border-radius: 0px 0px 24px 0px;
  box-shadow: 5px 5px 20px #FFD36955;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 34px 80px 26px;
  min-width: 70vw;
  min-height: 100vh;
  transform: translateX(-110vw);
  transition: transform 0.34s cubic-bezier(.65,.12,.4,1.25);
}
.mobile-menu.open nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 2.2rem;
  color: var(--retro-orange);
  background: #fff6ee;
  border: 2.5px solid var(--retro-orange);
  border-radius: 28px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center; justify-content: center;
  z-index: 2100;
  box-shadow: var(--shadow);
  transition: background 0.18s, transform 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
  color: #fff;
  outline: none;
  transform: scale(1.1);
}

@media (max-width: 660px) {
  .mobile-menu nav {
    min-width: 95vw;
    padding: 38px 8vw 60px 5vw;
  }
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--retro-brown);
  background: none;
  border-radius: 10px;
  padding: 13px 10px;
  transition: background 0.18s, color 0.17s;
  border-bottom: 2.5px dotted var(--retro-orange);
  margin-bottom: 2px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}

/* Overlay disables body scroll when open */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100vw;
}

/* =============================== */
/*         COOKIE BANNER           */
/* =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--pattern-bg);
  color: var(--primary);
  padding: 22px 18px 22px 24px;
  border-top: 4px solid var(--retro-orange);
  box-shadow: 0 -4px 32px 0 #FFD36944;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: space-between;
  animation: cookieIn 0.66s cubic-bezier(.59,1.49,.38,.91);
  font-size: 1.06rem;
  max-width: 100vw;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 8px 18px 8px;
    font-size: 1rem;
  }
}
@keyframes cookieIn {
  0% { transform: translateY(60px); opacity: 0; }
  94% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .button {
  margin-top: 0;
  margin-right: 8px;
  box-shadow: none;
}
.cookie-banner .button.primary {
  background: var(--retro-teal);
  color: var(--light-text);
  border-color: var(--primary);
  transition: background 0.14s, color 0.18s;
}
.cookie-banner .button.primary:hover, .cookie-banner .button.primary:focus {
  background: var(--retro-orange);
  color: var(--light-text);
}
.cookie-banner .button.secondary {
  background: var(--retro-orange);
  color: var(--light-text);
  border-color: var(--retro-brown);
}
.cookie-banner .button.secondary:hover {
  background: var(--retro-brown);
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.99rem;
  margin: 4px 0 0 0;
  border: none;
  cursor: pointer;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  color: var(--retro-orange);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(40,28,10,0.46);
  z-index: 12001;
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookieFadeIn 0.4s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  max-width: 410px;
  width: 94vw;
  padding: 34px 18px 28px 18px;
  border-radius: 18px;
  box-shadow: 0 7px 40px #FFD36955, var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h3 {
  font-size: 1.24rem;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-modal label {
  font-size: 1.01rem;
  color: var(--retro-brown);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
}
.cookie-modal .cookie-toggle {
  accent-color: var(--retro-orange);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: var(--space-16);
}
.cookie-modal .button {
  margin-bottom: 0;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 10px;
  background: var(--retro-yellow);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.17s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* ========================== */
/*   RESPONSIVE BREAKPOINTS   */
/* ========================== */
@media (max-width: 1070px) {
  .feature-grid li, .course-list > div {
    flex-basis: 308px;
    min-width: 200px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .course-list, .content-grid {
    gap: var(--space-20);
  }
  .feature-grid li, .course-list > div {
    flex-basis: 96vw;
    min-width: 154px;
    max-width: 100vw;
  }
}
@media (max-width: 700px) {
  .feature-grid, .course-list, .content-grid {
    flex-direction: column;
    gap: var(--space-16);
  }
  .feature-grid li, .course-list > div {
    flex-basis: 98vw;
    min-width: 98vw;
    max-width: 99vw;
    padding: 20px 8vw 18px 6vw;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 var(--space-8);
  }
  .section {
    padding: var(--space-24) var(--space-8);
    margin-bottom: var(--space-32);
  }
  h1, h2 {
    margin-bottom: var(--space-16);
  }
}

/* ========================== */
/*         MISC               */
/* ========================== */
::-webkit-input-placeholder { color: #968064; opacity: .95; }
:-moz-placeholder { color: #968064; opacity: .95; }
::-moz-placeholder { color: #968064; opacity: .95; }
:-ms-input-placeholder { color: #968064; opacity: .95; }

hr {
  border: none;
  height: 2.5px;
  background: var(--retro-yellow);
  margin: var(--space-24) 0;
  border-radius: 3px;
}

/* ==========================
   :: Selection Styling
   ========================== */
::selection {
  background: var(--retro-yellow);
  color: var(--primary);
}

/* =========== Micro-interactions =========== */
.button, .card, .feature-grid li, .testimonials-card, .course-list > div, .mobile-menu-close, .mobile-menu-toggle {
  transition: box-shadow 0.22s, background 0.18s, color 0.12s, border-color 0.15s, transform 0.13s;
}

/* =========== Hide visually (for a11y) =========== */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
