/*
Theme Name: Thai IVF GeneratePress Child
Theme URI: https://example.com/
Description: Free-first child theme for a Thailand IVF GEO/SEO information site built on GeneratePress.
Author: Codex
Template: generatepress
Version: 0.4.0
Text Domain: thai-ivf-generatepress-child
*/

:root {
    --tivf-text: #17232a;
    --tivf-muted: #667481;
    --tivf-border: #d6e0e6;
    --tivf-soft: #f4f8f8;
    --tivf-soft-2: #eef5f2;
    --tivf-primary: #146c72;
    --tivf-primary-dark: #0e4e54;
    --tivf-accent: #b35b3e;
    --tivf-gold: #b88735;
    --tivf-white: #ffffff;
    --tivf-shadow: 0 18px 45px rgba(20, 42, 48, 0.09);
    --tivf-shadow-soft: 0 10px 28px rgba(20, 42, 48, 0.07);
    --tivf-platform-bg: #f5f7f7;
}

body {
    color: var(--tivf-text);
    background: var(--tivf-white);
    font-size: 16px;
    line-height: 1.68;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

a {
    color: var(--tivf-primary);
}

a:hover,
a:focus {
    color: var(--tivf-primary-dark);
}

.site-content {
    background: var(--tivf-white);
}

.site-header {
    border-bottom: 1px solid rgba(214, 224, 230, 0.82);
    box-shadow: 0 8px 24px rgba(20, 42, 48, 0.04);
}

.inside-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

.inside-header.grid-container {
    max-width: 1280px;
}

.inside-header {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-branding .main-title {
    max-width: none;
    font-size: 0;
    line-height: 1.25;
    letter-spacing: 0;
}

.site-branding .main-title a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #10242a;
}

.site-branding .main-title a::before {
    content: "泰国试管指南";
    font-size: 1.08rem;
    font-weight: 900;
}

.site-description {
    display: none;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
    font-weight: 700;
}

.main-navigation .main-nav ul li a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.88rem;
    line-height: 44px;
    white-space: nowrap;
}

.main-navigation {
    flex: 1;
}

.main-navigation .main-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
}

.main-navigation,
.main-navigation ul ul {
    background: transparent;
}

.main-navigation ul ul {
    min-width: 190px;
    border: 1px solid var(--tivf-border);
    border-radius: 14px;
    padding: 8px;
    background: #fff;
    box-shadow: var(--tivf-shadow);
}

.main-navigation ul ul li a {
    border-radius: 10px;
    padding: 10px 12px;
    color: #10242a;
    font-size: 0.92rem;
    line-height: 1.35;
}

.main-navigation ul ul li a:hover,
.main-navigation ul ul li.sfHover > a {
    background: var(--tivf-soft);
    color: var(--tivf-primary-dark);
}

.entry-content:not(:first-child),
.entry-summary:not(:first-child),
.page-content:not(:first-child) {
    margin-top: 0;
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .site-content {
    padding-top: 0;
}

.site.grid-container,
.container.grid-container {
    max-width: 1180px;
}

.site-content {
    display: block;
}

.content-area {
    width: 100%;
}

.widget-area,
.sidebar,
#right-sidebar,
#left-sidebar {
    display: none !important;
}

.site-footer {
    border-top: 1px solid var(--tivf-border);
    background: #10262c;
    color: rgba(255, 255, 255, 0.78);
}

.tivf-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.tivf-page-header {
    position: relative;
    padding: 46px 0 30px;
    border-bottom: 1px solid var(--tivf-border);
    background:
        linear-gradient(90deg, rgba(20, 108, 114, 0.10), rgba(244, 248, 248, 0.92)),
        var(--tivf-soft);
    overflow: hidden;
}

