/* Wellness Ratio White Label - Custom Styles */

/* ---- Base ---- */
:root {
  --wr-primary: #0F766E;
  --wr-primary-dark: #134E4A;
  --wr-primary-light: #CCFBF1;
  --wr-navy: #0F172A;
  --wr-text: #1E293B;
  --wr-muted: #64748B;
  --wr-subtle: #F1F5F9;
  --wr-border: #E2E8F0;
  --wr-white: #FFFFFF;
  --wr-radius: 10px;
  --wr-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --wr-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  background: var(--wr-subtle);
  -webkit-font-smoothing: antialiased;
}

/* ---- Site Header ---- */
.wr-header {
  background: var(--wr-white);
  border-bottom: 1px solid var(--wr-border);
  padding: 0 16px;
}
.wr-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.wr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--wr-navy);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.wr-logo img {
  height: 36px;
  width: auto;
}
.wr-nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.wr-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--wr-text);
  transition: background 0.15s, color 0.15s;
}
.wr-nav a:hover,
.wr-nav a.current {
  background: var(--wr-primary-light);
  color: var(--wr-primary-dark);
}

/* ---- Category Banner ---- */
.wr-cat-banner {
  background: linear-gradient(135deg, var(--wr-primary) 0%, var(--wr-primary-dark) 100%);
  color: var(--wr-white);
  text-align: center;
  padding: 48px 16px 40px;
}
.wr-cat-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--wr-white);
}
.wr-cat-banner .wr-cat-desc {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.wr-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 12px;
}
.wr-cat-icon svg { color: #fff }
.wr-cat-count {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* ---- Section Titles ---- */
.wr-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wr-navy);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wr-primary);
  display: inline-block;
}

/* ---- Article Cards (Featured) ---- */
.wr-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.wr-card {
  background: var(--wr-white);
  border-radius: var(--wr-radius);
  overflow: hidden;
  box-shadow: var(--wr-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.wr-card:hover {
  box-shadow: var(--wr-shadow-lg);
  transform: translateY(-2px);
}
.wr-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--wr-border);
}
.wr-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wr-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wr-primary);
  margin-bottom: 6px;
}
.wr-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wr-navy);
  margin: 0 0 8px;
  line-height: 1.35;
}
.wr-card-title a {
  color: inherit;
  text-decoration: none;
}
.wr-card-title a:hover { color: var(--wr-primary) }
.wr-card-excerpt {
  font-size: 0.88rem;
  color: var(--wr-muted);
  line-height: 1.55;
  flex: 1;
}
.wr-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--wr-border);
  font-size: 0.78rem;
  color: var(--wr-muted);
}
.wr-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wr-primary);
  text-decoration: none;
  margin-left: auto;
}
.wr-read-more:hover { text-decoration: underline }

/* ---- News List ---- */
.wr-news-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--wr-border);
  border-radius: var(--wr-radius);
  overflow: hidden;
  box-shadow: var(--wr-shadow);
}
.wr-news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--wr-white);
  text-decoration: none;
  color: var(--wr-text);
  transition: background 0.15s;
}
.wr-news-item:hover { background: var(--wr-subtle) }
.wr-news-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--wr-border);
}
.wr-news-body { flex: 1; min-width: 0 }
.wr-news-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--wr-navy);
  margin: 0 0 3px;
  line-height: 1.35;
}
.wr-news-excerpt {
  font-size: 0.8rem;
  color: var(--wr-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wr-news-date {
  font-size: 0.75rem;
  color: var(--wr-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Single Article ---- */
.wr-single-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.wr-single-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}
.wr-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.wr-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--wr-primary-light);
  color: var(--wr-primary-dark);
  text-decoration: none;
}
.wr-badge:hover { background: var(--wr-primary); color: #fff }
.wr-single-date {
  font-size: 0.82rem;
  color: var(--wr-muted);
}
.wr-single-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wr-navy);
  line-height: 1.25;
  margin: 0 0 24px;
}
.wr-single-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--wr-text);
}
.wr-single-content h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  color: var(--wr-navy);
}
.wr-single-content h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--wr-navy);
}
.wr-single-content p { margin: 0 0 18px }
.wr-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}
.wr-single-content blockquote {
  border-left: 3px solid var(--wr-primary);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--wr-subtle);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--wr-muted);
}

