/*
Theme Name: GeneratePress Child
Template: generatepress
Description: Child theme of GeneratePress
Version: 1.0
*/


/* ===== MIGRATED FROM taxonomy-program_state.php ===== */

.cna-hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    text-align: left;
}


.cna-section {
    margin: 50px 0;
}

.cna-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.cna-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #374151;
}

.cna-section-intro {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 30px;
}

/* Major cities cards */
.cna-major-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cna-major-city-card {
    padding: 25px;
    border: 2px solid #1d499b;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.cna-major-city-card:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.cna-major-city-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.cna-major-city-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
    font-size: 0.95rem;
}


/* Cities list */
.cna-cities-list {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.cna-city-name-link {
    color: #1d499b;
    text-decoration: none;
    font-weight: 600;
}

.cna-city-name-link:hover {
    text-decoration: underline;
}

/* Fixed Cities with Healthcare Opportunities table alignment */
.cna-city-list-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 25px;
    padding: 15px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #d1d5db;
}

.cna-city-list-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 25px;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

/* Columns 2-4: just left alignment */
.cna-city-list-header div:nth-child(2),
.cna-city-list-header div:nth-child(3),
.cna-city-list-header div:nth-child(4),
.cna-city-list-item div:nth-child(2),
.cna-city-list-item div:nth-child(3),
.cna-city-list-item div:nth-child(4) {
    text-align: left;
}

/* Column 1: left alignment + extra padding on right */
.cna-city-list-header div:nth-child(1),
.cna-city-list-item div:nth-child(1) {
    text-align: left;
    padding-right: 10px;
}

/* Column 5: right alignment + extra padding on left */
.cna-city-list-header div:nth-child(5),
.cna-city-list-item div:nth-child(5) {
    text-align: right;
    padding-left: 10px;
}

.cna-city-list-item:hover {
    background: white;
}


.cna-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* City card styling and hover */
.cna-city-link-card {
    display: block;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
    text-decoration: none; color: #1f2937;
    position: relative;
    overflow: hidden;
}

.cna-city-link-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border-color: #1d499b;
}

/* City card font */
.cna-city-link-card div {
    font-weight: 600;
    font-size: 1rem;
    color: #1d499b;
}


/* Loading state for sort transition */
.cities-batch.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth fade-in for new batches */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cities-batch {
    animation: fadeIn 0.3s ease;
}


/* ===== MIGRATED FROM functions.php in cna-programs ===== */
    
    .cna-facility-details {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        margin-top: 15px;
        border-left: 3px solid #1d499b;
    }
    
    .cna-ranking-note {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        padding: 12px 16px;
        margin: 15px 0;
        font-size: 0.9rem;
        color: #1e40af;
    }

    
    /* Salary Highlight Box */
.cna-salary-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.cna-salary-highlight-content {
    padding: 25px;
}

.cna-salary-highlight h3 {
    margin: 0 0 20px 0;
    color: #0c4a6e;
    font-size: 1.3rem;
    text-align: center;
}

.cna-salary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.cna-salary-item {
    text-align: center;
    background: white;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cna-salary-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 5px;
}

.cna-salary-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.cna-salary-region {
    text-align: center;
    color: #475569;
    font-style: italic;
}
    
    .cna-quick-facts-highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #64748b;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}

.cna-quick-facts-content {
    padding: 25px;
}

.cna-quick-facts-highlight h3 {
    margin: 0 0 20px 0;
    color: #334155;
    font-size: 1.3rem;
    text-align: center;
}



.cna-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cna-fact-item {
    background: white;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.cna-fact-item:hover {
    transform: translateY(-2px);
}

.cna-fact-breakdown {
    grid-column: 1 / -1;
}

.cna-fact-icon {
    font-size: 1.5rem;
    min-width: 35px;
    text-align: center;
}

.cna-fact-content {
    flex: 1;
}

.cna-fact-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.cna-fact-breakdown-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 2px;
}


