/* ===================
   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,
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;
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #F8F9FA;
  color: #232323;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style-position: inside;
  margin-left: 0.7em;
}

*, *:before, *:after {
  box-sizing: inherit;
}

a {
  color: #145370;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  text-decoration: underline;
  color: #397cac;
}

button, input, select {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  border-radius: 4px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ===================
   Typography
   =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: #18354C;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}

p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #232323;
  margin-bottom: 0.8em;
  font-weight: 400;
}
strong {
  font-weight: 600;
  color: #18354C;
}

/* ===================
   Common Containers & Layout Spacing
   =================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24,53,76,0.07);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(24,83,112,0.13);
  transform: translateY(-2px) scale(1.01);
}

.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: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(20, 83, 112, 0.10);
  margin-bottom: 24px;
  width: 340px;
  min-height: 170px;
  border-left: 4px solid #7FB3D5;
  transition: box-shadow 0.2s;
}
.testimonial-card strong {
  color: #145370;
}
.testimonial-card p {
  font-style: italic;
}

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

/* ===================
   Header & Main Navigation
   =================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,83,112,0.03);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0 0 0 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  margin: 14px 0 14px 0;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-height: 72px;
  padding-right: 24px;
}

.main-nav a {
  padding: 8px 0;
  font-size: 1rem;
  color: #18354C;
  transition: color 0.16s;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #145370;
  border-color: #7FB3D5;
}
.button-primary {
  background: #145370;
  color: #fff !important;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.04em;
  border-radius: 24px;
  padding: 10px 32px;
  margin-left: 12px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  box-shadow: 0 3px 8px rgba(20,83,112,0.08);
  position: relative;
  border: none;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #397cac;
  color: #fff;
  transform: translateY(-1.5px) scale(1.03);
  box-shadow: 0 6px 18px rgba(20,83,112,0.15);
}
.button-secondary {
  background: #7FB3D5;
  color: #18354C !important;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1.03rem;
  border-radius: 24px;
  padding: 9px 26px;
  margin-left: 10px;
  border: none;
  outline: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 2px 7px rgba(127,179,213,0.09);
}
.button-secondary:hover, .button-secondary:focus {
  background: #ebf2f5;
  color: #145370 !important;
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 18px rgba(127,179,213,0.15);
}

/* Hamburger & Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: #145370;
  color: #fff;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 1.6rem;
  margin-left: 32px;
  transition: background 0.18s, box-shadow 0.16s;
  z-index: 1200;
  border: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #397cac;
  box-shadow: 0 2px 12px rgba(20,83,112,0.10);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.55,.01,.19,1.02);
  box-shadow: 6px 0 32px rgba(20, 83, 112, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 28px 24px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #145370;
  font-size: 2.1rem;
  position: absolute;
  top: 20px; right: 36px;
  z-index: 1510;
  border: none;
  cursor: pointer;
  padding: 3px 11px 0 11px;
  border-radius: 30px;
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F4F6F7;
  color: #001625;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 64px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #145370;
  padding: 14px 4px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: none;
  transition: background 0.14s, color 0.10s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #397cac;
  background: #edebf2;
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  header {
    padding-right: 0;
  }
  .logo img {
    height: 30px;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================
   Hero Section
   =================== */
.hero {
  background: #F4F6F7 url('../assets/hero-bg.svg') top left no-repeat;
  background-size: cover;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  padding-bottom: 56px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: #145370;
  margin-bottom: 18px;
  font-family: 'Georgia', serif;
  font-weight: 800;
}
.hero p {
  font-size: 1.19rem;
  margin-bottom: 32px;
  color: #18354C;
}

/* ===================
   Feature Grid (Index)
   =================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin: 26px 0 0 0;
}
.feature-grid li {
  background: #fff;
  border-radius: 12px;
  padding: 32px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px rgba(127,179,213,0.07);
  flex: 1 1 200px;
  min-width: 210px;
  max-width: 300px;
  position: relative;
  gap: 11px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 4px 20px rgba(20,83,112,0.16);
  transform: translateY(-2px) scale(1.017);
}
.feature-grid img {
  height: 46px;
  margin-bottom: 10px;
}
.feature-grid h3 {
  font-size: 1.15rem;
  color: #18354C;
  margin-bottom: 6px;
}
.feature-grid p {
  text-align: center;
  color: #293850;
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ===================
   Steps List (Index)
   =================== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 16px 0 30px 0;
  padding-left: 0;
}
.steps-list li {
  background: #fff;
  border-radius: 10px;
  font-size: 1.08rem;
  color: #18354C;
  box-shadow: 0 1px 6px rgba(20,83,112,0.05);
  padding: 16px 18px;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ===================
   Testimonial Slider (Index)
   =================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0 0;
}
.stars-rating {
  color: #7FB3D5;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ===================
   Doctor Directory/Listing
   =================== */
