/* === 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  color: #203647;
  background: #FFF;
}
html {
  scroll-behavior: smooth;
}
*,*::before,*::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* === BRAND COLOR VARIABLES === */
:root {
  --color-primary: #203647;
  --color-secondary: #2998AB;
  --color-accent: #F4F4F4;
  --color-warm-1: #FFE8D2;
  --color-warm-2: #FFD9B2;
  --color-warm-3: #FFBF86;
  --color-button: #FF914D;
  --color-button-hover: #FF7300;
  --color-bg-card: #FFF9F4;
  --color-bg-section: #FFF6EF;
  --color-shadow: rgba(32, 54, 71, 0.08);
  --color-border: #EEE7DF;
  --color-success: #2BC48A;
  --color-warning: #FFA24D;
  --color-danger: #D94343;
}

/* === TYPOGRAPHY === */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.375rem; /* 38px */
  margin-bottom: 16px;
}
h2 {
  font-size: 1.875rem; /* 30px */
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
}
h4 {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem; /* 16px */
  margin-bottom: 14px;
}
strong, b {
  font-weight: 700;
}

/* =========== LAYOUT =========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 24px;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.hero {
  background: linear-gradient(110deg, var(--color-warm-1) 0%, var(--color-accent) 100%);
  padding: 60px 0 40px;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}
.hero .content-wrapper {
  background: none;
  padding: 0;
  margin-bottom: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* === FLEX LAYOUTS === */
.feature-grid,
.service-cards,
.service-list,
.team-list,
.course-list,
.testimonial-list,
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-grid > div,
.service-cards > div,
.service-list > div,
.team-member,
.course-list > div,
.article-list > li,
.featured-article-preview {
  background: var(--color-bg-card);
  border-radius: 20px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 24px 24px;
  flex: 1 1 270px;
  min-width: 240px;
  margin-bottom: 0;
  transition: transform 0.15s, box-shadow 0.2s;
}
.feature-grid > div:hover,
.service-cards > div:hover,
.service-list > div:hover,
.team-member:hover,
.course-list > div:hover,
.article-list > li:hover,
.featured-article-preview:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 30px rgba(41, 152, 171, 0.09);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 20px 28px;
}

.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-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 16px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(41,152,171,0.06);
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 300px;
  color: #203647;
  margin-bottom: 0;
  font-size: 1rem;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 1.05em;
}

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

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  flex: 1 1 270px;
  background: var(--color-bg-card);
  border-radius: 20px;
  box-shadow: 0 3px 12px var(--color-shadow);
  padding: 24px 18px 20px;
}

/* ==== TABLE STYLING ==== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin: 30px 0 16px;
  overflow: hidden;
}
thead {
  background: var(--color-warm-1);
}
th, td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1rem;
}
tr:not(:last-child) td {
  border-bottom: 1px solid var(--color-border);
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
}
thead th {
  color: var(--color-primary);
  font-weight: 700;
}

/* ==== BUTTONS & CTAS ==== */
.cta-button,
button.cta-button,
.mobile-nav .cta-button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  color: #FFF;
  background: var(--color-button);
  padding: 13px 30px;
  border: none;
  border-radius: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.2s;
}
.cta-button:hover,
button.cta-button:hover,
.cta-button:focus {
  background: var(--color-button-hover);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(255,145,77,0.16);
  outline: none;
}

button {
  font-family: inherit;
}

/* ==== MAIN NAVIGATION ==== */
header {
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 18px var(--color-shadow);
  background: #FFF;
  position: relative;
  z-index: 21;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-right: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 22px;
  padding: 8px 16px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-warm-3);
  color: var(--color-secondary);
  outline: none;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  margin-left: auto;
  z-index: 30;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-warm-2);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  box-shadow: 0 4px 20px var(--color-shadow);
  z-index: 99;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.2rem;
  cursor: pointer;
  margin: 20px 24px 8px auto;
  align-self: flex-end;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-warm-2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 18px;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-warm-2);
  color: var(--color-secondary);
  outline: none;
}