.tivf-page-header::after {
    content: "";
    position: absolute;
    right: 6%;
    bottom: -58px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(20, 108, 114, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.tivf-eyebrow {
    margin: 0 0 8px;
    color: var(--tivf-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.tivf-page-title {
    position: relative;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.16;
    letter-spacing: 0;
}

.tivf-page-summary {
    position: relative;
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--tivf-muted);
    font-size: 1.08rem;
}

.tivf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    padding: 42px 0;
}

.tivf-main {
    min-width: 0;
}

.tivf-sidebar {
    align-self: start;
}

.tivf-section {
    margin-bottom: 38px;
}

.tivf-section h2 {
    margin-top: 0;
    font-size: 1.5rem;
    letter-spacing: 0;
}

.tivf-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
}

.tivf-fact {
    border: 1px solid var(--tivf-border);
    border-radius: 10px;
    padding: 16px;
    background: var(--tivf-white);
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-fact-label {
    display: block;
    margin-bottom: 4px;
    color: var(--tivf-muted);
    font-size: 0.88rem;
}

.tivf-fact-value {
    display: block;
    font-weight: 700;
}

.tivf-score-fact {
    border-color: rgba(179, 91, 62, 0.28);
    background: linear-gradient(135deg, #fffaf6, #ffffff);
}

.tivf-score-fact .tivf-fact-value {
    color: var(--tivf-accent);
    font-size: 1.2rem;
    font-weight: 900;
}

.tivf-score-board {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.tivf-score-row {
    border: 1px solid rgba(20, 108, 114, 0.16);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
}

.tivf-score-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tivf-score-row-head span {
    color: var(--tivf-text);
    font-weight: 800;
}

.tivf-score-row-head strong {
    color: var(--tivf-accent);
    white-space: nowrap;
}

.tivf-score-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf1f1;
}

.tivf-score-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tivf-primary), var(--tivf-accent));
}

.tivf-panel {
    border: 1px solid var(--tivf-border);
    border-radius: 10px;
    padding: 20px;
    background: var(--tivf-white);
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-panel + .tivf-panel {
    margin-top: 16px;
}

.tivf-panel h2,
.tivf-panel h3 {
    margin-top: 0;
}

.tivf-list {
    padding-left: 20px;
}

.tivf-list li + li {
    margin-top: 8px;
}

.tivf-notice {
    border: 1px solid #efd9cf;
    border-left: 4px solid var(--tivf-accent);
    border-radius: 8px;
    padding: 16px 18px;
    background: #fff8f4;
}

.tivf-source-list {
    padding-left: 20px;
    color: var(--tivf-muted);
}

.tivf-meta-line {
    color: var(--tivf-muted);
    font-size: 0.94rem;
}

.tivf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--tivf-primary);
    color: var(--tivf-white);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 108, 114, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tivf-button:hover,
.tivf-button:focus {
    background: var(--tivf-primary-dark);
    color: var(--tivf-white);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 108, 114, 0.22);
}

.tivf-button-secondary {
    border: 1px solid var(--tivf-primary);
    background: var(--tivf-white);
    color: var(--tivf-primary);
    box-shadow: none;
}

.tivf-button-secondary:hover,
.tivf-button-secondary:focus {
    background: var(--tivf-soft);
    color: var(--tivf-primary-dark);
}

.tivf-empty {
    color: var(--tivf-muted);
}

.tivf-home-hero {
    position: relative;
    padding: 62px 0 52px;
    background:
        linear-gradient(110deg, rgba(238, 245, 242, 0.96), rgba(255, 255, 255, 0.94)),
        var(--tivf-soft);
    border-bottom: 1px solid var(--tivf-border);
    overflow: hidden;
}

.tivf-home-hero::before {
    content: "";
    position: absolute;
    inset: auto 4% -78px auto;
    width: 310px;
    height: 310px;
    border: 34px solid rgba(184, 135, 53, 0.10);
    border-radius: 50%;
}

.tivf-home-hero::after {
    content: "";
    position: absolute;
    inset: 36px auto auto 4%;
    width: 88px;
    height: 88px;
    border: 18px solid rgba(20, 108, 114, 0.08);
    border-radius: 50%;
}

.tivf-home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: center;
}

.tivf-home-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.tivf-home-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--tivf-muted);
    font-size: 1.12rem;
}

.tivf-home-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.tivf-home-proof span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(20, 108, 114, 0.20);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--tivf-primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.tivf-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tivf-home-search-panel {
    border: 1px solid var(--tivf-border);
    border-radius: 12px;
    padding: 22px;
    background: var(--tivf-white);
    box-shadow: var(--tivf-shadow);
}

.tivf-home-search-panel h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.tivf-home-search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}

.tivf-home-search-panel input {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--tivf-border);
    border-radius: 8px;
    padding: 8px 12px;
}

.tivf-home-search-panel button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
    background: var(--tivf-primary);
    color: var(--tivf-white);
    font-weight: 700;
    cursor: pointer;
}

