/* ==========================================================================
   JAD GROUP -- NEWS PAGE STYLES
   Styles for: news index, article template, newsletter CTA.
   Shared styles (reset, variables, nav, footer, buttons) live in global.css.
   ========================================================================== */


/* ==========================================================================
   1. FEATURED ARTICLE (2-COLUMN HERO)
   ========================================================================== */

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.featured-article-image {
    border-radius: 12px;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 340px;
    transition: transform var(--transition);
}

.featured-article:hover .featured-article-image img {
    transform: scale(1.03);
}

/* Legacy class support */
.featured-article-img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.featured-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-article .category-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    align-self: flex-start;
}

.featured-article-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 4px;
}

.featured-article-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 8px;
}

.featured-article-content .date {
    font-size: 0.8rem;
    color: var(--grey-mid);
}

.featured-article-content .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    transition: gap var(--transition);
}

.featured-article-content .read-more:hover {
    gap: 10px;
}

.featured-article-content .btn {
    align-self: flex-start;
}


/* ==========================================================================
   2. ARTICLE META COMPONENTS
   ========================================================================== */

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(200, 150, 62, 0.1);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
}

.article-date {
    display: block;
    font-size: 0.82rem;
    color: var(--grey-dark);
    font-weight: 500;
}


/* ==========================================================================
   3. CATEGORY FILTERS
   ========================================================================== */

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
}

.news-filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--grey-light);
    border-radius: 50px;
    background: var(--white);
    color: var(--text-body);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.news-filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.news-filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Legacy categories list */
.categories-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.categories-list a {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--grey-light);
    background: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
    transition: all var(--transition);
}

.categories-list a:hover,
.categories-list a.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}


/* ==========================================================================
   4. NEWS ARTICLES GRID
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--grey-light);
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-card p {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    flex: 1;
}

.news-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    transition: all var(--transition);
}

.news-card:hover .news-card-link {
    color: var(--gold-dark);
}

/* Legacy article-card styles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.article-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--grey-light);
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.article-card-body {
    padding: 24px;
}

.article-card .category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
}

.article-card .date {
    font-size: 0.8rem;
    color: var(--grey-mid);
    margin-top: 4px;
}

.article-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 8px 0;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: var(--gold);
}

.article-card p {
    font-size: 0.85rem;
    color: var(--grey-dark);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   5. NEWSLETTER SIGNUP (NAVY BG)
   ========================================================================== */

.news-newsletter {
    background: var(--navy);
    padding: 64px 0;
}

.news-newsletter-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.news-newsletter-content h2 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.news-newsletter-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.news-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
}

.news-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
}

.news-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.news-newsletter-form input[type="email"]:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.09);
}

.news-newsletter-form button {
    padding: 14px 24px;
    background: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
    border-radius: 0 6px 6px 0;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all var(--transition);
}

.news-newsletter-form button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* Legacy newsletter CTA */
.newsletter-cta {
    background: var(--navy);
    padding: 64px;
    text-align: center;
    border-radius: 16px;
}

.newsletter-cta h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.newsletter-cta p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 62, 0.35);
}


/* ==========================================================================
   6. ARTICLE TEMPLATE -- HERO
   ========================================================================== */

.article-hero {
    min-height: 50vh;
}

.article-hero .page-hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.4) 0%,
        rgba(10, 22, 40, 0.7) 100%
    );
}

.article-hero-img {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 48px;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* ==========================================================================
   7. ARTICLE TEMPLATE -- HEADER & CONTENT
   ========================================================================== */

.article-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
}

.article-header .article-category {
    margin-bottom: 8px;
}

.article-header .article-date {
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    letter-spacing: -0.5px;
}

/* Legacy centered header */
.article-header .category-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--grey-dark);
}

.article-header .article-meta .author {
    font-weight: 600;
    color: var(--navy);
}

.article-header .article-meta .divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--grey-mid);
}


/* ==========================================================================
   8. ARTICLE TEMPLATE -- BODY (Prose)
   ========================================================================== */

