/* ================= 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F7FA;
  color: #20232A;
  font-size: 16px;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #A5052B;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #621b24;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
}
ul, ol {
  margin-left: 24px;
}

/* ================= BRAND & UTILITY COLORS =================== */
:root {
  --primary-color: #A5052B;
  --secondary-color: #20232A;
  --accent-color: #F5CBA7;
  --neutral-bg: #F5F7FA;
  --light-bg: #fff;
  --border: #E4E8ED;
  --gray1: #677189;
  --gray2: #CBD2E1;
  --blue1: #2673C9;
  --button-shadow: 0 4px 14px rgba(32, 35, 42, 0.08);
  --card-shadow: 0 2px 12px rgba(32,35,42,0.07);
  --card-radius: 12px;
}

/* ================= TYPOGRAPHY =================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.38rem;
  font-weight: 600;
}
h4, h5 {
  font-size: 1.05rem;
  font-weight: 600;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

/* ================= CONTAINER & WRAPPER =================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================= LAYOUT & SECTIONS =================== */
main {
  padding-top: 86px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 4px;
    margin-bottom: 38px;
  }
  main {
    padding-top: 70px;
  }
}

/* ================= HEADER =================== */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--light-bg);
  box-shadow: 0 3px 16px rgba(32, 35, 42, 0.06);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0;
  min-height: 78px;
}
header > a img {
  height: 44px;
  margin: 18px 32px 18px 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
  margin-left: 12px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--gray1);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 0 8px 0;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}
.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 24px;
  box-shadow: var(--button-shadow);
  margin-left: 28px;
  border: none;
  transition: background 0.15s, box-shadow 0.18s, color 0.15s;
  text-align: center;
  letter-spacing: 0.5px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #61061f;
  color: #fff;
  box-shadow: 0 2px 12px rgba(32,35,42,0.13);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--secondary-color);
  font-size: 2rem;
  line-height: 1;
  margin-left: 22px;
  border-radius: 8px;
  border: none;
  padding: 7px 14px 7px 7px;
  transition: background 0.17s;
  z-index: 1006;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray2);
}
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 576px) {
  header > a img {
    height: 38px;
    margin-right: 14px;
  }
  header {
    min-height: 60px;
  }
}

/* ================= MOBILE MENU =================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 35, 42, 0.96);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  margin: 22px 34px 14px 0;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: background 0.18s;
  padding: 7px 16px;
  cursor: pointer;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--primary-color);
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 8px;
  gap: 0;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  padding: 18px 38px 16px 0;
  margin-right: 0;
  width: 100%;
  text-align: right;
  transition: background 0.13s, color 0.13s;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--accent-color);
  background: rgba(229, 57, 53, 0.09);
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================= CARD COMPONENTS =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--light-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 26px 22px 26px;
  flex: 1 1 320px;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* =========== FLEXBOX PATTERNS (MANDATORY) =========== */
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(32,35,42,0.08);
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 220px;
  border: 1px solid var(--border);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--light-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 24px 18px 18px 18px;
  min-width: 230px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

/* Additional Semantic Flex Containers */
.feature-grid, .skills-grid, .coaching-options, .coaching-benefits-grid, .testimonial-list, .articles-list, .course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: start;
}

@media (max-width: 1100px) {
  .feature-grid, .skills-grid, .coaching-options, .coaching-benefits-grid, .testimonial-list, .articles-list, .course-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .skills-grid, .coaching-options, .coaching-benefits-grid, .testimonial-list, .articles-list, .course-list {
    flex-direction: column;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}

/* ============= TESTIMONIAL CARDS ============= */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: start;
}
.testimonial-card {
  max-width: 370px;
  box-shadow: 0 3px 12px rgba(32,35,42,0.08);
}
.testimonial-card p {
  color: #20232A;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
  color: var(--gray1);
}

