/* 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.5;
  background: #F8FAFF;
  color: #174367;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1B9559;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #174367;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 20px 22px;
  padding: 0;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* FONTS (Playful & Dynamic) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500&display=swap');
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #174367;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00773a;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #F75827;
  font-weight: 700;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p {
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}

/* BRAND COLORS */
:root {
  --clr-primary: #174367;
  --clr-secondary: #ffffff;
  --clr-accent: #1B9559;
  --clr-orange: #F75827;
  --clr-brightblue: #25D7FD;
  --clr-pink: #F6439A;
  --clr-yellow: #FFDD31;
  --clr-lightgray: #F8FAFF;
  --clr-shadow: rgba(10,36,50,.12);
}

/* CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* HEADER / NAVIGATION */
header {
  width: 100%;
  background: var(--clr-secondary);
  box-shadow: 0 2px 8px var(--clr-shadow);
  position: relative;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 48px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: var(--clr-primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: 22px;
  padding: 7px 22px;
  line-height: 1.3;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--clr-brightblue);
  color: var(--clr-secondary);
  box-shadow: 0 3px 16px var(--clr-shadow);
}
.cta-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--clr-accent) 60%, var(--clr-pink) 100%);
  color: var(--clr-secondary);
  border: none;
  border-radius: 41px;
  padding: 15px 32px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--clr-shadow);
  margin-left: 16px;
  transition: background 0.17s, transform 0.13s, box-shadow 0.17s;
  display: inline-block;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--clr-brightblue) 60%, var(--clr-accent) 100%);
  color: var(--clr-secondary);
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  box-shadow: 0 10px 36px -5px var(--clr-shadow), 0 4px 12px var(--clr-orange);
}
.mobile-menu-toggle {
  background: var(--clr-yellow);
  color: #174367;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 3px 9px var(--clr-shadow);
  transition: background 0.18s, color 0.18s, transform 0.16s;
  display: none;
  justify-content: center;
  align-items: center;
}
.mobile-menu-toggle:active {
  transform: scale(1.05) rotate(6deg);
}

