/* =====================================================
   WebGuy IT Support Portal — Brand Overrides
   Loaded AFTER Bootstrap 5 — extends, doesn't duplicate.
   Brand-matched to webguyit.com
   ===================================================== */

/* ─── CSS Variables (Brand Colors) ──────────────────── */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --bg-dark: #34495e;
    --white: #ffffff;
    --success-green: #35904b;
    --warning-amber: #f39c12;
    --danger-red: #e74c3c;
    --border-color: #dde1e3;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.2s ease;

    /* Override Bootstrap's defaults with our brand */
    --bs-primary: #3498db;
    --bs-success: #35904b;
    --bs-danger: #e74c3c;
    --bs-warning: #f39c12;
    --bs-body-font-family: 'Nunito Sans', 'Segoe UI', Tahoma, sans-serif;
    --bs-body-color: #2c3e50;
    --bs-body-bg: #ecf0f1;
}

/* ─── Typography Overrides ──────────────────────────── */
body {
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(180deg, #5d88ad 0%, #34495e 40%, #2c3e50 100%) fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Global gradient text adjustments ──────────────── */
/* Headings and text on the gradient (outside cards) */
.content-section .container h1,
.content-section .container h2 {
    color: var(--white);
}

/* Reset headings back to dark inside cards/white backgrounds */
.content-section .card h1,
.content-section .card h2,
.content-section .card h3,
.content-section .card h4,
.action-card h2,
.bottom-card h3,
.main-feed h2,
.main-feed h3,
.blog-post-full h1,
.blog-post-full h2,
.blog-post-full h3 {
    color: var(--primary-color);
}

.content-section > .container > p,
.content-section .container .text-muted {
    color: rgba(255,255,255,0.75) !important;
}

/* Reset text-muted inside cards back to normal */
.content-section .card .text-muted {
    color: var(--text-light) !important;
}

.content-section > .container > a,
.content-section .container > p a {
    color: rgba(255,255,255,0.85) !important;
}

.content-section > .container > a:hover,
.content-section .container > p a:hover {
    color: var(--white) !important;
}

/* Reset link colors inside cards */
.content-section .card a {
    color: var(--secondary-color) !important;
}

.content-section .card a:hover {
    color: #2980b9 !important;
}

.content-section .btn-outline-secondary {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.content-section .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Expletus Sans', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: #2980b9;
}

/* ─── Header / Navigation ───────────────────────────── */
.site-header {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1030; /* Above Bootstrap's dropdowns */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
}

.header-brand:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.header-brand img {
    height: 52px;
    width: auto;
}

.header-brand .portal-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
    border-left: 1px solid var(--border-color);
    padding-left: 12px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--secondary-color);
    text-decoration: none;
}

.btn-login {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    background-color: #2980b9;
    text-decoration: none;
}