/* ---- Info Boxes (Resources, Read More) ---- */
.wr-infobox {
  background: var(--wr-primary-light);
  border-left: 3px solid var(--wr-primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.wr-infobox strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wr-primary-dark);
  margin-bottom: 6px;
}

/* ---- Related Articles ---- */
.wr-related {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 60px;
}
.wr-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.wr-related-card {
  background: var(--wr-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--wr-shadow);
  text-decoration: none;
}
.wr-related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.wr-related-card .title {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wr-navy);
  line-height: 1.35;
}

/* ---- Footer ---- */
.wr-footer {
  background: var(--wr-navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 16px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 48px;
}
.wr-footer a { color: rgba(255,255,255,0.9); text-decoration: none }
.wr-footer a:hover { color: #fff }
.wr-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.wr-footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.wr-footer-copy {
  margin-top: 20px;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ---- Pagination ---- */
.wr-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 16px;
}
.wr-pagination a,
.wr-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--wr-text);
  background: var(--wr-white);
  border: 1px solid var(--wr-border);
  transition: all 0.15s;
}
.wr-pagination a:hover {
  background: var(--wr-primary-light);
  border-color: var(--wr-primary);
  color: var(--wr-primary-dark);
}
.wr-pagination .current {
  background: var(--wr-primary);
  color: #fff;
  border-color: var(--wr-primary);
}

/* ---- Home Hero ---- */
.wr-home-hero {
  background: linear-gradient(135deg, var(--wr-primary) 0%, var(--wr-primary-dark) 100%);
  color: var(--wr-white);
  padding: 48px 16px 56px;
}
.wr-home-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.wr-home-hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin: 0 0 8px;
}
.wr-home-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.15;
  color: var(--wr-white);
}
.wr-home-hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.88;
  margin: 0;
  max-width: 440px;
}
.wr-home-hero-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--wr-radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.wr-home-hero-card:hover { transform: translateY(-3px) }
.wr-home-hero-card-link {
  text-decoration: none;
  color: var(--wr-white);
  display: block;
}
.wr-home-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.wr-home-hero-card-body { padding: 18px 20px 20px }
.wr-home-hero-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.wr-home-hero-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
  color: var(--wr-white);
}
.wr-home-hero-card-excerpt {
  font-size: 0.88rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

/* ---- Home Category Grid ---- */
.wr-home-cats {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.wr-home-cat-card {
  background: var(--wr-white);
  border-radius: var(--wr-radius);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--wr-text);
  box-shadow: var(--wr-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 3px solid var(--cat-color, var(--wr-primary));
}
.wr-home-cat-card:hover {
  box-shadow: var(--wr-shadow-lg);
  transform: translateY(-3px);
}
.wr-home-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  color: var(--cat-color);
  margin-bottom: 10px;
}
.wr-home-cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wr-navy);
  margin: 0 0 4px;
}
.wr-home-cat-desc {
  font-size: 0.78rem;
  color: var(--wr-muted);
  line-height: 1.45;
  margin: 0 0 8px;
}
.wr-home-cat-count {
  font-size: 0.72rem;
  color: var(--wr-muted);
  opacity: 0.7;
}

/* ---- Empty State ---- */
.wr-empty {
  text-align: center;
  padding: 60px 16px;
  color: var(--wr-muted);
}
.wr-empty p {
  font-size: 1.05rem;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .wr-header-inner { height: auto; padding: 12px 0; flex-wrap: wrap }
  .wr-nav { gap: 2px }
  .wr-nav a { padding: 6px 10px; font-size: 0.82rem }
  .wr-cat-banner { padding: 32px 16px 28px }
  .wr-cat-banner h1 { font-size: 1.6rem }
  .wr-featured-grid { grid-template-columns: 1fr; gap: 16px }
  .wr-single-title { font-size: 1.5rem }
  .wr-news-thumb { width: 70px; height: 48px }
  .wr-home-hero-inner { grid-template-columns: 1fr; gap: 24px }
  .wr-home-hero-title { font-size: 1.8rem }
  .wr-home-hero { padding: 32px 16px 40px }
  .wr-home-cats { grid-template-columns: repeat(2, 1fr); gap: 12px }
  .wr-home-cats .wr-home-cat-card:last-child { grid-column: span 2 }
}
