/*----------------------------------
  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, menu, 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, 
main, 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 { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/*------------------------------
  VARIABLES
------------------------------*/
:root {
  --color-primary: #192B3A;
  --color-secondary: #5C7AFF;
  --color-accent: #F2BE2D;
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-muted: #E7E6E2;
  --color-border: #D2D1CD;
  --color-text: #1A222E;
  --color-text-muted: #595959;
  --color-shadow: rgba(25,43,58,0.07);

  --font-serif: 'Roboto Slab', 'Times New Roman', Times, serif;
  --font-sans: 'Montserrat', 'Arial', sans-serif;

  --radius: 12px;
  --radius-card: 16px;
  --radius-btn: 28px;
}

/* Elegant Classic Typography */
body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1.04rem; margin-bottom: 18px; color: var(--color-text-muted); }
strong, b { font-weight: 700; }
a { transition: color 0.2s; color: var(--color-secondary); }
a:hover, a:focus { color: var(--color-accent); text-decoration: underline; }

/*-------------------------------
 CONTAINER & LAYOUT WITH FLEXBOX
-------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 28px 28px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.15s, border 0.15s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(25,43,58,0.15);
  border-color: var(--color-secondary);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-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;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  max-width: 500px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card div {
  color: var(--color-accent);
  font-size: 1.3rem;
}

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

/*------------------------------
  SERVICES LIST
------------------------------*/
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 24px;
}
.services-list > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 24px 20px 16px;
  box-shadow: 0 1px 8px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.12s, border .14s;
}
.services-list > div:hover {
  box-shadow: 0 6px 24px rgba(25,43,58,0.13);
  border-color: var(--color-secondary);
}
.services-list h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.services-list p {
  font-size: 1.02rem;
  color: var(--color-text-muted);
}

/*------------------------------
  HEADER & NAVIGATION
------------------------------*/
header {
  background: var(--color-surface);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 16px 22px 16px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
header nav ul li {
  list-style: none;
}
header nav ul li a {
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 1.04rem;
  letter-spacing: 0.014em;
  padding: 4px 12px;
  border-radius: 22px;
  transition: background 0.14s, color 0.13s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--color-muted);
  color: var(--color-secondary);
}

header nav a img {
  height: 42px;
}
header nav .cta-btn {
  margin-left: 22px;
}

/*-------------------------------
  CTA BUTTONS
-------------------------------*/
.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 1.12rem;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 10px 30px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-block;
  transition: background 0.15s, box-shadow 0.14s, color 0.13s;
  margin-top: 8px;
  margin-bottom: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 6px 22px rgba(92, 122, 255, 0.13);
  text-decoration: none;
}

/*-------------------------------
  TABLE (COURSE COMPARISON)
-------------------------------*/
table {
  width: 100%;
  background: var(--color-muted);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px var(--color-shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
thead {
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.03rem;
  font-family: var(--font-serif);
}
thead th {
  padding: 12px 10px;
  text-align: left;
}
tbody tr {
  border-bottom: 1px solid var(--color-border);
}
tbody td {  padding: 10px 8px; font-size: 1rem; }
tbody tr:last-child { border-bottom: none; }

table th, table td {
  border-right: 1px solid var(--color-border);
}
table th:last-child, table td:last-child { border-right: none; }

/*-------------------------------
   FOOTER
-------------------------------*/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 0 0;
  font-size: 1.01rem;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 30px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: #fff;
  align-items: center;
  justify-content: center;
}
footer nav a {
  color: #fff;
  opacity: 0.89;
  transition: color 0.17s, opacity 0.14s;
}
footer nav a:hover, footer nav a:focus  {
  color: var(--color-accent);
  opacity: 1;
}
footer .contact-snippet {
  font-size: 0.97rem;
  color: var(--color-muted);
  text-align: center;
}
footer a img {
  height: 36px;
}

/*-------------------------
 CONTACT SNIPPETS & ASIDE
-------------------------*/
.contact-snippet {
  background: var(--color-muted);
  color: var(--color-primary);
  border-radius: var(--radius);
  padding: 8px 20px;
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 1.03rem;
  display: inline-block;
}

aside {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius);
  padding: 18px 28px;
  box-shadow: 0 1px 12px var(--color-shadow);
  font-size: 1.01rem;
  font-style: italic;
  margin: 18px 0 14px 0;
}

