/* CSS RESET & BASE TYPOGRAPHY */
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;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #232323;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* BRAND & MONOCHROME SOPHISTICATED PALETTE */
:root {
  --color-black: #171717;
  --color-white: #fff;
  --color-dark-gray: #232323;
  --color-medium-gray: #bdbdbd;
  --color-light-gray: #F7FAFC;
  --color-border: #E6E8EB;
  --brand-primary: #171717;
  --brand-accent: #174C7A;
  --brand-secondary: #24A9A1;
  --brand-highlight-bg: #F7FAFC;
}

/* TYPOGRAPHY SCALE & HIERARCHY */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--brand-primary);
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
  letter-spacing: 0;
}
h4, .h4 {
  font-size: 1.1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
p, li {
  font-size: 1rem;
  color: var(--color-dark-gray);
  line-height: 1.7;
}
strong, b {
  font-weight: 600;
  color: var(--color-black);
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

/* FLEX LAYOUTS PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 20px 0 rgba(23,23,23,0.05);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: box-shadow 0.23s;
}
.card:hover {
  box-shadow: 0 7px 28px 0 rgba(23,23,23,0.10);
}
.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: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #FAFAFA;
  border: 1px solid #DFDFDF;
  box-shadow: 0 2px 12px rgba(23,23,23,0.07);
  margin-bottom: 20px;
  max-width: 400px;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card:hover {
  background: var(--color-light-gray);
  box-shadow: 0 6px 30px rgba(16,16,16,0.14);
}
.testimonial-author {
  font-size: 0.95rem;
  color: #555;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--brand-highlight-bg);
  border: 1px solid #e7e7eb;
  border-radius: 10px;
  padding: 22px 20px 20px 20px;
  min-width: 210px;
  max-width: 350px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s;
}
.feature-item img {
  max-width: 40px;
  filter: grayscale(100%) contrast(1.2);
}
.feature-item:hover {
  box-shadow: 0 4px 20px 0 rgba(23,23,23,0.09);
  z-index: 2;
}

/* PAGE-SPECIFIC FLEX LAYOUTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.course-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.category-item {
  flex: 1 1 245px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 22px 18px 18px 18px;
  margin-bottom: 20px;
  min-width: 215px;
  transition: box-shadow 0.22s, border-color 0.22s;
}
.category-item:hover {
  box-shadow: 0 5px 26px 0 rgba(20,20,20,0.09);
  border-color: var(--brand-accent);
}
.course-list {
  background: var(--brand-highlight-bg);
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 20px;
}
.tag {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--color-white);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 12px;
  margin: 8px 0 8px 0;
}

.resource-library {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.resource-category {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex: 1 1 210px;
  padding: 20px 14px;
  margin-bottom: 20px;
}
.highlighted-resource {
  flex: 1 1 250px;
  background: var(--brand-highlight-bg);
  border-left: 4px solid var(--brand-accent);
  padding: 18px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-style: italic;
}
.resource-filters {
  flex: 1 1 190px;
  background: #181818;
  color: #fff;
  padding: 18px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.resource-filters h4 {
  color: #FFF;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
}
.resource-filters ul li {
  font-size: 0.97rem;
  padding: 3px 0;
}

.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.post-list article {
  flex: 1 1 230px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 14px;
  min-width: 210px;
  box-shadow: 0 2px 10px 0 rgba(23,23,23,0.04);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.post-list article:hover {
  box-shadow: 0 5px 23px 0 rgba(23,23,23,0.09);
  border-color: var(--brand-accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 18px 15px 15px 15px;
  box-shadow: 0 2px 8px 0 rgba(20,20,20,0.04);
  transition: box-shadow 0.18s, border 0.18s;
}
.faq-item:hover {
  box-shadow: 0 5px 18px 0 rgba(23,23,23,0.10);
  border-color: var(--brand-accent);
}

.map-placeholder {
  background: var(--brand-highlight-bg);
  border-radius: 12px;
  padding: 20px 15px;
  border: 1px solid var(--color-border);
}

/* BUTTONS AND LINKS */
.btn-primary {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--color-white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 13px 28px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px 0 rgba(23,23,23,0.07);
  cursor: pointer;
  margin: 12px 0 0 0;
  transition: background 0.22s, color 0.22s, box-shadow 0.17s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-secondary);
  color: var(--color-black);
  box-shadow: 0 8px 30px 0 rgba(20,20,20,0.18);
}
.btn-secondary {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  margin-left: 10px;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-white);
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 12px 0 rgba(23,23,23,0.03);
  z-index: 10;
  position: relative;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  justify-content: space-between;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: var(--color-black);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.89;
  position: relative;
  transition: color 0.17s, opacity 0.17s;
  padding: 6px 2px;
}
header nav a:hover, header nav a:focus {
  color: var(--brand-accent);
  opacity: 1;
}
header a img {
  height: 38px;
  margin-right: 18px;
  vertical-align: middle;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.16s;
  padding: 4px 9px;
}
.mobile-menu-toggle:focus {
  color: var(--brand-accent);
  outline: 2px solid var(--brand-accent);
  border-radius: 4px;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,0.96);
  color: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.3,.78,.46,.97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.32s cubic-bezier(.3,.78,.46,.97), opacity 0.20s;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 18px 25px 6px 0;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 16px 36px;
  margin-top: 13px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 2px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}