/* ===== MIGRATED FROM taxonomy-program.city ===== */
/* Clean CNA Page Styling with Fixed TOC */
.cna-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #282f38;
}

.cna-toc {
    background: #f8f9fa;
    border-left: 4px solid #1d499b;
    padding: 20px;
    margin: 20px 0 40px 0;
    border-radius: 8px;
}

.cna-toc-title, .cna-toc h3 {
    margin: 0 0 15px 0;
    color: #282f38;
    font-size: 1.1rem;
    font-weight: 600;
}

.cna-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cna-toc a {
    color: #1d499b;
    text-decoration: none;
    font-weight: 500;
}

.cna-toc a:hover {
    color: #002654;
    text-decoration: underline;
}

.cna-section {
    margin: 60px 0;
    scroll-margin-top: 20px;
}

.cna-section h1, .cna-section h2 {
    color: #282f38;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cna-section h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cna-section h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.cna-section h3 {
    color: #282f38;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
}

.cna-quick-facts {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


.cna-quick-facts h2,
.cna-quick-facts h3 {
    text-align: center;
    color: #1d499b;
    font-size: 1.4rem;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.cna-quick-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cna-quick-facts li {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cna-quick-facts li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cna-fact-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cna-fact-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d499b;
    line-height: 1.1;
    margin-bottom: 4px;
}

.cna-fact-label {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.3;
    margin-top: 4px;
}

.cna-fact-breakdown {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.3;
}

/* Section headers background - city and state pages */
#program-finder h2 {
    /* background: #dcfce7; */
    /* padding: 20px; */
    border-radius: 8px 8px 0 0;
    /* border-bottom: 2px solid #16a34a; */
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.cna-programs-grid, .cna-facilities-grid {
    display: grid;
    margin: 30px 0;
}

.cna-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 5px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.cna-card h3, .cna-card h4 {
    color: #282f38;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.cna-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.cna-card-info {
    flex: 1;
    min-width: 250px;
}

.cna-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cna-btn,
.cna-show-more-btn,
.cna-view-more-btn,
.cna-major-city-link {
    display: inline-block;
    background: #1d499b;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.cna-view-more-btn {
    display: block;
    margin: 20px auto;
}


.cna-btn:hover,
.cna-show-more-btn:hover,
.cna-view-more-btn:hover,
.cna-major-city-link:hover {
    background: #002654;
    color: white;
    text-decoration: none;
}

/* Focus state - when button receives focus after being clicked */
.cna-show-more-btn:focus {
    background: #1d499b;
    color: white;
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Active state - when button is being pressed */
.cna-show-more-btn:active {
    background: #002654;
    color: white;
}

.cna-btn-secondary {
    background: #6c757d;
}

.cna-btn-secondary:hover {
    background: #545b62;
}

.cna-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cna-detail-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}


.cna-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px 0;
}

.cna-badge {
    background: #e9ecef;
    color: #495057;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.cna-badge-approved {
    background: #d4edda;
    color: #155724;
}

.cna-badge-online {
    background: #cce5ff;
    color: #0066cc;
}

.cna-badge-free {
    background: #d1ecf1;
    color: #0c5460;
}

.cna-badge-accelerated {
    background: #fef3c7;
    color: #92400e;
}

.cna-badge-employer {
    background: #e0e7ff;
    color: #5b21b6;
}

.cna-badge-financial-aid {
    background: #d1fae5;
    color: #065f46;
}

.cna-badge-faith {
    background: #f3f4f6;
    color: #374151;
}

.cna-badge-job-guarantee {
    background: #dcfce7;
    color: #166534;
}

.cna-badge-job-assistance {
    background: #fef3c7;
    color: #92400e;
}

.cna-badge-flexible {
    background: #f0f9ff;
    color: #0c4a6e;
}

.cna-badge-evening {
    background: #f0f9ff;
    color: #0c4a6e;
}

.cna-badge-weekend {
    background: #fdf4ff;
    color: #86198f;
}



.cna-no-data {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.cna-view-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
}


/* Add to existing CSS - update the .cna-salary-region style and add new styles */

.cna-salary-footer {
    text-align: center;
    margin-top: 15px;
}

.cna-salary-region {
    color: #475569;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cna-salary-source {
    color: #64748b;
    font-size: 0.85rem;
}

.cna-salary-source a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.cna-salary-source a:hover {
    color: #0284c7;
    text-decoration: underline;
}



/* Main Card Container - Further Reduced Padding */
.cna-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px !important; /* Further reduced from 20px */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 18px !important; /* Slightly reduced from 20px */
}

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

