/* ------------------------------
  TalaStark Minimalist 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, main, nav, section, article, aside, footer, header, figure, figcaption, details, summary {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}

html, body {
  height: 100%;
  width: 100%;
  background: #fff;
  color: #203864;
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: #203864;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover, a:focus {
  color: #63A69F;
  outline: none;
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Raleway:wght@400;500;700&display=swap');

/* ------------------------------
  COLORS & GLOBALS
------------------------------ */
:root {
  --color-primary: #203864;
  --color-secondary: #63A69F;
  --color-accent: #F5EFE6;
  --color-bg: #fff;
  --color-text: #203864;
  --color-muted: #777B8A;
  --color-shadow: rgba(32, 56, 100, 0.07);
  --radius: 14px;
  --shadow: 0 2px 10px var(--color-shadow);
  --transition: 0.18s cubic-bezier(.47,.26,.37,1);
}

/* ------------------------------
  TYPOGRAPHY
------------------------------ */
body {
  font-family: 'Raleway', Arial, sans-serif;
  color: var(--color-text);
  font-size: 16px;
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; }
h2 { font-size: 1.6rem; margin-bottom: 18px; }
h3 { font-size: 1.18rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

p, li {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 400;
}
strong {
  font-weight: 700;
}
.text-section {
  max-width: 740px;
}

/* Typography modifiers */
.benefits-list li,
ul.tags-list li,
ul.popular-topics li,
ul.course-list li {
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ------------------------------
  CONTAINERS & LAYOUTS
------------------------------ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 4px 18px rgba(32, 56, 100, 0.12);
  transform: translateY(-3px) scale(1.01);
}

.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;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 520px;
  border-left: 5px solid var(--color-secondary);
}
.testimonial-card p {
  color: #203864;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--color-muted);
  font-size: 1rem;
  font-weight: 500;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 20px 24px;
  min-width: 210px;
  flex: 1 1 175px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item img { width: 38px; height: 38px; margin-bottom: 8px; }
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(32,56,100,0.12);
  transform: translateY(-2px);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.team-member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 18px 18px 18px;
  min-width: 200px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-member:hover {
  box-shadow: 0 4px 18px rgba(32,56,100,0.10);
  transform: translateY(-2px);
}

/* Blog post & list layouts */
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-post-list li {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 20px;
}
.blog-post-list h3 {
  margin-bottom: 8px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.tags-list li {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 10px;
  padding: 5px 16px;
  font-size: 1rem;
}

.popular-topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.course-list, .benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.benefits-list li,
.course-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.benefits-list img, .course-list img { width: 22px; height: 22px; }

.course-teasers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.contact-info-block, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.contact-info-block p, .contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.case-study {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 20px;
  max-width: 600px;
}

/* ------------------------------
  HEADER & NAVIGATION
------------------------------ */
header {
  background: #fff;
  border-bottom: 1px solid #E5EAF1;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
  justify-content: space-between;
}
.logo img {
  height: 46px;
  width: auto;
}
nav.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.04rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 5px 10px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.cta-button {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 28px;
  padding: 12px 28px;
  font-size: 1.04rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  letter-spacing: 0.03em;
  transition: box-shadow var(--transition), transform var(--transition), background 0.14s;
  margin-left: 16px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 22px rgba(32,56,100,0.10);
  transform: translateY(-1px) scale(1.03);
}

/* Mobile menu burger */
.mobile-menu-toggle {
  background: var(--color-accent);
  border: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  padding: 0;
  display: none;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
  z-index: 210;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ---------- MOBILE MENU ----------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.37,0,0.63,1), opacity 0.18s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.25rem;
  align-self: flex-end;
  margin: 20px 24px 14px 0;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
  padding: 0 34px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 0;
  width: 100%;
  border-radius: 0;
  border-bottom: 1px solid #F0F2F8;
  transition: color 0.17s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: none;
}

/* Only show main-nav & cta on desktop */
@media (max-width: 991px) {
  nav.main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Ensure mobile menu is always on top */
.mobile-menu {
  box-shadow: 0 0 0 800px rgba(0,0,0,0.14);
}

/* ------------------------------
  HERO SECTION
------------------------------ */
.hero {
  background: var(--color-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 52px 0 58px 0;
  margin-bottom: 60px;
  min-height: 340px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 700px;
  text-align: center;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.65rem;
  letter-spacing: -.01em;
  font-weight: 700;
}
.hero p {
  color: var(--color-primary);
  font-size: 1.22rem;
}

/* ------------------------------
  FOOTER
------------------------------ */
footer {
  background: var(--color-accent);
  border-top: 1px solid #E5EAF1;
  padding: 48px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 38px;
  margin-bottom: 12px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-menu a {
  color: var(--color-primary);
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-secondary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--color-muted);
  font-size: 0.98rem;
  font-weight: 400;
}
.footer-contact img {
  height: 18px; width: 18px; margin-right: 8px; vertical-align: middle;
}
footer p {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ------------------------------
  COOKIE CONSENT BANNER & MODAL
------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 18px rgba(32,56,100,0.11);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 28px 16px 24px 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.38s, opacity 0.19s;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner__text {
  max-width: 540px;
  text-align: left;
  font-size: 1rem;
  margin-right: 16px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 5px;
  transition: background 0.16s, transform 0.14s;
}
.cookie-btn.reject {
  background: #e7eaf0;
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(32,56,100,0.19);
  justify-content: center;
  align-items: center;
  animation: cookieFadeIn 0.38s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(32,56,100,0.22);
  max-width: 450px;
  width: 96vw;
  padding: 36px 32px 26px 32px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalDrop 0.33s cubic-bezier(.45,.01,.63,1);
}
@keyframes cookieModalDrop {
  from { transform: translateY(-24px); opacity: 0.8; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F0F2F8;
  font-size: 1rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.14s;
  z-index: 550;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-secondary);
}

/* Ensure essential cookies always look disabled */
.cookie-category input[type="checkbox"][disabled] {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 545px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px 18px 10px;
    gap: 13px;
  }
}

/* ------------------------------
  RESPONSIVE STYLES
------------------------------ */
@media (max-width: 991px) {
  .container {
    max-width: 94vw;
    padding: 0 10px;
  }
  .footer-contact {
    font-size: 0.93rem;
  }
}
@media (max-width: 820px) {
  .feature-grid, .team-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 7px;
  }
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
}
@media (max-width: 575px) {
  .section {
    padding: 26px 7px;
    margin-bottom: 32px;
  }
  h1 {
    font-size: 1.47rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .cookie-modal {
    padding: 22px 7px 16px 7px;
  }
  .hero {
    padding: 25px 0 38px 0;
    min-height: 170px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: auto;
  }
  .footer-logo img {
    margin-bottom: 4px;
  }
}
/* --- Responsive alignment for flex sections --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper, .content-grid,
  .team-grid, .feature-grid, .card-container {
    gap: 14px;
  }
  .testimonial-card, .feature-item {
    max-width: 100%;
    min-width: 0;
    padding: 18px 12px;
  }
  .content-wrapper.text-section {
    padding: 0;
  }
}

/* ------------------------------
  UTILITIES
------------------------------ */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-24 { margin-top: 24px!important; }
.mb-24 { margin-bottom: 24px!important; }
.gap-16 { gap: 16px!important; }
.text-center { text-align: center!important; }

/* Hide visually (for a11y) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ------------------------------
  MISC INTERACTIONS & MICRO-ANIMATIONS
------------------------------ */
.card, .feature-item, .testimonial-card, .team-member, .case-study {
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:active, .feature-item:active, .testimonial-card:active, .team-member:active {
  transform: scale(0.98);
}

.cta-button:active,
.cookie-btn:active {
  transform: scale(0.99);
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1.5px;
}

/* ------------------------------
  SCROLLBAR (subtle lighter look)
------------------------------ */
::-webkit-scrollbar {
  width: 9px;
  background: #F5EFE6;
}
::-webkit-scrollbar-thumb {
  background: #e6e8ed;
  border-radius: 6px;
}

/* ------------------------------
  PRINT STYLES
------------------------------ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}
