/* =========================================================================
   In the News Page Styles
   ========================================================================= */

/* Disclaimer Section */
.news-disclaimer-section {
    background-color: var(--color-light-bg);
    padding: var(--spacing-lg) 0;
}

/* Disclaimer — inside main content area, not separate section */
.news-disclaimer {
    background-color: var(--color-light-bg-alt);
    border-left: 4px solid var(--color-accent);
    padding: 16px;
    border-radius: 0;
    margin-bottom: 32px;
}

.news-disclaimer p {
    font-size: var(--font-size-sm);
    color: var(--color-light-text-secondary);
    margin-bottom: 0;
}

.news-disclaimer p strong {
    color: var(--color-light-text-primary);
}

/* White content section */
.news-content-section {
    background-color: var(--color-light-bg);
    padding: 48px 0 64px;
}

/* 2-column layout: content left (2fr), sidebar right (1fr) — matches lg:grid-cols-3 */
.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 1025px) {
    .news-layout {
        gap: 48px;
    }
}

.news-sidebar {
    position: sticky;
    top: 96px;
    order: 2;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Sidebar form: news-specific overrides (base light styles in sidebar.css) */
.news-sidebar .sidebar-form-card {
    border-radius: 0;
}

.news-sidebar .sidebar-form-card .form-title {
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 4px;
}

.news-sidebar .sidebar-form-card .form-subtitle {
    color: var(--color-light-text-primary);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
}

.news-sidebar .sidebar-form-card .sidebar-form-phone a {
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    font-size: 1.125rem;
}

.news-sidebar .sidebar-form-card p.form-secure-note {
    color: var(--color-light-text-muted);
}

.news-sidebar .sidebar-form-card .gform_wrapper.gravity-theme .gfield_label {
    color: var(--color-light-text-secondary);
}

.news-sidebar .sidebar-form-card .gform_wrapper.gravity-theme input:not([type="submit"]),
.news-sidebar .sidebar-form-card .gform_wrapper.gravity-theme select,
.news-sidebar .sidebar-form-card .gform_wrapper.gravity-theme textarea {
    background-color: var(--color-light-bg);
    border: 1px solid var(--color-light-border-hover);
    color: var(--color-light-text-primary);
}

.news-main {
    order: 1;
}

/* Intro */
.news-intro {
    max-width: 100%;
    margin-bottom: var(--spacing-xl);
}

.news-intro h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-light-text-primary);
}

.news-intro p {
    font-size: var(--font-size-base);
    color: var(--color-light-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* News Articles — stacked list with bottom borders (matches reference) */
.news-articles-grid {
    display: flex;
    flex-direction: column;
}

/* News article items — border-bottom separated list */
.news-content-section .news-card {
    overflow: hidden;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-light-border);
    border-radius: 0;
    padding-bottom: 40px;
    margin-bottom: 40px;
    transition: none;
}

.news-content-section .news-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-content-section .news-card:hover {
    border-color: var(--color-light-border);
    box-shadow: none;
    transform: none;
}

.news-content-section .news-card .card-body {
    background-color: transparent;
    padding: 0;
}

/* Image: full width, h-56 (224px) on mobile, h-72 (288px) on md+ */
.news-card-image {
    height: 224px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

@media (min-width: 768px) {
    .news-card-image {
        height: 288px;
    }
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

/* Hover overlay on image with "View Article" text */
.news-card-image::after {
    content: 'View Article';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-card:hover .news-card-image::after {
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text-primary);
}

/* Meta: source + date inline */
.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-xs);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Source: text-lg font-bold (matches reference) */
.news-card-source {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    text-transform: none;
    letter-spacing: normal;
}

.news-card-date {
    font-size: var(--font-size-sm);
    color: var(--color-light-text-muted);
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-light-text-primary);
    margin-bottom: 16px;
    line-height: var(--line-height-snug);
}

.news-content-section .card-text {
    color: var(--color-light-text-secondary);
    line-height: 1.625;
    margin-bottom: 16px;
    font-size: var(--font-size-base);
}

/* Read More link */
.news-card-readmore {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.news-card-readmore:hover {
    text-decoration: underline;
}

/* Notable Cases — dark cards on slightly lighter dark bg */
.news-notable-section {
    background-color: var(--color-light-bg);
    padding: 48px 0 64px;
}

.news-notable-section .section-header .section-label {
    color: var(--color-accent);
}

.news-notable-section .section-header .section-title,
.news-notable-section > .container > .section-title {
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xl);
}

/* Single-column vertical stack for notable cases */
.notable-cases-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Media card layout: image left, content right */
.notable-case-card {
    display: flex;
    flex-direction: row;
    background-color: var(--color-bg-primary);
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.notable-case-card:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Image container: 40% width on desktop */
.notable-case-image {
    flex: 0 0 40%;
    max-width: 40%;
    min-height: 200px;
    overflow: hidden;
    position: relative;
}

.notable-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.notable-case-card:hover .notable-case-image img {
    transform: scale(1.05);
}

/* Content container: fills remaining 60% */
.notable-case-content {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notable-case-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.notable-case-header h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.notable-case-year {
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    background: transparent;
    padding: 0;
}

.notable-case-card p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.625;
}

/* Notable case outcome badge */
.notable-case-outcome {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    padding: 8px 16px;
}

/* CTA Section */
.news-cta-section {
    background-color: var(--color-accent);
    padding: var(--spacing-2xl) 0;
}

.news-cta-section h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.news-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.news-cta-section .btn {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    border: none;
    font-weight: var(--font-weight-bold);
    padding: 12px 32px;
}

.news-cta-section .btn:hover {
    background-color: var(--color-bg-card-alt);
}

/* Responsive */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
        order: 2;
    }

    .news-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .notable-cases-stack {
        gap: 16px;
    }

    /* Stack notable case cards vertically on mobile */
    .notable-case-card {
        flex-direction: column;
    }

    .notable-case-image {
        flex: none;
        max-width: 100%;
        min-height: 180px;
        height: 200px;
    }

    .notable-case-content {
        padding: 20px;
    }
}
