/* ==== CSS RESET & NORMALIZATION ==== */
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,
b, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background-color: #F2F0E5;
}
img, video, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 8px;
}
a {
  color: #385075;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #4A3219;
}

/* ==== BRAND FONTS & ROOT ELEMENTS ==== */
@import url('https://fonts.googleapis.com/css?family=Lora:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --color-primary: #4A3219;
  --color-secondary: #A67C52;
  --color-accent: #F2F0E5;
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-blue: #385075;
  --color-gray: #e4e6ea;
  --color-dark: #1a2330;
  --color-success: #349872;
  --color-danger: #d34a2b;
  --color-focus: #477ecc;
  --shadow-elevate: 0 2px 12px rgba(56,80,117,0.12);
  --radius: 12px;
}

body {
  color: #242b32;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--color-accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.3rem;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-weight: 700;
}

p, ul, ol, blockquote {
  font-size: 1rem;
  color: #242b32;
}
blockquote {
  font-style: italic;
  color: #385075;
  background: #f3f6fa;
  border-left: 5px solid var(--color-secondary);
  padding: 16px 24px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ==== FLEXBOX PATTERNS (MANDATORY) ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex-basis: 320px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(56,80,117,0.17);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section, .text-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #f3f6fa;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(56,80,117,0.10);
  margin-bottom: 20px;
  min-width: 270px;
  border: 1px solid #e4e6ea;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(56,80,117,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* ==== BUTTONS & LINKS ==== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.8em;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  background: var(--color-blue);
  color: #fff;
  text-align: center;
  border: none;
  box-shadow: 0 2px 8px rgba(56,80,117,0.10);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  outline: none;
  margin: 0 1px;
  gap: 8px;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
}
.cta.secondary {
  background: var(--color-secondary);
  color: #fff;
}
.cta:hover, .cta:focus {
  background: var(--color-focus);
  color: #fff;
  box-shadow: 0 4px 16px rgba(56,80,117,0.18);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-blue);
  color: #fff;
}
button, input[type=button], input[type=submit] {
  font-family: inherit;
}

/* ==== HEADER NAVIGATION ==== */
header {
  background: #fff;
  width: 100%;
  box-shadow: 0 2px 10px rgba(56,80,117,0.05);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px 14px 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #385075;
  opacity: 0.95;
  position: relative;
  transition: color 0.15s;
  padding-bottom: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}
header img {
  height: 48px;
  width: auto;
}
header .cta {
  margin-left: 12px;
  min-width: 160px;
}

/* ==== MOBILE MENU (Burger Navigation) ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 2rem;
  padding: 6px 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-focus);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(58,80,117,0.98);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.30s cubic-bezier(0.72,0.02,0.35,1.01);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  padding: 14px 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 18px;
  margin-bottom: 12px;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: color 0.12s, border-bottom 0.12s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* ==== HERO AND MAIN CTAS ==== */
.subheadline {
  font-size: 1.1rem;
  color: #385075;
  margin-bottom: 20px;
}

.course-badge {
  display: inline-block;
  background: #dee6f8;
  color: #385075;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 22px;
  padding: 5px 18px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* ==== FEATURES & OFFERINGS ==== */
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(56,80,117,0.11);
  padding: 26px 18px;
  min-width: 230px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px rgba(56,80,117,0.17);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}

/* ==== TABLES ==== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 1rem;
}
thead tr {
  background: #e4e6ea;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #dee1e6;
}
th {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 1.07rem;
}
tbody tr:nth-child(even) {
  background: #f7f8fa;
}
td {
  color: #385075;
}

/* ==== FOOTER ==== */
footer {
  width: 100%;
  background: #2b3c4c;
  color: #f8f9fb;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 60px;
  border-top: 2px solid #eaecef;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding: 36px 20px 24px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #e0e6f4;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #d9dded;
  font-size: 0.98rem;
}
.footer-contact a {
  color: #e0e6f4;
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  color: #bfc9de;
  font-size: 1.03rem;
}
.footer-brand img {
  width: 30px;
  height: 30px;
}