/* Card Header - Further Reduced Spacing */
.cna-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px; /* Further reduced from 15px */
    flex-wrap: wrap;
    gap: 12px; /* Reduced from 15px */
}

.cna-card-info {
    flex: 1;
    min-width: 250px;
}

.cna-card-info h3 {
    color: #282f38;
    margin: 0 0 10px 0; /* Reduced from 15px */
    font-size: 1.3rem;
}



/* Contact Info - Even Tighter Spacing */
.cna-address-info,
.cna-phone-info {
    color: #6b7280;
    margin: 4px 0; /* Further reduced from 6px */
    font-size: 0.9rem;
    line-height: 1.3; /* Reduced line height */
}


.cna-address-info .program-card-city {
    font-weight: bold;
    font-size: 1.1em;
}

.cna-phone-info a {
    color: #1d499b;
    text-decoration: none;
    font-weight: 500;
}

.cna-phone-info a:hover {
    color: #002654;
    text-decoration: underline;
}

/* Action Buttons - Desktop and Mobile Versions */
.cna-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Desktop buttons - show in header */
.cna-card-actions-desktop {
    display: flex;
}

/* Mobile buttons - show after program details */
.cna-card-actions-mobile {
    display: none; /* Hidden on desktop */
    margin-top: 12px;
}

.cna-btn {
    display: inline-block;
    background: #1d499b;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.cna-btn:hover {
    background: #002654;
    color: white;
    text-decoration: none;
}

.cna-btn-secondary {
    background: #6c757d;
}

.cna-btn-secondary:hover {
    background: #545b62;
}

/* Program Details Section - MINIMAL HEIGHT */
.cna-details-section {
    margin-top: 8px; /* Further reduced from 12px */
    padding: 8px 15px; /* Further reduced vertical padding from 12px to 8px */
    background: #f8f9fa;
    border-radius: 8px;
}

.cna-details-section h4 {
    margin: 0 0 6px 0; /* Further reduced from 8px */
    color: #374151;
    font-size: 1.1rem; /* Larger from 0.95rem */
    font-weight: 600;
}

/* HORIZONTAL PROGRAM DETAILS */
.cna-details-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between items */
    align-items: center;
}

.cna-detail-item {
    font-size: 1rem; /* Larger from 0.9rem */
    color: #4b5563;
    white-space: nowrap; /* Keeps each item on one line */
    padding: 0; /* Remove any padding */
    border: none; /* Remove any borders */
    margin: 0; /* Remove any margins */
}

/* Remove any bottom borders or lines */
.cna-detail-item:after,
.cna-detail-item:before {
    display: none;
}

/* Single Item Styling - Left Aligned */
.cna-details-horizontal:has(.cna-detail-item:only-child) {
    justify-content: flex-start; /* Left align when only one item */
}


/* Tablet responsive - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .taxonomy-program_state .cna-quick-facts ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}


.cna-quick-facts ul {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
}


/* ===== CNA HUB PAGE ENHANCED STYLES ===== */

/* Typography Consistency - Apply state/city page styling to hub page */
.cna-section .cna-content-prose strong,
.cna-section .cna-states-intro strong {
    font-weight: 700;
    color: #282f38; /* Match state/city page styling */
    font-family: inherit;
}

