/**
 * News Page Styles
 *
 * @package PNK_Group
 */

/* Hero Section - matching advantages and portfolio design */
.news-hero {
    position: relative;
    height: 600px;
    background-color: var(--bg-dark);
    margin-bottom: 3rem;
}

.news-hero .hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.news-hero .hero-placeholder {
    background-color: #404040;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.news-hero .hero-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0 3rem 0;
}

.news-hero .hero-info-card {
    background-color: transparent;
    backdrop-filter: none;
    padding: 0;
    max-width: 1280px;
}

.news-hero .hero-info-card h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.news-hero .hero-subtitle {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
}

/* News Grid Section */
.news-grid-section {
    padding: 3rem 0 5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* News Card */
.news-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #d4d4d4;
}

.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);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #9ca3af;
    font-size: 4rem;
}

/* Badge Styles */
.news-badge {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.news-badge-featured {
    left: 1rem;
    background-color: rgba(220, 38, 38, 0.9);
    color: #ffffff;
}

.news-badge-external {
    right: 1rem;
    background-color: rgba(43, 72, 141, 0.9);
    color: #ffffff;
    font-size: 1.25rem;
    padding: 0.625rem;
    border-radius: 50%;
}

/* Card Content */
.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.news-card-date,
.news-card-category {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
}

.news-card-date i,
.news-card-category i {
    font-size: 0.875rem;
}

.news-card-category {
    color: var(--brand-primary-blue);
    font-weight: 500;
}

.news-card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card-description {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-card-read-more {
    color: var(--brand-primary-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.news-card:hover .news-card-read-more {
    gap: 0.75rem;
}

.news-card-read-more i {
    font-size: 0.875rem;
}

/* Featured Card Highlight */
.news-card-featured {
    border-color: #dc2626;
    border-width: 2px;
}

/* No News Message */
.no-news-message {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-news-message i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.no-news-message p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: var(--brand-primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background-color: var(--brand-primary-blue);
    color: #ffffff;
    border-color: var(--brand-primary-blue);
}

.pagination .current {
    background-color: var(--brand-primary-blue);
    color: #ffffff;
    border-color: var(--brand-primary-blue);
}

.pagination .dots {
    border: none;
    background: none;
    color: #6b7280;
    cursor: default;
}

/* Responsive Design */
@media (max-width: 767px) {
    .news-hero {
        height: 500px;
    }

    .news-hero .hero-info-card {
        padding: 0;
    }

    .news-hero .hero-info-card h1 {
        font-size: 1.5rem;
    }

    .news-hero .hero-subtitle {
        font-size: 1rem;
    }

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

    .news-grid-section {
        padding: 2rem 0 3rem;
    }

    .news-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .news-grid {
        gap: 1.5rem;
    }
}