/* ==== MISC UTILS ==== */
.info-box {
  background: #ecf2fa;
  color: #333a4e;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(56,80,117,0.05);
}
.contact-info {
  background: #f7f8fa;
  color: #385075;
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(56,80,117,0.04);
}
.star-rating {
  font-size: 1.25rem;
  color: #FFA726;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 2px;
}

.faq-list h3 {
  font-size: 1.08rem;
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 4px;
  color: var(--color-primary);
}
.faq-list p {
  padding-left: 6px;
  margin-bottom: 14px;
  color: #2a3141;
}

/* ==== SPACING BETWEEN ELEMENTS ==== */
section + section {
  margin-top: 0;
}
section .card + .card, .content-wrapper .testimonial-card + .testimonial-card, .content-wrapper .text-section + .text-section {
  margin-top: 20px;
}

.content-wrapper > *:not(:last-child) {
  margin-bottom: 12px;
}

/* ==== TRANSITIONS & MICRO-INTERACTIONS ==== */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.20s cubic-bezier(0.6,0.2,0.25,1);
}
.cta, .main-nav a, .mobile-nav a {
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, border-bottom 0.18s;
}
input:focus, textarea:focus, select:focus,
button:focus, a:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1060px) {
  .container {
    max-width: 100vw;
    padding-left: 14px;
    padding-right: 14px;
  }
  .feature-grid {
    gap: 18px;
  }
  .footer-nav {
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .footer-nav, .footer-contact, .footer-brand {
    font-size: 0.96rem;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.50rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .text-image-section, .text-section {
    flex-direction: column;
    gap: 14px;
  }
  .main-nav {
    display: none !important;
  }
  header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 540px) {
  .testimonial-card {
    padding: 16px 8px;
  }
  th, td {
    font-size: 0.96rem;
    padding: 7px 5px;
  }
  .footer-brand {
    flex-direction: column;
    font-size: 0.98rem;
    gap: 4px;
  }
  .info-box,.contact-info {
    padding: 12px 7px;
  }
}
@media (max-width: 430px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 4px;
  }
  h1, h2 {
    font-size: 1.05rem;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #212a34;
  color: #f2f2f5;
  z-index: 8000;
  padding: 22px 16px 24px 16px;
  box-shadow: 0 -4px 16px rgba(56,80,117,0.14);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-radius: 18px 18px 0 0;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.23s, transform 0.34s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-message {
  flex: 1 1 350px;
  font-size: 1.04rem;
  margin-right: 8px;
}
.cookie-banner .cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
}
.cookie-banner .cookie-btn {
  padding: 11px 22px;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-blue);
  color: #fff;
  margin: 0 2px;
  transition: background 0.17s, box-shadow 0.17s, color 0.17s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--color-success);
}
.cookie-banner .cookie-btn.reject {
  background: var(--color-danger);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-focus);
  color: #fff;
}

@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
    padding: 17px 4px 13px 9px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(28,34,54,0.78);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModalBg 0.22s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInModalBg {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #f7f8fa;
  color: #385075;
  border-radius: 16px;
  padding: 38px 26px;
  box-shadow: 0 4px 24px rgba(56,80,117,0.22);
  max-width: 430px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: slideInModal 0.33s cubic-bezier(.44,1,.86,1);
  position: relative;
}
@keyframes slideInModal {
  0% { transform: translateY(30px) scale(0.96); opacity: 0.1; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--color-primary);
  font-size: 1.28rem;
  margin-bottom: 7px;
}
.cookie-modal-content .cookie-category {
  margin-bottom: 9px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 19px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-blue);
  width: 20px; height: 20px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1a2330;
}
.cookie-category .cookie-required {
  color: var(--color-success);
  font-weight: bold;
  font-size: 0.97rem;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-content .cookie-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: #385075;
  font-size: 1.98rem;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.16s;
}
.cookie-modal-content .cookie-close:hover,
.cookie-modal-content .cookie-close:focus {
  color: var(--color-secondary);
}

@media (max-width: 540px) {
  .cookie-modal-content {
    padding: 24px 8px;
    min-width: 0;
    width: 95vw;
    max-width: 98vw;
  }
}

/* === END OF STYLE === */
