/*
Theme Name:  CareIntima
Theme URI:   https://careintima.in
Author:      CareIntima
Author URI:  https://careintima.in
Description: A clean, minimal, high-converting blog theme for CareIntima — built for SEO, AdSense, and affiliate marketing.
Version:     1.1.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: careintima
Tags:        blog, minimal, adsense, affiliate, wellness, one-column, two-columns, custom-header
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --accent:       #c0392b;
  --accent-dk:    #96281b;
  --text:         #1a1a1a;
  --muted:        #555555;
  --light:        #f4f4f4;
  --border:       #e5e5e5;
  --card-bg:      #ffffff;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-hv:    0 6px 24px rgba(0,0,0,.13);
  --radius:       8px;
  --max-w:        1160px;
  --gap:          24px;

  /* ── FEMALE WELLNESS ── */
  --female-bg:       #FFF0F0;
  --female-border:   #f5c6c6;
  --female-accent:   #e05c7a;
  --female-accent-dk:#c0394f;
  --female-icon-bg:  rgba(224,92,122,.10);
  --female-tag-bg:   rgba(224,92,122,.10);

  /* ── MALE WELLNESS ── */
  --male-bg:         #F0F5FF;
  --male-border:     #b3c6f5;
  --male-accent:     #2c5fcc;
  --male-accent-dk:  #1a3f99;
  --male-icon-bg:    rgba(44,95,204,.10);
  --male-tag-bg:     rgba(44,95,204,.10);
}

/* ===== LAYOUT HELPERS ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--light); }
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.section-sub { font-size: .9rem; color: var(--muted); margin-bottom: 36px; }
.section-header { margin-bottom: 36px; }
.divider {
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 10px 0 16px;
}

/* ===== FEMALE WELLNESS SECTION ===== */
.section--female {
  background: var(--female-bg);
  border-top: 2px solid var(--female-border);
  border-bottom: 2px solid var(--female-border);
}
.section--female .section-title { color: var(--female-accent-dk); }
.section--female .divider { background: var(--female-accent); }
.section--female .cat-block {
  border-color: var(--female-border);
  background: #fff;
}
.section--female .cat-block:hover {
  border-color: var(--female-accent);
  box-shadow: 0 4px 16px rgba(224,92,122,.12);
}
.section--female .cat-icon { background: var(--female-icon-bg); }
.section--female .cat-link { color: var(--female-accent); }
.section--female .hero-tag {
  color: var(--female-accent);
  background: var(--female-tag-bg);
}
.section--female .post-card .thumb-cat { background: var(--female-accent); }
.section--female .read-more { color: var(--female-accent); }
.section--female .widget-title { border-color: var(--female-accent); }

/* ===== MALE WELLNESS SECTION ===== */
.section--male {
  background: var(--male-bg);
  border-top: 2px solid var(--male-border);
  border-bottom: 2px solid var(--male-border);
}
.section--male .section-title { color: var(--male-accent-dk); }
.section--male .divider { background: var(--male-accent); }
.section--male .cat-block {
  border-color: var(--male-border);
  background: #fff;
}
.section--male .cat-block:hover {
  border-color: var(--male-accent);
  box-shadow: 0 4px 16px rgba(44,95,204,.12);
}
.section--male .cat-icon { background: var(--male-icon-bg); }
.section--male .cat-link { color: var(--male-accent); }
.section--male .hero-tag {
  color: var(--male-accent);
  background: var(--male-tag-bg);
}
.section--male .post-card .thumb-cat { background: var(--male-accent); }
.section--male .read-more { color: var(--male-accent); }
.section--male .widget-title { border-color: var(--male-accent); }

/* ===== GENDER SECTION BADGE ===== */
.gender-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 20px; padding: 4px 14px;
  margin-bottom: 12px;
}
.gender-badge--female {
  color: var(--female-accent);
  background: var(--female-tag-bg);
  border: 1px solid var(--female-border);
}
.gender-badge--male {
  color: var(--male-accent);
  background: var(--male-tag-bg);
  border: 1px solid var(--male-border);
}

/* ===== POST CARD GENDER VARIANTS ===== */
.post-card--female {
  border-top: 3px solid var(--female-accent);
}
.post-card--female .thumb-cat { background: var(--female-accent) !important; }
.post-card--female .read-more { color: var(--female-accent); }

.post-card--male {
  border-top: 3px solid var(--male-accent);
}
.post-card--male .thumb-cat { background: var(--male-accent) !important; }
.post-card--male .read-more { color: var(--male-accent); }