/* ─── Hero Action Strip ─────────────────────────────── */
.hero-strip {
    background: transparent;
    padding: 48px 0 40px;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.action-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.action-card .card-icon {
    font-size: 2.5rem;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
}

.action-card.remote-support .card-icon {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.action-card.submit-ticket .card-icon {
    background-color: rgba(53, 144, 75, 0.1);
    color: var(--success-green);
}

.action-card.call-us .card-icon {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

.action-card h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.action-card .card-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.action-card .phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Expletus Sans', sans-serif;
    text-decoration: none;
}

.action-card .phone-number:hover {
    color: var(--secondary-color);
}

.action-card .card-hours {
    color: var(--text-light);
    font-size: 0.85rem;
}

.action-card .card-portal-link {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 4px;
    line-height: 1.4;
}

.action-card .card-portal-link a {
    font-weight: 600;
}

/* ─── Button Overrides ──────────────────────────────── */
/* Extend Bootstrap's .btn classes with our brand */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: #fff !important;
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.btn-success:hover {
    background-color: #2d7a40;
    border-color: #2d7a40;
}

.btn-danger {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ─── System Status Banner ──────────────────────────── */
.status-banner {
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}

.status-banner.status-normal {
    background-color: #dff0e4;
    color: #2a7340;
    border: 1px solid #35904b;
}

.status-banner.status-warning {
    background-color: #fdebd0;
    color: #935116;
    border: 1px solid #f39c12;
}

.status-banner.status-critical {
    background-color: #fadbd8;
    color: #922b21;
    border: 1px solid #e74c3c;
}

.status-banner i {
    margin-right: 8px;
}

/* ─── Content Sections ──────────────────────────────── */
.content-section {
    padding: 48px 0;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* ─── Custom Card Styling ───────────────────────────── */
/* Extends Bootstrap's .card with our brand look */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: 10px;
}

/* Cards inside content sections get better spacing on the gradient */
.content-section .card {
    padding: 20px 24px;
    margin-top: 8px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

/* ─── Business Hours ────────────────────────────────── */
.office-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.office-status.open {
    background-color: #dff0e4;
    color: #2a7340;
}

.office-status.closed {
    background-color: #fadbd8;
    color: #922b21;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.open {
    background-color: #35904b;
    animation: pulse 2s infinite;
}

.status-dot.closed {
    background-color: #e74c3c;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.next-holiday {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.9rem;
}

.next-holiday i {
    color: var(--secondary-color);
    margin-right: 6px;
}

/* ─── Tech Tips List ────────────────────────────────── */
.techtip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.techtip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-light);
}

.techtip-item:last-child {
    border-bottom: none;
}

.techtip-info {
    flex: 1;
}

.techtip-info .title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.techtip-info .subtitle {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 2px;
    display: block;
}

.techtip-info .date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.badge-new {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
}

.techtip-download {
    flex-shrink: 0;
    margin-left: 12px;
}

.techtip-download a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-color);
    color: var(--white);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.techtip-download a i {
    font-size: 1rem;
}

.techtip-download a:hover {
    background: #c0392b;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.view-all-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ─── Two-Column Layout ────────────────────────────────── */
.content-columns {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px;
    padding: 24px 20px;
}

/* ─── Sidebar ──────────────────────────────────────────── */
.sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.sidebar-card h3 i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.sidebar-tagline {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 12px;
}

/* Sidebar Tech Tips List */
.sidebar-tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tip-list li {
    border-bottom: 1px solid var(--bg-light);
}

.sidebar-tip-list li:last-child {
    border-bottom: none;
}

.sidebar-tip-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.sidebar-tip-list a:hover {
    color: var(--secondary-color);
}

.sidebar-tip-list .tip-title {
    flex: 1;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-tip-list .fa-download {
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.sidebar-view-all {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--secondary-color);
}

/* Sidebar FAQ Accordion Overrides */
.sidebar-card .accordion-item {
    border: none;
    border-bottom: 1px solid var(--bg-light);
}

.sidebar-card .accordion-item:last-child {
    border-bottom: none;
}

.sidebar-card .accordion-button {
    padding: 10px 4px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
    box-shadow: none;
}

.sidebar-card .accordion-button:not(.collapsed) {
    color: var(--secondary-color);
    background: transparent;
    box-shadow: none;
}

.sidebar-card .accordion-button::after {
    width: 0.9rem;
    height: 0.9rem;
    background-size: 0.9rem;
}

.sidebar-card .accordion-body {
    padding: 4px 4px 12px;
    font-size: 0.83rem;
    color: var(--text-light);
    line-height: 1.5;
}

.sidebar-card .accordion-body p {
    margin-bottom: 6px;
}

.sidebar-card .accordion-body a {
    color: var(--secondary-color);
}

/* ─── Main Content Feed ────────────────────────────────── */
.main-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 24px 28px;
    border-radius: 10px;
}

/* Blog Post Cards — flat within white feed, separated by dividers */
.post-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
    overflow: hidden;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card:hover {
    box-shadow: none;
}

.post-card-body {
    padding: 20px 0;
}

.post-card.featured {
    border-left: none;
    border-bottom: 2px solid var(--bg-light);
}

.post-card.featured .post-card-body {
    padding: 20px 0 24px;
}

.post-category-badge {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-pin-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-amber);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    margin-left: 6px;
}

.post-card h2,
.post-card h3 {
    margin: 10px 0 8px;
    line-height: 1.3;
}

.post-card h2 { font-size: 1.3rem; }
.post-card h3 { font-size: 1.1rem; }

.post-card h2 a,
.post-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: var(--secondary-color);
}

.post-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.post-meta i {
    margin-right: 4px;
}

.post-excerpt {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.post-read-more {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--secondary-color);
}

.post-read-more:hover {
    color: #2980b9;
}

/* ─── Blog Post Modal ──────────────────────────────────── */
.blog-post-modal {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-lg);
}

.blog-modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border-bottom: 2px solid var(--bg-light);
    padding: 20px 28px 16px;
    align-items: flex-start;
}

