/* ===== 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;
  min-height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  border: 0;
  width: auto;
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* ===== VARIABLES (with fallbacks) ===== */
:root {
  --primary: #2574A9;
  --secondary: #E9BF22;
  --accent: #F2F2F2;
  --danger: #EC1878;
  --info: #19CDDF;
  --success: #61DB3A;
  --dark: #232C38;
  --gray: #eeeeee;
  --bg: #fff;
  --shadow: 0 4px 16px 0 rgba(37, 116, 169, 0.10), 0 2px 8px 0 rgba(233, 191, 34, 0.10);
}

@font-face {
  font-family: 'Baloo 2';
  src: local('Baloo 2'), url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&display=swap');
  font-weight: 700;
}
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
  font-weight: 400 700;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
h4, h5, h6 {
  font-family: 'Baloo 2', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
h1{ font-size: 2.6rem; line-height: 1.1; margin-top: 12px; }
h2{ font-size: 2rem; }
h3{ font-size: 1.3rem; }
h4{ font-size: 1.1rem; }

p, ul, ol, li, .footer-contact {
  font-size: 1rem;
  color: var(--dark);
}
strong {
  font-weight: 700;
  color: var(--secondary);
}

.section{
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  box-shadow: var(--shadow);
  border-radius: 18px;
  margin-bottom: 20px;
  padding: 28px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-8px) scale(1.02) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(37, 116, 169, 0.15), 0 4px 16px 0 rgba(233, 191, 34, 0.12);
}

.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: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe6;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-radius: 15px;
  border-left: 8px solid var(--secondary);
  transition: box-shadow .22s;
  max-width: 550px;
}
.testimonial-card p{
  color: #222;
  font-size: 1.14rem;
  text-align: left;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 1rem;
}
.star-rating {
  color: var(--secondary);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-left: 7px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  gap: 20px;
}
.cta-banner h2, .cta-banner h3 {
  color: #fff;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Baloo 2', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 99px;
  margin-top: 10px;
  box-shadow: 0 2px 6px 0 rgba(233,191,34,0.17);
  transition: background 0.2s,color 0.2s,transform 0.12s;
  border: 2px solid transparent;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--secondary);
  transform: scale(1.048);
}

/* ======== NAVIGATION ======== */
header {
  background: var(--primary);
  padding: 0 0 0 0;
  box-shadow: 0 3px 18px 0 rgba(37,116,169,0.08);
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 0.7rem 18px;
}
header nav img {
  height: 40px;
  margin-right: 28px;
}
header nav a {
  color: #fff;
  font-family: 'Baloo 2', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 7px;
  padding: 6px 16px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.01);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ======== MOBILE NAVIGATION ======== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 2.2rem;
  color: var(--secondary);
  width: 48px;
  height: 48px;
  background: rgba(37,116,169,0.06);
  border-radius: 10px;
  z-index: 1050;
  border: 2px solid var(--secondary);
  transition: background 0.1s;
}
.mobile-menu-toggle:active {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(110%);
  transition: transform 0.34s cubic-bezier(0.85,0,.27,1);
  box-shadow: 0 0 24px rgba(37,116,169,0.11);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--primary);
  padding: 14px 20px;
  background: none;
  border: none;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px 0 28px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.3rem;
  font-family: 'Baloo 2', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 0;
  width: 100%;
  border-bottom: 1px solid #f1f1fa;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: none;
}