/* Override strong styling for links - let them inherit theme link colors */
.cna-section .cna-content-prose a strong,
.cna-section .cna-content-prose strong a,
.cna-section .cna-states-intro a strong,
.cna-section .cna-states-intro strong a {
    color: inherit; /* Inherit the link color from theme */
    font-weight: 700; /* Keep bold weight */
    font-family: inherit;
}

.cna-state-links a,
.cna-section .cna-content-prose a {
    font-weight: bold;
}



/* Program Types Grid - Better Styling */
.cna-program-types-content .program-type-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cna-program-types-content h3 {
    color: #1d499b;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.cna-program-types-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.cna-program-description {
    background: #f1f3f4;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #666;
}

/* State links within program types */
.cna-state-links {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.cna-state-links a {
    color: #1d499b;
    text-decoration: none;
}

.cna-state-links a:hover {
    text-decoration: underline;
}

/* Quick Facts Source */
.cna-quick-facts-source {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-style: italic;
}

/* States section improvements */
.cna-states-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #374151;
}

.cna-states-intro strong {
    color: #1d499b;
    font-weight: 600;
}

.cna-states-footer {
    text-align: center;
    font-style: italic;
    color: #6b7280;
    margin-top: 25px;
    font-size: 0.95rem;
}

/* Content sections - left aligned */
.cna-content-prose h3,
.cna-content-prose h4 {
    text-align: left;
    color: #282f38;
    margin: 25px 0 15px 0;
}

.cna-content-prose ul,
.cna-content-prose ol {
    margin: 15px 0 20px 30px;
    line-height: 1.7;
}

.cna-content-prose p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Better spacing for program type boxes */
.cna-program-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cna-program-type-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.cna-program-type-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Benefits/Jobs section - left aligned */
.cna-benefits-content,
.cna-jobs-content {
    text-align: left;
}

.cna-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
    text-align: left;
}

.cna-benefit-card {
    padding: 0;
    text-align: left;
}

.cna-benefit-card h3 {
    color: #1d499b;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.cna-benefit-card p {
    line-height: 1.6;
    color: #374151;
}

/* FAQ improvements */
.cna-faq-container {
    max-width: 1200px;
}

.cna-faq-container h3 {
    color: #282f38;
    margin: 30px 0 12px 0;
    font-size: 1.15rem;
    font-weight: 600;
}


/* Fix strong text color to match state/city pages */
.cna-hub-page strong {
    color: #282f38;
    font-weight: 600;
}

.cna-hub-page .cna-states-intro strong {
    color: #1d499b;
    font-weight: 600;
}

/* Ensure links stay blue */
.cna-hub-page a {
    color: #1d499b;
    text-decoration: none;
}

.cna-hub-page a:hover {
    text-decoration: underline;
}

/* Keep consistent paragraph text */
.cna-hub-page p {
    color: #374151;
}


/* Fix State Cards - ensure they maintain card appearance */
.cna-hub-page .cna-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cna-hub-page .cna-state-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #282f38;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cna-hub-page .cna-state-card:hover {
    border-color: #1d499b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.cna-hub-page .cna-state-card h3 {
    color: #1d499b;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.cna-hub-page .cna-state-stats {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.cna-hub-page .cna-state-stats div {
    margin: 5px 0;
}

.cna-hub-page .cna-state-link {
    color: #1d499b;
    font-weight: 500;
    margin-top: auto;
}

/* CNA Salary Table Styles */
.cna-salary-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cna-salary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.cna-salary-table th {
    background-color: #1d499b;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #164080;
    position: relative;
}

.cna-salary-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.cna-salary-table th.sortable:hover {
    background-color: #164080;
}

.cna-salary-table .sort-indicator {
    font-size: 0.8rem;
    margin-left: 5px;
    color: #e2e8f0;
}

.cna-salary-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.cna-salary-table tbody tr:hover {
    background-color: #f8fafc;
}

.cna-salary-table .area-name {
    font-weight: 500;
    color: #1e293b;
}

.cna-salary-table tbody tr:last-child td {
    border-bottom: none;
}

