/**
 * News Page Styles
 * Matches Fiorentini.com design
 */

/* ==========================================================================
   PAGE HEADER - NEWS
   ========================================================================== */
.page-header--news {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.page-header--news .page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-header--news .page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.page-header--news .page-header__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header--news .breadcrumb-nav {
    display: flex;
    justify-content: center;
}

.page-header--news .breadcrumb {
    justify-content: center;
    margin-bottom: 15px;
}

/* News Filter Section */
.pf-news-filter {
    padding: 30px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.pf-news-filter__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.pf-news-filter__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-news-filter__btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pf-secondary);
    background: var(--pf-white);
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pf-news-filter__btn:hover,
.pf-news-filter__btn.active {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: var(--pf-white);
}

.pf-news-filter__search form {
    display: flex;
    align-items: center;
    background: var(--pf-white);
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
}

.pf-news-filter__search input {
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.pf-news-filter__search button {
    padding: 10px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--pf-secondary);
    transition: color 0.3s ease;
}

.pf-news-filter__search button:hover {
    color: var(--pf-primary);
}

/* News Main Section */
.pf-news-main {
    padding: 60px 0 100px;
    background: var(--pf-white);
}

/* Featured Post */
.pf-news-featured {
    margin-bottom: 60px;
}

.pf-news-featured__link {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    text-decoration: none;
    background: var(--pf-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-news-featured__link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pf-news-featured__image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.pf-news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pf-news-featured__link:hover .pf-news-featured__image img {
    transform: scale(1.05);
}

.pf-news-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.pf-news-featured__content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pf-news-featured__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pf-news-featured__category {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-white);
    background: var(--pf-primary);
    border-radius: 20px;
    text-transform: uppercase;
}

.pf-news-featured__date {
    font-size: 14px;
    color: #888;
}

.pf-news-featured__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-secondary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.pf-news-featured__excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
}

.pf-news-featured__readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-primary);
}

/* News Grid */
.pf-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* News Card */
.pf-news-card {
    background: var(--pf-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.pf-news-card__link {
    text-decoration: none;
    display: block;
}

.pf-news-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.pf-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pf-news-card:hover .pf-news-card__image img {
    transform: scale(1.1);
}

.pf-news-card__category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--pf-white);
    background: var(--pf-primary);
    border-radius: 15px;
    text-transform: uppercase;
}

.pf-news-card__content {
    padding: 25px;
}

.pf-news-card__date {
    font-size: 13px;
    color: #555555;                  /* Darker gray for better contrast (7:1) */
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.pf-news-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pf-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.pf-news-card:hover .pf-news-card__title {
    color: var(--pf-primary);
}

.pf-news-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.pf-news-card__readmore {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-primary);
}

/* Pagination */
.pf-news-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pf-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--pf-secondary);
    background: var(--pf-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pf-news-pagination .page-numbers:hover,
.pf-news-pagination .page-numbers.current {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: var(--pf-white);
}

.pf-news-pagination .prev,
.pf-news-pagination .next {
    gap: 8px;
}

/* Empty State */
.pf-news-empty {
    text-align: center;
    padding: 80px 0;
}

.pf-news-empty__icon {
    color: #ddd;
    margin-bottom: 30px;
}

.pf-news-empty h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--pf-secondary);
    margin-bottom: 15px;
}

.pf-news-empty p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Newsletter Section */
.pf-newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--pf-secondary) 0%, #2a2a2a 100%);
}

.pf-newsletter__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.pf-newsletter__text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--pf-white);
    margin-bottom: 10px;
}

.pf-newsletter__text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.pf-newsletter__form {
    display: flex;
    gap: 15px;
}

.pf-newsletter__form input {
    padding: 16px 24px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    width: 350px;
    outline: none;
}

.pf-newsletter__form input:focus {
    box-shadow: 0 0 0 3px rgba(0, 140, 118, 0.3);
}

/* Buttons */
.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pf-btn--primary {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-accent) 100%);
    color: var(--pf-white);
}

.pf-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 140, 118, 0.3);
}

/* ==========================================================================
   SINGLE POST PAGE
   ========================================================================== */
.single .page-content {
    padding: 80px 0 100px;
    background: var(--pf-white);
}

.single .page-content__inner {
    max-width: 800px;
    margin: 0 auto;
}

.single .page-content__inner p {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 25px;
}

.single .page-content__inner h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-secondary);
    margin: 40px 0 20px;
}

.single .page-content__inner h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--pf-secondary);
    margin: 30px 0 15px;
}

.single .page-content__inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.single .page-content__inner ul,
.single .page-content__inner ol {
    margin: 20px 0 20px 30px;
}

.single .page-content__inner li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.single .page-content__inner blockquote {
    border-left: 4px solid var(--pf-primary);
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* Post Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.post-tags a {
    display: inline-block;
    padding: 6px 14px;
    margin: 5px 5px 5px 0;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: var(--pf-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--pf-primary);
    color: var(--pf-white);
}

/* Post Navigation */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-navigation a {
    font-weight: 600;
    color: var(--pf-primary);
    text-decoration: none;
}

.post-navigation a:hover {
    color: var(--pf-secondary);
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pf-secondary);
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 25px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--pf-secondary);
}

.comment-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

/* Back to News Link */
.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 14px 28px;
    background: var(--pf-primary);
    color: var(--pf-white);
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    background: var(--pf-secondary);
    color: var(--pf-white);
}

/* Responsive */
@media (max-width: 1199px) {
    .pf-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .page-header--news {
        min-height: 400px;
        padding-bottom: 60px;
    }

    .pf-news-filter__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-news-featured__link {
        grid-template-columns: 1fr;
    }

    .pf-news-featured__image {
        min-height: 300px;
    }

    .pf-news-featured__content {
        padding: 30px;
    }

    .pf-newsletter__content {
        flex-direction: column;
        text-align: center;
    }

    .pf-newsletter__form {
        flex-direction: column;
        width: 100%;
    }

    .pf-newsletter__form input {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .page-header--news {
        min-height: 350px;
        padding-bottom: 40px;
    }

    .single .page-content {
        padding: 50px 0 60px;
    }

    .single .page-content__inner p {
        font-size: 16px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .pf-news-filter {
        padding: 20px 0;
    }

    .pf-news-filter__categories {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .pf-news-filter__search {
        width: 100%;
    }

    .pf-news-filter__search input {
        width: 100%;
    }

    .pf-news-main {
        padding: 40px 0 60px;
    }

    .pf-news-featured {
        margin-bottom: 40px;
    }

    .pf-news-featured__title {
        font-size: 22px;
    }

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

    .pf-news-pagination {
        margin-top: 40px;
        flex-wrap: wrap;
    }

    .pf-newsletter {
        padding: 60px 0;
    }

    .pf-newsletter__text h2 {
        font-size: 26px;
    }
}
