/* ===== Latest News Shortcode ===== */

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-thumb {
    margin: 0 0 15px;
}

.news-thumb a {
    display: block;
    width: 100%;
    padding-bottom: 65%;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px;
    line-height: 1.3;
}

.news-title a {
    color: #fff;
    text-decoration: none;
    transition: all ease 0.3s;
}

.news-title a:hover {
    color: #ce3631;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.6;
}

.news-readmore {
    margin: 0 0 15px;
}

.news-readmore a {
    color: #ce3631;
    font-weight: 600;
    text-decoration: none;
}

.news-readmore a:hover {
    text-decoration: underline;
}

/* ===== Pagination ===== */
.latest-news-pagination {
    margin-top: 30px;
    text-align: center;
}

.latest-news-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.latest-news-pagination ul li a,
.latest-news-pagination ul li span {
    display: inline-block;
    padding: 8px 12px;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.latest-news-pagination ul li a:hover {
    color: #ce3631;
}

.latest-news-pagination ul li span.current {
    background: #ce3631;
    color: #fff;
}

@media (max-width: 1023px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Single News Page Styles ===== */

.single-news-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-news-article .entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.single-news-article .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 25px;
    text-transform: uppercase;
}

.single-news-article .entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #cccccc;
    font-size: 0.9rem;
}

.single-news-article .entry-date {
    font-weight: 500;
    color: #ffffff;
}

.single-news-article .entry-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.single-news-article .category-badge {
    background: #ce3631;
    color: #fff;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-news-article .entry-featured-image {
    margin: 0 0 40px;
    text-align: center;
}

.single-news-article .featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
}

.single-news-article .entry-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 50px;
}

.single-news-article .entry-content p {
    margin: 0 0 25px;
    color: #ffffff;
}

.single-news-article .entry-content h2,
.single-news-article .entry-content h3,
.single-news-article .entry-content h4 {
    color: #ffffff;
    margin: 40px 0 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.single-news-article .entry-content h2 {
    font-size: 1.8rem;
}

.single-news-article .entry-content h3 {
    font-size: 1.5rem;
}

.single-news-article .entry-content h4 {
    font-size: 1.3rem;
}

.single-news-article .entry-footer {
    padding: 30px 0 0;
    text-align: center;
}

.single-news-article .edit-link a {
    color: #ce3631;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.single-news-article .edit-link a:hover {
    color: #ffffff;
}

/* Post Navigation */
.post-navigation {
    margin: 60px 0 40px;
    padding: 0;
}

.post-navigation .screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: rgba(206, 54, 49, 0.1);
    border: 2px solid #ce3631;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #ce3631;
    color: #fff;
    transform: translateY(-2px);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ce3631;
    letter-spacing: 1px;
}

.post-navigation a:hover .nav-subtitle {
    color: #ffffff;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

/* Page Links for Paginated Content */
.page-links {
    margin: 30px 0;
    text-align: center;
    padding: 25px;
    background: rgba(206, 54, 49, 0.1);
    border: 1px solid #ce3631;
    border-radius: 12px;
}

.page-links a,
.page-links>span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 6px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-links a:hover {
    background: #ce3631;
    color: #fff;
}

.page-links>span {
    background: #ce3631;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 767px) {
    .single-news-article {
        padding: 30px 15px;
    }

    .single-news-article .entry-title {
        font-size: 2rem;
    }

    .single-news-article .entry-meta {
        flex-direction: column;
        gap: 15px;
    }

    .single-news-article .entry-content {
        font-size: 1.1rem;
    }

    .post-navigation .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }

    .post-navigation a {
        padding: 15px;
    }
}