/* SECTION START: Modern News Page Styling */
/* ===================================================== */

/* News Page Layout */
.news-page-container {
    padding: 0 0 var(--space-10) 0;
}

/* When navigation is visible, adjust spacing */
.idsk-main-content .news-page-container {
    padding: 0 var(--space-5) var(--space-10) var(--space-5);
}

/* When navigation is hidden, center content */
.navigation-hidden .news-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5) var(--space-10) var(--space-5);
}

.news-hero-section {
    background: #fff;
    color: var(--color-black);
    padding: var(--space-10) 0;
    margin-bottom: var(--space-8);
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e3e6ea;
}

.news-hero-section::before {
    display: none;
}

.news-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-hero-title {
    font-size: 48px;
    font-weight: var(--fw-bold);
    color: var(--color-black);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.1;
}

.news-hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #424242;
    margin: 0;
    line-height: 1.4;
}

/* News Content */
.news-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Newsletter Subscription Section */
.newsletter-section {
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-title {
    font-size: 24px;
    font-weight: var(--fw-bold);
    color: var(--color-black);
    margin: 0 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.newsletter-title::before {
    content: "📧";
    font-size: 28px;
}

.newsletter-description {
    font-size: 16px;
    color: #424242;
    margin: 0 0 var(--space-6) 0;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 500px;
    flex-wrap: wrap;
}

.newsletter-form .govuk-input {
    flex: 1;
    min-width: 280px;
    font-size: 16px;
    padding: var(--space-3) var(--space-4);
    border-radius: 5px;
    border: 2px solid var(--color-border);
    transition: all 0.2s ease;
}

.newsletter-form .govuk-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 112, 184, 0.2);
}

.newsletter-form .govuk-button {
    background: var(--color-success);
    border: 2px solid var(--color-success);
    color: white;
    font-weight: var(--fw-semibold);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.newsletter-form .govuk-button:hover {
    background: #033608;
    border-color: #033608;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 60, 0.2);
}

/* News Items Styling */
.news-items-container {
    margin-bottom: var(--space-10);
}

.news-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 3px solid var(--color-primary);
}

.news-items-title {
    font-size: 32px;
    font-weight: var(--fw-bold);
    color: var(--color-black);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.news-items-title::before {
    content: "📰";
    font-size: 36px;
}

.news-item-modern {
    background: white;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark));
}

.news-item-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.news-item-header {
    margin-bottom: var(--space-5);
}

.news-item-title {
    font-size: 24px;
    font-weight: var(--fw-bold);
    color: var(--color-black);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.3;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #424242;
    font-weight: 500;
}

.news-item-date::before {
    content: "📅";
    font-size: 16px;
}

.news-item-edited {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-error);
    background: #fef7f7;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item-edited::before {
    content: "✏️";
    font-size: 14px;
}

.news-item-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-black);
    margin-bottom: var(--space-6);
}

.news-item-content p {
    margin: 0 0 var(--space-4) 0;
}

.news-item-content p:last-child {
    margin-bottom: 0;
}

/* News Files Styling */
.news-files-section {
    border-top: 1px solid #e3e6ea;
    padding-top: var(--space-5);
}

.news-files-title {
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--color-black);
    margin: 0 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.news-files-title::before {
    content: "📎";
    font-size: 18px;
}

.news-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.news-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    transition: all 0.2s ease;
}

.news-file-item:hover {
    background: #e8f4f8;
    border-color: var(--color-primary);
}

.news-file-name {
    font-weight: var(--fw-semibold);
    color: var(--color-black);
    flex: 1;
}

.news-file-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    transition: all 0.2s ease;
}

.news-file-download:hover {
    background: var(--color-primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(29, 112, 184, 0.3);
}

.news-file-download::before {
    content: "⬇️";
    font-size: 16px;
}

/* RSS Feed Link */
.news-rss-section {
    background: #fff2cc;
    border: 1px solid #ffeb3b;
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-8);
    text-align: center;
}

/* .news-rss-link, .news-rss-icon — IDSK3 v app-idsk3.css */

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero-section {
        padding: var(--space-8) 0;
    }
    
    .news-hero-title {
        font-size: 26px;
    }
    
    .news-hero-subtitle {
        font-size: 15px;
    }
    
    .newsletter-section {
        padding: var(--space-6);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .govuk-input {
        min-width: 100%;
    }
    
    .news-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .news-items-title {
        font-size: 28px;
    }
    
    .news-item-modern {
        padding: var(--space-6);
    }
    
    .news-item-title {
        font-size: 20px;
    }
    
    .news-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .news-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
}

@media (max-width: 480px) {
    .news-hero-section {
        padding: 28px 0;
    }
    
    .news-hero-title {
        font-size: 22px;
    }
    
    .news-hero-subtitle {
        font-size: 14px;
    }
    
    .newsletter-section {
        padding: var(--space-5);
    }
    
    .news-item-modern {
        padding: var(--space-5);
    }
    
    .news-items-title {
        font-size: 24px;
    }
}

/* News Subscription Section */
.news-subscription-section {
    background: #f8f8f8;
    border: 1px solid #e3e6ea;
    border-radius: var(--radius-md);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    text-align: center;
}

.news-subscription-title {
    font-size: 24px;
    font-weight: var(--fw-bold);
    color: var(--color-black);
    margin: 0 0 var(--space-4) 0;
}

.news-subscription-description {
    font-size: 16px;
    color: #424242;
    line-height: 1.5;
    margin: 0 auto var(--space-6) auto;
    max-width: 600px;
}

.news-subscription-form {
    margin: 0 auto;
    max-width: 800px;
}

/* News subscription form-row, input, button — IDSK3 v app-idsk3.css */

.news-subscription-input-wrapper .govuk-error-message {
    margin-bottom: var(--space-2);
    font-size: 16px;
    font-weight: var(--fw-semibold);
    text-align: left;
}

.news-subscription-errors {
    margin-top: var(--space-4);
    text-align: left;
}

/* News Items Section */
.news-items-section {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: var(--radius-md);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
}

/* .news-section-title — IDSK3 v app-idsk3.css */

/* News Pagination Section */
.news-pagination-section {
    margin-top: var(--space-6);
}

/* Responsive Design for Subscription Form */
@media (max-width: 768px) {
    .news-hero-title {
        font-size: 32px;
    }
    
    .news-hero-subtitle {
        font-size: 16px;
    }
    
    .news-subscription-section {
        padding: var(--space-6);
    }
    
    .news-items-section {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    .news-hero-title {
        font-size: 24px;
    }
    
    .news-hero-subtitle {
        font-size: 14px;
    }
    
    .news-subscription-section {
        padding: var(--space-5);
    }
    
    .news-subscription-title {
        font-size: 20px;
    }
    
    .news-subscription-description {
        font-size: 14px;
    }
    
    .news-items-section {
        padding: var(--space-5);
    }
    
    .news-section-title {
        font-size: 20px;
    }
}

/* ===================================================== */
/* SECTION END: Modern News Page Styling */