.cna-table-source {
    margin-top: 15px;
}

.cna-table-source p {
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

.cna-table-source a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.cna-table-source a:hover {
    text-decoration: underline;
}

.program-card-city-link {
    color: #1d499b;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.program-card-city-link:hover {
    color: #0f2557;
    text-decoration: underline;
}

.program-card-city-link:focus {
    outline: 2px solid #1d499b;
    outline-offset: 2px;
    border-radius: 2px;
}

.cna-breadcrumbs {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cna-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    padding: 5px 2px;
    display: inline-block;
}

.cna-breadcrumbs a:hover {
    color: #1d499b;
}


.cna-breadcrumbs .current-page {
    color: #374151;
    font-weight: 500;
    padding: 5px 2px;
    display: inline-block;
}

.cna-breadcrumbs .separator {
    margin: 0 6px;
    color: #6b7280;
}

/* Social Links Container */
.wp-block-social-links {
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    text-indent: 0;
    margin-left: 0;
    background: none;
    display: flex;
    gap: 0.5em;
} 

/* Individual Social Link */
.wp-block-social-link {
    display: block;
    border-radius: 9999px;
    height: auto;
    transition: transform 0.1s ease;
} 

/* Social Link Anchor */
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor {
    align-items: center;
    display: flex;
    line-height: 0;
    padding: 0.25em;
    color: currentColor;
    fill: currentColor;
    text-decoration: none;
    border-bottom: 0;
    box-shadow: none;
} 

/* Facebook Button Specific Styling */
.wp-social-link-facebook {
    background-color: #1877f2;
}

.wp-social-link-facebook:hover {
    background-color: #166fe5;
    transform: scale(1.1);
}

/* Social Link Label */
.wp-block-social-link-label {
    margin-left: 0.5em;
    margin-right: 0.5em;
    font-size: 0.65em;
    color: currentColor;
} 

/* SVG Icons */
.wp-block-social-links .wp-social-link svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Reset all visited link colors to match their normal state */
a:visited {
    color: inherit;
}

/* Then explicitly set the colors you want */
.cna-toc a,
.cna-toc a:visited {
    color: #1d499b;
}

/* TOC "Most viewed" label approach - city and state
.cna-toc a[href="#training-programs"]::after,
.cna-toc a[href="#cities-with-programs"]::after {
    content: " • Most viewed";
    color: #059669;
    font-size: 0.85rem;
    font-weight: 500;
} */

.cna-section a,
.cna-section a:visited {
    color: #1d499b;
}

.program-card-city-link,
.program-card-city-link:visited {
    color: #1d499b;
}

.cna-city-name-link,
.cna-city-name-link:visited {
    color: #1d499b;
}

.cna-btn,
.cna-btn:visited {
    background: #1d499b;
    color: white !important;
    text-decoration: none;
}

.cna-btn:hover,
.cna-btn:visited:hover {
    background: #002654;
    color: white !important;
}

.cna-btn-secondary,
.cna-btn-secondary:visited {
    background: #6c757d;
    color: white !important;
}

.cna-btn-secondary:hover,
.cna-btn-secondary:visited:hover {
    background: #545b62;
    color: white !important;
}

.cna-states-intro a,
.cna-states-intro a:visited {
    color: #1d499b;
}

.cna-major-city-link,
.cna-major-city-link:visited {
    background: #1d499b;
    color: white !important;
    text-decoration: none;
}

.cna-major-city-link:hover,
.cna-major-city-link:visited:hover {
    background: #002654;
    color: white !important;
}


/* Program Finder Section */
.cna-program-finder {
    text-align: left;
    margin-bottom: 40px;
}

.campus-widget-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

#campus-widget-simple {
    width: 100%;
}

.campusexplorer-widget {
    width: 100% !important;
    min-height: 350px;
}

/* States Transition Section */
.cna-states-transition {
    text-align: left;
    margin: 40px 0 30px 0;
    padding: 20px 0;
}