/* FOOTER */
footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 46px 0 34px 0;
  border-top: 3px solid var(--brand-accent);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.06rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
}
.footer-brand img {
  height: 36px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: var(--color-white);
  font-size: 0.99rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  opacity: 0.89;
  transition: color 0.17s, opacity 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--brand-secondary);
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e4e4e4;
}
.footer-contact img {
  height: 14px;
  width: 14px;
  vertical-align: middle;
  opacity: 0.75;
  filter: grayscale(100%) contrast(1.1);
  margin-right: 7px;
}

/* COOKIES CONSENT BANNER */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  z-index: 2000;
  background: #111;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 -2px 20px 0 rgba(0,0,0,0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px 22px;
  gap: 18px;
  opacity: 1;
  transition: opacity 0.25s;
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: var(--brand-accent);
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-right: 5px;
}
.cookie-btn.settings {
  background: var(--brand-secondary);
  color: var(--color-black);
}
.cookie-btn.reject {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-white);
  color: var(--brand-accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus{
  background: var(--brand-accent);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(23,23,23,0.80);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
  opacity: 0;
}
#cookie-modal.open {
  display: flex;
  opacity: 1;
}
.cookie-modal-content {
  max-width: 400px;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 36px 28px 26px 28px;
  box-shadow: 0 10px 60px 0 rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popFadeIn 0.33s cubic-bezier(.31,.84,.46,.99);
}
@keyframes popFadeIn {
  0% { transform: scale(.92); opacity: 0; }
  95% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.32rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: var(--brand-accent);
  margin-bottom: 4px;
}
.cookie-modal-content button.close-modal {
  position: absolute;
  top: 18px; right: 19px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #555;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-content button.close-modal:hover, .cookie-modal-content button.close-modal:focus {
  color: var(--brand-accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 2px 0;
  border-radius: 6px;
  margin-bottom: 4px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #e4e4e4;
  border-radius: 99px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: var(--brand-accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s;
  box-shadow: 0 1px 3px 0 rgba(23,23,23,0.10);
}
.cookie-toggle:checked:before {
  left: 23px;
}
.cookie-category .always-on {
  font-size: 0.95em;
  color: #3b3b3b;
  background: #f1f1f1;
  border-radius: 5px;
  padding: 2px 6px;
}

/* TIMELINE (About Page) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
  margin-top: 14px;
}
.timeline div {
  position: relative;
  padding-left: 18px;
  font-size: 1.04rem;
  color: #232323;
}
.timeline div strong {
  color: var(--brand-accent);
  margin-right: 4px;
}
.timeline div:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 3px #e6e6e6;
}

/* GENERAL SPACING AND CARD RULES */
section + section {
  margin-top: 0;
}
section {
  border-radius: 20px;
  box-shadow: 0 1px 10px rgba(23,23,23,0.04);
  margin-bottom: 60px;
}
.card, .category-item, .feature-item, .resource-category, .testimonial-card, .faq-item, .post-list article {
  margin-bottom: 20px;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #232323;
}
.contact-details img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  opacity: 0.75;
  vertical-align: middle;
  filter: grayscale(100%) contrast(1.1);
}

/* UTILITIES */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-20 { margin-top: 20px; }
.hide { display: none !important; }

/* MICRO-INTERACTIONS */
input:focus, select:focus, textarea:focus, button:focus, a:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { max-width: 980px; }
  .feature-grid, .course-category-grid, .resource-library, .post-list, .card-container, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 740px; }
  .feature-grid, .course-category-grid, .resource-library, .post-list, .card-container, .content-grid {
    gap: 13px;
  }
  .footer-contact, .footer-brand, footer nav { font-size: 0.96rem; }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2.0rem; }
  h2, .h2 { font-size: 1.45rem; }
  
  .container { max-width: 98%; padding: 0 10px; }
  .feature-item, .category-item, .resource-category, .highlighted-resource,
  .testimonial-card, .faq-item, .post-list article, .card {
    min-width: 95%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid, .course-category-grid, .resource-library, .post-list, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 14px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .text-image-section { flex-direction: column; gap: 14px; align-items: stretch; }
  .footer-brand { flex-direction: row; gap: 10px; justify-content: flex-start; }
  footer .container { flex-direction: column; gap: 18px; }
  header .container { flex-direction: row; gap: 13px; }
  header nav { display: none; }
  .btn-primary { font-size: 1rem; padding: 11px 17px; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 560px) {
  h1, .h1 { font-size: 1.38rem; margin-bottom: 12px; }
  h2, .h2 { font-size: 1.12rem;}
  .container { padding-left: 4px; padding-right: 4px; }
  .section { padding: 18px 5px; margin-bottom: 40px; }
  .text-section, .contact-details, .footer-contact { font-size: 0.99rem; }
  #cookie-banner { flex-direction: column; gap: 11px; padding: 13px 7px 11px 7px; font-size: 0.98rem; }
}

/* PRINT (optional for sophistication) */
@media print {
  header, footer, #cookie-banner, #cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
}
