/* News Page Styles */

/* Hero Banner */
.news-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/product-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-hero .hero-body {
    position: relative;
    z-index: 1;
    padding: 5rem 1.5rem;
}

.news-hero .title,
.news-hero .subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* News List */
.news-list-section {
    padding: 3rem 1.5rem;
}

.news-list {
    margin-bottom: 3rem;
}

.news-item {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 2rem;
}

.news-image {
    margin-right: 1.5rem;
    width: 300px;
    height: 200px;
    background-color: #888;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    border: none;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-summary {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.view-more-btn {
    background-color: transparent;
    border: 1px solid #0099ff;
    color: #0099ff;
    font-size: 0.85rem;
    padding: 0.25rem 1rem;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #0099ff;
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination-link.is-current {
    background-color: #0099ff;
    border-color: #0099ff;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #0099ff;
    padding: 3rem 1.5rem;
}

.contact-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form .input {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    height: 3rem;
}

.contact-form .button {
    margin-top: 1rem;
    padding: 0.5rem 2rem;
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0099ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.8;
    z-index: 99;
}

.back-to-top:hover {
    opacity: 1;
    color: white;
}

/* Side Contact Buttons */
.side-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 99;
}

.side-contact-item {
    display: flex;
    align-items: center;
    background-color: #0099ff;
    color: white;
    padding: 10px;
    margin-bottom: 1px;
    transition: all 0.3s;
}

.side-contact-item i {
    margin-right: 8px;
}

.side-contact-item span {
    display: none;
    white-space: nowrap;
}

.side-contact-item:hover {
    color: white;
    padding-right: 15px;
}

.side-contact-item:hover span {
    display: inline;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-image {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 1rem;
        height: 200px;
    }

    .view-more-btn {
        align-self: flex-start;
    }

    .contact-form .columns {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-form .column {
        padding: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .news-hero .hero-body {
        padding: 3rem 1rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .pagination-link {
        font-size: 0.8rem;
    }
}

/* WordPress Pagination Styling to match Bulma */
nav.pagination .page-numbers {
    /* Reset WP default list styles */
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
    /* Mimic Bulma's pagination-list flex behavior */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start; /* Default, adjust if needed */
    font-size: 1rem; /* Match Bulma base */
    margin: -0.25rem; /* Match Bulma negative margin */
}

nav.pagination .page-numbers li {
    /* Mimic Bulma list item margin */
    margin: 0.25rem;
}

nav.pagination .page-numbers a.page-numbers,
nav.pagination .page-numbers span.page-numbers {
    /* Mimic Bulma's pagination-link */
    display: inline-flex; /* Use inline-flex for alignment */
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em; /* Bulma padding */
    min-width: 2.5em; /* Bulma min-width */
    height: 2.5em; /* Bulma height */
    border: 1px solid #dbdbdb; /* Bulma border */
    border-radius: 4px; /* Bulma border-radius */
    color: #363636; /* Bulma color */
    text-align: center;
    text-decoration: none; /* Remove underline from links */
    background-color: white; /* Bulma background */
    transition: all 0.2s ease; /* Add transition */
}

nav.pagination .page-numbers a.page-numbers:hover {
    /* Mimic Bulma hover */
    border-color: #b5b5b5;
    color: #363636;
    z-index: 2;
}

nav.pagination .page-numbers span.page-numbers.current {
    /* Mimic Bulma's is-current */
    background-color: #0099ff; /* Use theme color */
    border-color: #0099ff; /* Use theme color */
    color: #fff;
    z-index: 3;
}

nav.pagination .page-numbers span.page-numbers.dots {
    /* Mimic Bulma's pagination-ellipsis */
    color: #b5b5b5;
    border-color: transparent;
    background-color: transparent;
    pointer-events: none;
}

/* Style Previous/Next links */
/* Assuming paginate_links outputs <a class="prev page-numbers">...</a> */
nav.pagination a.prev.page-numbers,
nav.pagination a.next.page-numbers {
    /* Mimic Bulma's pagination-previous/next */
    padding-left: 0.75em;
    padding-right: 0.75em;
    /* Add specific styles if needed, Bulma defaults are often sufficient */
}

/* Ensure the nav itself is centered as per the class */
nav.pagination.is-centered {
    justify-content: center;
}
nav.pagination.is-centered .page-numbers {
    justify-content: center; /* Center the list items */
}