/* ======= SECTIONS & TYPOGRAPHY ======== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: flex-start;
  margin-top: 8px;
}
.category-list li {
  flex: 1 1 250px;
  min-width: 230px;
  background: var(--accent);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow .17s, transform .17s;
}
.category-list li:hover {
  box-shadow: 0 6px 28px 0 rgba(37,116,169,0.13);
  transform: translateY(-4px) scale(1.024);
}
.category-list img {
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  text-align: left;
  transition: box-shadow .15s, transform .16s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px 0 rgba(37,116,169,0.13);
  transform: translateY(-2px) scale(1.018);
}
.feature-grid img {
  width: 36px;
  height: 36px;
}

.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
}
.articles-list > div {
  background: var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex: 1 1 270px;
  min-width: 220px;
  padding: 18px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .15s, transform .14s;
}
.articles-list > div:hover {
  box-shadow: 0 8px 36px 0 rgba(37,116,169,0.09);
  transform: translateY(-3px) scale(1.015) rotate(-1deg);
}
.articles-list h3 {
  margin-bottom: 7px;
}
.articles-list a {
  color: var(--primary);
  font-weight: bold;
  margin-top: 5px;
  transition: color .1s;
}
.articles-list a:hover, .articles-list a:focus {
  color: var(--secondary);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.text-section img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  font-size: 1rem;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ======= FOOTER ======= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
  margin-top: 24px;
}
footer .container {
  padding: 30px 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  align-items: center;
}
footer img {
  height: 40px;
  margin-bottom: 12px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
}
.footer-menu a {
  color: #fff;
  font-family: 'Baloo 2', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  opacity: 0.92;
  padding: 4px 12px;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  height: 38px;
}
.social-icons img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px #fff7  ) brightness(0.95);
  transition: filter .17s;
  cursor: pointer;
}
.social-icons img:hover {
  filter: drop-shadow(0 8px 16px #e9bf2230) brightness(1.18); /* Vibrant pop*/
}

/* ======= Cookie Consent ====== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbe8;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 18px 0 rgba(37,116,169,0.10);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 29px;
  z-index: 3002;
  transition: transform 0.25s;
}
.cookie-consent.hide {
  transform: translateY(100%);
}
.cookie-consent-message {
  color: var(--primary);
  font-size: 1rem;
  flex: 1 1 250px;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 7px 24px;
  font-family: 'Baloo 2', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 42px;
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
  margin-right: 0;
  transition: background .13s, color .13s, box-shadow .13s;
  box-shadow: 0 2px 10px #e9bf2250;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 24px #ecd13145;
}
.cookie-btn.secondary {
  background: #ECEFFD;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}
.cookie-btn.secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--secondary);
}
/* Cookie Preferene Modal */
.cookie-modal {
  position: fixed;
  z-index: 3100;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(37,116,169,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  flex-direction: column;
}
.cookie-modal.hide {
  display: none;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 24px;
  padding: 42px 32px 32px 32px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 8px 64px #2374a91a, 0 2px 14px #e9bf2215;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 6px;
  border: none;
  padding: 3px;
  transition: background .12s;
}
.cookie-modal-close:hover {
  background: var(--secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  margin-bottom: 13px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-preference-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

/* ========== MISC BLOCKS =============== */
ul, li {
  list-style: disc inside;
  margin-left: 23px;
  margin-bottom: 7px;
}
ul {
  margin-bottom: 18px;
}

/* == Spacing for testimonial/article arrangements == */
.testimonial-card + .testimonial-card, .articles-list > div + div {
  margin-left: 10px;
}

/* =========== RESPONSIVE DESIGN ============== */
@media (max-width: 1100px) {
  .container {
    max-width: 900px;
  }
  .feature-grid > div, .category-list li {
    flex: 1 1 170px;
    min-width: 160px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
    padding: 0 7px;
  }
  header nav {
    padding: 0.7rem 6px;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  /* Ensure columns become single column on mobile*/
  .feature-grid, .category-list, .content-grid, .card-container, .articles-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 16px;
  }
  .cta-banner {
    padding: 18px 8px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  section {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .card {
    padding: 16px 9px;
  }
}
@media (max-width: 600px) {
  h1{ font-size: 1.55rem; }
  h2{ font-size: 1.13rem; }
  .footer-contact{
    font-size: 0.97rem;
  }
}
@media (max-width: 600px) {
  header nav img, footer img {
    height: 30px;
  }
  .footer-contact img {
    width: 16px;
    height: 16px;
  }
  .social-icons img {
    width: 26px; height: 26px;
  }
}

/* == Show/hide nav for mobile == */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex;
  }
}

/* ======= FOCUS, HOVER, VISUAL FEEDBACK ======= */
a:focus, .cta-button:focus, .cookie-btn:focus, .cookie-category input:focus,
button:focus, .mobile-menu-close:focus, .cookie-modal-close:focus
{
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  background: #fffbe8;
}

/* ======= Micro-Interactions & Animations ======= */
.cta-button, .card, .category-list li, .feature-grid > div, .articles-list > div,
.cookie-btn {
  transition: box-shadow .19s, background .14s, color .15s, transform .13s;
}

/* ===== Scrollbar styling for vibrance */
body::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
}
body::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 6px;
}

/* == End of CSS == */