/* ===== ADSENSE PLACEHOLDERS ===== */
.ad-box {
  background: #fafafa;
  border: 1.5px dashed #ccc;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #aaa;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ad-top       { width: 100%; height: 90px;  margin: 0 0 16px; }
.ad-banner    { width: 100%; height: 90px;  margin: 32px 0; }
.ad-incontent { width: 100%; height: 250px; margin: 32px 0; }
.ad-sidebar   { width: 100%; height: 250px; margin: 20px 0; }
.ad-footer    { width: 100%; height: 90px;  margin: 0 0 32px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: .875rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 18px; border-radius: 4px;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--accent-dk) !important; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #fff7f6 0%, #fff 50%, #f0f4ff 100%);
  padding: 80px 20px 72px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(192,57,43,.08);
  border-radius: 20px; padding: 4px 14px; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p { font-size: clamp(.95rem, 2vw, 1.1rem); color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.btn {
  display: inline-block; padding: 13px 30px;
  border-radius: 5px; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(192,57,43,.3);
}
.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192,57,43,.35);
}
.hero-meta { margin-top: 20px; font-size: .8rem; color: #aaa; }

/* ===== HERO TRUST BADGES ===== */
.hero-badges {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 10px;
  margin-top: 28px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-size: .78rem; color: var(--muted);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.hero-badge span { font-size: .95rem; }

/* ===== FEATURED POSTS GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-hv); transform: translateY(-4px); }
.post-thumb {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  height: 185px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: #bbb;
  letter-spacing: .06em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.04));
}
.post-thumb .thumb-cat {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 3px;
}
.post-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: .72rem; color: #aaa; margin-bottom: 8px; }
.post-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; color: var(--text); }
.post-card p { font-size: .85rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.read-more {
  font-size: .82rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px; transition: gap .2s;
}
.read-more:hover { gap: 8px; }
.read-more::after { content: '→'; }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap);
}
.cat-block {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-block:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(192,57,43,.1);
  transform: translateY(-3px);
}
.cat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(192,57,43,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.cat-block h3 { font-size: .95rem; font-weight: 600; color: var(--text); }
.cat-block p  { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.cat-link     { font-size: .78rem; font-weight: 600; color: var(--accent); margin-top: auto; }

/* ===== CONTENT + SIDEBAR ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px; align-items: start;
}
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-item {
  display: grid; grid-template-columns: 88px 1fr;
  gap: 16px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.post-item:last-child { border-bottom: none; padding-bottom: 0; }
.post-item-thumb {
  width: 88px; height: 68px;
  background: linear-gradient(135deg, #f0f0f0, #e2e2e2);
  border-radius: 6px; flex-shrink: 0;
  overflow: hidden;
}
.post-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item-body h3 { font-size: .95rem; font-weight: 600; line-height: 1.35; margin-bottom: 6px; color: var(--text); }
.post-item-body p  { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget-title {
  font-size: .85rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.search-bar { display: flex; border: 1.5px solid var(--border); border-radius: 5px; overflow: hidden; }
.search-bar input {
  flex: 1; padding: 9px 12px;
  font-size: .85rem; font-family: inherit;
  border: none; outline: none;
  color: var(--text); background: #fafafa;
}
.search-bar button {
  padding: 9px 14px; background: var(--accent);
  border: none; color: #fff; cursor: pointer;
  font-size: .9rem; transition: background .2s;
}
.search-bar button:hover { background: var(--accent-dk); }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-list li a {
  font-size: .86rem; color: var(--muted);
  display: flex; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px solid #f0f0f0;
  transition: color .2s;
}
.cat-list li a:hover { color: var(--accent); }
.cat-list li a span {
  background: var(--light); font-size: .73rem;
  padding: 2px 7px; border-radius: 10px; color: #888;
}
.recent-posts { display: flex; flex-direction: column; gap: 12px; }
.recent-post { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.recent-thumb {
  width: 52px; height: 42px;
  background: linear-gradient(135deg, #eee, #ddd);
  border-radius: 4px; overflow: hidden;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post h4 { font-size: .8rem; font-weight: 500; line-height: 1.35; color: var(--text); }
.recent-post h4 a:hover { color: var(--accent); }
.recent-post time { font-size: .7rem; color: #aaa; }

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: #fffaf9;
  border-top: 1px solid #f0dedd;
  border-bottom: 1px solid #f0dedd;
  padding: 14px 20px; text-align: center;
}
.trust-strip p { font-size: .78rem; color: #888; max-width: 700px; margin: 0 auto; line-height: 1.6; }
.trust-strip strong { color: #666; }

/* ===== AFFILIATE STRIP ===== */
.affiliate-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.affiliate-strip-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 20px;
}
.affiliate-strip-label {
  font-size: .75rem; font-weight: 600;
  color: var(--muted); letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.affiliate-strip-logos {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 16px;
}
.aff-logo {
  font-size: .8rem; font-weight: 700;
  color: var(--muted); padding: 5px 14px;
  border: 1px solid var(--border); border-radius: 4px;
  transition: color .2s, border-color .2s;
}
.aff-logo:hover { color: var(--accent); border-color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer { background: #111; color: #999; padding: 40px 20px 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 16px; padding-bottom: 20px;
  border-bottom: 1px solid #222;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-logo span { color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { font-size: .8rem; color: #888; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { margin-top: 18px; font-size: .75rem; text-align: center; color: #555; }

/* ===== RESPONSIVE ===== */
@media (max-width: 840px) {
  .content-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav .nav-cta { display: none; }
  .hero { padding: 56px 20px 48px; }
  .hero-badges { gap: 8px; }
  .affiliate-strip-inner { flex-direction: column; gap: 10px; }
}
@media (max-width: 400px) {
  .categories-grid { grid-template-columns: 1fr; }
}