.tivf-home-band {
    padding: 28px 0;
    border-bottom: 1px solid var(--tivf-border);
}

.tivf-home-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tivf-home-facts article {
    min-width: 0;
    border: 1px solid var(--tivf-border);
    border-radius: 10px;
    padding: 16px;
    background: var(--tivf-white);
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-home-facts h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.tivf-home-facts p {
    margin: 0;
    color: var(--tivf-muted);
}

.tivf-home-section {
    padding: 54px 0;
}

.tivf-home-soft {
    background: var(--tivf-soft);
}

.tivf-section-heading {
    max-width: 760px;
    margin-bottom: 20px;
}

.tivf-section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.16;
    letter-spacing: 0;
}

.tivf-section-heading p:last-child {
    margin-bottom: 0;
    color: var(--tivf-muted);
}

.tivf-topic-grid,
.tivf-reading-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tivf-topic-grid a,
.tivf-reading-grid a {
    display: block;
    border: 1px solid var(--tivf-border);
    border-radius: 10px;
    padding: 18px;
    background: var(--tivf-white);
    text-decoration: none;
    box-shadow: var(--tivf-shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tivf-topic-grid a:hover,
.tivf-reading-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 108, 114, 0.36);
    box-shadow: var(--tivf-shadow);
}

.tivf-topic-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--tivf-text);
}

.tivf-topic-grid span {
    display: block;
    color: var(--tivf-muted);
}

.tivf-home-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.tivf-mini-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--tivf-border);
    border-radius: 10px;
    background: var(--tivf-white);
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-mini-table th,
.tivf-mini-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--tivf-border);
    text-align: left;
    vertical-align: top;
}

.tivf-mini-table th {
    width: 34%;
    background: var(--tivf-soft);
    color: var(--tivf-primary-dark);
}

.tivf-mini-table tr:last-child th,
.tivf-mini-table tr:last-child td {
    border-bottom: 0;
}

/* Polished product-style homepage */
.tivf-pro-home {
    background: #fbfcfb;
}

.tivf-kicker {
    margin: 0 0 12px;
    color: var(--tivf-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tivf-pro-hero {
    position: relative;
    padding: 74px 0 54px;
    background:
        radial-gradient(circle at 18% 16%, rgba(184, 135, 53, 0.12), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(20, 108, 114, 0.13), transparent 34%),
        linear-gradient(135deg, #f6faf8 0%, #ffffff 52%, #edf6f3 100%);
    border-bottom: 1px solid rgba(214, 224, 230, 0.82);
    overflow: hidden;
}

.tivf-pro-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border: 44px solid rgba(20, 108, 114, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.tivf-pro-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 46px;
    align-items: center;
}

.tivf-pro-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.55rem, 5.2vw, 5.15rem);
    line-height: 1.03;
    letter-spacing: 0;
    color: #11242a;
}

.tivf-pro-lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: #52636f;
    font-size: 1.14rem;
    line-height: 1.85;
}

.tivf-pro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tivf-pro-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 780px;
    margin-top: 34px;
}

.tivf-pro-metrics div {
    border: 1px solid rgba(20, 108, 114, 0.16);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.tivf-pro-metrics strong,
.tivf-pro-metrics span {
    display: block;
}

.tivf-pro-metrics strong {
    color: #102b31;
    font-size: 1.06rem;
}

.tivf-pro-metrics span {
    margin-top: 3px;
    color: var(--tivf-muted);
    font-size: 0.92rem;
}

.tivf-pro-hero-card {
    position: relative;
    border: 1px solid rgba(20, 108, 114, 0.17);
    border-radius: 22px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 72px rgba(20, 42, 48, 0.14);
    backdrop-filter: blur(14px);
}

.tivf-pro-hero-card::before {
    content: "";
    position: absolute;
    inset: 12px 12px auto auto;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 108, 114, 0.16), rgba(184, 135, 53, 0.16));
}

.tivf-pro-card-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.tivf-pro-card-head span {
    color: var(--tivf-muted);
    font-size: 0.92rem;
}

.tivf-pro-card-head strong {
    color: var(--tivf-primary-dark);
    font-size: 1.3rem;
}

.tivf-pro-hero-card form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.tivf-pro-hero-card input {
    min-height: 48px;
    border: 1px solid var(--tivf-border);
    border-radius: 12px;
    padding: 10px 13px;
    background: #fff;
}