/*-----------------------------
 TEXT SECTION (FAQ/ABOUT)
-----------------------------*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.text-section h3 {
  color: var(--color-secondary);
  font-family: var(--font-serif);
  font-size: 1.13rem;
  margin-bottom: 4px;
}
.text-section ul, .text-section ol {
  padding-left: 17px;
  margin-bottom: 10px;
}
.text-section ul li, .text-section ol li {
  list-style: disc inside;
  margin-bottom: 5px;
}

/*-----------------------------
      MOBILE MENU / BURGER
-------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 36px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow .16s;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 202;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(25, 43, 58, 0.97);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.4,.7,0,1);
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0.995;
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 16px 18px;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 7px;
  margin-right: 10px;
  transition: color 0.15s, background .13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 32px 30px 40px 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: block;
  transition: color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}

/*-------------------------------
  HIDE/SHOW NAV ON BREAKPOINTS
-------------------------------*/
@media (max-width: 992px) {
  header nav ul { gap: 12px; }
}
@media (max-width: 900px) {
  header nav ul { display: none; }
  header nav .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 900px) {
  header nav { padding-right: 68px; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 0; padding-right: 0;
    max-width: 97vw;
  }
  .section {
    padding: 30px 5vw;
    margin-bottom: 48px;
  }
  .content-wrapper {
    padding: 0 4vw;
  }
  .card-container, .services-list {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid { flex-direction: column; gap: 16px; }
  .testimonial-card { max-width: 100%; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 18px; }
  .card { padding: 18px 12px 12px; }
}

/*-------------------------------
  ADDITIONAL RESPONSIVE ADAPT
-------------------------------*/
@media (max-width: 540px) {
  h1 { font-size: 2.08rem; }
  h2 { font-size: 1.33rem; }
  h3 { font-size: 1.07rem; }
  .testimonial-card, .card {
    padding: 14px 7.5px;
  }
  .cta-btn { font-size: 0.97rem; padding: 8px 12px; }
  footer .content-wrapper { gap: 13px; }
}

/*-------------------------------
  ANIMATIONS & MICROINTERACTIONS
-------------------------------*/
.card, .services-list > div, .testimonial-card, .cta-btn {
  transition: box-shadow 0.17s, border 0.14s, background 0.19s, color 0.17s;
}

.cta-btn:active {
  box-shadow: 0 2px 4px var(--color-shadow);
}

/*-------------------------------
  COOKIE CONSENT BANNER
-------------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--color-surface);
  box-shadow: 0 -2px 16px var(--color-shadow);
  border-top: 2px solid var(--color-accent);
  padding: 22px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  transition: transform 0.36s cubic-bezier(.4, .75, 0, 1);
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-text {
  flex: 100 1 300px;
  color: var(--color-primary);
  font-size: 1.05rem;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 1.01rem;
  font-weight: 500;
  border: none;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.12s, color 0.11s;
  margin: 0 6px;
  font-family: var(--font-sans);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn:active,
.cookie-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
}
.cookie-btn.reject:hover {
  background: var(--color-muted);
  color: var(--color-primary);
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(25, 43, 58, 0.41);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 36px var(--color-shadow);
  padding: 35px 34px 24px 34px;
  max-width: 420px;
  min-width: 80vw;
  max-width: 95vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  animation: modalIn 0.32s cubic-bezier(.4,.7,0,1);
}
@keyframes modalIn {
  0% { transform: translateY(60px) scale(0.92); opacity: 0; }
  80% { transform: translateY(-4px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.cookie-modal .category-desc {
  font-size: 0.98rem;
  color: var(--color-text-muted);
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal .modal-btn-row {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal-close:hover {
  color: var(--color-accent);
}

/* Cookie Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}
.cookie-toggle input[type='checkbox'] {
  width: 44px; height: 24px;
  opacity: 0; z-index: 2;
  cursor: pointer;
  position: absolute; left: 0; top: 0;
}
.cookie-toggle .toggle-switch {
  background: var(--color-muted);
  border-radius: 12px;
  width: 44px; height: 24px;
  transition: background 0.13s;
  position: relative;
}
.cookie-toggle input[type='checkbox']:checked + .toggle-switch {
  background: var(--color-secondary);
}
.cookie-toggle .toggle-knob {
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.15s cubic-bezier(.4,.7,0,1);
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-toggle input[type='checkbox']:checked + .toggle-switch .toggle-knob {
  left: 22px;
}

/* Cookie modal responsiveness */
@media (max-width: 480px) {
  .cookie-modal { padding: 17px 7vw; font-size: 0.96rem; }
}

/*-------------------------------
   OTHER SHARED UI
-------------------------------*/
::-webkit-scrollbar { width: 10px; background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-muted); border-radius: 6px; }

/*-------------------------------
   MISC FORMATS
-------------------------------*/
strong {
  color: var(--color-secondary);
}
section ul, section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
section ul li, section ol li {
  margin-bottom: 7px;
  color: var(--color-text-muted);
  font-size: 1.01rem;
  list-style-type: disc;
}

/*-------------------------------
     PRINT (for compliance)
-------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  main, .container, .content-wrapper { width: 100%; padding: 0 !important; margin: 0 !important; }
  body { background: #fff; color: #000 !important; }
}