.article-body {
    max-width: 720px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-body blockquote {
    margin: 40px 0;
    padding: 28px 32px;
    background: var(--off-white);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-body blockquote cite {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body ul li,
.article-body ol li {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 8px;
}

.article-body img {
    width: 100%;
    border-radius: 8px;
    margin: 32px 0;
}

.article-body a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(200, 150, 62, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.article-body a:hover {
    text-decoration-color: var(--gold);
}

.article-figure {
    margin: 40px 0;
}

.article-figure img {
    width: 100%;
    border-radius: 10px;
}

.article-figure figcaption {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--grey-dark);
    text-align: center;
    font-style: italic;
}


/* ==========================================================================
   9. SHARE BUTTONS
   ========================================================================== */

.article-share {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--grey-light);
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.article-share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--grey-light);
    background: var(--white);
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
}

.share-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 150, 62, 0.06);
    transform: translateY(-2px);
}

.share-btn svg {
    fill: currentColor;
}

/* Legacy share-buttons container */
.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--grey-light);
}


/* ==========================================================================
   10. RELATED ARTICLES
   ========================================================================== */

.related-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* ==========================================================================
   11. PAGINATION
   ========================================================================== */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.news-pagination a,
.news-pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    transition: all var(--transition);
}

.news-pagination a:hover {
    background: var(--off-white);
    color: var(--gold);
}

.news-pagination .current {
    background: var(--navy);
    color: var(--white);
}


/* ==========================================================================
   12. RESPONSIVE -- NEWS PAGES
   ========================================================================== */

/* --- 1024px Breakpoint --- */
@media (max-width: 1024px) {

    .featured-article {
        gap: 32px;
    }

    .featured-article-image img {
        min-height: 280px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-articles {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-cta {
        padding: 48px;
    }
}

/* --- 768px Breakpoint --- */
@media (max-width: 768px) {

    .featured-article {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-article-image img {
        min-height: 240px;
    }

    .featured-article-content h2 {
        font-size: 1.5rem;
    }

    .news-filters {
        gap: 6px;
        margin-bottom: 32px;
    }

    .news-filter-btn {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-body {
        padding: 20px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-list {
        gap: 6px;
    }

    .categories-list a {
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    .article-hero {
        min-height: 35vh;
    }

    .article-header {
        margin-bottom: 32px;
    }

    .article-body h2 {
        font-size: 1.3rem;
        margin-top: 32px;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }

    .article-body p {
        font-size: 1rem;
    }

    .article-body blockquote {
        padding: 24px;
        margin: 32px 0;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .share-buttons {
        margin-top: 32px;
        padding-top: 24px;
    }

    .related-articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-newsletter {
        padding: 48px 0;
    }

    .news-newsletter-form {
        flex-direction: column;
        gap: 0;
    }

    .news-newsletter-form input[type="email"] {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px 6px 0 0;
    }

    .news-newsletter-form button {
        border-radius: 0 0 6px 6px;
    }

    .newsletter-cta {
        padding: 40px 24px;
        border-radius: 12px;
    }

    .newsletter-cta h2 {
        font-size: 1.4rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* --- 480px Breakpoint --- */
@media (max-width: 480px) {

    .featured-article-image img {
        min-height: 200px;
    }

    .featured-article-content h2 {
        font-size: 1.3rem;
    }

    .featured-article-content p {
        font-size: 0.88rem;
    }

    .featured-article .category-tag {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .news-card h3 {
        font-size: 0.95rem;
    }

    .news-card p {
        font-size: 0.82rem;
    }

    .news-card-image {
        height: 160px;
    }

    .news-card-body {
        padding: 16px;
    }

    .article-card-body {
        padding: 20px;
    }

    .article-card h3 {
        font-size: 0.9rem;
    }

    .article-hero {
        min-height: 28vh;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-header .article-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-body p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .article-body blockquote {
        padding: 20px;
    }

    .article-body blockquote p {
        font-size: 0.95rem;
    }

    .article-figure {
        margin: 28px 0;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }

    .news-newsletter-content h2 {
        font-size: 1.4rem;
    }

    .news-newsletter-content p {
        font-size: 0.9rem;
    }

    .newsletter-cta {
        padding: 32px 20px;
    }

    .newsletter-cta h2 {
        font-size: 1.25rem;
    }

    .news-pagination a,
    .news-pagination span {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}