/* Hide desktop nav/show mobile toggle on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #FFF;
  box-shadow: 0 -3px 16px var(--color-shadow);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 36px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.footer-brand {
  flex: 1 1 230px;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.footer-brand img {
  margin-bottom: 12px;
}
.footer-links nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links nav a,
.footer-legal a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  padding: 4px 6px;
  border-radius: 16px;
  transition: background 0.15s, color 0.17s;
}
.footer-links nav a:hover,
.footer-links nav a:focus,
.footer-legal a:hover,
.footer-legal a:focus {
  color: var(--color-button);
  background: var(--color-warm-1);
  outline: none;
}
.footer-bottom {
  padding: 18px 0 8px 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-primary);
  opacity: 0.68;
}

/* ==== ARTICLE & BLOG PREVIEW ==== */
.article-list {
  gap: 24px;
}
.article-list li {
  background: var(--color-bg-card);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 20px 18px;
  min-width: 220px;
  margin-bottom: 0;
  flex-direction: column;
}
.article-list h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}
.article-list a {
  color: var(--color-button);
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
  transition: color 0.15s;
}
.article-list a:hover {
  color: var(--color-button-hover);
  text-decoration: underline;
}
.featured-article-preview {
  background: var(--color-warm-2);
  color: var(--color-primary);
  border-radius: 18px;
  padding: 22px 24px 18px;
  margin-top: 28px;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.categories {
  margin-top: 28px;
  font-size: 1rem;
}
.categories span {
  display: inline-block;
  background: var(--color-warm-1);
  color: var(--color-secondary);
  font-weight: 600;
  border-radius: 14px;
  padding: 3px 14px;
  margin-right: 7px;
  margin-bottom: 5px;
}

/* ==== CONTACT INFO ==== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg-section);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 1px 7px var(--color-shadow);
  margin-bottom: 18px;
}
.contact-info img {
  width: 20px;
  height: 20px;
  vertical-align: sub;
  margin-right: 7px;
}

/* ==== LISTS WITH ICONS ==== */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
ul li img, ol li img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* ==== CARD & GAP UTILITY CLASSES ==== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
/* mandatory gap for all content blocks */
.card-container,
.content-grid,
.testimonial-list,
.feature-grid,
.service-cards,
.service-list,
.team-list,
.course-list,
.article-list {
  gap: 24px;
}
.card, .feature-grid > div,
.service-cards > div,
.service-list > div,
.team-member,
.course-list > div,
.article-list > li {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 900px) {
  .feature-grid, .service-cards, .service-list, .team-list, .course-list, .testimonial-list, .article-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, .section {
    padding: 28px 6vw;
  }
  .hero {
    padding: 38px 0 22px;
    border-radius: 0;
  }
  .footer-main {
    flex-direction: column;
    gap: 22px;
    padding: 28px 0 8px 0;
  }
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid, .service-cards, .service-list, .team-list, .course-list, .testimonial-list, .article-list {
    flex-direction: column;
    gap: 18px;
  }
  .container {
    padding: 0 10px;
  }
  .content-wrapper, .section {
    padding: 18px 4vw;
  }
  h1 { font-size: 1.675rem; }
  h2 { font-size: 1.19rem; }
  h3 { font-size: 1.03rem; }
}

/* ==== TRANSITIONS & MICROINTERACTIONS ==== */
.card, .feature-grid > div, .service-cards > div, .service-list > div, .testimonial-card, .team-member, .course-list > div, .article-list > li {
  transition: box-shadow 0.2s, transform 0.15s;
}
.cta-button, button {
  transition: background 0.19s, color 0.13s, transform 0.16s;
}

/* ==== ACCESSIBILITY: FOCUS STYLES ==== */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF;
  box-shadow: 0 -2px 14px var(--color-shadow);
  padding: 22px 14px 14px 14px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 120;
  font-size: 1.02rem;
  animation: cookie-slide-in 0.52s cubic-bezier(.34,.66,.38,1.17);
  gap: 16px;
}
@keyframes cookie-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  border: none;
  padding: 9px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, transform 0.11s;
  box-shadow: 0 1px 7px var(--color-shadow);
}
.cookie-accept {
  background: var(--color-success);
  color: #FFF;
}
.cookie-accept:hover { background: #149166; }
.cookie-reject {
  background: var(--color-danger);
  color: #FFF;
}
.cookie-reject:hover { background: #A62D2D; }
.cookie-settings {
  background: var(--color-secondary);
  color: #FFF;
}
.cookie-settings:hover,
.cookie-settings:focus {
  background: var(--color-primary);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 10px 50px rgba(41,152,171,0.21);
  min-width: 320px;
  max-width: 92vw;
  z-index: 130;
  padding: 32px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeIn 0.33s cubic-bezier(.5,.5,.3,1.2);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity:1; } }
.cookie-modal h2 {
  font-size: 1.14rem;
  margin-bottom: 7px;
}
.cookie-modal-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  background: var(--color-warm-2);
  border-radius: 14px;
  padding: 12px 12px 8px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  margin-right: 12px;
  accent-color: var(--color-secondary);
}
.cookie-necessary {
  background: var(--color-warm-1);
  opacity: 0.68;
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.19s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: var(--color-warm-2);
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 8px 10px 16px;
    min-width: 90vw;
  }
}

/* ==== ANIMATION OUT CLASSES (for JS) ==== */
.cookie-banner.hide {
  animation: cookie-slide-out 0.32s cubic-bezier(.65,.17,.55,1.06) forwards;
}
@keyframes cookie-slide-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(130%); opacity: 0; }
}
.cookie-modal.hide {
  animation: fadeOut 0.29s cubic-bezier(.82,.18,.9,1) forwards;
}
@keyframes fadeOut { from { opacity:1; } to { opacity:0; } }

/* ==== MISC ==== */
code, pre {
  background: var(--color-bg-section);
  border-radius: 8px;
  color: var(--color-primary);
}
hr {
  border: 0; 
  height: 1px; 
  background: var(--color-border);
  margin: 32px 0;
}

/* ==== PRINT OPTIMIZATION ==== */
@media print {
  header, .main-nav, .mobile-menu, .footer-main, .footer-legal, .footer-links, .footer-bottom, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body, .container, .section, .content-wrapper {
    background: #FFF !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}

/* ==== END OF MOSAIKMIND STYLE.CSS ==== */