/* Progressive Program Loading Styles */
.cna-progressive-programs {
    position: relative;
}

.programs-batch {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.programs-batch[style*="display: none"] {
    opacity: 0;
    transform: translateY(20px);
}

/* Show More Button Styling - Enhanced */
.cna-show-more-btn {
    background: #1d499b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(29, 73, 155, 0.1);
}

.cna-show-more-btn:hover {
    background: #002654;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 73, 155, 0.2);
}

.cna-show-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(29, 73, 155, 0.1);
}

.cna-show-more-container {
    margin: 30px 0;
    text-align: center;
}

/* Loading animation for when content appears */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.programs-batch.animate-in {
    animation: fadeInUp 0.3s ease forwards;
}

/* Campus Explorer - Natural content styling */

/* Benefits list - simple, clean */
.benefits-list {
    margin: 25px 0 30px 0;
}

.benefits-list p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

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

.benefits-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1d499b;
    font-weight: bold;
}


/* Trust signals - inline text */
.program-finder-trust {
    text-align: center;
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.trust-line {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
        .cna-city-list-item,
    .cna-city-list-header,
    .cna-city-list-item-alt,
    .cna-city-list-header-alt {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 10px;
    }
    
    .cna-city-list-header-alt > div,
    .cna-city-list-item-alt > div {
        flex: 1 1 auto;
        text-align: left;
    }
    
    .cna-hero h1 {
        font-size: 1.875rem;
    }
    
    .cna-major-cities-grid {
        grid-template-columns: 1fr;
    }
    
    .cna-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cna-cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .cna-salary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cna-salary-number {
        font-size: 1.5rem;
    }
    
    .cna-salary-highlight-content {
        padding: 20px;
    }
    
    .cna-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .cna-fact-item {
        padding: 15px 12px;
        gap: 10px;
    }

    .cna-fact-icon {
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .cna-quick-facts-content {
        padding: 20px;
    }
    
    .cna-quick-facts ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .cna-quick-facts {
        padding: 20px;
        margin: 20px 0 40px 0;
    }
    
    .cna-quick-facts li {
        padding: 15px;
    }
    
    .cna-fact-number {
        font-size: 1.5rem;
    }
    
    .cna-page-container {
        padding: 15px 10px;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cna-section,
    .cna-section p,
    .cna-hero-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .cna-section h1 {
        font-size: 1.8rem;
    }
    
    .cna-section h2 {
        font-size: 1.5rem;
    }
    
    .cna-card {
        padding: 20px;
    }
    
    .cna-card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cna-card-actions {
        justify-content: stretch;
    }
    
    .cna-btn {
        flex: 1;
        text-align: center;
    }
    
    .cna-salary-source {
        font-size: 0.8rem;
    }
    
    .cna-card {
        padding: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .cna-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    /* Hide desktop buttons on mobile */
    .cna-card-actions-desktop {
        display: none;
    }
    
    /* Show mobile buttons after program details */
    .cna-card-actions-mobile {
        display: flex;
        justify-content: stretch;
    }
    
    .cna-details-section {
        margin-top: 6px;
        padding: 6px 12px;
    }
    
    .cna-details-section h4 {
        margin: 0 0 8px 0;
    }
    
    .cna-btn {
        flex: 1;
        text-align: center;
        min-width: 140px;
    }
    
    .cna-details-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .cna-detail-item {
        white-space: normal;
        padding: 0;
        margin: 0;
        border-bottom: none;
        line-height: 1.3;
    }
    
    .taxonomy-program_state .cna-quick-facts ul {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .taxonomy-program_state .cna-quick-facts li {
        min-height: 100px;
        padding: 15px;
    }
    
    .cna-quick-facts ul {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }
    
        .cna-program-types-grid {
        grid-template-columns: 1fr;
    }
    
    .cna-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cna-salary-table {
        font-size: 0.8rem;
    }
    
    .cna-salary-table th,
    .cna-salary-table td {
        padding: 8px 10px;
    }
    
    .cna-salary-table th {
        font-size: 0.75rem;
    }
    
    .campus-widget-container {
    max-width: 100%;
    padding: 20px;
    margin: 0 15px;
    }
    
    .cna-show-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    #program-finder .intro-text {
        font-size: 16px;
    }
    
    .benefits-list li {
        font-size: 14px;
        padding: 6px 0 6px 20px;
    }
    
    .trust-line {
        font-size: 13px;
        line-height: 1.8;
    }
}


@media (max-width: 480px) {
    .cna-salary-stats,
    .cna-facts-grid,
    .cna-details-grid,
    .cna-quick-facts ul {
        grid-template-columns: 1fr;
    }
    
    .cna-fact-breakdown {
        grid-column: 1;
    }
    
    .cna-quick-facts ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cna-fact-title {
        font-size: 0.8rem;
    }
    
    .cna-details-horizontal {
        gap: 6px;
    }
    
    .cna-card-actions {
        flex-direction: column;
    }
    
    .cna-btn {
        width: 100%;
    }
    
    .cna-page-container {
        padding: 15px 8px;
    }
    
    .cna-cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    /* Enhanced word breaking for very small screens */
    .cna-section,
    .cna-section p,
    .cna-section div,
    .cna-hero-description {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    /* Handle headings */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .cna-salary-table-container {
        margin: 15px -15px;
        border-radius: 0;
    }
    
    .cna-salary-table {
        font-size: 0.75rem;
    }
    
    .cna-salary-table th,
    .cna-salary-table td {
        padding: 6px 8px;
    }
    
    .campus-widget-container {
        margin: 0 10px;
        padding: 15px;
    }
    
    .campusexplorer-widget {
        min-height: 300px;
    }
}

/* ===== HERO CTA SECTION (Between H1 and TOC) ===== */
.cna-hero-cta-section {
    margin: 25px 0 35px 0;  /* Added bottom margin */
    text-align: left;
}

.cna-hero-cta-text {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 15px;
    font-weight: 600;  /* Changed from 400 to 600 for bold */
}

@media (min-width: 769px) {
    .cna-hero-cta-text {
        font-size: 1.25rem;  /* Slightly bigger on desktop */
    }
}

.cna-hero-cta-button {
    background: #1d499b;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin-bottom: 20px;  /* Added margin after button */
}

.cna-hero-cta-button:hover {
    background: #16346e;
}

.cna-hero-cta-button:active {
    background: #0f2852;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cna-hero-cta-section {
        margin: 20px 0 30px 0;
    }
    
    .cna-hero-cta-text {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }
    
    .cna-hero-cta-button {
        font-size: 0.9375rem;
        padding: 11px 20px;
        margin-bottom: 15px;
    }
}

/* ===== CAMPUS EXPLORER MODAL ===== */
.ce-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ce-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.ce-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ce-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10;
    transition: color 0.2s ease;
}

.ce-modal-close:hover {
    color: #1f2937;
}

.ce-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.ce-modal-header h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.ce-modal-header p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.ce-modal-body {
    padding: 20px;
}

/* Campus Explorer widget inside modal */
.ce-modal-body .campusexplorer-widget {
    min-height: 400px;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .ce-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 30px;
    }
    
    .ce-modal-content {
        max-height: calc(100vh - 40px);
        border-radius: 12px;
    }
    
    .ce-modal-header {
        padding: 25px 20px 15px 20px;
    }
    
    .ce-modal-header h2 {
        font-size: 1.5rem;
        padding-right: 30px; /* Make room for close button */
    }
    
    .ce-modal-header p {
        font-size: 0.9375rem;
    }
    
    .ce-modal-body {
        padding: 20px;
    }
    
    .ce-modal-close {
        top: 12px;
        right: 12px;
        font-size: 28px;
    }
}

/* Smooth scrollbar for modal content */
.ce-modal-content::-webkit-scrollbar {
    width: 8px;
}

.ce-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 16px 16px 0;
}

.ce-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ce-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}