/* ==========================================================================
   Care section — "Teach the Public How to Get Well"
   Layers on top of the main Truth About Nursing stylesheet.
   Only adds .care-* classes, so it cannot affect any other section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.care-breadcrumb {
    font-size: 0.8rem;
    color: #64748b;
    margin: 1.25rem 0 0.5rem;
}
.care-breadcrumb a {
    color: #2d4a6e;
    text-decoration: none;
    font-weight: 500;
}
.care-breadcrumb a:hover { color: #e27c2e; text-decoration: underline; }
.care-breadcrumb span { margin: 0 0.5rem; color: #b6c2cd; }

/* --------------------------------------------------------------------------
   Article body
   Long-form health guidance — optimised for sustained reading.
   -------------------------------------------------------------------------- */
.care-article {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2f3e4f;
    max-width: 68ch;
}
.care-article p { margin-bottom: 1.15rem; }

.care-article > p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.65;
    color: #2d4a6e;
    font-weight: 500;
}

.care-article h2.section-title {
    font-size: 1.45rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.care-article h3 {
    font-size: 1.15rem;
    color: #2d4a6e;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.care-article a {
    color: #c55a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.care-article a:hover { color: #e27c2e; }

.care-article ul,
.care-article ol { margin-bottom: 1.15rem; padding-left: 1.4rem; }
.care-article li { margin-bottom: 0.5rem; }

.care-article img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(45, 74, 110, 0.12);
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
}
/* Floated figures shouldn't crowd the text */
.care-article .float-md-end { max-width: 46%; }
.care-article .float-md-start { max-width: 46%; }

.care-article blockquote {
    border-left: 4px solid #e27c2e;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.care-article table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}
.care-article table td,
.care-article table th {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #dee5ea;
    vertical-align: top;
}
.care-article table th {
    background: #f8fafc;
    color: #2d4a6e;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Author byline
   -------------------------------------------------------------------------- */
.care-byline {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-top: 2.5rem;
    padding: 1.1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #eef2f5;
    border-left: 4px solid #e27c2e;
    border-radius: 0 14px 14px 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}
.care-byline i {
    color: #e27c2e;
    font-size: 1.15rem;
    margin-top: 0.15rem;
}
.care-byline a { color: #c55a1a; }

/* --------------------------------------------------------------------------
   "More from this section" — compact links at the foot of an article
   -------------------------------------------------------------------------- */
.care-mini {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    height: 100%;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #eef2f5;
    border-radius: 14px;
    text-decoration: none;
    color: #2d4a6e;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.care-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(45, 74, 110, 0.1);
    border-color: #e27c2e;
    color: #2d4a6e;
}
.care-mini i {
    color: #e27c2e;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Index page cards
   -------------------------------------------------------------------------- */
.care-card {
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(45, 74, 110, 0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.care-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(45, 74, 110, 0.12);
    border-color: #e27c2e;
}
.care-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2d4a6e 0%, #4a7a9c 100%);
    color: #f2c94c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.care-card-title {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d4a6e;
    line-height: 1.35;
    margin: 0 0 0.4rem;
}
.care-card-text {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 0.6rem;
}
.care-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e27c2e;
}
.care-card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s;
    margin-left: 0.15rem;
}
.care-card:hover .care-card-link i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .care-article { font-size: 1rem; }
    .care-article > p:first-of-type { font-size: 1.08rem; }
    .care-article .float-md-end,
    .care-article .float-md-start {
        max-width: 100%;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block;
    }
    .care-card { flex-direction: column; gap: 0.75rem; padding: 1.15rem; }
    .care-byline { flex-direction: column; gap: 0.5rem; }
}
