/*
Theme Name: PelvicHealthPlus - Master Performance Edition
Author: Pelvic Wellness Team
Description: The official PelvicHealthPlus research engine.
Version: 15.0.0
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand-blue: #0284c7;
  --brand-dark: #0f172a;
  --brand-slate: #475569;
  --brand-soft: #f8fafc;
  --brand-border: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }
body { 
  margin: 0; padding: 0; 
  font-family: 'Inter', sans-serif; 
  color: #334155; 
  background: #fff; 
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.c-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* --- NAVIGATION --- */
.site-header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 800; text-decoration: none; color: var(--brand-dark); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 28px; height: 28px; background: var(--brand-blue); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem; font-weight: 900; }

.nav-links ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--brand-slate); font-weight: 600; font-size: 0.9rem; transition: 0.2s; }
.nav-links a:hover { color: var(--brand-blue); }

.hero { padding: 100px 0; background: var(--brand-soft); text-align: center; border-bottom: 1px solid var(--brand-border); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-category { padding: 80px 0; background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%); border-bottom: 1px solid var(--brand-border); text-align: center; }
.h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; color: var(--brand-dark); line-height: 1.1; margin-bottom: 24px; text-align: center; }
.hero-p { font-size: 1.15rem; color: var(--brand-slate); max-width: 750px; margin: 0 auto 32px; line-height: 1.8; text-align: center; }

.breadcrumbs { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    font-size: 0.7rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: #94a3b8; 
    margin-bottom: 32px; 
}
.breadcrumbs a { text-decoration: none; color: var(--brand-blue); }
.breadcrumbs a:hover { text-decoration: underline; }

.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 32px; 
}

.card { 
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
}
.card:hover { 
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--brand-blue);
}

.card-image { width: 100%; height: 180px; background: #f1f5f9; overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.75rem; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }

.card h3 { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-size: 1.25rem; 
  font-weight: 800; 
  line-height: 1.4; 
  margin: 0 0 12px; 
  color: var(--brand-dark);
}
.card p { 
  font-size: 0.95rem; color: var(--brand-slate); 
  margin: 0 0 20px; line-height: 1.6;
}

.card-link { margin-top: auto; font-size: 0.85rem; font-weight: 800; color: var(--brand-blue); display: flex; align-items: center; gap: 4px; }

.article-wrap { max-width: 760px; margin: 64px auto 100px; padding: 0 24px; }
.badge { display: inline-block; padding: 6px 12px; background: #e0f2fe; color: #0369a1; border-radius: 6px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 24px; }
.post-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; color: var(--brand-dark); line-height: 1.2; margin-bottom: 24px; }
.post-meta { display: flex; gap: 16px; align-items: center; color: var(--brand-slate); font-size: 0.85rem; margin-bottom: 40px; border-bottom: 1px solid var(--brand-border); padding-bottom: 24px; }
.meta-tag { color: #059669; font-weight: 700; display: flex; align-items: center; gap: 4px; }

.entry-content { font-size: 1.125rem; line-height: 1.8; color: #334155; }
.entry-content h2, .entry-content h3 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--brand-dark); margin: 40px 0 20px; }
.entry-content p { margin-bottom: 24px; }

.related-section { background: var(--brand-soft); padding: 80px 0; border-top: 1px solid var(--brand-border); }

.site-footer { background: var(--brand-dark); color: #fff; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: #94a3b8; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: #fff; }

.medical-disclaimer { border-top: 1px solid #1e293b; padding-top: 40px; font-size: 0.8rem; color: #64748b; line-height: 1.6; }

/* --- HIGH-CONVERSION AFFILIATE CARDS --- */
.affiliate-card {
    background: #fff;
    border: 2px solid var(--brand-blue);
    border-radius: 20px;
    padding: 32px;
    margin: 48px 0;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.1);
    position: relative;
    overflow: hidden;
}
.affiliate-card::before {
    content: "STRATEGY VERIFIED RECOMMENDATION";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--brand-blue);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    text-align: center;
    padding: 4px 0;
    letter-spacing: 0.1em;
}
.affiliate-card h4 {
    color: var(--brand-dark);
    font-size: 1.4rem;
    margin-top: 12px;
    margin-bottom: 16px;
}
.affiliate-card .cta-button {
    display: inline-block;
    background: var(--brand-blue);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 16px;
    transition: 0.2s;
}
.affiliate-card .cta-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}
.affiliate-card .limitation {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 16px;
    font-style: italic;
}

/* --- THE IRON GRID TABLE FIX --- */
.table-container {
    margin: 3rem 0;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--brand-border);
    box-shadow: var(--card-shadow);
}

table.brand-table {
    display: table !important; 
    width: 100% !important;
    min-width: 650px !important; /* Physically prevents row stacking */
    border-collapse: collapse !important;
    background: #fff;
    table-layout: fixed !important;
}

table.brand-table tr { display: table-row !important; }
table.brand-table th, table.brand-table td {
    display: table-cell !important;
    padding: 1.25rem 1rem;
    border: 1px solid var(--brand-border);
    vertical-align: top;
    text-align: left;
}

table.brand-table th {
    background: var(--brand-soft);
    color: var(--brand-blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

table.brand-table tr:nth-child(even) {
    background: #f8fafc;
}
