/* ===========================
   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,
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;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F4FAFF;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  color: #26334B;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border-radius: 8px;
}

/* =============================
   VARIABLES & BRAND PALETTE
   ============================= */
:root {
  --primary: #18305B;
  --secondary: #ECD872;
  --accent: #F4FAFF;
  --neutral: #fff;
  --text-dark: #26334B;
  --text-light: #fff;
  --danger: #F24545;
  --shadow: 0 6px 24px rgba(24, 48, 91, 0.08), 0 2px 4px rgba(183, 150, 70, 0.12);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition: 0.23s cubic-bezier(.45,.05,.55,.95);
}


/* =============================
   TYPOGRAPHY & HEADINGS
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: 10px; }
h4 { font-size: 1.24rem; font-weight: 600; }
p, li, span, label, a, button {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
}
p { margin-bottom: 16px; }

strong { font-weight: 700; color: var(--primary); }
em { color: var(--secondary); font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.14rem; }
}


/* =============================
   LAYOUT: CONTAINER & WRAPPER
   ============================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* =============================
   HEADER STYLES
   ============================= */
header {
  background: var(--neutral);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  position: relative;
  z-index: 99;
}
header > a img {
  height: 46px;
  width: auto;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: 36px;
}
header nav a {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-s);
  padding: 8px 12px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
header .btn-primary {
  margin-left: 36px;
  padding: 10px 28px;
}
@media (max-width: 970px) {
  header nav { gap: 14px; margin-left: 16px; }
  header .btn-primary { margin-left: 8px; }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 12px 12px 12px 12px;
    min-height: 60px;
  }
  header nav { display: none !important; }
  header .btn-primary {
    display: none !important;
  }
}


/* =============================
   MOBILE MENU STYLES
   ============================= */
.mobile-menu-toggle {
  position: fixed;
  right: 20px;
  top: 18px;
  z-index: 1200;
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--secondary);
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex !important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: var(--primary);
  color: var(--text-light);
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  margin: 24px 0 16px 24px;
  align-self: flex-start;
  transition: color var(--transition);
  cursor: pointer;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 0 24px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: var(--radius-s);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* =============================
   MAIN LAYOUT & SECTIONS
   ============================= */
main {
  width: 100%;
  min-height: 60vh;
  padding-bottom: 40px;
}
section {
  background: var(--neutral);
  border-radius: var(--radius-m);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
}

/* Spacing helpers for cards/sections */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 10px 38px rgba(24, 48, 91, 0.15), 0 2px 4px rgba(183, 150, 70, 0.16);
  transform: translateY(-6px) scale(1.017);
}
.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;
}
@media (max-width: 868px) {
  .text-image-section { flex-direction: column; gap: 20px; align-items: flex-start; }
}


/* =============================
   BUTTONS
   ============================= */
.btn-primary,
.btn-secondary {
  border: none;
  padding: 12px 36px;
  border-radius: var(--radius-m);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), transform 0.16s;
  outline: none;
  position: relative;
  margin-top: 8px;
  margin-bottom: 8px;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-light);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: var(--neutral);
  transform: translateY(-2px) scale(1.03);
}


/* =============================
   HOMEPAGE ICON BULLETS & CARDS
   ============================= */
.content-wrapper ul, .content-wrapper ol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
  margin-bottom: 8px;
}
.content-wrapper ul li, .content-wrapper ol li {
  display: flex;
  align-items: center;
  background: var(--accent);
  border-radius: var(--radius-s);
  padding: 8px 14px;
  gap: 14px;
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-right: 0;
}
.content-wrapper ul li img { width: 26px; height: 26px; margin-right: 10px; filter: grayscale(0); }

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 6px;
}

/* =============================
   COURSE CARDS
   ============================= */
.course-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  justify-content: flex-start;
}
.course-card {
  background: var(--accent);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 24px 20px 22px 20px;
  min-width: 220px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.course-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.19rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.course-card p {
  margin-bottom: 8px;
  color: var(--primary);
}
.course-card a {
  align-self: flex-start;
  margin-top: auto;
}
.course-card:hover {
  box-shadow: 0 10px 38px rgba(24, 48, 91, 0.14), 0 2px 4px rgba(183, 150, 70, 0.18);
  transform: translateY(-5px) scale(1.018);
}
@media (max-width: 990px) {
  .course-cards { gap: 16px; }
  .course-card { flex: 1 1 250px; }
}
@media (max-width: 700px) {
  .course-cards { flex-direction: column; gap: 18px; }
  .course-card { min-width: 0; width: 100%; }
}


/* =============================
   TESTIMONIALS
   ============================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 18px 22px;
  background: #fffdfa;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 640px;
  font-style: italic;
  position: relative;
  color: #1b2b46;
}
.testimonial-card p {
  font-size: 1.09rem;
  margin-bottom: 4px;
  font-style: italic;
  color: #1b2b46;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 500;
}
.before-after {
  margin-top: 8px;
  font-size: 0.97rem;
  color: #8b6714;
  background: #fff2c6;
  border-radius: var(--radius-s);
  padding: 8px 14px;
  font-style: normal;
}

/* =============================
   FEATURE ITEMS (for methodology/benefits)
   ============================= */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-m);
  margin-bottom: 20px;
}