.doctor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.profile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(20, 83, 112, 0.06);
  padding: 24px 16px;
  flex: 1 1 250px;
  min-width: 240px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  gap: 10px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.profile-card:hover {
  box-shadow: 0 8px 34px rgba(20,84,112,0.13);
  transform: translateY(-2px) scale(1.012);
}
.profile-card img {
  height: 46px;
  margin-bottom: 8px;
}
.profile-card h3 {
  font-size: 1.16rem;
  color: #145370;
  margin-bottom: 5px;
}
.profile-card p {
  color: #293850;
  font-size: 0.97rem;
  margin-bottom: 0;
}
.profile-card .badge {
  background: #7FB3D5;
  color: #fff;
  font-size: 0.94rem;
  padding: 4px 13px;
  border-radius: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 5px;
  margin-bottom: 7px;
}
.profile-card.highlighted {
  border: 2px solid #145370;
  background: #f7fafd;
  box-shadow: 0 4px 18px rgba(20,83,112,0.11);
}

.doctor-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ===================
   Inputs & Forms
   =================== */
input[type="text"], select {
  border: 1px solid #c7d0d6;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-right: 17px;
  margin-bottom: 12px;
  background: #f7fbfd;
  color: #223044;
  outline: none;
  transition: border 0.18s, background 0.12s;
  min-width: 210px;
  max-width: 92vw;
}
input[type="text"]:focus, select:focus {
  border-color: #145370;
  background: #eef5fa;
}

/* ===================
   FAQ List/Accordion
   =================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 7px rgba(20,83,112,0.05);
  padding: 20px 20px 12px 22px;
  margin-bottom: 0;
  transition: box-shadow 0.15s, border 0.14s;
  border-left: 4px solid #7FB3D5;
}
.faq-item h3 {
  margin-bottom: 7px;
  color: #145370;
}
.faq-item .answer {
  font-size: 1rem;
  color: #293850;
  margin-left: 4px;
  padding-bottom: 3px;
}

/* ===================
   Guides/Tips Grid
   =================== */
.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 27px;
}
.tips-grid .text-section {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 12px;
  padding: 23px 18px 16px 18px;
  box-shadow: 0 2px 10px rgba(127,179,213,0.08);
  margin-bottom: 0;
}

.text-section {
  margin-bottom: 14px;
}

/* ===================
   Cookie Consent Banner & Modal
   =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(20,83,112,0.06);
  padding: 24px 12px 16px 12px;
  border-top: 1px solid #dce9f0;
  animation: cookie-in 0.45s cubic-bezier(.72,0,.26,1.13);
  opacity: 1;
  transition: opacity 0.28s;
}
@keyframes cookie-in {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner__content {
  flex: 1 1 300px;
  font-size: 1.08rem;
  color: #18354C;
  margin-right: 16px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 20px;
}
.cookie-banner .button-primary,
.cookie-banner .button-secondary {
  padding: 8px 24px;
  font-size: 1rem;
  border-radius: 22px;
  margin: 0;
  box-shadow: none;
  min-width: 100px;
}
.cookie-banner .button-primary {
  background: #145370;
  color: #fff;
  font-weight: 600;
  border: none;
}
.cookie-banner .button-secondary {
  background: #7FB3D5;
  color: #18354C;
  border: none;
  font-weight: 600;
}
.cookie-banner .button-primary:hover,
.cookie-banner .button-secondary:hover {
  filter: brightness(1.08);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  background: rgba(24,53,76,0.17);
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  animation: fadein-cookie-modal 0.26s cubic-bezier(.57,.02,.64,1.09);
}
@keyframes fadein-cookie-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 38px rgba(20,83,112,0.17);
  max-width: 370px;
  width: 98vw;
  padding: 42px 28px 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modal-bounce 0.39s cubic-bezier(.56,.04,.37,1.16);
}
@keyframes modal-bounce {
  0% { transform: translateY(80px) scale(.95); opacity:0; }
  44% { transform: translateY(-4px) scale(1.03); opacity:1; }
  100% { transform: translateY(0) scale(1); opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 13px;
  color: #145370;
}
.cookie-modal .cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 0;
  font-size: 1rem;
}
.cookie-modal .cookie-category {
  font-weight: bold;
  color: #232323;
}
.cookie-modal .cookie-toggle {
  margin-left: 10px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .button-primary, .cookie-modal .button-secondary {
  border-radius: 18px;
  font-size: 1rem;
}
.cookie-modal .button-primary { background: #145370; color: #fff; }
.cookie-modal .button-secondary { background: #7FB3D5; color: #18354C; }
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 20px;
  font-size: 1.7rem;
  background: none;
  color: #18354C;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #f4f6f7;
  color: #145370;
}

/* switcher/toggle (for cookie modal) */
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #dbe8f1;
  border-radius: 14px;
  position: relative;
  transition: background 0.14s;
  cursor: pointer;
}
.cookie-toggle[aria-checked="true"] {
  background: #7FB3D5;
}
.cookie-toggle .switch {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(20,83,112,0.12);
  transition: left 0.20s;
}
.cookie-toggle[aria-checked="true"] .switch {
  left: 18px;
}