.blog-modal-header-content {
    flex: 1;
}

.blog-modal-header .modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 6px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.blog-modal-header .post-meta {
    margin-bottom: 0;
}

.blog-modal-body {
    padding: 24px 28px 28px;
    max-height: 65vh;
    overflow-y: auto;
}

/* Custom scrollbar for the modal body */
.blog-modal-body::-webkit-scrollbar {
    width: 8px;
}

.blog-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.blog-modal-body::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.blog-modal-body::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Firefox scrollbar */
.blog-modal-body {
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f1f1f1;
}

/* ─── Blog Post Content Typography ─────────────────────── */
.blog-post-full .post-meta {
    margin-bottom: 16px;
}

.post-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-dark);
    max-width: 680px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content p:first-child {
    font-size: 1.02rem;
    color: #333;
}

.post-content h2, .post-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bg-light);
}

.post-content h2 {
    font-size: 1.2rem;
}

.post-content h3 {
    font-size: 1.05rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.post-content a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-color: rgba(52, 152, 219, 0.3);
    text-underline-offset: 2px;
}

.post-content a:hover {
    text-decoration-color: var(--secondary-color);
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
    padding: 12px 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}

.post-content code {
    background: #f4f5f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    color: #c7254e;
}

.post-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--bg-light);
    margin: 24px 0;
}

/* ─── Blog Post Attachments ────────────────────────────── */
.blog-attachments {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
}

.blog-attachments-header {
    font-family: 'Expletus Sans', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.blog-attachments-header i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.blog-attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.blog-attachment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid transparent;
}

.blog-attachment-card:hover {
    background: #fff;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
    text-decoration: none;
}

.blog-attachment-card .attachment-icon {
    font-size: 1.3rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.blog-attachment-card .attachment-info {
    flex: 1;
    min-width: 0;
}

.blog-attachment-card .attachment-info strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-attachment-card .attachment-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.blog-attachment-card .attachment-dl {
    flex-shrink: 0;
    color: var(--secondary-color);
    font-size: 0.85rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.blog-attachment-card:hover .attachment-dl {
    opacity: 1;
}

/* ─── Bottom Info Strip ────────────────────────────────── */
.bottom-strip {
    background: transparent;
    padding: 32px 20px;
    margin-top: 0;
}

.bottom-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #dff0e4;
    border: 1px solid #35904b;
    border-radius: 10px;
    padding: 24px;
}

.bottom-card {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.bottom-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.bottom-card h3 i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.bottom-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.client-resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.client-resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-resources-list li {
    margin-bottom: 8px;
}

.client-resources-list li:last-child {
    margin-bottom: 0;
}

.client-resources-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.client-resources-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.client-resources-list a i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* ─── Holiday Modal (custom, works alongside Bootstrap modals) ─── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay .modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Login Modal Result States */
.login-result {
    border-radius: 6px;
    padding: 14px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
}
.login-result.success {
    background: #dff0e4;
    color: #2a7340;
}
.login-result.error {
    background: #fadbd8;
    color: #922b21;
}

.holiday-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.holiday-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.holiday-list li:last-child {
    border-bottom: none;
}

.holiday-list li.past {
    opacity: 0.5;
}

.holiday-list .holiday-date {
    color: var(--text-light);
    white-space: nowrap;
    margin-left: 16px;
}

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0;
    margin-top: 0;
    border-top: 3px solid var(--success-green);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-info p {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-info a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-partners {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.6;
}

.footer-partners img {
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* ─── Mobile Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-nav {
        gap: 12px;
        font-size: 0.85rem;
    }

    .header-brand .portal-label {
        display: none;
    }

    /* Action cards stack on mobile, reordered per brief */
    .action-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .action-card.remote-support { order: 1; }
    .action-card.call-us { order: 2; }
    .action-card.submit-ticket { order: 3; }

    .section-grid {
        grid-template-columns: 1fr;
    }

    /* Two-column → stacked: main content first, sidebar below */
    .content-columns {
        grid-template-columns: 1fr;
        padding: 16px 12px 24px;
    }

    .sidebar {
        order: 2;
        border-radius: 10px;
        margin-top: 20px;
    }

    .main-feed {
        order: 1;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .post-card-body {
        padding: 16px 0;
    }

    .post-card.featured .post-card-body {
        padding: 16px 0 20px;
    }

    /* Bottom strip stacks */
    .bottom-strip-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .client-resources-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .action-card {
        padding: 24px 16px;
    }
}
