/* =====================
   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,
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,
main, 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, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #244873;
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =====================
   BRAND COLORS & UTILITIES
   ===================== */
:root {
  --color-primary: #244873;
  --color-secondary: #28A49E;
  --color-accent: #FFECC2;
  --color-body: #34435E;
  --color-bg: #fff;
  --color-dark: #23272A;
  --color-success: #43D675;
  --color-error: #E74C3C;
  --color-grey: #F7FAFC;
  --shadow-mid: 0 4px 16px rgba(36,72,115,0.08);
  --shadow-card: 0 8px 24px rgba(40,164,158,0.14);
  --radius-xl: 24px;
  --radius-md: 14px;
  --radius-sm: 7px;
  --transition: 0.22s cubic-bezier(.43,.18,.29,1.1);
}

/* ===============
   TYPOGRAPHY
   =============== */

h1, .hero-section h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.16;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.19rem;
  color: var(--color-dark);
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 600px;
}
p, li, address {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-body);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  h1, .hero-section h1 { font-size: 3.4rem; }
  h2 { font-size: 2.8rem; }
  .subheadline { font-size: 1.22rem; }
}
@media (min-width: 1200px) {
  h1, .hero-section h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
}

/* ==============
   GENERAL LAYOUT
   ============== */
.header, header {
  background: var(--color-bg);
  box-shadow: 0 4px 18px 0 rgba(36,72,115,0.04);
  z-index: 30;
}
.content-wrapper {
  margin-bottom: 0;
  background: none;
  border-radius: 0;
}

/* ===================
   NAVIGATION
   =================== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px 0;
  gap: 25px;
  position: relative;
}
.main-nav a img {
  height: 44px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav li {
  margin: 0;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.main-nav ul li a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cta-btn {
  padding: 12px 34px;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-md);
  font-size: 1.04rem;
  border: none;
  box-shadow: 0 2px 12px rgba(40,164,158,0.10);
  margin-left: 12px;
  margin-top: 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  outline: none;
  text-shadow: none;
}
.cta-btn.primary {
  background: var(--color-secondary);
  color: #fff;
  letter-spacing: 1px;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 25px rgba(40,164,158,0.18);
}
.cta-btn.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 25px rgba(36,72,115,0.11);
}

/* ===============
   MOBILE MENU
   =============== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2.15rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  margin-left: 6px;
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 91;
}
.mobile-menu-toggle:focus, 
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  outline: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 96vw;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 34px rgba(36,72,115,0.10);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.64,-0.1,.45,1.21), opacity 0.28s;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px 34px 30px;
}
.mobile-menu.open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-primary);
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 24px 0 16px 0;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-accent);
  padding: 16px 14px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (min-width: 1040px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}
@media (max-width: 1039px) {
  .main-nav ul, .main-nav .cta-btn.primary { display: none !important; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  .mobile-menu { width: 100vw; }
}

/* ===============
   HERO SECTION
   =============== */
.hero-section {
  min-height: 46vh;
  background: var(--color-accent);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  box-shadow: var(--shadow-mid);
  padding: 32px 26px;
  margin-bottom: 60px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .hero-section { padding: 54px 80px; }
}

/* ===============
   FEATURES GRID
   =============== */
.features-section {
  padding: 0;
  margin-bottom: 60px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}
.feature-grid li {
  display: flex;
  align-items: center;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  min-width: 200px;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-mid);
  flex: 1 1 220px;
  gap: 16px;
  margin-bottom: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li img {
  width: 34px;
  height: 34px;
  margin-right: 6px;
}
.feature-grid li:hover {
  background: #fffbe6;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 26px rgba(40,164,158,0.18);
}

/* (For other .features or .feature-item structures) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   CARD, COURSES, AND SERVICE LISTS
   ============================= */