/* ============= ARTICLE/BLOG CARDS ============= */
.article-preview {
  background: var(--light-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 26px 20px 18px 20px;
  margin-bottom: 20px;
  flex: 1 1 290px;
  min-width: 240px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.20s, border 0.12s;
}
.article-preview:hover, .article-preview:focus {
  box-shadow: 0 4px 16px rgba(32,35,42,0.20);
  border: 1px solid var(--primary-color);
}
.article-preview span {
  color: var(--blue1);
  font-size: 0.95rem;
}

/* Blog categories filter */
.categories-filter {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 6px;
}
.categories-filter ul {
  display: flex;
  gap: 14px;
  list-style: none;
}
.categories-filter li {
  background: var(--gray2);
  border-radius: 12px;
  padding: 4px 14px;
  font-size: 0.95rem;
}

/* ============ FAQ & List Blocks ============ */
.faq-list,
.quick-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.faq-list li, .quick-faq-list li {
  background: var(--light-bg);
  border-radius: 9px;
  padding: 20px 16px 12px 20px;
  border: 1px solid var(--border);
}
.faq-list li strong, .quick-faq-list li strong {
  color: var(--primary-color);
}

/* ============ COURSE/FEATURE BADGES ============ */
.level-tag {
  background: var(--blue1);
  color: #fff;
  font-size: 0.92rem;
  border-radius: 9px;
  padding: 3px 12px;
  margin-left: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

/* ========== BUTTONS ========== */
.button, .btn-secondary {
  display: inline-block;
  background: var(--blue1);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 22px;
  box-shadow: var(--button-shadow);
  border: none;
  transition: background 0.15s, box-shadow 0.18s;
  margin-top: 8px;
}
.button:hover, .btn-secondary:hover {
  background: #195998;
  box-shadow: 0 2px 14px rgba(32,35,42,0.11);
}

/* ============== SCHEDULE & HIGHLIGHT ============= */
.schedule-highlight {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 16px 18px;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
  font-size: 1.05rem;
}

/* ============== MAP PLACEHOLDER ============= */
.map-placeholder {
  background: var(--gray2);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 7px rgba(32,35,42,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0;
}

/* ============== FOOTER ============= */
footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 50px 0 18px 0;
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 18px;
  margin-bottom: 15px;
  justify-content: center;
}
.footer-nav a {
  color: var(--accent-color);
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 1;
  transition: color 0.17s;
  font-weight: 600;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 11px;
  align-items: center;
}
footer img {
  height: 42px;
  margin: 0 auto 16px auto;
}
footer span {
  color: #D8E1EF;
  font-size: 0.99rem;
  display: block;
  text-align: center;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .footer-nav {
    gap: 13px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
}

/* ============== FORMS ============= */
input[type="text"], input[type="email"], textarea, select {
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--blue1);
  outline: none;
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 1200px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.52rem;
  }
  h2 {
    font-size: 1.27rem;
  }
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 525px) {
  .main-nav {
    gap: 8px;
  }
}

/* =============== ANIMATIONS & INTERACTIONS ================ */
.btn-primary, .btn-secondary, .button, .mobile-menu-toggle, .article-preview, .feature-item, .testimonial-card {
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, border 0.13s;
}

/* =============== COOKIE CONSENT BANNER ================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid var(--gray2);
  box-shadow: 0 -2px 18px rgba(44,60,86,0.10);
  z-index: 1450;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px 16px;
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition: opacity 0.34s cubic-bezier(.46,.03,.52,.96), transform 0.36s cubic-bezier(.42,0,.58,1);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  color: var(--secondary-color);
  font-size: 1.08rem;
  margin-bottom: 16px;
  text-align: center;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.cookie-banner button {
  min-width: 120px;
  padding: 10px 10px;
  border-radius: 20px;
  border: none;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--blue1);
  color: #fff;
  transition: background 0.14s;
}
.cookie-banner button.accept {
  background: var(--primary-color);
}
.cookie-banner button.accept:hover {
  background: #79031c;
}
.cookie-banner button.reject {
  background: var(--gray1);
}
.cookie-banner button.reject:hover {
  background: var(--secondary-color);
}
.cookie-banner button.settings {
  background: var(--accent-color);
  color: var(--secondary-color);
}
.cookie-banner button.settings:hover {
  background: #ffdcb3;
}
@media (max-width: 480px) {
  .cookie-banner .cookie-btn-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* =============== COOKIE SETTINGS MODAL ================ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1610;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 35, 42, 0.52);
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.24s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.show {
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(45, 31, 50, 0.17);
  padding: 32px 30px 16px 30px;
  min-width: 310px;
  max-width: 96vw;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--gray1);
  font-size: 1.12rem;
  font-weight: 700;
  position: absolute;
  top: 22px;
  right: 28px;
  cursor: pointer;
}
.cookie-modal-footer {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-footer button {
  background: var(--blue1);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 16px;
  padding: 9px 21px;
  font-size: 0.96rem;
  font-weight: 600;
  border: none;
}
.cookie-modal-footer button.save {
  background: var(--primary-color);
}
.cookie-modal-footer button.save:hover {
  background: #79031c;
}
.cookie-modal-footer button.cancel {
  background: var(--gray1);
}
.cookie-modal-footer button.cancel:hover {
  background: #3b4050;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 20px 8px 18px 8px;
    min-width: 94vw;
  }
}

/* =============== MISC + UTILITY =============== */
::-webkit-scrollbar {
  width: 8px;
  background: #e7e7ec;
}
::-webkit-scrollbar-thumb {
  background: var(--gray2);
  border-radius: 14px;
}

hr {
  border: none;
  border-top: 1px solid var(--gray2);
  margin: 30px 0;
}

@media (max-width: 560px) {
  .feature-item, .testimonial-card, .article-preview, .card {
    min-width: unset;
    padding: 16px 7px 12px 11px;
  }
  .feature-item {
    gap: 8px;
  }
}

/* =========== DESKTOP CARD LAYOUT OPTIMIZATIONS =========== */
@media (min-width: 769px) {
  .feature-grid, .skills-grid, .coaching-options, .coaching-benefits-grid, .testimonial-list, .articles-list, .course-list, .content-grid {
    flex-direction: row;
    gap: 24px;
  }
}

/* =============== ACCESSIBILITY =============== */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