/* MOBILE MENU (Overlay) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--clr-secondary);
  box-shadow: 0 0 62px 0 rgba(34, 48, 90, 0.22);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.42,0,0.36,1);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--clr-orange);
  color: var(--clr-secondary);
  border: none;
  border-radius: 50%;
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  align-self: flex-end;
  margin: 25px 24px 0 0;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--clr-shadow);
  transition: background 0.22s, transform 0.12s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F42567;
  transform: rotate(10deg) scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 16px 14px;
  font-size: 1.35rem;
  color: #174367;
  border-radius: 21px;
  font-weight: 700;
  background: #F8FAFF;
  transition: background 0.22s, color 0.18s, box-shadow 0.19s;
  width: 87vw;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-brightblue);
  color: var(--clr-secondary);
  box-shadow: 0 3px 13px var(--clr-shadow);
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(90deg, #FFDD31 0 17%, #25D7FD 70%, #F8FAFF 100%);
  border-radius: 0 0 52px 52px;
  box-shadow: 0 13px 44px -16px var(--clr-shadow);
  margin-bottom: 60px;
  padding: 40px 20px 50px;
  min-height: 350px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 0.83s;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-35px); }
  to { opacity: 1; transform: none; }
}
/* Animated fun floating dots */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}
.hero::before {
  top: 25%;
  left: 5%;
  width: 110px;
  height: 110px;
  background: linear-gradient(150deg, #F75827, var(--clr-pink));
  animation: floatA 6s infinite alternate;
}
.hero::after {
  right: 7%;
  bottom: 10%;
  width: 80px;
  height: 80px;
  background: linear-gradient(200deg, var(--clr-accent), #25D7FD);
  animation: floatB 7.2s infinite alternate-reverse;
}
@keyframes floatA {
  from { transform: translateY(0); }
  to { transform: translateY(-18px) scale(1.1); }
}
@keyframes floatB {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(26px) scale(1.08); }
}
.hero .container {
  position: relative;
  z-index: 10;
}

/* ===== SECTIONS & FLEX LAYOUTS ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features-grid, .services-list, .case-studies, .resource-list, .blog-post-list, .icon-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.services-list {
  gap: 28px;
}
.case-studies {
  gap: 24px;
  flex-direction: column;
}
.resource-list {
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
}
.blog-post-list {
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
}
.icon-blocks {
  gap: 28px;
  margin-top: 20px;
  flex-direction: row;
}
.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;
}
.text-section {
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.stats-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0;
  font-size: 1.1rem;
  color: var(--clr-accent);
  font-weight: 700;
}
.stats-highlights p {
  background: #FFFBE8;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: bold;
  box-shadow: 0 2px 9px #ffe57f33;
}

/* ===== CARDS & FEATURE BLOCKS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  background: var(--clr-secondary);
  border-radius: 22px;
  box-shadow: 0 4px 20px var(--clr-shadow);
  padding: 26px 20px;
  transition: transform 0.13s, box-shadow 0.17s, background 0.18s;
  min-width: 220px;
  min-height: 180px;
  z-index: 10;
  overflow: hidden;
}
.card:hover, .card:focus {
  background: #FFF4EA;
  transform: translateY(-6px) scale(1.03) rotate(1.2deg);
  box-shadow: 0 10px 33px -7px #F7582738, 0 4px 16px #1743671a;
}
.service-card {
  background: #FFFBE8;
  border-radius: 17px;
  padding: 26px 20px 20px;
  min-width: 220px;
  min-height: 183px;
  box-shadow: 0 4px 18px #FFDD3130;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.service-card:hover {
  background: #fff;
  box-shadow: 0 10px 32px -7px #F7582738, 0 4px 13px #17436720;
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
}
.service-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 7px;
}
.resource-item, .blog-post {
  background: #F8FAFF;
  border-radius: 13px;
  box-shadow: 0 2px 12px #25D7FD15;
  padding: 22px 18px 15px;
  min-width: 180px;
  flex: 1 1 280px;
  margin-bottom: 18px;
  transition: background 0.17s, box-shadow 0.13s, transform 0.13s;
}
.resource-item:hover, .blog-post:hover {
  background: #FFDD31;
  transform: translateY(-4px) scale(1.02) rotate(1.5deg);
  box-shadow: 0 6px 24px #25D7FD28;
}
.icon-blocks div {
  flex: 1 1 180px;
  background: #F8FAFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  padding: 14px 14px;
  color: #174367;
  font-size: 1rem;
  box-shadow: 0 1px 12px #25D7FD13;
  transition: box-shadow 0.15s;
  margin-bottom: 10px;
}
.icon-blocks div img {
  width: 30px;
}
.icon-blocks div:hover {
  box-shadow: 0 4px 24px #1B955933;
  background: #FFDD31;
  color: var(--clr-primary);
}

/* ===== CTA BANNERS ===== */
.cta {
  background: linear-gradient(90deg, #F75827 0 40%, #1B9559 90%);
  border-radius: 20px;
  color: var(--clr-secondary);
  box-shadow: 0 8px 24px #1B955926, 0 3px 16px #F7582713;
  margin-bottom: 60px;
  padding: 40px 20px 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}
.cta .container {
  color: var(--clr-secondary);
}
.cta h2, .cta h1, .cta p {
  color: var(--clr-secondary);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFFBE8;
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: 0 2px 13px #17436721;
  color: #174367;
  font-size: 1.1rem;
  transition: background 0.17s, box-shadow 0.16s, transform 0.13s;
  min-width: 220px;
}
.testimonial-card strong {
  color: #1B9559;
}
.testimonial-card:hover {
  background: #FFDD31;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
  box-shadow: 0 6px 32px #F7582717;
}

/* ===== FOOTER ===== */
footer {
  background: var(--clr-primary);
  color: var(--clr-secondary);
  padding: 40px 0 20px 0;
  border-radius: 42px 42px 0 0;
  box-shadow: 0 -4px 29px #17436721;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer img {
  height: 44px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--clr-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: #25D7FD;
}
footer .contact-details {
  color: var(--clr-secondary);
  font-size: 1rem;
  line-height: 1.4;
}
footer .contact-details a {
  color: #25D7FD;
  text-decoration: underline;
  transition: color 0.13s;
}
footer .contact-details a:hover {
  color: #FFDD31;
}

/* ===== UTILITY CLASSES & ELEMENT SPACING ===== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card, .testimonial-card, .service-card, .resource-item, .blog-post {
  margin-bottom: 20px;
}

/* Spacing between all content sections by at least 20px */
*:not(header):not(footer) > .container > * + * {
  margin-top: 24px !important;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}

/* Animate in cards on load */
.card, .service-card, .resource-item, .blog-post, .testimonial-card {
  animation: itemFadeIn 0.8s;
}
@keyframes itemFadeIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ===== BUTTONS & INTERACTIVITY ===== */
button, .cta-btn {
  transition: background 0.15s, color 0.13s, box-shadow 0.16s, transform 0.11s;
  outline: none;
}
button:focus, .cta-btn:focus {
  outline: 3px solid #FFD231;
  outline-offset: 2px;
}

/* ===== NEWSLETTER SIGNUP (Blog) ===== */
.newsletter-signup {
  background: #25D7FD;
  border-radius: 13px;
  color: #174367;
  padding: 24px 16px;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 12px #25D7FD22;
  animation: itemFadeIn 0.6s 0.3s backwards;
}
.newsletter-signup h4 {
  color: var(--clr-secondary);
}
.newsletter-signup .cta-btn {
  background: linear-gradient(90deg, #174367 60%, #1B9559 100%);
  color: #fff;
}

/* ===== BLOG POST CATEGORIES ===== */
.post-categories {
  margin: 30px 0 0 0;
  background: #FFFBE8;
  border-radius: 10px;
  padding: 15px 18px;
}
.post-categories h4 {
  color: #1B9559;
  margin-bottom: 6px;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFFBE8;
  color: #174367;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  box-shadow: 0 -3px 22px #17436724;
  gap: 24px;
  animation: cookiePopin 0.5s;
}
@keyframes cookiePopin {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.cookie-consent-banner p {
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-consent-banner .cookie-btn {
  background: #FFDD31;
  color: #174367;
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 22px;
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px #FFD23134;
  transition: background 0.15s, color 0.14s, transform 0.11s;
}
.cookie-consent-banner .cookie-btn:hover {
  background: #25D7FD;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.cookie-consent-banner .cookie-settings-btn {
  background: var(--clr-pink);
  color: #fff;
  padding: 11px 16px;
  font-size: 1rem;
  border-radius: 20px;
  margin-left: 10px;
}
.cookie-consent-banner .cookie-settings-btn:hover {
  background: var(--clr-brightblue);
  color: #174367;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-55%) scale(1);
  background: #ffffff;
  color: #174367;
  z-index: 10000;
  width: 92vw;
  max-width: 400px;
  border-radius: 18px;
  box-shadow: 0 8px 44px #17436734;
  padding: 32px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.45s;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translate(-50%, 22%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -55%) scale(1); }
}
.cookie-modal h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-modal .cookie-toggle {
  width: 32px;
  height: 18px;
  background: #FFDD31;
  border-radius: 14px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-modal .cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle input:checked + .toggle-slider {
  left: 16px;
  background: #1B9559;
}
.cookie-modal .cookie-category[data-essential] .cookie-toggle {
  background: #25D7FD;
  pointer-events: none;
  opacity: 0.60;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.cookie-modal .cookie-btns button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: #FFDD31;
  color: #174367;
  font-weight: bold;
}
.cookie-modal .cookie-btns button:hover {
  background: #25D7FD;
  color: #fff;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  color: #F75827;
  font-size: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
}
.cookie-modal .close-cookie-modal:hover {
  color: #1B9559;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
  .footer-nav, footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .features-grid, .services-list, .content-grid, .icon-blocks, .resource-list, .blog-post-list {
    flex-direction: column !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  .stats-highlights {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section, section, .hero, .cta {
    padding: 26px 8px 32px 8px;
    margin-bottom: 42px;
    border-radius: 0 0 26px 26px;
  }
  .hero, .cta {
    min-height: 200px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }
  .main-nav {
    display: none !important;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 11px 18px;
    margin-left: 0px;
    margin-top: 6px;
  }
  .mobile-menu-toggle {
    display: flex !important;
    margin-left: 10px;
    margin-top: 0;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 18px;
  }
  .content-grid, .features-grid, .services-list, .icon-blocks, .resource-list, .blog-post-list {
    flex-direction: column !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .stats-highlights {
    flex-direction: column;
    gap: 12px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px
  }
}
@media (max-width: 520px) {
  .section, section, .hero, .cta {
    padding: 10px 1vw 20px 1vw;
    margin-bottom: 22px;
  }
  .container {
    padding: 0 2vw;
  }
  h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
}