.card-container,.card-grid,.course-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  align-items: stretch;
  justify-content: flex-start;
}
.card, .course-card, .post-preview {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 24px 20px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 250px;
}
.card:hover, .course-card:hover, .post-preview:hover {
  box-shadow: 0 8px 36px rgba(40,164,158,0.22);
  transform: translateY(-6px) scale(1.02);
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.course-list li {
  background: var(--color-grey);
  border-radius: var(--radius-sm);
  padding: 18px 18px 20px 18px;
  box-shadow: 0 2px 9px rgba(34,38,80,0.08);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.level-tag {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-size: .93rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  margin-right: 13px;
  letter-spacing: .01em;
}
.course-card h2 {
  font-size: 1.38rem;
  margin-bottom: 8px;
}

/* ===========================
   TESTIMONIALS & CTA SECTIONS
   =========================== */
.testimonials-section {
  margin-bottom: 60px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  box-shadow: 0 10px 36px 0 rgba(36,72,115,0.12);
  border-radius: var(--radius-md);
  padding: 20px 30px;
  margin-bottom: 20px;
  max-width: 680px;
  color: var(--color-body);
  font-size: 1.09rem;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 7px solid var(--color-secondary);
}
.testimonial-card p {
  color: #212131;
}
.testimonial-card .student-name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 1px;
}
.testimonial-card .star-rating {
  color: var(--color-secondary);
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1.5px;
}
.testimonial-card div {
  font-size: .98rem;
  color: var(--color-dark);
}
.testimonial-card:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 14px 46px 0 rgba(40,164,158,0.17);
}

.cta-section {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mid);
  padding: 36px 22px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
}
.cta-section p {
  color: #f3f7f7;
}
.cta-section .cta-btn.primary {
  color: var(--color-secondary);
  background: #fff;
}
.cta-section .cta-btn.primary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* =====================
   BLOG SECTION & SEARCH
   ===================== */
.blog-section {
  margin-bottom: 60px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
  background: var(--color-grey);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 1px 7px rgba(36,72,115,0.03);
}
.search-bar label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-secondary);
  font-weight: 700;
}
.search-bar input {
  padding: 9px 15px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
.search-bar input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 1px 7px rgba(40,164,158,0.1);
}
.blog-categories {
  display: flex;
  gap: 12px;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 31px;
  flex-wrap: wrap;
}
.blog-categories strong {
  color: var(--color-secondary);
}
.blog-categories span {
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 1px 9px;
}
.post-preview {
  margin-bottom: 20px;
  padding: 28px 20px 24px 26px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(36,72,115,0.07);
  transition: box-shadow var(--transition), border var(--transition);
}
.post-preview h2 {
  margin-bottom: 7px;
  font-size: 1.22rem;
}
.post-preview p {
  color: var(--color-body);
  margin-bottom: 12px;
}
.post-preview a {
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: underline;
  transition: color var(--transition);
}
.post-preview a:hover, .post-preview a:focus {
  color: var(--color-primary);
}

/* ================
   FAQ SECTION
   ================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list li {
  background: #fffbe8;
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  box-shadow: 0 2px 7px rgba(36,72,115,0.08);
  font-weight: 600;
  line-height: 1.45;
}

/* ================
   CONTACT & MAP
   ================ */
.contact-section .contact-details ul, .info-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.contact-section .contact-details li, .info-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-weight: 600;
}
.contact-section .contact-details img, .info-section ul img,
.map-embed img {
  width: 26px;
  height: 26px;
  margin-right: 3px;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 16px;
}

/* ================
   FOOTER
   ================ */
footer {
  background: var(--color-grey);
  border-top: 3px solid var(--color-secondary);
  padding: 34px 0 6px 0;
}
footer .container {
  padding: 0 16px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
footer address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--color-dark);
  font-style: normal;
  font-size: 1rem;
}
footer address a {
  font-weight: 700;
  color: var(--color-secondary);
}
footer p {
  font-size: .97rem;
  color: #555d75;
  margin-top: 6px;
}

/* ==============
   LEGAL PAGES
   ============= */
.legal-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 34px;
}
.legal-section h2 {
  margin-top: 28px;
}

/* ================
   THANK YOU/INFO PAGE
   ================ */
.thanks-section a,
.thanks-section .cta-btn {
  display: inline-block;
  margin: 14px 10px 0 0;
}