/* =============================
   CONTACT INFO
   ============================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 2px 8px 2px;
  color: var(--primary);
  font-size: 1rem;
}
.contact-info p img {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  vertical-align: middle;
}

.map-location {
  margin-top: 12px;
  background: var(--accent);
  border-radius: var(--radius-s);
  padding: 12px 18px;
  color: var(--primary);
  font-size: 0.99rem;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.social-links a img {
  width: 28px; height: 28px;
  filter: grayscale(0);
  opacity: 0.92;
  transition: opacity var(--transition), transform var(--transition);
}
.social-links a:hover img {
  opacity: 1;
  transform: scale(1.15) rotate(-6deg);
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 40px 0 28px 0;
  width: 100%;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: var(--shadow);
  min-height: 180px;
}
footer .container {
  padding: 0 22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 52px;
  margin-bottom: 18px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  color: var(--secondary);
  font-weight: 500;
  transition: color var(--transition);
  font-size: 1rem;
  padding: 2px 0;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer .contact-info p, footer .contact-info img {
  color: var(--secondary);
}
footer .social-links { margin-top: 10px; }
footer .social-links a img { filter: invert(65%) sepia(55%) saturate(677%) hue-rotate(357deg) brightness(95%) contrast(94%); }
@media (max-width: 950px) {
  footer .content-wrapper { flex-direction: column; gap: 24px; }
}
footer .contact-info {
  color: var(--secondary);
}


/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 990px) {
  section { padding: 30px 10px; }
  .testimonial-card { max-width: 100%; }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  section { padding: 28px 4vw; margin-bottom: 40px; }
  .content-wrapper { gap: 18px; }
  .card-container, .course-cards, .content-grid { flex-direction: column; gap: 16px; }
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #fffbea;
  color: #23231f;
  box-shadow: 0 -4px 16px rgba(24,48,91,0.11);
  padding: 24px 18px 16px 18px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 1rem;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .btn-settings {
  padding: 9px 26px;
  font-size: 1rem;
}
.btn-settings {
  background: #FFF;
  color: #8b6714;
  border: 1px solid #e3bf55;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius-m);
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn-settings:hover,
.btn-settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 48, 91, 0.23);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBackdrop 0.18s linear;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffdfa;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  max-width: 410px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 4000;
  animation: slideUpModal 0.22s cubic-bezier(.45,.05,.55,.95);
  position: relative;
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #8b6714;
  font-size: 2rem;
  position: absolute;
  top: 16px;
  right: 22px;
  cursor: pointer;
  z-index: 4500;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  background: #fffde0;
  border-radius: var(--radius-s);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(183, 150, 70, 0.03);
}
.cookie-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--secondary);
  margin-left: 12px;
}
.cookie-category .essential {
  color: #b79c33;
  font-weight: 600;
}

/* Hide the modal and banner by default in absence of js, will be toggled via js */
.cookie-banner, .cookie-modal-backdrop {
  display: none;
}
.cookie-banner.active { display: flex; }
.cookie-modal-backdrop.active { display: flex; }


/* =============================
   ACCESSIBILITY AND FOCUS
   ============================= */
a, button, input, select, textarea {
  outline: none;
  transition: box-shadow var(--transition), border var(--transition);
}
a:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 3px var(--secondary);
}


/* =============================
   MICRO-INTERACTIONS & HOVERS
   ============================= */
nav a, .btn-primary, .btn-secondary, .course-card, .card, .testimonial-card,
.mobile-menu-toggle, .cookie-modal-close, .btn-settings {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.course-card:hover, .card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.025);
}


/* =============================
   PRINT STYLES (BASIC)
   ============================= */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  section { box-shadow: none; background: #fff; }
}


/* =============================
   END OF CSS
   ============================= */
