/* 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 {
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F4F8FC;
  color: #293244;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  height: 100%;
  position: relative;
}
*,*:before,*:after {box-sizing: border-box;}
img {max-width: 100%; height: auto; display: block;}
a {text-decoration: none; color: inherit;}
ul,ol {list-style: none;}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

/* BRAND COLORS - CSS VARIABLES (with fallbacks) */
:root {
  --primary: #2B4B84;
  --secondary: #189FA4;
  --accent: #F4F8FC;
  --white: #fff;
  --gray-light: #e7f2fd;
  --gray: #b9c8e3;
  --yellow: #FFE066;
  --pink: #FA5A81;
  --lime: #3EDC93;
  --shadow: 0 4px 20px rgba(41,50,68,0.08), 0 1.5px 7px rgba(24,159,164,0.07);
  --radius: 22px;
  --radius-big: 32px;
}

/* TYPOGRAPHY */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  background: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  letter-spacing: -1px;
  font-weight: 800;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
  line-height: 1.13;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--secondary);
  line-height: 1.2;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul li, ol li {
  font-size: 1rem;
  color: #314060;
  margin-bottom: 10px;
}
strong {
  color: var(--secondary);
  font-weight: bold;
}
a {
  color: var(--secondary);
  transition: color .22s cubic-bezier(.66,1.43,.67,1);
}
a:hover, a:focus {
  color: var(--pink);
  text-decoration: underline;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-big);
}

@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 38px;
    border-radius: var(--radius);
  }
}

.card-container, .card-grid, .feature-grid, .training-list, .service-list, .blog-post-list, .case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 300px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Responsive Stack for Grids */
@media (max-width: 990px) {
  .feature-grid, .service-list, .training-list, .blog-post-list, .case-study-list {
    flex-direction: column;
    gap: 20px;
  }
}

/***************************************
HEADER & NAVIGATION
***************************************/
header {
  background: var(--white);
  box-shadow: 0 1.5px 6px rgba(51,79,125,0.04);
  width: 100%;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 24px;
  transition: scale 0.22s cubic-bezier(.66,1.43,.67,1);
}
header a img:hover {
  scale: 1.08;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--primary);
  padding: 7px 15px;
  border-radius: 12px;
  transition: background .2s, color .18s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/**** CTA Button ****/
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--white);
  background: linear-gradient(90deg, var(--secondary) 86%, var(--lime) 100%);
  background-color: var(--secondary);
  border: none;
  border-radius: 99px;
  padding: 12px 34px;
  margin-left: 18px;
  margin-right: 8px;
  box-shadow: 0 2px 14px rgba(24,159,164,0.11);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: box-shadow .22s, background .18s, scale 0.15s;
  position: relative;
  z-index: 1;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--pink) 80%, var(--yellow) 100%);
  color: var(--primary);
  scale: 1.03;
  box-shadow:  0 2px 28px rgba(250,90,129,0.12);
}

/**** MOBILE MENU ****/
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: 99px;
  border: none;
  width: 46px;
  height: 46px;
  box-shadow: 0 3px 16px rgba(24,159,164,0.08);
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.16s, scale 0.19s;
  z-index: 1004;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pink);
  scale: 1.10;
}
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
}

nav {
  transition: none;
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
}

/***** MOBILE MENU OVERLAY *****/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.89,-0.07,.54,1.25);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  box-shadow: 0 12px 56px rgba(43,75,132,0.13);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--white);
  font-size: 2rem;
  border-radius: 99px;
  border: none;
  width: 46px;
  height: 46px;
  margin: 32px 26px 10px 22px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(24,159,164,0.08);
  transition: background 0.18s, scale 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pink);
  scale: 1.08;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 26px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray);
  color: var(--primary);
  transition: color 0.16s;
  letter-spacing: 0.2px;
  min-width: 220px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--pink);
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/***************************************
SECTIONS & FLEX LAYOUTS
***************************************/
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 40px;
    padding: 23px 0;
  }
}

