/* =========================
   RESET & NORMALIZE SECTION
   ========================= */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #F6F8FA;
  color: #16344E;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #219EBC;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16344E;
  outline: none;
}

ul, ol {
  padding-left: 1.5em;
}

strong {
  font-weight: 700;
  color: #16344E;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
}

/* =====================
   BRAND COLORS & FONTS
   ===================== */
:root {
  --primary: #16344E;
  --secondary: #219EBC;
  --accent: #F1FAEE;
  --gray-100: #F6F8FA;
  --gray-200: #EDF3F7;
  --gray-300: #D6E2EC;
  --gray-500: #8896A9;
  --gray-800: #293A4C;
  --white: #fff;
  --shadow-lg: 0 8px 32px rgba(22,52,78,0.10);
  --shadow-md: 0 2px 8px rgba(22,52,78,0.09);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: .25s cubic-bezier(.4,.2,.2,1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 20px; }
h3 { font-size: 1.38rem; line-height: 1.28; margin-bottom: 18px; }
h4 { font-size: 1.12rem; margin-bottom: 12px; }
p, ul, ol, blockquote { font-size: 1rem; color: var(--primary); margin-bottom: 16px; }
.subtitle {
  font-size: 1.25rem;
  color: var(--gray-500);
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  h1 { font-size: 1.47rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.06rem; }
}

/* ===============
   LAYOUT SECTION
   =============== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

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

/* -------------------------
   FEATURE GRID & FLEX LISTS
   ------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px 20px 24px 20px;
  min-width: 250px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}
.feature:hover, .feature:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.012);
}

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

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.007);
}

/* ====================================
   RESPONSIVE FLEXBOX FOR TEXT/IMAGE
   ==================================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ========================
   TESTIMONIALS & QUOTES
   ======================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  min-height: 80px;
  flex-direction: column;
  font-size: 1.09rem;
}
.testimonial-card p {
  color: var(--primary);
  margin-bottom: 10px;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 600;
}

/* ================
   BUTTONS & LINKS
   ================ */
.btn-primary, .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  padding: 13px 34px;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(33,158,188,0.07);
  border: none;
  outline: none;
  margin-top: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(22,52,78,0.11);
}
.btn-link {
  background: transparent;
  color: var(--secondary);
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--secondary);
  margin-top: 8px;
}
.btn-link:hover, .btn-link:focus {
  color: var(--primary);
  border-color: var(--primary);
}

/* ======================
   HEADER & MAIN NAV
   ====================== */
header {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(22,52,78,0.05);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 0;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
}
header img {
  height: 42px;
  margin-right: 28px;
  vertical-align: middle;
}
header .btn-primary {
  margin-left: 32px;
  margin-right: 12px;
  box-shadow: none;
}
header .mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--accent);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  padding: 3px 12px;
  transition: background var(--transition);
  border-radius: var(--radius-sm);
}
header .mobile-menu-toggle:hover, header .mobile-menu-toggle:focus {
  background: rgba(33,158,188,0.14);
}

/* =============
   MAIN STYLES
   ============= */
main {
  min-height: 60vh;
  flex: 1 1 auto;
}

/* =============
   FOOTER AREA
   ============= */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 38px 0 18px 0;
  font-size: 1rem;
  margin-top: 60px;
}
footer .container {
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 14px;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial,Helvetica,sans-serif;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.99rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -2px;
  filter: brightness(9);
}
footer small {
  display: block;
  color: var(--gray-300);
  font-size: 0.95rem;
}

/* =============
   FAQ SECTION
   ============= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  margin-bottom: 20px;
}
.faq-item h2 {
  font-size: 1.09rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.faq-search {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.faq-search input {
  flex: 1 1 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  padding: 10px 16px;
  font-size: 1rem;
  background: var(--white);
  color: var(--primary);
  box-shadow: none;
  transition: border var(--transition);
}
.faq-search input:focus {
  border-color: var(--secondary);
  outline: none;
}

/* ===============
   CONTACT SECTION
   =============== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.contact-details ul {
  list-style: none;
  padding-left: 0;
  color: var(--primary);
}
.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1rem;
}
.contact-details img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  filter: none;
}
.map-location {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 20px;
}

/* ===============
   PUBLICATIONS
   =============== */
.publications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.publications-list article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 18px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.publications-list article:hover, .publications-list article:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.01);
}
.featured-publication {
  background: var(--accent);
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 20px;
}

.newsletter-signup {
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin: 32px 0 24px 0;
}
.newsletter-signup h2, .newsletter-signup p {
  color: var(--accent);
}

/* ================
   STATISTICS AREA
   ================ */
