/* ====================================================
   CSS RESET & NORMALIZATION
==================================================== */
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,
main, 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;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F5F5;
  color: #243151;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
  box-sizing: border-box;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #00ACC1;
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
}
a:focus, a:hover {
  color: #283593;
}

/* ===============================================
   BRAND COLORS & TYPOGRAPHY
================================================ */
:root {
  --primary: #283593;
  --secondary: #00ACC1;
  --accent: #F5F5F5;
  --text-dark: #22304f;
  --text-medium: #404d61;
  --text-light: #7b8ca6;
  --bg-main: #F5F5F5;
  --bg-gradient: linear-gradient(99deg, #283593 0%, #00ACC1 100%);
  --card-bg: #fff;
  --shadow: 0 2px 24px 0 rgba(40, 53, 147, 0.04);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: all 0.28s cubic-bezier(.16,1,.32,1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4 { font-size: 1.2rem; }

p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 12px;
}

strong {
  color: var(--primary);
  font-weight: 700;
}

.brand-tagline {
  font-size: 1.15rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

/* ===============================================
   LAYOUT & FLEXBOX SPACING (ALL FLEX ONLY)
================================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.content-wrapper {
  background: transparent;
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: transform 150ms, box-shadow 180ms;
}
.card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 8px 32px rgba(40, 53, 147, 0.10);
}

.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;
  margin-bottom: 40px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px 0 rgba(40,53,147, 0.07);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 100px;
  color: var(--text-dark);
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #25324d;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--primary);
}

.ratings-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
  margin-bottom: 20px;
}

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

/* Ensure all sections/cards have minimum 20px spacing between them */
.section > .container:not(:last-child),
.section > .container > .content-wrapper:not(:last-child) {
  margin-bottom: 20px;
}

/* ===============================================
   HEADER & NAVIGATION
================================================ */
header {
  background: var(--bg-gradient);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  box-shadow: 0 2px 16px rgba(40,53,147,0.10);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.main-nav .btn-primary {
  font-weight: bold;
  margin-left: 12px;
  background: #fff;
  color: var(--primary);
  border-radius: 100px;
  padding: 9px 26px;
  box-shadow: 0 2px 8px rgba(40,53,147,0.09);
  transition: background 140ms, color 150ms;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
}

header img {
  height: 45px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border-radius: 8px;
  padding: 6px 12px;
  margin-left: 16px;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background 0.16s;
  z-index: 21;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(0,0,0,0.08);
}

/* ====================================
   MOBILE MENU & OVERLAY
==================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  z-index: 30;
  background: rgba(40,53,147,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-105vw);
  transition: transform 0.3s cubic-bezier(.6,-0.28,.74,.05);
  box-shadow: 0 2px 16px rgba(40,53,147,0.27);
  padding: 36px 28px 12px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  margin-bottom: 22px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.09);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.21rem;
  color: #fff;
  padding: 15px 8px;
  border-radius: 8px;
  font-weight: 500;
  width: 100%;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* Only show menu toggle on small screens */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================
   BUTTONS & INTERACTIVE ELEMENTS
========================================= */
.btn-primary {
  background: var(--bg-gradient);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 36px;
  border-radius: 100px;
  font-size: 1.13rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(40,53,147,0.13);
  margin-top: 12px;
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(99deg, #00ACC1 0%, #283593 100%);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(40,53,147,0.17);
  transform: translateY(-2px) scale(1.025);
}

/* Input fields - Blog search */
input[type="search"] {
  padding: 11px 17px;
  border: 1.5px solid #dde1ea;
  border-radius: 30px;
  font-size: 1rem;
  width: 100%;
  max-width: 350px;
  color: var(--primary);
  background: #fff;
  margin-top: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(40,53,147,0.08);
  transition: border-color 0.17s;
}
input[type="search"]:focus {
  border-color: var(--secondary);
}

/* ===============================================
   CARDS, LISTS, SECTIONS (NO GRID, FLEX ONLY)
================================================ */
ul {
  margin-bottom: 16px;
}
ul li {
  padding-left: 13px;
  color: var(--text-medium);
  position: relative;
  margin-bottom: 11px;
}
ul li::before {
  content: '\2022';
  color: var(--secondary);
  font-size: 1.3em;
  position: absolute;
  left: 0;
}
ul li img {
  vertical-align: middle;
  margin-right: 8px;
  height: 20px;
  width: 20px;
}

.card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: var(--transition);
}

/* For .content-wrapper within .testimonial-card, remove padding */
.testimonial-card .content-wrapper {
  padding: 0;
  background: none;
  box-shadow: none;
}

/* For .ratings-summary, align stars & text */
.ratings-summary img {
  height: 22px;
  margin-right: 2px;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
}
footer img {
  height: 43px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.87;
  transition: opacity 0.12s;
}
.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: #dde1ea;
}

/* Footer responsive */
@media (max-width: 991px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* =========================================
   RESPONSIVE RULES & TYPOGRAPHY
========================================= */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 991px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 24px 8px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .section { padding: 18px 4px; margin-bottom: 36px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
  .card-container, .card-grid, .content-grid { gap: 13px; }
  .testimonial-card { flex-direction: column; gap: 12px; padding: 13px; }
  .content-wrapper { padding: 0; margin-bottom: 13px; }
}

/* =======================================
   GRADIENT BACKGROUNDS / VISUAL HIERARCHY
======================================= */
body {
  background: linear-gradient(110deg, #F5F5F5 0%, #e9f3ff 120%);
}
section:nth-child(odd) .container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px 0 rgba(40,53,147, 0.07);
}
section:nth-child(even) .container {
  background: linear-gradient(98deg, #e6f3fb 0%, #e8e8f1 100%);
  border-radius: var(--radius);
}

/* =======================================
   COOKIE CONSENT BANNER & MODAL
======================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  box-shadow: 0 -2px 18px rgba(40,53,147,0.17);
  background: #fff;
  padding: 22px 12vw 18px 12vw;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  font-size: 1rem;
}
.cookie-banner p {
  color: var(--text-dark);
  font-size: 0.99rem;
  margin-bottom: 0;
  flex: 2;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner .btn-cookie {
  background: var(--bg-gradient);
  border-radius: 30px;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.19s;
}
.cookie-banner .btn-cookie:focus, .cookie-banner .btn-cookie:hover {
  background: linear-gradient(99deg, #00ACC1 0%, #283593 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(40,53,147,0.12);
}
.cookie-banner .btn-alt {
  background: #e0e6fa;
  color: var(--primary);
  border: none;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  transition: background 0.14s, color 0.13s;
}
.cookie-banner .btn-alt:focus, .cookie-banner .btn-alt:hover {
  color: #fff;
  background: var(--secondary);
}

@media (max-width: 950px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 6vw;
    padding-right: 6vw;
    gap: 13px;
  }
  .cookie-actions {
    margin-top: 10px;
    gap: 9px;
  }
}

/* Modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,53,147,0.23);
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s cubic-bezier(.16,1,.32,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(40,53,147,0.21);
  max-width: 420px;
  width: 92vw;
  padding: 32px 24px 20px 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.33rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 18px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.09rem;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
  margin: 0 6px 0 0;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  background: none;
  color: var(--text-light);
  font-size: 1.3rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 3px;
  cursor: pointer;
  border-radius: 30px;
  transition: background 0.12s;
}
.cookie-modal .modal-close:hover {
  background: #e7ebf7;
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 18px 9px 10px 11px;
    font-size: 0.97rem;
  }
}

/* =====================================
   MISCELLANEOUS / UTILITIES
===================================== */
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.rounded { border-radius: var(--radius) !important; }
.text-center { text-align: center !important; }

/* Subtle fade-in animation for sections */
.section, .card, .testimonial-card {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.78s cubic-bezier(.16,1,.32,1) 0.08s forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ================== End CSS ================== */