/* ================
   RESPONSIVE FLEXBOX LAYOUTS
   ================ */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  flex-direction: row;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 1024px) {
  .container { max-width: 94vw; }
  .card, .course-card, .post-preview { min-width: 180px; }
}
@media (max-width: 900px) {
  .content-grid,
  .card-container, .card-grid, .course-cards {
    flex-direction: column;
    gap: 28px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 17px;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 3vw; }

  .main-nav {
    gap: 10px;
  }
  .hero-section,
  .cta-section {
    border-radius: var(--radius-md);
    padding: 25px 9px;
  }
  .features-section, .testimonials-section, .services-section, .faq-section {
    margin-bottom: 44px;
    padding: 0 3px;
  }
  .feature-grid, .faq-list, .course-list, .card-container,
  .card-grid, .course-cards {
    gap: 16px;
  }
  .card, .course-card, .testimonial-card, .post-preview {
    min-width: 0;
    padding: 18px 11px 16px 14px;
  }
  .testimonial-card { padding: 16px 11px; }
  .content-wrapper { padding: 0 !important; }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 26px;
  }
  .cta-section { padding: 23px 4px; }
}

@media (max-width: 520px) {
  h1, .hero-section h1 { font-size: 2.05rem; }
  h2 { font-size: 1.39rem; }
  .main-nav a img { height: 36px; }
}

/* ====================
   COOKIE CONSENT BANNER
   ==================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px;
  gap: 14px;
  z-index: 2000;
  box-shadow: 0 -2px 26px rgba(36,72,115,0.15);
  transition: transform 0.45s var(--transition), opacity .31s;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner strong {
  color: var(--color-secondary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 7px;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-right: 4px;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ===============
 COOKIE PREFERENCES MODAL
 =============== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  height: 100vh; width: 100vw;
  background: rgba(36,72,115,0.65);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .35s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px 28px 30px;
  box-shadow: 0 8px 32px rgba(36,72,115,0.18);
  width: 97vw;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: transparent;
  font-size: 1.6rem;
  color: var(--color-primary);
  border: none;
  padding: 1px 7px;
  border-radius: 9px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #f2f2f2;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 11px 0 15px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-grey);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category .toggle {
  appearance: none;
  width: 44px;
  height: 22px;
  background: var(--color-accent);
  border-radius: 28px;
  position: relative;
  outline: none;
  box-shadow: 0 1px 2px rgba(36,72,115,0.03);
  transition: border .15s, background .2s;
  transition: background .15s;
  cursor: pointer;
}
.cookie-category .toggle:checked {
  background: var(--color-secondary);
}
.cookie-category .toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s;
}
.cookie-category .toggle:checked:before {
  transform: translateX(20px);
}
.cookie-category .always-enabled {
  color: var(--color-success);
  font-size: 1.05rem;
}

.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-btn {
  font-size: 1.08rem;
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 20px 9px 14px 12px;
    max-width: 97vw;
  }
  .cookie-modal .modal-close {
    right: 10px; top: 5px;
  }
}

/* ================
   SHADOWS + EFFECTS
   ================ */
.card, .course-card, .testimonial-card, .cta-section, .post-preview, .legal-section, .cookie-modal {
  box-shadow: var(--shadow-mid);
}

/* ===============
   LINKS AND STATES
   =============== */
a {
  color: var(--color-secondary);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
  outline: none;
}
.cta-btn:focus {
  box-shadow: 0 0 0 3px var(--color-accent);
}

/* ===============
  UTILITY/HELPERS
  =============== */
.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  border: 0; clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* Gap spacing for all flex wrappers as pattern */
.card-container, .content-grid, .course-cards, .card-grid, .feature-grid, .faq-list, .course-list, .testimonials-section, .features-section {
  gap: 20px;
}
@media (max-width: 1000px) {
  .testimonial-card, .card, .course-card, .post-preview {
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .testimonial-card,
  .course-card,
  .card,
  .post-preview {
    min-width: 0;
    padding: 11px 4px;
  }
}
