/**
 * Main Stylesheet - HelpingParentsAge.com
 * Consolidated styles for entire site
 * Version: 2.3 - WITH WEBP HERO IMAGE FIXES
 * Last Updated: January 2026
 * FIXES APPLIED:
 * - Hero images now use optimized WebP versions
 * - Hero buttons centered on mobile
 * - Article page meta wrapping (scoped to avoid carousel conflict)
 * - Breadcrumb overflow handling
 * - Global overflow prevention for images/tables
 */

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: #1f2937;
    background: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1f2937;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #374151;
}

a {
    color: #0891b2;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover { color: #0e7490; }

a:focus {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
    border-radius: 2px;
}

strong {
    font-weight: 600;
    color: #1f2937;
}

em { font-style: italic; }

ul, ol { margin: 1rem 0 1rem 2rem; }
li { margin-bottom: 0.5rem; }

blockquote {
    border-left: 4px solid #0891b2;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #64748b;
}

code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* ============================================
   3. LAYOUT & CONTAINER
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section { padding: 4rem 2rem; }
.section-alt { background: #f8fafb; }

/* ============================================
   4. BUTTONS & CTAs
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

.btn-primary {
    background: #f97316;
    color: white;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: #0891b2;
    color: white;
}

.btn-secondary:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

.btn-outline {
    background: white;
    color: #0891b2;
    border: 2px solid #0891b2;
}

.btn-outline:hover {
    background: #0891b2;
    color: white;
}

.btn-full { width: 100%; }

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   5. FORMS & INPUTS
   ============================================ */

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    color: #1f2937;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #ef4444;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
}

.form-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ============================================
   6. CARDS & WIDGETS
   ============================================ */

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header { margin-bottom: 1.5rem; }

.card-title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.info-box {
    background: #f0f9ff;
    border-left: 4px solid #0891b2;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #f97316;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.success-box {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.error-box {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* ============================================
   7. BREADCRUMBS
   ============================================ */

.breadcrumbs {
    background: #f8fafb;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs-content {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #64748b;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #64748b;
    font-weight: normal;
}

.breadcrumbs a {
    color: #0891b2;
    text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .separator { margin: 0 0.5rem; }

/* Breadcrumb title overflow fix */
.breadcrumbs-content span[aria-current="page"] {
    word-break: break-word;
}

/* ============================================
   8. HERO SECTIONS
   UPDATED: Now uses optimized WebP images
   ============================================ */

.hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.85), rgba(6, 182, 212, 0.75)),
                url('/images/herohomepage-featured.webp') center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-content { max-width: 900px; }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.cta-primary {
    background: #f97316;
    color: white;
}

.cta-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.cta-secondary {
    background: white;
    color: #0891b2;
}

.cta-secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-hero {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   9. ARTICLE PAGES
   ============================================ */

.article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
}

.article-header { margin-bottom: 2rem; }

.category-badge {
    display: inline-block;
    background: #dbeafe;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* SCOPED: Article page meta - won't conflict with carousel meta */
.article-main .article-meta,
.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-image-container {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: transparent;
    padding: 0;
    line-height: 0;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    margin: 0;
    padding: 0;
    border: none;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-content h2 {
    font-size: 1.875rem;
    color: #0891b2;
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.article-content p { margin-bottom: 1.5rem; }

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-content li { margin-bottom: 0.75rem; }

/* Article content overflow prevention */
.article-content pre,
.article-content code {
    overflow-x: auto;
    max-width: 100%;
}

.article-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

/* Sources Section */
.sources-section {
    margin: 3rem 0;
    padding: 1.75rem;
    background: #f8fafb;
    border-left: 4px solid #0891b2;
    border-radius: 8px;
}

.sources-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.sources-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sources-section li {
    padding: 0.65rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sources-section li:last-child { border-bottom: none; }

.sources-section strong {
    color: #0891b2;
    font-weight: 600;
}

/* Inline Lead Forms */
.inline-lead-form {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0891b2;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 3rem 0;
}

.inline-lead-form h3 {
    color: #0891b2;
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

.inline-lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.6rem;
    align-items: end;
}

.inline-lead-form .form-group { margin: 0; }

.inline-lead-form label {
    display: block;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.inline-lead-form input {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: white;
    color: #1f2937;
}

.inline-lead-form input:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.inline-lead-form .submit-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    height: 38px;
    min-width: 44px;
    min-height: 44px;
}

.inline-lead-form .submit-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.inline-lead-form .trust-line {
    text-align: center;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    line-height: 1;
}

.inline-lead-form .trust-icon {
    color: #10b981;
    margin: 0 0.4rem;
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border: 2px solid #0891b2;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.15);
    margin-bottom: 2rem;
}

.sidebar-widget h3,
.sidebar-widget h4 {
    color: #0891b2;
    margin-bottom: 1rem;
}

.related-articles {
    background: #f8fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: none;
}

.related-article {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.related-article:last-child { border-bottom: none; }

.related-article a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.related-article a:hover {
    color: #0e7490;
    text-decoration: underline;
}

.related-article p {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* ============================================
   10. HOMEPAGE SPECIFIC - WITH OPTIMIZED HERO IMAGES
   UPDATED: Care section images now use WebP
   ============================================ */

/* Care Sections */
.care-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.care-section:nth-of-type(even) {
    flex-direction: row-reverse;
    background: #f8fafb;
}

.care-content {
    flex: 1;
    max-width: 700px;
}

.care-content h2 {
    font-size: 2.5rem;
    color: #0891b2;
    margin-bottom: 1.5rem;
}

.care-content p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.care-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.care-content li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    color: #334155;
}

.care-content li:before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.3rem;
}

.care-image {
    width: 500px;
    height: 500px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15rem;
    box-shadow: 0 10px 40px rgba(8, 145, 178, 0.15);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.care-image-memory {
    background-image: linear-gradient(135deg, rgba(219, 234, 254, 0.15) 0%, rgba(191, 219, 254, 0.15) 100%),
                      url('/images/memorycarehero-featured.webp');
}

.care-image-senior {
    background-image: linear-gradient(135deg, rgba(219, 234, 254, 0.15) 0%, rgba(191, 219, 254, 0.15) 100%),
                      url('/images/seniorlivinghero-featured.webp');
}

.learn-more {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.875rem 2rem;
    background: #f97316;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.learn-more:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

/* Article Carousel Styles */
.recent-articles {
    padding: 5rem 2rem;
    background: white;
    overflow-x: hidden;
    max-width: 100vw;
}

.recent-articles.alt-bg { 
    background: #f8fafb;
    overflow-x: hidden;
}

.articles-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0891b2;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    padding: 0 3rem;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.articles-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    width: auto;
}

.article-card {
    width: 270px;
    min-width: 270px;
    max-width: 270px;
    flex: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    position: relative;
}

.article-image-photo {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    font-size: 0;
    background-color: #f1f5f9;
}

/* Carousel article card content - NOT the article page content */
.article-card .article-content {
    padding: 0.875rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background: #dbeafe;
    color: #0891b2;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.article-card .article-content h3 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.article-card .article-content h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card .article-content h3 a:hover { color: #0891b2; }

.article-excerpt {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.625rem;
    flex: 1;
    line-height: 1.4;
}

/* Carousel card meta - different from article page meta */
.article-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: auto;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s;
    color: #0891b2;
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-nav:hover {
    background: #0891b2;
    color: white;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

.carousel-nav.prev { left: -25px; }
.carousel-nav.next { right: -25px; }

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background: white;
    color: #0891b2;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.indicator.active {
    background: #0891b2;
    width: 32px;
    border-radius: 6px;
}

.indicator:hover { background: #0891b2; }

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #0891b2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

/* Visual Swipe Indicators - Mobile Only */
@media (max-width: 968px) {
    .carousel-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
        pointer-events: none;
        z-index: 5;
    }
    
    .carousel-container::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
        pointer-events: none;
        z-index: 5;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .carousel-container.not-at-start::before {
        opacity: 1;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 2rem;
    background: #f8fafb;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.8rem;
    color: #0891b2;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.step-card p {
    color: #64748b;
    line-height: 1.7;
}

/* ============================================
   11. FOOTER
   ============================================ */

.site-footer {
    background: #1e293b;
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li { margin-bottom: 0.75rem; }

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.footer-section a:hover {
    color: #06b6d4;
    text-decoration: underline;
}

.footer-section a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-about { grid-column: 1 / -1; }

.footer-about h3 {
    color: #0891b2;
    font-size: 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.footer-disclaimer h4 {
    color: #0891b2;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-disclaimer p:last-child { margin-bottom: 0; }

.footer-disclaimer strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #06b6d4;
    text-decoration: underline;
}

.footer-legal-links a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.footer-legal-links .separator { color: rgba(255, 255, 255, 0.3); }

.footer-equal-housing {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding-top: 1rem;
}

/* ============================================
   12. LEGAL PAGES - ADA COMPLIANT
   ============================================ */

/* Legal Page Headers */
.legal-page-header {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 0;
}

/* Terms of Service - Different Header Color */
.legal-page-header.tos-header {
    background: linear-gradient(135deg, #20b2aa 0%, #ff7f50 100%);
}

.legal-page-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-page-header .last-updated {
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

/* Legal Content Container */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

/* Legal Article Styling */
.legal-article h2 {
    font-size: 1.75rem;
    color: #0891b2;
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

/* ToS uses different color scheme */
.tos-article h2 {
    color: #20b2aa;
}

.legal-article h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-article h3 {
    font-size: 1.375rem;
    color: #1f2937;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.legal-article h4 {
    font-size: 1.125rem;
    color: #0891b2;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.tos-article h4 {
    color: #20b2aa;
}

.legal-article p {
    margin-bottom: 1.5rem;
    color: #374151;
    line-height: 1.8;
}

/* Legal Lists - Enhanced for readability */
.legal-list {
    margin: 1.5rem 0 1.5rem 2rem;
    color: #374151;
    line-height: 1.8;
}

.legal-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.legal-list li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Contact Boxes */
.legal-contact-box {
    background: #e8f5e9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #0891b2;
}

.legal-contact-box h4 {
    color: #0891b2;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.legal-contact-box p {
    margin-bottom: 0.75rem;
    color: #374151;
}

.legal-contact-box ul {
    margin: 0.75rem 0 0 1.5rem;
    color: #374151;
}

.legal-contact-box li {
    margin-bottom: 0.5rem;
}

.legal-contact-box strong {
    color: #1f2937;
    font-weight: 600;
}

.legal-contact-box a {
    color: #0891b2;
    text-decoration: underline;
    font-weight: 600;
}

.legal-contact-box a:hover {
    color: #0e7490;
}

.legal-contact-box a:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
}

/* Intro Box (ToS) */
.legal-intro-box {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f0f8ff;
    border-left: 4px solid #20b2aa;
    border-radius: 4px;
}

.legal-intro-box strong {
    color: #1f2937;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

/* Highlight Box (Yellow/Orange) */
.legal-highlight-box {
    background: #fff3cd;
    border-left: 4px solid #f97316;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.legal-highlight-box strong {
    color: #ea580c;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.legal-highlight-box p {
    margin-bottom: 0;
}

/* Critical Box (Red Warning) */
.legal-critical-box {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.legal-critical-box strong {
    color: #dc2626;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.legal-critical-box p {
    margin-bottom: 0;
}

/* Summary Box (ToS) */
.legal-summary-box {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 3rem 0 0;
    border-left: 4px solid #20b2aa;
    line-height: 1.8;
}

.legal-summary-box strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #1f2937;
}

/* Horizontal Divider */
.legal-divider {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid #e2e8f0;
}

/* Disclaimer Text at Bottom */
.legal-disclaimer-text {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.7;
}

/* ALL CAPS Legal Text (Liability sections) */
.legal-caps-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Accessibility Enhancements for Legal Pages */
.legal-article a {
    color: #0891b2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-article a:hover {
    color: #0e7490;
}

.legal-article a:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page-header {
        padding: 3rem 1.5rem;
    }

    .legal-page-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem 3rem;
    }

    .legal-article h2 {
        font-size: 1.5rem;
        padding-top: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .legal-article h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }

    .legal-list {
        margin-left: 1.5rem;
    }

    .legal-contact-box,
    .legal-intro-box,
    .legal-highlight-box,
    .legal-critical-box,
    .legal-summary-box {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .legal-page-header {
        padding: 2.5rem 1rem;
    }

    .legal-page-header h1 {
        font-size: 1.75rem;
    }

    .legal-content {
        padding: 1.5rem 1rem 2.5rem;
    }

    .legal-article h2 {
        font-size: 1.375rem;
    }

    .legal-article h3 {
        font-size: 1.125rem;
    }

    .legal-list {
        margin-left: 1.25rem;
        font-size: 0.95rem;
    }

    .legal-contact-box,
    .legal-intro-box,
    .legal-highlight-box,
    .legal-critical-box,
    .legal-summary-box {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* Print Styles for Legal Pages */
@media print {
    .legal-page-header {
        background: white;
        color: black;
        border-bottom: 2px solid #000;
    }

    .legal-page-header h1 {
        color: black;
    }

    .legal-article a {
        color: black;
        text-decoration: underline;
    }

    .legal-article a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .legal-contact-box,
    .legal-highlight-box,
    .legal-critical-box {
        border: 2px solid #000;
        background: white;
    }
}

/* ============================================
   13. ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0891b2;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 200;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus { top: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .inline-lead-form { border-width: 3px; }
    .btn { border: 2px solid currentColor; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   14. PORTAL/CATEGORY PAGES
   ============================================ */

.portal-hero {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.portal-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.portal-hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portal-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Portal Navigation Tabs */
.portal-nav {
    background: white;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portal-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portal-nav-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.portal-nav-item { margin: 0; }

.portal-nav-link {
    display: block;
    padding: 1.25rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.portal-nav-link:hover {
    color: #0891b2;
    background: #f8fafb;
}

.portal-nav-link.active {
    color: #0891b2;
    border-bottom-color: #0891b2;
    font-weight: 600;
}

/* Portal Content Container */
.portal-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Topic Cards Grid */
.topics-section { margin-bottom: 5rem; }

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: #0891b2;
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.1rem;
    color: #64748b;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.topic-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #0891b2;
}

/* Topic Card Image Header - FULL WIDTH */
.topic-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

/* Topic Card Content Area - With Padding */
.topic-card-content {
    padding: 1.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* The clickable link wrapper */
.topic-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0;
    border: none;
    background: none;
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #0891b2;
}

.topic-card-link:focus {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
}

.topic-card-link:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
    border-radius: 12px;
}

.topic-card-link * {
    color: inherit;
    text-decoration: none;
}

.topic-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.topic-card h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.topic-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.topic-card .article-count {
    display: inline-block;
    background: #dbeafe;
    color: #0891b2;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.topic-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0891b2;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    background: none;
    padding: 0;
}

.topic-card .learn-more:hover { gap: 0.75rem; }

.topic-card .learn-more::after {
    content: "→";
    transition: transform 0.3s;
}

.topic-card:hover .learn-more::after { transform: translateX(4px); }

/* ============================================
   FEATURED ARTICLES SECTION - FIXED IMAGE DISPLAY
   ============================================ */

.featured-articles-section {
    background: #f8fafb;
    padding: 4rem 2rem;
    margin: 4rem -2rem;
    border-radius: 12px;
}

.featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* FIXED: Added background-size, background-position, background-repeat for proper image display */
.featured-article-image {
    height: 200px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.featured-article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-article-content .category-badge { margin-bottom: 0.75rem; }

.featured-article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.featured-article-content h3 a {
    color: #1f2937;
    text-decoration: none;
}

.featured-article-content h3 a:hover { color: #0891b2; }

.featured-article-content .excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.featured-article-content .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto;
}

/* Quick Links / Resources Section */
.quick-links-section { margin: 5rem 0; }

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
    text-align: center;
}

.quick-link-card:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
}

.quick-link-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quick-link-card h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.quick-link-card a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 600;
}

.quick-link-card a:hover { text-decoration: underline; }

/* CTA Section within Portal */
.portal-cta-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0891b2;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 5rem 0;
}

.portal-cta-section h2 {
    font-size: 2rem;
    color: #0891b2;
    margin-bottom: 1rem;
}

.portal-cta-section p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portal-cta-section .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portal-page .breadcrumbs { background: white; }

/* ============================================
   15. TOPIC BADGES & TOPICS PAGE STYLES
   ADA COMPLIANT - WCAG 2.1 AA
   ============================================ */

/* Topics Page Specific Styles */
.topic-hero { padding-bottom: 3rem; }

.topic-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.article-count-hero {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    display: inline-block;
}

.topic-articles-section { margin-bottom: 4rem; }

/* No Articles State */
.no-articles-section {
    text-align: center;
    padding: 5rem 2rem;
}

.no-articles-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-articles-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.no-articles-content h2 {
    color: #64748b;
    margin-bottom: 1rem;
}

.no-articles-content p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #0891b2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.pagination-info {
    color: #64748b;
    font-size: 0.95rem;
}

/* RESPONSIVE for Portal Pages */
@media (max-width: 968px) {
    .portal-hero h1 { font-size: 2.25rem; }
    .portal-hero .subtitle { font-size: 1.1rem; }
    .hero-stats { gap: 2rem; }
    .stat-number { font-size: 2rem; }

    .topics-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .featured-articles-grid { grid-template-columns: 1fr; }

    .portal-nav-list { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 768px) {
    .portal-hero { padding: 3rem 1.5rem 2.5rem; }
    .portal-hero h1 { font-size: 1.875rem; }
    .portal-hero .subtitle { font-size: 1rem; }

    .portal-content { padding: 2rem 1rem; }
    .section-intro h2 { font-size: 1.875rem; }
    .topics-grid { grid-template-columns: 1fr; }
    .portal-nav { top: 60px; }

    .portal-nav-link {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .featured-articles-section {
        margin: 2rem -1rem;
        padding: 2rem 1rem;
    }

    .portal-cta-section { padding: 2rem 1.5rem; }
    .portal-cta-section h2 { font-size: 1.5rem; }

    .topic-icon-large { font-size: 3rem; }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .topic-card { padding: 1.5rem; }
    .quick-links-grid { grid-template-columns: 1fr; }
}

/* ============================================
   16. ADA ACCESSIBILITY ENHANCEMENTS
   WCAG 2.1 AA Compliant
   ============================================ */

/* Screen Reader Only - Hide visually but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible indicator for keyboard navigation */
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Enhanced Focus Indicators - All Interactive Elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Accessible Breadcrumb List */
.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #64748b;
    font-weight: normal;
}

.breadcrumb-item a {
    color: #0891b2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumb-item a:hover {
    color: #0e7490;
}

.breadcrumb-item a:focus-visible {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}

/* Topic Card Link Styles - Accessible */
.topic-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0891b2;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    padding: 0.5rem 0;
    border-radius: 4px;
}

.topic-link:hover {
    color: #0e7490;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topic-link:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
}

.topic-link .link-arrow {
    transition: transform 0.3s ease;
}

.topic-link:hover .link-arrow,
.topic-link:focus .link-arrow {
    transform: translateX(4px);
}

/* Card Focus States */
.topic-card:focus-within {
    box-shadow: 0 0 0 3px #0891b2;
}

.featured-article-card:focus-within {
    box-shadow: 0 0 0 3px #0891b2;
}

/* Ensure sufficient color contrast on all text */
.excerpt,
.article-excerpt {
    color: #475569; /* Darkened for better contrast */
}

.meta,
.article-card .article-meta {
    color: #475569; /* Darkened for better contrast */
}

/* Link underlines for accessibility */
.article-main .article-content a,
.featured-article-content h3 a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.article-main .article-content a:hover,
.featured-article-content h3 a:hover {
    text-decoration-color: currentColor;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .topic-card {
        border: 2px solid #1f2937;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .topic-link .link-arrow {
        transition: none;
    }
    
    .topic-card:hover {
        transform: none;
    }
    
    .featured-article-card:hover {
        transform: none;
    }
}

/* Minimum Touch Target Size (44x44px for mobile) */
@media (max-width: 768px) {
    .portal-nav-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }
    
    .pagination-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .topic-link {
        min-height: 44px;
        padding: 0.75rem 0;
    }
    
    .quick-link-card a {
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }
}

/* Skip Link - Already in main styles but enhanced */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #0891b2;
    outline-offset: 2px;
}

/* Ensure buttons have visible text or aria-label */
.btn:empty::before {
    content: "Button";
    position: absolute;
    left: -9999px;
}

/* Form field labels - always visible */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1f2937;
}

/* Error states - not just color */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc2626;
    border-width: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23dc2626' d='M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Loading states - announce to screen readers */
[aria-busy="true"] {
    cursor: wait;
}

[aria-busy="true"]::after {
    content: " Loading...";
    position: absolute;
    left: -9999px;
}

/* Disabled states */
[disabled],
[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Live region announcements */
[aria-live] {
    position: relative;
}

/* Tables - ensure accessible */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    text-align: left;
    background: #f1f5f9;
    font-weight: 600;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

/* Print styles - accessibility */
@media print {
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .sr-only {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        white-space: normal;
    }
}


/* ============================================
   17. CLICKABLE CARDS - TOPIC, FEATURED, CAROUSEL
   ADDITIONS FOR FULLY CLICKABLE CARDS WITH IMAGES
   ============================================ */

/* Make carousel article cards fully clickable */
.article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: none;
    background: none;
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-card-link:focus {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
}

.article-card-link:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
    border-radius: 12px;
}

.article-card-link * {
    color: inherit;
    text-decoration: none;
}

.article-card:hover .article-card-link h3 {
    color: #0891b2;
}

.article-card-link {
    position: relative;
    z-index: 1;
}

/* Make featured article card fully clickable */
.featured-article-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: none;
    background: none;
    transition: all 0.3s;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-article-link:focus {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
}

.featured-article-link:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
    border-radius: 12px;
}

.featured-article-link * {
    color: inherit;
    text-decoration: none;
}

.featured-article-link .featured-article-image {
    height: 200px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.featured-article-link .featured-article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-article-link .category-badge {
    display: inline-block;
    width: fit-content;
    background: #dbeafe;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.featured-article-link h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.featured-article-link .excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.featured-article-link .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto;
}

.featured-article-card:hover .featured-article-link h3 {
    color: #0891b2;
}

.featured-article-link {
    position: relative;
    z-index: 1;
}

.topic-link-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0891b2;
    font-weight: 600;
    margin-top: auto;
}

.topic-link-text .link-arrow {
    transition: transform 0.3s ease;
}

.topic-card:hover .topic-link-text .link-arrow,
.topic-card-link:focus .topic-link-text .link-arrow {
    transform: translateX(4px);
}

.topic-card:hover .topic-card-link h3,
.topic-card:hover .topic-card-content h3 {
    color: #0891b2;
}

.topic-card-link {
    position: relative;
    z-index: 1;
}

/* ============================================
   18. MOBILE RESPONSIVE - 968px and below
   WITH MOBILE ADA COMPLIANCE
   ============================================ */

@media (max-width: 968px) {
    /* CRITICAL - Mobile Carousel Fixes */
    .carousel-wrapper {
        margin: 0;
        padding: 0 2.5rem;
        overflow: hidden;
    }
    
    .carousel-container {
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
    }
    
    .articles-grid {
        gap: 15px;
    }
    
    .article-card {
        width: calc(100vw - 100px);
        min-width: calc(100vw - 100px);
        max-width: calc(100vw - 100px);
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .carousel-nav.prev {
        left: -15px;
    }
    
    .carousel-nav.next {
        right: -15px;
    }
    
    /* Carousel Indicators */
    .carousel-indicators {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
    }
    
    .indicator.active {
        width: 24px;
    }
    
    /* Touch Target Requirements */
    button,
    a,
    input[type="button"],
    input[type="submit"],
    .btn,
    .portal-nav-link,
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Focus indicators more visible on mobile */
    *:focus-visible {
        outline: 3px solid #0891b2;
        outline-offset: 3px;
    }
    
    /* Remove hover-only interactions for touch */
    @media (hover: none) and (pointer: coarse) {
        .article-card:hover,
        .topic-card:hover,
        .featured-article-card:hover {
            transform: none;
        }
    }
    
    .container, .content-wrapper {
        padding: 0 1.5rem;
    }
    
    .article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .hero h1, .page-hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 350px;
        height: 50vh;
    }
    
    /* FIX: Center hero buttons on mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .care-section {
        flex-direction: column !important;
        text-align: center;
        min-height: auto;
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .care-content {
        padding: 0;
        max-width: 100%;
    }
    
    .care-content h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .care-content p {
        text-align: center;
    }
    
    .care-image {
        width: 100%;
        max-width: 400px;
        height: 300px;
        font-size: 8rem;
        margin: 0 auto;
        border-radius: 16px;
    }
    
    .inline-lead-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .inline-lead-form .submit-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
    
    .featured-image {
        max-height: 300px;
    }
    
    .featured-image-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    /* PORTAL PAGES - Topic Cards */
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .topic-card {
        max-width: 100%;
    }
    
    .topic-card-image {
        height: 160px;
    }
    
    .topic-card-content {
        padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    }
    
    .topic-card h3 {
        font-size: 1.375rem;
    }
    
    /* Featured Articles Grid */
    .featured-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-article-image {
        height: 180px;
    }
    
    /* Portal Navigation Tabs - Horizontal Scroll */
    .portal-nav {
        top: 60px;
    }
    
    .portal-nav-container {
        padding: 0 1rem;
        overflow-x: visible;
    }
    
    .portal-nav-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
        padding-right: 2rem;
    }
    
    .portal-nav-list::-webkit-scrollbar {
        display: none;
        height: 0;
    }
    
    .portal-nav-item {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    .portal-nav-link {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
        min-height: 44px;
    }
    
    /* Add scroll fade indicator */
    .portal-nav-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Portal Hero */
    .portal-hero {
        padding: 3rem 1.5rem 2.5rem;
        min-height: 250px;
    }
    
    .portal-hero h1 {
        font-size: 2.25rem;
    }
    
    .portal-hero .subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    /* Back to Top Button */
    .back-to-top {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .footer-legal-links ul {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Article page meta wrapping */
    .article-main .article-meta .meta-item,
    .article-header .article-meta .meta-item {
        flex: 0 0 auto;
    }
    
    .breadcrumbs {
        padding: 0.75rem 1rem;
    }
    
    .breadcrumbs-content {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* ============================================
   19. TABLET RESPONSIVE - 768px and below
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container, .content-wrapper {
        padding: 0 1.5rem;
    }
    
    .hero, .page-hero {
        padding: 3rem 1.5rem;
    }
    
    .hero {
        min-height: 300px;
        height: 45vh;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* FIX: Ensure buttons centered on tablet too */
    .hero-cta, .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .portal-hero {
        padding: 3rem 1.5rem 2.5rem;
    }
    
    .portal-hero h1 {
        font-size: 1.875rem;
    }
    
    .portal-hero .subtitle {
        font-size: 1rem;
    }
    
    .article-container {
        padding: 1rem 0.75rem;
    }
    
    .article-title {
        font-size: 1.875rem;
    }
    
    .article-main .article-meta,
    .article-header .article-meta {
        font-size: 0.875rem;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .featured-image {
        max-height: 250px;
    }
    
    .article-main .article-content {
        font-size: 1rem;
    }
    
    .article-main .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-main .article-content h3 {
        font-size: 1.25rem;
    }
    
    .category-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    .inline-lead-form {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .inline-lead-form h3 {
        font-size: 1rem;
    }
    
    .inline-lead-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .inline-lead-form label {
        font-size: 0.875rem;
    }
    
    .inline-lead-form input {
        font-size: 1rem;
        padding: 0.625rem;
    }
    
    .inline-lead-form .submit-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem;
        grid-column: 1;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .sources-section {
        padding: 1.25rem;
    }
    
    .breadcrumbs {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .article-card {
        width: calc(50vw - 40px);
        min-width: calc(50vw - 40px);
        max-width: calc(50vw - 40px);
    }
    
    .portal-content {
        padding: 2rem 1rem;
    }
    
    .section-intro h2 {
        font-size: 1.875rem;
    }
    
    .featured-articles-section {
        margin: 2rem -1rem;
        padding: 2rem 1rem;
    }
    
    .portal-cta-section {
        padding: 2rem 1.5rem;
    }
    
    .portal-cta-section h2 {
        font-size: 1.5rem;
    }
    
    .how-it-works {
        padding: 4rem 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .site-footer {
        padding: 3rem 1.5rem 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-legal-links .separator {
        display: none;
    }
    
    .care-section {
        flex-direction: column !important;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }
    
    .care-image {
        width: 100%;
        max-width: 350px;
        height: 250px;
        font-size: 6rem;
    }
    
    .care-content h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .care-content p {
        text-align: center;
    }
    
    .topic-icon-large {
        font-size: 3rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    .portal-nav-container {
        padding: 0 0.5rem;
    }
    
    .portal-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .portal-nav-container::after {
        width: 30px;
    }
}

/* ============================================
   20. MOBILE PHONES - 480px and below
   ============================================ */

@media (max-width: 480px) {
    .container, .content-wrapper {
        padding: 0 1rem;
    }
    
    .article-container {
        padding: 1rem 0.75rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .featured-image-container {
        margin: 1rem 0;
        border-radius: 6px;
    }
    
    .featured-image {
        max-height: 200px;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }
    
    .hero h1, .page-hero h1 {
        font-size: 1.625rem;
    }
    
    .hero p, .page-hero p {
        font-size: 1rem;
    }
    
    .hero {
        min-height: 280px;
    }
    
    .cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .portal-hero {
        padding: 2.5rem 1rem;
        min-height: 200px;
    }
    
    .portal-hero h1 {
        font-size: 1.75rem;
    }
    
    .portal-hero .subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .carousel-wrapper {
        padding: 0 2rem;
    }
    
    .article-card {
        width: calc(100vw - 60px);
        min-width: calc(100vw - 60px);
        max-width: calc(100vw - 60px);
    }
    
    .article-image {
        height: 120px;
    }
    
    .article-card .article-content {
        padding: 0.875rem;
    }
    
    .article-card .article-content h3 {
        font-size: 0.95rem;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
    }
    
    .article-card .article-meta {
        font-size: 0.75rem;
    }
    
    .carousel-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .carousel-container {
        overflow: visible;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .carousel-nav.prev {
        left: -10px;
    }
    
    .carousel-nav.next {
        right: -10px;
    }
    
    .topic-card {
        border-radius: 10px;
    }
    
    .topic-card-image {
        height: 140px;
        border-radius: 10px 10px 0 0;
    }
    
    .topic-card-content {
        padding: 1rem 1.25rem;
    }
    
    .topic-card h3 {
        font-size: 1.25rem;
    }
    
    .topic-card p {
        font-size: 0.9rem;
    }
    
    .featured-article-image {
        height: 150px;
    }
    
    .featured-article-content {
        padding: 1rem;
    }
    
    .featured-article-content h3 {
        font-size: 1.125rem;
    }
    
    .featured-article-content .excerpt {
        font-size: 0.875rem;
    }
    
    .featured-article-content .meta {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .contact-box {
        padding: 1.5rem;
    }
    
    .site-footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-disclaimer {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .care-image {
        width: 100%;
        max-width: 100%;
        height: 200px;
        font-size: 5rem;
        border-radius: 12px;
    }
    
    .portal-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION FIXES
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero, .portal-hero {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .care-section {
        padding: 2rem 1.5rem;
    }
    
    .care-image {
        height: 200px;
    }
}

/* ============================================
   TEXT ZOOM SUPPORT - Must work at 200%
   ============================================ */
@media (max-width: 968px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ============================================
   21. GLOBAL OVERFLOW PREVENTION
   ============================================ */

/* Prevent any element from causing horizontal scroll */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* ============================================
   22. MOBILE ARTICLE PAGE OVERFLOW FIXES
   ============================================ */

@media (max-width: 968px) {
    /* Force all containers to respect viewport width */
    .article-container,
    .article-main,
    .article-header,
    .article-content,
    .breadcrumbs,
    .breadcrumbs-content {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Article title - prevent overflow */
    .article-title {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Article container specific */
    .article-container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Breadcrumbs container */
    .breadcrumbs {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .breadcrumbs-content {
        width: 100%;
    }
    
    /* Force body and html to hide overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .skip-link,
    .breadcrumbs,
    .sidebar,
    .inline-lead-form,
    .btn,
    .cta-buttons,
    .back-to-top,
    .carousel-nav,
    .carousel-indicators {
        display: none !important;
    }
    
    .article-container {
        display: block;
        max-width: 100%;
    }
    
    .article-main .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}