.statistics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0 0 0;
}
.statistics li {
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =============
   CREDENTIALS
   ============= */
.credentials-list {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px 24px 18px 24px;
  margin-bottom: 20px;
}
.credentials-list h2 {
  margin-bottom: 12px;
}
.credentials-list ul {
  list-style-type: disc;
  padding-left: 1.5em;
  color: var(--primary);
  margin-bottom: 0;
}


/* =========================
   MOBILE BURGER MENU
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,52,78,0.98);
  transform: translateX(-100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.38s var(--transition), opacity 0.32s var(--transition);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--accent);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 32px 26px 22px 0;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 9999;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  margin-top: 10px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(33,158,188,0.12);
  width: 90vw;
  max-width: 460px;
  transition: color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}
.header-shadow {
  box-shadow: 0 8px 32px rgba(22,52,78,0.10);
}

/* Show/hide for mobile menu toggle */
@media (max-width: 1020px) {
  header nav, header .btn-primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;left: 0;width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 18px rgba(22,52,78,.09);
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.36s var(--transition), opacity 0.25s var(--transition);
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 2 2 300px;
  color: var(--primary);
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .cookie-btn {
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-btn-accept {
  background: var(--secondary);
  color: var(--white);
  border: none;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn-reject {
  background: var(--gray-200);
  color: var(--primary);
  border: 1px solid var(--gray-300);
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: var(--gray-300);
  color: var(--primary);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-banner-actions{
    justify-content: flex-end;
    width: 100%;
  }
}

/* ===============
   COOKIE MODAL
   =============== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;width: 100vw; height:100vh;
  background: rgba(22,52,78,0.68);
  z-index: 5100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s var(--transition);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 38px 28px 26px 28px;
  max-width: 450px;
  width: 90vw;
  color: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-100);
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 13px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category .category-label {
  color: var(--primary);
}
.cookie-category .cookie-toggle {
  width: 46px;
  height: 24px;
  border-radius: 14px;
  background: var(--gray-300);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-category .cookie-toggle.on {
  background: var(--secondary);
}
.cookie-category .cookie-toggle-knob {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  left: 1px;
  top: 1px;
  transition: left var(--transition);
  box-shadow: var(--shadow-md);
}
.cookie-category .cookie-toggle.on .cookie-toggle-knob {
  left: 23px;
}
.cookie-category .category-description {
  color: var(--gray-500);
  font-weight: 400;
  font-size: 0.97rem;
  margin-left: 12px;
}

/* ===========================
   FORMS, INPUTS, INTERACTIONS
   =========================== */
input[type="text"], input[type="email"], textarea, select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: var(--white);
  transition: border var(--transition), box-shadow var(--transition);
  font-size: 1rem;
  color: var(--primary);
  box-shadow: none;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}

::-webkit-input-placeholder { color: var(--gray-500); }
::-moz-placeholder { color: var(--gray-500); }
:-ms-input-placeholder { color: var(--gray-500); }
::placeholder { color: var(--gray-500); }

/* ==================
   ANIMATION CLASSES
   ================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.82s cubic-bezier(.4,.2,.2,1) forwards;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(16px); }
  70% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.slide-in {
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInRight 1.1s cubic-bezier(.4,.2,.2,1) forwards;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-100px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===============
   RESPONSIVE AREA
   =============== */
@media (max-width: 900px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .feature-grid { gap: 20px; }
}
@media (max-width: 768px) {
  .section { padding: 28px 10px; }
  .feature-grid, .publications-list {
    flex-direction: column;
    gap: 16px;
  }
  .statistics ul {
    flex-direction: column;
    gap: 12px;
  }
  .newsletter-signup {
    padding: 18px 6px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header .container { padding: 10px 8px; }
  .footer-contact { flex-direction: column; gap: 5px; }
}
@media (max-width: 600px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .section { padding: 14px 2px; }
  h1,h2,h3,h4 { margin-bottom: 10px; }
  .testimonial-card { font-size: 0.97rem; }
  .feature, .card { padding: 15px 9px; }
  .faq-item { padding: 13px 7px; }
}

/* ===============
   MICROINTERACTIONS
   =============== */
.feature img, .contact-details img, .footer-contact img {
  transition: filter .2s;
}
.feature:hover img, .footer-contact span:hover img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(34%) saturate(3250%) hue-rotate(161deg) brightness(101%) contrast(102%);
}

button, .btn-primary, .btn-link, .cookie-btn {
  user-select: none;
  outline: none;
}

/* ===============
   Z-INDEX HANDLING
   =============== */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1000;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 12px;
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 12px;
}

/* ========================
  ELEMENTS & UTILITIES
  ======================== */
hr {
  border: none;
  border-top: 1px solid var(--gray-300);
  margin: 22px 0;
}
.small-text, small {
  font-size: 0.94rem;
  color: var(--gray-500);
}

/* End of CSS */