/***** FEATURE GRID & CARDS *****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 16px;
  align-items: stretch;
}
.feature-grid > li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 270px;
  min-width: 220px;
  margin-bottom: 20px;
  padding: 30px 18px 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  transition: box-shadow 0.18s, scale 0.15s, background 0.16s;
  border-left: 6px solid var(--secondary);
  position: relative;
  z-index: 0;
  animation: bounceIn .7s cubic-bezier(.36,1.45,.33,1.07) both;
}
@keyframes bounceIn {
  0% { scale: .93; opacity: 0; }
  80% { scale: 1.03; opacity: 1; }
  100% { scale: 1; }
}
.feature-grid > li:hover {
  background: var(--gray-light);
  box-shadow: 0 3px 20px rgba(24,159,164,0.13);
  scale: 1.01;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 9px;
  filter: drop-shadow(0 2px 8px rgba(24,159,164,0.06));
  animation: popIn .97s cubic-bezier(.81,2.2,.43,1.15);
}
@keyframes popIn {
  0% { scale: 0.7; opacity: 0.35; }
  70% { scale: 1.07; opacity: 1; }
  100% { scale: 1; }
}
.feature-grid h3 {
  font-size: 1.17rem;
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: 7px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*********************************
TESTIMONIALS
*********************************/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 20px;
  border-left: 5px solid var(--pink);
  font-size: 1.08rem;
  max-width: 660px;
  color: #222b3b;
  transition: box-shadow 0.17s, scale 0.22s, border-color 0.2s;
}
.testimonial-card p {
  font-style: italic;
  color: #233155;
}
.testimonial-card strong {
  color: var(--pink);
}
.testimonial-card:hover {
  scale: 1.02;
  box-shadow: 0 5px 20px rgba(250,90,129,0.12), 0 1.5px 8px rgba(24,159,164,0.11);
  border-color: var(--yellow);
}
@media (max-width: 700px) {
  .testimonial-card {
    max-width: 100%;
    padding: 19px 12px;
  }
}

/*********************************
SERVICE LIST, TRAINING LIST
*********************************/
.service-list,
.training-list,
.case-study-list,
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list li,
.training-list li,
.case-study-list li,
.blog-post-list li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 23px 17px 23px;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1 1 280px;
  min-width: 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, scale 0.16s, background 0.14s;
  border-left: 5px solid var(--yellow);
  animation: popIn .73s cubic-bezier(.38,1.45,.33,1.07) both;
}
.service-list li:hover, .training-list li:hover, .case-study-list li:hover, .blog-post-list li:hover {
  background: var(--gray-light);
  box-shadow: 0 6px 24px rgba(43,75,132,0.09);
  scale: 1.018;
}
.service-price {
  display: inline-block;
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--pink);
  background: var(--yellow);
  border-radius: 11px;
  padding: 2px 14px;
  margin-left: 15px;
  vertical-align: middle;
}
.training-pricing {
  font-size: 1.11rem;
  color: var(--secondary);
  font-weight: bold;
  background: var(--lime);
  border-radius: var(--radius);
  padding: 7px 20px;
  margin: 18px 0 0 0;
  width: max-content;
}
.icon-list {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-top: 14px;
  align-items: center;
}
.icon-list img {
  width: 46px;
  height: 46px;
  border-radius: 20px;
  box-shadow: 0 1.5px 5px rgba(24,159,164,0.10);
  background: var(--accent);
  padding: 8px;
  transition: scale 0.13s;
}
.icon-list img:hover {
  scale: 1.10;
}

/*********************************
BLOG CATEGORIES
*********************************/
.categories-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  margin-top: 12px;
}
.categories-list ul {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.categories-list li {
  background: var(--yellow);
  color: var(--primary);
  font-weight: bold;
  border-radius: 8px;
  padding: 2px 12px;
  font-size: 1rem;
}

/*********************************
CONTACT DATA LIST
*********************************/
.contact-data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 13px;
}