.tivf-pro-hero-card button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    background: var(--tivf-primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.tivf-pro-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tivf-pro-chip-row a {
    border: 1px solid rgba(20, 108, 114, 0.16);
    border-radius: 999px;
    padding: 6px 11px;
    background: #f7fbfa;
    color: var(--tivf-primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.tivf-pro-strip {
    position: relative;
    z-index: 2;
    margin-top: -22px;
}

.tivf-pro-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tivf-pro-strip article {
    border: 1px solid var(--tivf-border);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-pro-strip span {
    color: var(--tivf-gold);
    font-weight: 900;
}

.tivf-pro-strip h2 {
    margin: 4px 0 6px;
    font-size: 1.18rem;
}

.tivf-pro-strip p {
    margin: 0;
    color: var(--tivf-muted);
}

.tivf-pro-section {
    padding: 70px 0;
}

.tivf-pro-muted {
    background: #f3f8f6;
}

.tivf-pro-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 38px;
    align-items: start;
}

.tivf-pro-section h2 {
    margin: 0;
    color: #11242a;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.tivf-pro-section-lead,
.tivf-pro-section-head p {
    max-width: 760px;
    color: var(--tivf-muted);
}

.tivf-pro-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.tivf-pro-decision-grid article,
.tivf-pro-note,
.tivf-pro-reading {
    border: 1px solid var(--tivf-border);
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-pro-decision-grid h3 {
    margin: 0 0 8px;
    color: var(--tivf-primary-dark);
    font-size: 1.13rem;
}

.tivf-pro-decision-grid p,
.tivf-pro-note p {
    margin: 0;
    color: var(--tivf-muted);
}

.tivf-pro-note {
    border-top: 5px solid var(--tivf-accent);
}

.tivf-pro-note h2,
.tivf-pro-reading h2 {
    font-size: 1.45rem;
}

.tivf-pro-section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.tivf-text-link {
    color: var(--tivf-primary-dark);
    font-weight: 800;
    white-space: nowrap;
}

.tivf-pro-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tivf-pro-topic-grid a {
    display: grid;
    min-height: 180px;
    border: 1px solid var(--tivf-border);
    border-radius: 20px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.98));
    color: var(--tivf-text);
    text-decoration: none;
    box-shadow: var(--tivf-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tivf-pro-topic-grid a:hover {
    border-color: rgba(20, 108, 114, 0.34);
    transform: translateY(-3px);
    box-shadow: var(--tivf-shadow);
}

.tivf-pro-topic-grid span {
    justify-self: start;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(20, 108, 114, 0.09);
    color: var(--tivf-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.tivf-pro-topic-grid strong {
    display: block;
    margin-top: 22px;
    font-size: 1.22rem;
}

.tivf-pro-topic-grid em {
    display: block;
    margin-top: 8px;
    color: var(--tivf-muted);
    font-style: normal;
}

.tivf-pro-reading {
    display: grid;
    gap: 10px;
}

.tivf-pro-reading a {
    display: block;
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--tivf-soft);
    color: var(--tivf-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

/* Override plugin output for a more editorial UI */
.ticc-hospital-cards {
    gap: 18px;
}

.ticc-hospital-card {
    position: relative;
    border: 1px solid rgba(20, 108, 114, 0.16);
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--tivf-shadow-soft);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ticc-hospital-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--tivf-primary), var(--tivf-gold));
}

.ticc-hospital-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 108, 114, 0.32);
    box-shadow: var(--tivf-shadow);
}

.ticc-hospital-card h3 {
    padding-right: 72px;
    font-size: 1.24rem;
    line-height: 1.3;
}

.ticc-hospital-card p {
    color: var(--tivf-muted);
}

.ticc-score-pill {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff5ee;
    color: var(--tivf-accent);
    font-size: 1rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(179, 91, 62, 0.18);
}

.ticc-score-pill span {
    font-size: 0.72rem;
}

.ticc-ranking-cards {
    display: grid;
    gap: 18px;
    margin: 22px 0 32px;
}

.ticc-ranking-card {
    border: 1px solid rgba(20, 108, 114, 0.16);
    border-radius: 18px;
    padding: 22px;
    background: linear-gradient(135deg, #ffffff, #f8fcfb);
    box-shadow: var(--tivf-shadow-soft);
}

.ticc-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.ticc-rank-num {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--tivf-primary-dark);
    color: #fff;
    font-weight: 900;
}

.ticc-rank-score {
    color: var(--tivf-accent);
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
}

.ticc-rank-score small {
    margin-left: 3px;
    font-size: 0.78rem;
}

.ticc-ranking-card h3 {
    margin: 0 0 6px;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.24;
}

.ticc-ranking-card h3 a {
    color: var(--tivf-text);
    text-decoration: none;
}

.ticc-ranking-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.ticc-ranking-meta div {
    border-radius: 12px;
    padding: 13px 14px;
    background: #f0f7f7;
}

.ticc-ranking-meta dt {
    color: var(--tivf-primary-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.ticc-ranking-meta dd {
    margin: 4px 0 0;
    color: var(--tivf-muted);
}

.ticc-ranking-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--tivf-border);
    border-radius: 16px;
    box-shadow: var(--tivf-shadow-soft);
}

.ticc-ranking-table th {
    background: var(--tivf-primary-dark);
    color: #fff;
}

.ticc-ranking-table td {
    background: #fff;
}

.ticc-ranking-table tr:nth-child(even) td {
    background: #f8fbfa;
}

/* v4 medical platform layout */
.tivf-platform {
    background: var(--tivf-platform-bg);
}

.tivf-platform-top {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(214, 224, 230, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.tivf-platform-searchbar {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 16px 0 12px;
}

.tivf-brand-block {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tivf-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tivf-primary), #1e9094);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.tivf-brand-block strong,
.tivf-brand-block small {
    display: block;
}

.tivf-brand-block strong {
    color: #10242a;
    font-size: 1.05rem;
}

.tivf-brand-block small {
    color: var(--tivf-muted);
    font-size: 0.82rem;
}

.tivf-platform-searchbar form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
}

.tivf-platform-searchbar input {
    min-height: 46px;
    border: 1px solid var(--tivf-border);
    border-radius: 12px;
    padding: 10px 14px;
    background: #f8fbfa;
}

.tivf-platform-searchbar button {
    border: 0;
    border-radius: 12px;
    background: var(--tivf-primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.tivf-quick-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 14px;
}

.tivf-quick-nav a {
    flex: 0 0 auto;
    border: 1px solid rgba(20, 108, 114, 0.16);
    border-radius: 999px;
    padding: 7px 13px;
    background: #fff;
    color: var(--tivf-primary-dark);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.tivf-platform-hero {
    padding: 28px 0 22px;
}

.tivf-platform-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.tivf-platform-hero-card {
    min-height: 320px;
    border-radius: 22px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(16, 78, 84, 0.96), rgba(20, 108, 114, 0.86)),
        #146c72;
    color: #fff;
    box-shadow: var(--tivf-shadow);
    overflow: hidden;
}

.tivf-platform-hero-card .tivf-kicker,
.tivf-platform-hero-card p {
    color: rgba(255, 255, 255, 0.84);
}

.tivf-platform-hero-card h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 4.6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.tivf-platform-hero-card p {
    max-width: 720px;
    font-size: 1.08rem;
}

.tivf-platform-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tivf-platform-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tivf-platform-modules a {
    border: 1px solid var(--tivf-border);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    text-decoration: none;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-platform-modules span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--tivf-gold);
    font-weight: 900;
}

.tivf-platform-modules strong {
    display: block;
    color: #12262c;
    line-height: 1.35;
}

.tivf-platform-side {
    display: grid;
    gap: 16px;
}

.tivf-platform-rank ol {
    margin: 0;
    padding-left: 24px;
}

.tivf-platform-rank li + li {
    margin-top: 10px;
}

.tivf-platform-section {
    padding: 34px 0;
}

.tivf-platform-muted {
    background: #edf4f2;
}

.tivf-section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.tivf-section-title-row h2 {
    margin: 0;
    color: #10242a;
    font-size: 1.9rem;
    line-height: 1.15;
}

.tivf-section-title-row > a {
    color: var(--tivf-primary-dark);
    font-weight: 900;
    white-space: nowrap;
}

.tivf-clean-list {
    margin: 0;
    padding-left: 20px;
}

.tivf-clean-list li + li {
    margin-top: 8px;
}

.tivf-qa-feed,
.tivf-article-feed,
.tivf-hospital-list {
    display: grid;
    gap: 14px;
}

.tivf-qa-item,
.tivf-list-card,
.tivf-article-feed article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid var(--tivf-border);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-list-card {
    grid-template-columns: 64px minmax(0, 1fr);
}

.tivf-avatar,
.tivf-hospital-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 108, 114, 0.14), rgba(184, 135, 53, 0.14));
    color: var(--tivf-primary-dark);
    font-weight: 900;
}

.tivf-hospital-badge {
    width: 58px;
    height: 58px;
}

.tivf-qa-item h2,
.tivf-qa-item h3,
.tivf-list-card h2,
.tivf-article-feed h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.35;
}

