/* ================================
   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;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  background: #f8fafc;
  color: #283547;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #243C5A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #628291;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/*========================
  COLORS & BRAND VARIABLES
=========================*/
:root {
  --color-primary: #243C5A;
  --color-secondary: #E3EBF3;
  --color-accent: #628291;
  --color-background: #f8fafc;
  --color-white: #fff;
  --color-grey-100: #f4f4f4;
  --color-grey-200: #e9eef3;
  --color-grey-300: #d6dde5;
  --color-grey-700: #4a5874;
  --color-black: #152030;
  --color-border: #d6dde5;
  --shadow-card: 0 4px 32px 0 rgba(36,60,90,0.06), 0 1.5px 6px rgba(36,60,90,0.04);
}


/* ================================
   TYPOGRAPHY
   ================================ */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;   /* 32px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.subtitle {
  color: var(--color-grey-700);
  font-size: 1.125rem;
  margin-bottom: 24px;
  font-weight: 400;
}
p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-black);
}
strong, b {
  font-weight: 600;
  color: var(--color-primary);
}

/* ================================
   BASIC LAYOUT
   ================================ */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  background: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 6px;
    border-radius: 14px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 10px;
  }
}

/* ================================
   HEADER/NAVIGATION
   ================================ */
header {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px 0 rgba(36,60,90,0.07);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0;
  padding: 0 24px;
}
header img[alt*="logo"] {
  height: 46px;
  margin-right: 22px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  color: var(--color-white);
  padding: 8px 8px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  border-radius: 2px;
  transition: color 0.15s, background 0.2s;
  position: relative;
}
nav a:hover, nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}
.cta-primary, .cta-primary:visited {
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: 30px !important;
  padding: 10px 26px !important;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 9px rgba(98,130,145,0.08);
  transition: background 0.17s, box-shadow 0.16s, color 0.14s;
  display: inline-block;
  letter-spacing: 0.02em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #406b80;
  color: #fff;
  box-shadow: 0 4px 20px rgba(36,60,90,0.12);
  text-decoration: none;
}
header .mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
}
/* Hide nav on mobile */
@media (max-width: 991px) {
  header .container nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
  }
}

/* ================================
   MOBILE MENU OVERLAY
   ================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,60,90,0.98);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.7,0,.2,1), opacity 0.32s cubic-bezier(.7,0,.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 20px 24px 10px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-top: 30px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Georgia', serif;
  padding: 14px 0;
  border-radius: 4px;
  display: block;
  width: 100%;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.11);
  color: var(--color-accent);
  text-decoration: none;
}
@media (min-width: 992px) {
  .mobile-menu { display: none; }
}


/* ================================
   SECTION/ELEMENT LAYOUTS
   ================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 430px;
  transition: box-shadow 0.2s, transform 0.11s;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 28px 0 rgba(36,60,90,0.11);
  transform: translateY(-2px) scale(1.012);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  background: var(--color-grey-100);
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(36,60,90,0.04);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
  min-width: 220px;
  max-width: 680px;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-black);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.testimonial-card > div img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Specific grids for offer cards and team cards */
.course-cards, .course-grid, .resource-cards, .team-grid, .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.course-cards > div, .course-grid > div, .resource-cards > div, .news-list > div, .team-grid > div {
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  transition: box-shadow 0.15s, transform 0.12s;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.course-cards > div:hover, .course-grid > div:hover,
.resource-cards > div:hover, .team-grid > div:hover {
  box-shadow: 0 10px 32px 0 rgba(36,60,90,0.12);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 650px) {
  .course-cards, .course-grid, .resource-cards, .team-grid, .news-list {
    flex-direction: column;
    gap: 14px;
  }
  .course-cards > div, .course-grid > div, .resource-cards > div, .team-grid > div {
    max-width: 100%;
    min-width: 0;
  }
}

.feature-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.feature-list li {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 12px;
  padding: 14px 20px 14px 17px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  font-size: 1rem;
}
.feature-list img {
  width: 26px;
  height: 26px;
}

/* ================================
   FORMS & INPUTS
   ================================ */
input[type="text"], input[type="email"], input[type="password"], textarea {
  background: var(--color-grey-100);
  border: 1.5px solid var(--color-grey-300);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-black);
  padding: 11px 14px;
  width: 100%;
  margin-bottom: 18px;
  font-family: 'Georgia', serif;
  transition: border-color 0.16s, box-shadow 0.19s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(98,130,145,0.11);
}
label {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 7px;
  display: block;
}

.search-filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  margin: 18px 0 16px 0;
}

/* ================================
   BUTTONS & INTERACTIONS
   ================================ */
button, input[type="submit"], .btn {
  font-family: 'Georgia', serif;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36,60,90,0.07);
  transition: background 0.20s, color 0.15s, box-shadow 0.16s;
  letter-spacing: 0.01em;
}
button:hover, .btn:hover, input[type="submit"]:hover,
button:focus, .btn:focus, input[type="submit"]:focus {
  background: #406b80;
  color: #fff;
  outline: none;
  box-shadow: 0 6px 18px 0 rgba(36,60,90,0.09);
}

/* ================================
   FOOTER STYLES
   ================================ */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 56px 0 36px 0;
  margin-top: 48px;
  box-shadow: 0 -3px 12px rgba(36,60,90,0.09);
  font-size: 1rem;
}
.footer-wrapper {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 24px 0 0;
}
footer nav a {
  color: var(--color-white);
  font-size: 1rem;
  font-family: 'Georgia', serif;
  opacity: 0.9;
  padding: 4px 0;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
footer img[alt*="logo"] {
  height: 44px;
  margin-bottom: 12px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #dde6ef;
  font-size: 0.97rem;
  margin-top: 8px;
  align-items: flex-start;
}
.contact-details span {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.56;
}
.contact-details img {
  width: 21px;
  height: 21px;
  display: inline-block;
  margin-right: 3px;
}
@media (max-width:900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 27px;
    align-items: flex-start;
  }
}