/***************************************
FOOTER
***************************************/
footer {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 30px 0 14px 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer a {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-right: 19px;
  transition: color 0.13s;
}
footer a:hover, footer a:focus {
  color: var(--pink);
  text-decoration: underline;
}
.brand-info {
  font-size: 0.98rem;
  color: #f5f8fa;
  margin-top: 7px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/***************************************
COOKIE CONSENT BANNER & MODAL
***************************************/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 4000;
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 -2px 30px rgba(24,159,164,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw 18px 18px;
  font-size: 1.07rem;
  animation: cookieSlideIn 0.44s cubic-bezier(.67,1.21,.45,1.02);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(140%); }
  100% { transform: translateY(0); }
}
.cookie-banner__text {
  flex: 1 1 400px;
  color: #fff;
  font-size: 1.07rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-settings {
  padding: 10px 23px;
  background: var(--white);
  color: var(--primary);
  border-radius: 11px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
  border: none;
  transition: background 0.17s, color 0.1s, scale 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--yellow);
  color: var(--primary);
  scale: 1.06;
}
.cookie-btn.reject {
  background: var(--pink);
  color: var(--white);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--yellow);
  color: var(--pink);
}
.cookie-btn-settings {
  background: var(--accent);
  color: var(--secondary);
  border: 1px solid var(--gray);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--lime);
  color: var(--primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 8px;
    gap: 13px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(43,75,132,0.42);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: all;
  transition: opacity 0.22s;
  animation: fadeIn .38s;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-big) var(--radius-big) 0 0;
  box-shadow: 0 2px 24px rgba(43,75,132,0.19);
  width: 95vw;
  max-width: 470px;
  padding: 27px 27px 23px 27px;
  margin-bottom: 22px;
  color: var(--primary);
  animation: bounceIn .54s cubic-bezier(.41,1.08,.21,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.cookie-modal-close {
  background: var(--pink);
  color: var(--white);
  font-size: 1.44rem;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(250,90,129,0.09);
  transition: background 0.18s, scale 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--yellow);
  color: var(--pink);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0rem;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--gray);
  border-radius: 22px;
  transition: background 0.14s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--secondary);
}
.cookie-slider::before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.16s;
}
.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(18px);
}
.cookie-category[aria-disabled='true'], .cookie-category[aria-disabled='true'] label {
  color: #b9c8e3;
  opacity: 0.7;
  cursor: default;
}
.cookie-category[aria-disabled='true'] .cookie-slider {
  background: var(--gray-light);
}

/*********************************
ANIMATIONS
*********************************/
@media (prefers-reduced-motion: no-preference) {
  .cta-button, .card, .feature-grid>li, .card:hover, .cookie-banner, .mobile-menu, .testimonial-card {
    transition: box-shadow 0.17s, scale 0.13s, background 0.13s;
  }
}
/***************************************
PLAYFUL DYNAMIC EXTRAS
***************************************/
/* Fun & dynamic underline for h2 */
h2 {
  position: relative;
  display: inline-block;
}
h2::after {
  content: "";
  display: block;
  position: absolute;
  left: 5px;
  bottom: -7px;
  width: 57%;
  height: 5px;
  background: var(--yellow);
  border-radius: 11px;
  z-index: 1;
}
/* Icon bounce for CTA */
.cta-button::after {
  content: '\27A4';
  display: inline-block;
  font-size: 1.23em;
  margin-left: 11px;
  vertical-align: sub;
  animation: arrowBounce 1.7s infinite cubic-bezier(.75,1.60,.77,1.04);
}
@keyframes arrowBounce {
  0%,100% { transform: translateY(0); }
  60% { transform: translateY(-6px); }
}

/***************************************
MEDIA QUERIES
***************************************/
@media (max-width: 660px) {
  .container {
    padding: 0 4px;
  }
  .feature-grid > li, .service-list li, .training-list li, .card {
    min-width: 0 !important;
    width: 100%;
    padding: 17px 7px 14px 9px;
  }
  nav, .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/***************************************
MISC. SPACING RULES
***************************************/
section, .card-container, .card-grid, .feature-grid, .service-list, .training-list, .blog-post-list, .case-study-list {
  margin-bottom: 20px;
  gap: 20px;
}
h1, h2, h3, h4, h5 {
  margin-top: 0;
  margin-bottom: 12px;
}
h1 {
  margin-bottom: 22px;
}

/***************************************
Z-INDEX for overlays/menus
***************************************/
.mobile-menu,
.cookie-modal-overlay {
  z-index: 3000;
}
.cookie-banner {
  z-index: 4900;
}

/***************************************
SCROLLBAR (modern with fallback)
***************************************/
::-webkit-scrollbar {
  width: 11px;
  background: var(--accent);
  border-radius: 11px;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 11px;
}

/***************************************
EXTRAS: ERROR & SUCCESS MESSAGES
***************************************/
.alert-success {
  color: var(--lime);
  background: #edfff5;
  border-radius: var(--radius);
  padding: 13px 21px;
  margin-bottom: 18px;
}
.alert-error {
  color: var(--pink);
  background: #fff5f7;
  border-radius: var(--radius);
  padding: 13px 21px;
  margin-bottom: 18px;
}

/***************************************
PLACEHOLDER STYLES FOR TEXT FIELDS
***************************************/
::placeholder {color: #bbb; opacity:1; font-style: italic;}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 13px 6px 8px 8px;
    border-radius: var(--radius);
  }
}

/* --- END CSS --- */