.tivf-qa-item p,
.tivf-list-card p,
.tivf-article-feed p {
    margin: 0;
    color: var(--tivf-muted);
}

.tivf-item-meta,
.tivf-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tivf-item-meta span,
.tivf-list-tags span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #edf6f3;
    color: var(--tivf-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.tivf-ask-card {
    display: grid;
    gap: 10px;
}

.tivf-ask-card a {
    border-radius: 12px;
    padding: 11px 12px;
    background: var(--tivf-soft);
    color: var(--tivf-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.tivf-platform-topic-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.tivf-platform-topic-grid a {
    min-height: 132px;
    border: 1px solid var(--tivf-border);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    text-decoration: none;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-platform-topic-grid b,
.tivf-platform-topic-grid span {
    display: block;
}

.tivf-platform-topic-grid b {
    color: #10242a;
    font-size: 1.06rem;
}

.tivf-platform-topic-grid span {
    margin-top: 8px;
    color: var(--tivf-muted);
    font-size: 0.9rem;
}

.tivf-article-feed article {
    grid-template-columns: 92px minmax(0, 1fr);
}

.tivf-article-feed article > span {
    color: var(--tivf-gold);
    font-weight: 900;
}

.tivf-cost-line {
    margin-top: 12px !important;
    color: var(--tivf-primary-dark) !important;
    font-weight: 700;
}

.tivf-list-header {
    padding: 44px 0 34px;
    background:
        linear-gradient(135deg, rgba(20, 108, 114, 0.11), rgba(255, 255, 255, 0.86)),
        #f3f8f6;
    border-bottom: 1px solid var(--tivf-border);
}

.tivf-list-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
}

.tivf-list-header p {
    max-width: 760px;
    color: var(--tivf-muted);
}

.tivf-pagination {
    margin-top: 22px;
}

.tivf-content-page {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.tivf-content-page h1 {
    max-width: 860px;
    margin: 0;
    color: #10242a;
    font-size: clamp(2rem, 3.2vw, 3.15rem);
    line-height: 1.16;
    letter-spacing: 0;
    font-weight: 800;
}

.tivf-page-lead {
    max-width: 780px;
    margin: 16px 0 28px;
    color: var(--tivf-muted);
    font-size: 1.04rem;
    line-height: 1.82;
}

.tivf-content-page h2 {
    margin-top: 32px;
    color: #10242a;
    font-size: 1.34rem;
    line-height: 1.25;
    font-weight: 800;
}

.tivf-mini-table-wrap {
    margin: 28px 0;
    overflow-x: auto;
}

.tivf-step-list {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

.tivf-step-list article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid var(--tivf-border);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-step-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--tivf-primary);
    color: #fff;
    font-weight: 900;
}

.tivf-step-list h2,
.tivf-decision-cards h2 {
    margin: 0 0 6px;
    font-size: 1.16rem;
}

.tivf-step-list p,
.tivf-decision-cards p {
    margin: 0;
    color: var(--tivf-muted);
}

.tivf-decision-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.tivf-decision-cards article {
    border: 1px solid var(--tivf-border);
    border-radius: 14px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-hub-page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.tivf-hub-page h1 {
    max-width: 860px;
    margin: 0;
    color: #10242a;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    line-height: 1.14;
    letter-spacing: 0;
    font-weight: 800;
}

.tivf-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.tivf-hub-grid a {
    display: block;
    min-height: 138px;
    border: 1px solid var(--tivf-border);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    color: var(--tivf-text);
    text-decoration: none;
    box-shadow: var(--tivf-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tivf-hub-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 108, 114, 0.34);
    box-shadow: var(--tivf-shadow);
}

.tivf-hub-grid b,
.tivf-hub-grid span {
    display: block;
}

.tivf-hub-grid b {
    color: #10242a;
    font-size: 1.05rem;
}

.tivf-hub-grid span {
    margin-top: 8px;
    color: var(--tivf-muted);
    font-size: 0.94rem;
}

.tivf-article-zone {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    margin: 34px 0;
    border: 1px solid var(--tivf-border);
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--tivf-shadow-soft);
}

.tivf-article-zone h2 {
    margin: 0;
    color: #10242a;
    font-size: 1.35rem;
}

.tivf-article-zone p {
    margin-bottom: 0;
    color: var(--tivf-muted);
}

.tivf-related-posts {
    display: grid;
    gap: 10px;
}

.tivf-related-posts a,
.tivf-related-empty {
    display: block;
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--tivf-soft);
    text-decoration: none;
}

.tivf-related-posts span,
.tivf-related-posts strong {
    display: block;
}

.tivf-related-posts span {
    color: var(--tivf-gold);
    font-size: 0.82rem;
    font-weight: 900;
}

.tivf-related-posts strong {
    margin-top: 4px;
    color: #10242a;
}

.tivf-related-empty {
    color: var(--tivf-muted);
}

.tivf-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tivf-faq-list details {
    border: 1px solid var(--tivf-border);
    border-radius: 8px;
    padding: 14px 16px;
    background: var(--tivf-white);
}

.tivf-faq-list details + details {
    margin-top: 12px;
}

.tivf-faq-list summary {
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 860px) {
    .tivf-platform-top {
        position: static;
    }

    .tivf-platform-searchbar,
    .tivf-platform-grid,
    .tivf-platform-modules,
    .tivf-platform-topic-grid,
    .tivf-article-feed article,
    .tivf-list-card {
        grid-template-columns: 1fr;
    }

    .tivf-platform-searchbar form {
        grid-template-columns: 1fr;
    }

    .tivf-platform-hero-card {
        min-height: auto;
        padding: 24px;
    }

    .tivf-section-title-row {
        display: block;
    }

    .tivf-section-title-row > a {
        display: inline-block;
        margin-top: 10px;
        white-space: normal;
    }

    .tivf-platform-section {
        padding: 28px 0;
    }

    .tivf-platform-topic-grid a {
        min-height: auto;
    }

    .tivf-content-page {
        padding: 38px 0;
    }

    .tivf-step-list article,
    .tivf-decision-cards,
    .tivf-hub-grid {
        grid-template-columns: 1fr;
    }

    .tivf-hub-page {
        padding: 38px 0;
    }

    .tivf-hub-grid a {
        min-height: auto;
    }

    .tivf-article-zone {
        grid-template-columns: 1fr;
    }

    .tivf-pro-hero {
        padding: 48px 0 40px;
    }

    .tivf-pro-hero-grid,
    .tivf-pro-split,
    .tivf-pro-strip-grid,
    .tivf-pro-decision-grid,
    .tivf-pro-topic-grid,
    .tivf-pro-metrics {
        grid-template-columns: 1fr;
    }

    .tivf-pro-hero-card form {
        grid-template-columns: 1fr;
    }

    .tivf-pro-section {
        padding: 48px 0;
    }

    .tivf-pro-section-head {
        display: block;
    }

    .tivf-text-link {
        display: inline-block;
        margin-top: 12px;
        white-space: normal;
    }

    .tivf-pro-topic-grid a {
        min-height: auto;
    }

    .tivf-home-hero-inner,
    .tivf-home-two-col {
        grid-template-columns: 1fr;
    }

    .tivf-home-facts,
    .tivf-topic-grid,
    .tivf-reading-grid {
        grid-template-columns: 1fr;
    }

    .tivf-home-search-panel form {
        grid-template-columns: 1fr;
    }

    .tivf-layout {
        grid-template-columns: 1fr;
    }

    .tivf-sidebar {
        order: -1;
    }

    .tivf-fact-grid {
        grid-template-columns: 1fr;
    }

    .ticc-ranking-meta {
        grid-template-columns: 1fr;
    }

    .ticc-ranking-table-wrap {
        overflow-x: auto;
    }

    .ticc-hospital-card h3 {
        padding-right: 0;
    }

    .ticc-score-pill {
        position: static;
        margin-bottom: 12px;
    }

    .tivf-choice-grid {
        grid-template-columns: 1fr;
    }
}