/* ================================
   NEWS, RESOURCES, FEATURED
   ================================ */
.featured-articles {
  background: var(--color-grey-100);
  border-radius: 12px;
  padding: 20px 30px;
  margin-top: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.featured-articles h3 {
  font-size: 1.07rem;
  margin-bottom: 11px;
  color: var(--color-accent);
}
.featured-articles ul {
  padding-left: 17px;
}
.featured-articles li {
  list-style: disc;
  margin-bottom: 7px;
  color: var(--color-primary);
}
.category-filters, .course-categories, .filter-sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 24px 0 6px;
  font-size: .98rem;
}
.category-filters span, .course-categories span, .filter-sort-options span {
  background: var(--color-grey-200);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--color-accent);
  font-size: .98em;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.certifications-info {
  background: var(--color-grey-100);
  border-radius: 10px;
  padding: 16px 22px;
  color: var(--color-black);
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 20px;
}
.team-mission {
  background: var(--color-grey-100);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--color-black);
  font-size: 1rem;
  margin-top: 13px;
}

/* ================================
   MISCELLANEOUS
   ================================ */
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.62;
  color: var(--color-black);
  padding-left: 0;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
.text-section {
  margin-bottom: 18px;
}
.map {
  margin: 24px 0 10px;
  background: var(--color-grey-200);
  padding: 10px 17px;
  border-radius: 7px;
  color: var(--color-accent);
  font-size: .98rem;
}

/* Utility */
.d-none { display: none!important; }

@media (max-width: 650px) {
  .team-grid, .news-list { gap: 8px; }
  .container, .content-wrapper { padding: 0 6px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
}

/* ================================
   COOKIE CONSENT BANNER & POPUP
   ================================ */
.cookie-consent-banner {
  position: fixed;
  z-index: 999;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-white);
  border-top: 2.5px solid var(--color-accent);
  box-shadow: 0 -4px 32px rgba(36,60,90,0.09);
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1.05rem;
  transition: transform 0.34s cubic-bezier(.7,0,.15,1), opacity 0.26s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-consent-message {
  flex: 2;
  color: var(--color-primary);
  font-family: 'Georgia', serif;
  font-size: 1rem;
}
.cookie-consent-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Georgia', serif;
  border-radius: 24px;
  min-width: 120px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(36,60,90,0.09);
  padding: 10px 20px;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.cookie-btn.secondary {
  background: var(--color-grey-200);
  color: var(--color-primary);
}
.cookie-btn.secondary:hover {
  background: var(--color-grey-300);
  color: var(--color-primary);
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #406b80;
  color: #fff;
  outline: none;
}
/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed; left:0; top:0; right:0; bottom:0;
  background: rgba(36,60,90,0.55);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(.83,0,.22,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 18px;
  padding: 36px 34px 28px;
  max-width: 430px;
  width: 90%;
  box-shadow: 0 8px 44px rgba(36,60,90,0.13);
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: slideModalIn 0.4s cubic-bezier(.6,0,.25,1);
}
@keyframes slideModalIn { from { transform: translateY(40px); opacity: 0;} to {transform: none; opacity: 1;} }
.cookie-modal .cookie-modal-title {
  font-size: 1.28rem;
  color: var(--color-primary);
  font-family: 'Georgia', serif;
  margin-bottom: 7px;
  font-weight: 600;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 24px;
  background: var(--color-grey-300);
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 4px;
}
.cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  height: 19px;
  width: 19px;
  left: 2px;
  bottom: 2.5px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s cubic-bezier(.7,0,.3,1);
  box-shadow: 0 1px 5px rgba(36,60,90,0.07);
}
.cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.9rem;
  position: absolute;
  right: 18px;
  top: 9px;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-primary);
}
@media (max-width: 650px) {
  .cookie-modal {
    padding: 18px 8px 18px;
    font-size: .97rem;
    max-width: 95vw;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 10px 10px;
    font-size: 0.97rem;
  }
  .cookie-consent-actions {
    gap: 10px;
  }
}

/* ================================
   ANIMATION/MICROINTERACTIONS
   ================================ */
.card, .course-cards > div, .course-grid > div, .resource-cards > div, .team-grid > div, .testimonial-card,
.featured-articles, .certifications-info, .team-mission, .category-filters, .course-categories, .filter-sort-options {
  transition: box-shadow 0.22s, transform 0.13s;
}
.card:hover, .course-cards > div:hover, .course-grid > div:hover, .resource-cards > div:hover, .team-grid > div:hover {
  box-shadow: 0 8px 30px 0 rgba(36,60,90,0.11);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}
button:not([disabled]):active, .cta-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(36,60,90,0.07);
}

/* ================================
   ACCESSIBILITY & FOCUS
   ================================ */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* ================================
   MEDIA QUERIES: RESPONSIVE
   ================================ */
@media (max-width: 1200px) {
  .container { max-width: 95vw; }
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 4px;
    gap: 12px;
  }
  .section {
    padding: 18px 2px;
    margin-bottom: 26px;
    border-radius: 10px;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.38rem; }
}

/* END CSS - NO GRID, ONLY FLEXBOX */
