/* Google Font for Bitter */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700&display=swap');

.topic-hub-hero {
    background-color: #fff0f6;
    /* Lighter pink tint */
    /* Reference bg color */
    padding: 1rem 0;
    margin-bottom: 0;
    /* Remove margin as Jump To nav might sit right below */
    background-image: radial-gradient(#fcc2d7 1px, transparent 1px);
    /* Pink dots */
    background-size: 20px 20px;
    /* Dot pattern simulation */
}

.topic-hub-hero h1 {
    font-family: 'Bitter', serif;
    font-size: 30px;
    font-weight: 700;
    color: #000;
    line-height: 40px;
}

/* Jump To Navigation (Sticky) */
.jump-to-nav-wrapper {
    position: sticky;
    top: 70px;
    /* Adjust based on main header height */
    z-index: 100;
    background: #fff;
    box-shadow: 0px 6px 15px 0px rgb(240, 240, 240);
    padding: 15px 0;
    margin-bottom: 3rem;
    transition: top 0.3s;
}

.jump-to-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #000;
    /* Default border */
    color: rgb(70, 70, 70);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.2s;
}

.jump-to-link:hover {
    background-color: #f0f0f0;
    color: #000;
}

.jump-to-link.active {
    background-color: #a61e4d;
    /* Darker pink */
    color: #fff;
    border-color: #a61e4d;
}

/* Content Cards */
.content-card {
    background-color: #fff;
    /* Revert to white background for clean look with gray border */
    border: 1px solid #9ca3af;
    /* Footer link color */
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    border-color: #d63384;
    /* Pink border on hover for interactivity */
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f8f9fa;
    /* Light gray bg */
    border: 1px solid #9ca3af;
    /* Footer link color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #d63384;
    /* KEEP Pink Icon */
    margin-bottom: 1.5rem;
}

.card-icon i {
    color: #d63384;
}

.content-card h3 {
    font-family: 'Bitter', serif;
    font-weight: 700;
    font-size: 22px;
    color: #000;
    margin-bottom: 1rem;
}

.content-card p {
    font-family: 'Bitter', serif;
    font-size: 15px;
    line-height: 23px;
    color: #333;
}

/* Handle inline content without paragraph tags in content preview */
.content-preview > span,
.content-preview > b {
    display: block;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

/* Bold headings/section titles - create visual breaks */
.content-preview > b {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: rgb(56, 70, 73);
}

.content-preview > b:first-child {
    margin-top: 0;
}

/* Consecutive spans should flow together (inline) */
.content-preview > span + span {
    display: inline;
    margin-top: 0;
    margin-bottom: 0;
}

/* When a span is followed by a bold heading, add spacing before the bold */
.content-preview > span + b {
    margin-top: 2rem;
}

/* When a span is followed by a blockquote, add spacing before the blockquote */
.content-preview > span + blockquote {
    margin-top: 1.75rem;
}

/* When a blockquote is followed by a span, add spacing after the blockquote */
.content-preview > blockquote + span {
    margin-top: 1.75rem;
}

/* When a blockquote is followed by a bold heading, add spacing */
.content-preview > blockquote + b {
    margin-top: 2rem;
}

/* Last span in content should have bottom margin */
.content-preview > span:last-child {
    margin-bottom: 1.75rem;
}

/* Expand Button */
.btn-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 14px;
    /* Pill shape */
    color: #d63384;
    /* Pink text */
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
}

.btn-expand:hover {
    background-color: #d63384;
    color: #fff;
    border-color: #d63384;
}


.btn-expand i {
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Hide Scrollbar Utility */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Mobile Responsive Styles for Content Cards */
@media (max-width: 991.98px) {
    .content-card {
        padding: 1rem !important;
        border-radius: 12px;
    }

    .content-card .card-body {
        padding: 0 !important;
    }

    .content-card h3 {
        font-size: 18px;
        margin-bottom: 0.75rem;
    }

    .content-card .content-preview {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .btn-expand {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Container padding adjustment */
    .container-fluid.px-lg-5 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Reduce row gap on mobile */
    .row.g-3.g-lg-4 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }
}

@media (max-width: 576px) {
    .content-card {
        padding: 0.75rem !important;
        border-radius: 10px;
    }

    .content-card h3 {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }

    .content-card .content-preview {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .btn-expand {
        padding: 6px 12px;
        font-size: 12px;
    }

    .container-fluid.px-lg-5 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Further reduce row gap on small screens */
    .row.g-3.g-lg-4 {
        --bs-gutter-y: 0.5rem;
        --bs-gutter-x: 0.5rem;
    }
}