/***************************************************
*                                                  *
*          WPD News Page Modern CSS                *
*          Unified with Homepage Design            *
*                                                  *
***************************************************/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Prata:wght@400&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background-color: #f3f3f3;
}

/* Header Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 3rem;
}

h2 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 2.5rem;
}

h3 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 2rem;
}

h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
  --primary-color: #8f4c73;
  --primary-hover: #631641;
  --dark-purple: #631641;
  --medium-purple: #7a3960;
  --green: #2F855A;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f3f3f3;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Screen reader only utility class */
.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;
}

/***************************************************
*                                                  *
*              News Page Styles                    *
*                                                  *
***************************************************/

/* Main page container */
.wpd-news-page {
    background-color: #ffffff;
    padding: 10rem 1.5rem 4rem;
    position: relative;
}

.wpd-news-page__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Page Header */
.wpd-news-page__header {
    text-align: center;
    margin-bottom: 4rem;
}

.wpd-news-page__title {
    font-family: 'Prata', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.wpd-news-page__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

.wpd-news-page__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* News Grid */
.wpd-news-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

/* Individual News Articles */
.wpd-news-article {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Article Content Container */
.wpd-news-article__content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Article Header */
.wpd-news-article__header {
    margin-bottom: var(--spacing-md);
}

.wpd-news-article__title {
    font-family: 'Prata', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.wpd-news-article__meta {
    display: flex;
    gap: var(--spacing-sm);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
}

.wpd-news-article__date {
    font-style: normal;
}

.wpd-news-article__author {
    position: relative;
}

.wpd-news-article__author::before {
    content: '•';
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
}

/* Article Body */
.wpd-news-article__body {
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.wpd-news-article__excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-light);
}

/* Article Footer */
.wpd-news-article__footer {
    margin-top: auto;
}

.wpd-news-article__download {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(143, 76, 115, 0.2);
}

.wpd-news-article__download:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 76, 115, 0.3);
    text-decoration: none;
}

.wpd-news-article__download i {
    font-size: 0.9rem;
}

/***************************************************
*                                                  *
*              Responsive Design                   *
*                                                  *
***************************************************/

/* Tablet Large Responsive Styles (1024px and below) */
@media (max-width: 1024px) {
    .wpd-news-page {
        padding: 11.5rem 1.5rem 6rem;
    }

    .wpd-news-page__title {
        font-size: 2rem;
    }

    .wpd-news-page__grid {
        gap: calc(var(--spacing-xl) * 0.85);
    }

    .wpd-news-article__title {
        font-size: 1.3rem;
    }

    .wpd-news-article__content {
        padding: var(--spacing-md);
    }

    .wpd-news-article__download {
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem;
    }
}

/* Tablet Responsive Styles (768px and below) */
@media (max-width: 768px) {
    .wpd-news-page {
        padding: 10.5rem 1.5rem 5rem;
    }

    .wpd-news-page__title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .wpd-news-page__subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }

    .wpd-news-page__header {
        margin-bottom: var(--spacing-xl);
    }

    .wpd-news-page__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .wpd-news-article__title {
        font-size: 1.25rem;
    }

    .wpd-news-article__content {
        padding: var(--spacing-md);
    }

    .wpd-news-article__excerpt {
        font-size: 0.95rem;
    }

    .wpd-news-article__download {
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive Styles (480px and below) */
@media (max-width: 480px) {
    .wpd-news-page {
        padding: 9rem 1rem 4rem;
    }

    .wpd-news-page__title {
        font-size: 1.75rem;
        padding-bottom: var(--spacing-xs);
    }

    .wpd-news-page__title::after {
        width: 60px;
        height: 2px;
    }

    .wpd-news-page__subtitle {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
    }

    .wpd-news-page__header {
        margin-bottom: var(--spacing-lg);
    }

    .wpd-news-page__grid {
        gap: var(--spacing-md);
    }

    .wpd-news-article__content {
        padding: var(--spacing-sm);
    }

    .wpd-news-article__title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .wpd-news-article__meta {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-sm);
    }

    .wpd-news-article__body {
        margin-bottom: var(--spacing-md);
    }

    .wpd-news-article__excerpt {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .wpd-news-article__download {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
        border-radius: 20px;
    }
}

/***************************************************
*                                                  *
*              Accessibility & Focus Styles        *
*                                                  *
***************************************************/

/* Focus styles for accessibility */
.wpd-news-article__download:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .wpd-news-article,
    .wpd-news-article__download {
        transition: none;
    }
    
    .wpd-news-article:hover,
    .wpd-news-article__download:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wpd-news-page__title::after {
        height: 4px;
    }
    
    .wpd-news-article {
        border: 2px solid var(--text-dark);
    }
    
    .wpd-news-article__download {
        border: 3px solid #ffffff;
    }
}