/* Sections added to the homepage, and the inner pages (blog, conditions).
   Built from the variables and components in jeeva.css so they match the original design. */

/* Navigation dropdowns, shown on hover or keyboard focus */
.nav-item {
    position: relative;
}

.nav-caret {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 230px;
    margin-top: 18px;
    padding: 12px 0;
    background: rgba(43, 24, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid var(--gold);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 40px rgba(17, 10, 6, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

/* Bridges the gap between the menu item and the panel so the pointer can cross it. */
.nav-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 20px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 500px;
}

.nav-dropdown a {
    display: block;
    padding: 9px 24px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: color var(--transition-fast), padding-left var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    color: var(--gold-light);
    padding-left: 30px;
    background: rgba(255, 255, 255, 0.04);
}

.nav-links .nav-link,
.nav-links .nav-cta {
    white-space: nowrap;
}

/* Tighter spacing on smaller laptops, so the menu stays on one line next to the logo. */
@media (max-width: 1280px) {
    .nav-links { gap: 20px; }
    .nav-link { font-size: 0.95rem; }
    .nav-logo-name { font-size: 1.2rem; }
}

/* Cards that menu links point to stop below the fixed navbar, and are outlined briefly. */
.condition-card,
.package-card {
    scroll-margin-top: 110px;
}

.menu-target {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Hero video, over the original slideshow, which stays as the fallback */
.hero-video {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(1.1);
}

.hero-video.active {
    display: block;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro {
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Doctors */
.doctors {
    background: white;
}

.doctors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.doctor-card {
    flex: 1 1 300px;
    max-width: 380px;
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.doctor-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.doctor-body {
    padding: 28px;
    text-align: center;
}

.doctor-name {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.doctor-role {
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 14px;
}

.doctor-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.doctor-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 14px;
}

/* Why Choose */
.why-choose {
    background: var(--cream);
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.why-card {
    flex: 1 1 320px;
    max-width: 440px;
}

.why-card .info-card-text {
    margin-bottom: 0;
}

.why-cta {
    max-width: 720px;
    margin: 64px auto 0;
    text-align: center;
}

.why-cta h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.why-cta p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.why-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

/* Treatment journey */
.journey {
    background: white;
}

.journey-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .journey-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .journey-grid { grid-template-columns: 1fr; }
}

.journey-step {
    padding: 36px 28px;
    background: var(--cream);
    border-radius: 16px;
    text-align: center;
}

.journey-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.journey-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ */
.faq {
    background: var(--warm-white);
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 28px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Blog cards, on the homepage and the blog pages */
.home-blog {
    background: var(--cream);
}

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

@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 28px;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--gold-dark);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.post-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.post-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-actions {
    text-align: center;
    margin-top: 48px;
}

/* Inner pages */
.inner-page .nav {
    background: rgba(43, 24, 16, 0.96);
}

.page-hero {
    padding: 170px 0 80px;
    background:
        radial-gradient(ellipse at top, rgba(196, 148, 74, 0.22), transparent 60%),
        linear-gradient(160deg, var(--deep), #1A0E08);
    color: white;
    text-align: center;
}

.page-hero .eyebrow {
    margin: 24px 0 0;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin: 18px auto 0;
    max-width: 960px;
}

.page-hero-sub {
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .btn {
    margin-top: 32px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 8px;
    color: var(--gold);
}

.breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb [aria-current] {
    color: rgba(255, 255, 255, 0.9);
}

.page-section {
    padding: 80px 0;
    background: var(--warm-white);
}

.page-section.alt {
    background: var(--cream);
}

.page-body {
    max-width: 840px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero { padding: 130px 0 60px; }
    .page-section { padding: 56px 0; }
}

/* Article text */
.prose {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
    margin-bottom: 1.2em;
}

.prose h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--deep);
    margin: 2em 0 0.7em;
}

.prose h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 1.6em 0 0.5em;
}

.prose h2:first-child,
.prose h3:first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose a:not(.btn) {
    color: var(--gold-dark);
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.prose blockquote {
    padding: 20px 28px;
    border-left: 3px solid var(--gold);
    background: var(--cream);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
}

.prose hr {
    border: none;
    height: 1px;
    margin: 2.4em 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--cream-dark);
    text-align: left;
}

.notice {
    padding: 18px 24px;
    background: var(--cream);
    border-left: 4px solid var(--saffron);
    border-radius: 0 12px 12px 0;
}

.toc {
    margin-bottom: 48px;
}

.toc h2 {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.toc ol {
    margin: 0;
    padding-left: 1.2em;
}

.toc a {
    color: var(--gold-dark);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.condition-steps {
    list-style: none;
    padding-left: 0 !important;
    counter-reset: step;
}

.condition-steps li {
    counter-increment: step;
    position: relative;
    padding: 20px 24px 20px 84px;
    margin-bottom: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.condition-steps li::before {
    content: counter(step);
    position: absolute;
    left: 24px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-steps strong {
    display: block;
    margin-bottom: 4px;
}

.cta-panel {
    margin-top: 56px;
    padding: 48px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    background:
        radial-gradient(ellipse at top, rgba(196, 148, 74, 0.25), transparent 65%),
        linear-gradient(160deg, var(--deep), #1A0E08);
}

.cta-panel h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: white;
    margin: 0 0 16px;
}

.cta-panel p {
    max-width: 640px;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-panel .btn {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .cta-panel { padding: 36px 22px; }
}

.disclaimer {
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Blog list */
.blog-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

a.filter-btn {
    text-decoration: none;
}

.blog-search {
    display: flex;
    gap: 10px;
    flex: 1 1 320px;
    max-width: 460px;
}

.blog-search .form-input {
    flex: 1;
}

.blog-search .btn {
    padding: 12px 24px;
}

.empty-note {
    text-align: center;
    color: var(--text-secondary);
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 56px;
    color: var(--text-secondary);
}

/* Blog post */
.post-cover {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.post-tags a {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.page-hero .post-meta {
    color: var(--gold-light);
    margin: 18px 0 0;
}

.preview-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 12px 20px;
    background: var(--saffron);
    color: var(--deep);
    font-weight: 600;
    text-align: center;
}

/* Treatment and condition pages */
a.treatment-img {
    display: block;
}

.treatment-more {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.treatment-more:hover {
    text-decoration: underline;
}

.treatments-more a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 18px 0 0;
    font-size: 0.9rem;
    color: var(--gold-light);
}

.chip-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.2em;
}

.prose .chip-links a.filter-btn {
    color: var(--text-primary);
    text-decoration: none;
}

.prose .chip-links a.filter-btn:hover {
    color: white;
}

.prose h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
}

a.condition-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.condition-link .condition-name {
    font-size: 1.2rem;
}

.prose img.treatment-figure {
    float: right;
    width: 400px;
    max-width: 45%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    margin: 0 0 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.prose h2 {
    clear: both;
}

@media (max-width: 640px) {
    .prose img.treatment-figure {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 24px;
    }
}

.page-section .conditions-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

/* Women's health packages, a second row under the main packages */
.packages-subhead {
    margin: 72px 0 32px;
    color: white;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
}

.packages-subhead em {
    font-style: normal;
    color: var(--gold);
}

.packages-grid-three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .packages-grid-three {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

.package-price.on-request {
    font-size: 1.35rem;
    line-height: 1.6;
}

.package-more {
    display: block;
    margin: -12px 0 20px;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}