/* ===================
   Footer
   =================== */
footer {
  background: #fff;
  box-shadow: 0 -2px 12px rgba(20,83,112,0.02);
  border-top: 1px solid #e3eaea;
  padding: 36px 0 30px 0;
  margin-top: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.footer-nav a {
  color: #145370;
  font-size: 1rem;
  padding: 0 4px 0 4px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  border-bottom: 1.5px solid #7FB3D5;
  color: #397cac;
}
.footer-contact {
  font-size: 0.99rem;
  color: #3a4751;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  text-align: center;
  margin-bottom: 11px;
}
.footer-contact a {
  color: #145370;
  text-decoration: underline;
}
.footer-brand {
  margin-top: 15px;
}
.footer-brand img {
  max-height: 34px;
  width: auto;
}

/* ===================
   General Utility Classes
   =================== */
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.mt-2 { margin-top: 12px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 28px !important; }

/* ===================
   Responsive Layouts
   =================== */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
  .content-wrapper {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .card-container, .doctor-list, .doctor-highlights, .feature-grid, .testimonial-slider, .tips-grid {
    gap: 18px;
  }
  .profile-card, .feature-grid li, .tips-grid .text-section, .testimonial-card {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 7px;
  }
  .hero {
    padding: 22px 0 44px 0;
    min-height: 240px;
    margin-bottom: 34px;
  }
  .feature-grid, .doctor-list, .doctor-highlights, .testimonial-slider, .card-container, .tips-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .profile-card, .feature-grid li, .tips-grid .text-section, .testimonial-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 15px 11px;
  }
  .testimonial-card {
    min-height: 110px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 6px 10px 7px;
  }
  .cookie-banner__actions {
    justify-content: flex-start;
    margin-top: 14px;
    margin-left: 0;
    gap: 8px;
  }
}

@media (max-width: 500px) {
  .container, .content-wrapper {
    padding: 0 7px;
    max-width: 99vw;
  }
  .hero h1 {
    font-size: 1.33rem;
  }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.09rem; }
  .button-primary, .button-secondary {
    padding: 9px 13px;
    font-size: 0.97rem;
  }
}

/* ===================
   Micro-Interactions & Subtle Effects
   =================== */
.button-primary, .button-secondary,
input[type="text"], select{
  transition: background 0.17s, color 0.13s, box-shadow 0.17s, transform 0.11s;
}

input[type="text"]:focus, select:focus {
  box-shadow: 0 2px 12px rgba(20,83,112,0.09);
}

/* Card hover scale effect already present */

/* ===================
   Accessibility & Readability
   =================== */
.testimonial-card,
.faq-item {
  background: #fff;
  color: #18354C;
}

.testimonial-card strong,
.testimonial-card .stars-rating {
  color: #145370;
}

.testimonial-card p,
.testimonial-card strong,
.stars-rating {
  text-shadow: none;
}

/* Ensures light background and dark text for testimonial, readable color contrast */

/* ===================
   Print Styles (Minimal)
   =================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  body, .container, .section, .content-wrapper {
    background: #fff !important;
    color: #222 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
