@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --primary: #1a6b8a;
  --primary-dark: #0f4d66;
  --accent: #2aab7a;
  --text: #1c2833;
  --muted: #5d6d7e;
  --bg: #f4f7f9;
  --white: #ffffff;
  --line: #dce4ea;
  --radius: 6px;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.site-header .navbar {
  margin-bottom: 0;
  border: none;
  min-height: 64px;
}

.site-header .navbar-brand {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark) !important;
  padding: 18px 0;
}

.site-header .navbar-brand span { color: var(--accent); }

.site-header .nav > li > a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 22px 16px;
}

.site-header .nav > li > a:hover,
.site-header .nav > li.active > a { color: var(--primary); background: transparent; }

.header-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e8aab 100%);
  padding: 56px 0;
  color: #fff;
  text-align: center;
}

.header-banner h1 {
  color: #fff;
  font-size: 32px;
  margin: 0 0 8px;
}

.header-banner p {
  color: rgba(255,255,255,0.82);
  margin: 0;
  font-size: 15px;
}

/* Layout */
.main-content { padding: 44px 0 60px; }

.post-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.post-block:hover { box-shadow: 0 8px 28px rgba(26,107,138,0.1); }

.post-block .thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.post-block .body { padding: 26px 28px 28px; }

.post-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.post-block h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.post-block h2 a { color: var(--text); }
.post-block h2 a:hover { color: var(--primary); }

.post-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.post-meta i { margin-right: 4px; }

.post-excerpt { color: var(--muted); margin-bottom: 16px; }

.btn-read {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-read:hover { background: var(--primary-dark); color: #fff !important; }

/* Sidebar */
.sidebar .widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 22px;
}

.widget-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.sidebar .media { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sidebar .media:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar .media-object {
  width: 72px !important;
  height: 58px !important;
  object-fit: cover;
  border-radius: 4px;
}

.sidebar .media-heading { font-size: 13px; line-height: 1.4; font-family: 'Merriweather', serif; font-weight: 700; }
.sidebar .media-heading a { color: var(--text); }

.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--muted); }
.cat-list a:hover { color: var(--primary); }
.cat-list .count { float: right; color: #aab7c4; font-size: 12px; }

.sidebar-search .form-control { border-radius: var(--radius) 0 0 var(--radius); height: 40px; box-shadow: none; }
.sidebar-search .btn { height: 40px; background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 0 var(--radius) var(--radius) 0; }

/* Single post */
.post-single-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 38px 40px;
}

.post-single-wrap h1 { font-size: 28px; margin-bottom: 14px; }

.post-single-wrap .featured-img {
  margin: 0 -38px 28px;
  overflow: hidden;
}

.post-single-wrap .featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.post-single-wrap .content p {
  font-size: 16px;
  line-height: 1.8;
  color: #34495e;
  margin-bottom: 18px;
}

.post-single-wrap .content h2 {
  font-size: 20px;
  margin: 32px 0 14px;
  color: var(--primary-dark);
}

.post-single-wrap .content ul {
  margin-bottom: 18px;
  padding-left: 22px;
  color: #34495e;
}

.post-single-wrap .content li { margin-bottom: 8px; line-height: 1.7; }

.medical-note {
  background: #eaf4f8;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--primary-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.medical-note strong { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Comments */
.comments-area { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-area h3 { font-size: 18px; margin-bottom: 20px; }

.comment-form .form-control {
  border-radius: var(--radius);
  box-shadow: none;
  margin-bottom: 12px;
}

.comment-form .btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
}

.comment-notice { font-size: 13px; margin-top: 10px; display: none; }
.comment-notice.show { display: block; }
.comment-notice.ok { color: var(--accent); }
.comment-notice.err { color: #c0392b; }

.comments-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comments-list .media { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comments-list .media-heading { font-size: 14px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }
.comments-list .media-heading small { color: var(--muted); font-weight: 400; }

/* Contact */
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-panel .form-control { border-radius: var(--radius); box-shadow: none; height: 44px; }
.contact-panel textarea.form-control { height: auto; }
.contact-panel .btn-send {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
}

.form-alert { display: none; margin-top: 14px; padding: 12px; border-radius: var(--radius); font-size: 14px; }
.form-alert.success { display: block; background: #e8f8f0; color: #1a7a4c; }
.form-alert.error { display: block; background: #fdecea; color: #922b21; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.65);
  padding: 40px 0 24px;
  font-size: 13px;
}

.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }

.site-footer .footer-links { list-style: none; padding: 0; margin: 0 0 16px; }
.site-footer .footer-links li { display: inline-block; margin: 0 14px 8px 0; }

.site-footer .copyright { color: rgba(255,255,255,0.4); margin: 0; font-size: 12px; }

/* Pagination */
.pagination > li > a { color: var(--primary); border-radius: var(--radius) !important; margin: 0 3px; }
.pagination > .active > a { background: var(--primary); border-color: var(--primary); }

#backTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  line-height: 40px;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

#backTop.show { opacity: 1; visibility: visible; }

#readBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 9999;
}

#cookieBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 14px 20px;
  z-index: 99999;
  display: none;
  font-size: 13px;
}

#cookieBar.show { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#cookieBar a { color: #7dcea0; text-decoration: underline; }
#cookieBar .btn-ok { background: var(--accent); color: #fff; border: none; padding: 8px 20px; font-size: 12px; font-weight: 600; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 767px) {
  .post-single-wrap .featured-img { margin: 0 -20px 24px; }
  .post-single-wrap { padding: 24px 20px; }
  .header-banner h1 { font-size: 24px; }
}
