/*
Theme Name: Hegde Fertility Magazine
Theme URI: https://hegdefertility.com/blog/
Description: SEO-first news and knowledge magazine child theme for the Hegde Fertility blog.
Author: Hegde Fertility
Template: ceris
Version: 1.0.2
Text Domain: hegde-magazine
*/

:root {
    --hfm-ink: #17222d;
    --hfm-muted: #607080;
    --hfm-brand: #ef5227;
    --hfm-brand-dark: #c93b17;
    --hfm-teal: #087f7a;
    --hfm-soft: #fff4ef;
    --hfm-line: #e7ebee;
    --hfm-paper: #ffffff;
    --hfm-shadow: 0 14px 38px rgba(23, 34, 45, .09);
}

.hfm-home {
    background: #f7f8f9;
    color: var(--hfm-ink);
    padding-bottom: 72px;
}

.hfm-wrap {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.hfm-masthead {
    background:
        radial-gradient(circle at 88% 18%, rgba(239, 82, 39, .14), transparent 32%),
        linear-gradient(135deg, #fff 0%, #fff8f4 100%);
    border-bottom: 1px solid #f0ded5;
    padding: 54px 0 38px;
}

.hfm-category-head {
    background: linear-gradient(135deg, #fff 0%, var(--hfm-soft) 100%);
    border-bottom: 1px solid #f0ded5;
    padding: 42px 0 34px;
}

.hfm-breadcrumbs {
    color: #77838e;
    font-size: 13px;
    margin-bottom: 13px;
}

.hfm-breadcrumbs a {
    color: var(--hfm-brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.hfm-category-head h1 {
    color: var(--hfm-ink);
    font-size: clamp(32px, 4.5vw, 50px);
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0;
}

.hfm-category-head p {
    color: #566573;
    font-size: 17px;
    line-height: 1.65;
    margin: 14px 0 0;
    max-width: 820px;
}

.hfm-eyebrow,
.hfm-kicker {
    color: var(--hfm-brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hfm-masthead h1 {
    color: var(--hfm-ink);
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -.035em;
    line-height: 1.04;
    margin: 8px 0 14px;
    max-width: 820px;
}

.hfm-intro {
    color: #4c5b68;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
    margin: 0;
    max-width: 800px;
}

.hfm-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.hfm-topics a {
    background: var(--hfm-paper);
    border: 1px solid #eadbd4;
    border-radius: 999px;
    color: #33414d;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.hfm-topics a:hover,
.hfm-topics a:focus-visible {
    border-color: var(--hfm-brand);
    color: var(--hfm-brand-dark);
    transform: translateY(-1px);
}

.hfm-section {
    padding-top: 48px;
}

.hfm-section-head {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.hfm-section-head h2 {
    color: var(--hfm-ink);
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 4px 0 0;
}

.hfm-section-head > a {
    color: var(--hfm-brand-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.hfm-feature-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

.hfm-feature-stack {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hfm-card {
    background: var(--hfm-paper);
    border: 1px solid var(--hfm-line);
    border-radius: 15px;
    box-shadow: 0 6px 24px rgba(23, 34, 45, .05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}

.hfm-card:hover {
    box-shadow: var(--hfm-shadow);
    transform: translateY(-3px);
}

.hfm-card__image {
    aspect-ratio: 4 / 3;
    background: #e9edef;
    display: block;
    overflow: hidden;
}

.hfm-card__image img {
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: transform .35s ease;
    width: 100%;
}

.hfm-card:hover .hfm-card__image img {
    transform: none;
}

.hfm-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.hfm-card__category {
    align-self: flex-start;
    color: var(--hfm-brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    margin-bottom: 9px;
    text-decoration: none;
    text-transform: uppercase;
}

.hfm-card h2,
.hfm-card h3 {
    color: var(--hfm-ink);
    font-size: 21px;
    letter-spacing: -.018em;
    line-height: 1.28;
    margin: 0;
}

.hfm-card h2 a,
.hfm-card h3 a {
    color: inherit;
    text-decoration: none;
}

.hfm-card__excerpt {
    color: var(--hfm-muted);
    font-size: 14px;
    line-height: 1.62;
    margin: 12px 0 0;
}

.hfm-card__meta {
    color: #71808d;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 5px 12px;
    margin-top: auto;
    padding-top: 15px;
}

.hfm-card--lead {
    box-shadow: var(--hfm-shadow);
}

.hfm-card--lead .hfm-card__image {
    aspect-ratio: 4 / 3;
}

.hfm-card--lead .hfm-card__body {
    padding: 25px;
}

.hfm-card--lead h2 {
    font-size: clamp(25px, 3.2vw, 38px);
    line-height: 1.16;
}

.hfm-card--compact .hfm-card__body {
    padding: 14px;
}

.hfm-card--compact h3 {
    font-size: 16px;
    line-height: 1.3;
}

.hfm-card--compact .hfm-card__excerpt,
.hfm-card--compact .hfm-card__meta span:first-child {
    display: none;
}

.hfm-latest-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hfm-latest-grid .hfm-card h3 {
    font-size: 19px;
}

.hfm-answer-panel {
    background: #123b3a;
    border-radius: 18px;
    color: #fff;
    display: grid;
    gap: 28px;
    grid-template-columns: .85fr 1.65fr;
    overflow: hidden;
    padding: clamp(28px, 5vw, 52px);
    position: relative;
}

.hfm-answer-panel::after {
    background: var(--hfm-brand);
    border-radius: 50%;
    content: '';
    height: 180px;
    opacity: .16;
    position: absolute;
    right: -70px;
    top: -75px;
    width: 180px;
}

.hfm-answer-panel h2 {
    color: #fff;
    font-size: clamp(27px, 3.5vw, 39px);
    letter-spacing: -.025em;
    line-height: 1.12;
    margin: 6px 0 12px;
}

.hfm-answer-panel__intro {
    color: #cfe0df;
    line-height: 1.65;
}

.hfm-faq {
    display: grid;
    gap: 12px;
    margin: 0;
}

.hfm-faq > div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    padding: 17px 18px;
}

.hfm-faq dt {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.hfm-faq dd {
    color: #d8e5e4;
    font-size: 14px;
    line-height: 1.6;
    margin: 7px 0 0;
}

.hfm-spotlights {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hfm-spotlight {
    background: var(--hfm-paper);
    border: 1px solid var(--hfm-line);
    border-radius: 15px;
    padding: 21px;
}

.hfm-spotlight h3 {
    border-bottom: 2px solid var(--hfm-brand);
    color: var(--hfm-ink);
    font-size: 22px;
    margin: 0 0 5px;
    padding-bottom: 12px;
}

.hfm-spotlight__item {
    border-bottom: 1px solid var(--hfm-line);
    padding: 14px 0;
}

.hfm-spotlight__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hfm-spotlight__item a {
    color: var(--hfm-ink);
    display: block;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.42;
    text-decoration: none;
}

.hfm-spotlight__item time {
    color: #7c8994;
    display: block;
    font-size: 11px;
    margin-top: 6px;
}

.hfm-pagination {
    margin-top: 40px;
}

.hfm-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.hfm-pagination .page-numbers {
    align-items: center;
    background: #fff;
    border: 1px solid var(--hfm-line);
    border-radius: 8px;
    color: var(--hfm-ink);
    display: inline-flex;
    font-weight: 700;
    min-height: 42px;
    min-width: 42px;
    padding: 8px 13px;
    text-decoration: none;
}

.hfm-pagination .page-numbers.current,
.hfm-pagination a.page-numbers:hover {
    background: var(--hfm-brand);
    border-color: var(--hfm-brand);
    color: #fff;
}

.hfm-sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.fixed-appontment {
    bottom: auto !important;
    display: block !important;
    left: auto !important;
    margin: 0 !important;
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 9999 !important;
}

.fixed-appontment img {
    display: block;
    height: auto;
    margin: 0;
    max-width: none;
    width: 58px;
}

@media (max-width: 900px) {
    .hfm-feature-grid,
    .hfm-answer-panel {
        grid-template-columns: 1fr;
    }

    .hfm-latest-grid,
    .hfm-spotlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hfm-wrap {
        width: min(100% - 24px, 1180px);
    }

    .hfm-masthead {
        padding: 36px 0 28px;
    }

    .hfm-section {
        padding-top: 34px;
    }

    .hfm-feature-stack,
    .hfm-latest-grid,
    .hfm-spotlights {
        grid-template-columns: 1fr;
    }

    .hfm-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hfm-card--compact {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .hfm-card--compact .hfm-card__image {
        aspect-ratio: auto;
        height: 100%;
        min-height: 135px;
    }

    .hfm-card--lead .hfm-card__body {
        padding: 19px;
    }
}

@media (max-width: 768px) {
    .fixed-appontment {
        display: none !important;
    }

    #hegede-cta-bar {
        align-items: center;
        bottom: 0 !important;
        display: flex !important;
        justify-content: center;
        left: 0 !important;
        margin: 0 !important;
        min-height: 56px;
        position: fixed !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        z-index: 9998 !important;
    }
}

@media (min-width: 769px) {
    #hegede-cta-bar {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hfm-card,
    .hfm-card__image img,
    .hfm-topics a {
        transition: none;
    }
}
