/*
Theme Name: Hire One 2
Theme URI: 
Author: HireOne
Author URI: 
Description: Redesigned Hire One theme (2026). Built from the HireOne theme so vehicles, schema and tracking stay the same.
Version: 2.0.18
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hireone
*/

/* Main styles are in the css/style.css file */ 

/* News Page Styles */
.news-page {
    padding: 4rem 0;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
}

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

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

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

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date i {
    color: #ff0005;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #ff0005;
}

.news-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #ff0005;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #cc0004;
}

.read-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

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

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #ff0005;
    border-color: #ff0005;
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f9fa;
    border-color: #ff0005;
    color: #ff0005;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .news-page {
        padding: 2rem 0;
    }

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

    .news-image {
        height: 200px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .news-content {
        padding: 1rem;
    }
}

/* Single Post Styles */
.single-post {
    background: #fff;
}

.post-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

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

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.post-category {
    margin-bottom: 1rem;
}

.post-category a {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: #ff0005;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.post-category a:hover {
    background: #cc0004;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post-date {
    color: #666;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date i {
    color: #ff0005;
}

.post-body {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.prev-post,
.next-post {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.prev-post {
    align-items: flex-start;
}

.next-post {
    align-items: flex-end;
    text-align: right;
}

.prev-post:hover,
.next-post:hover {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.post-navigation span {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-navigation strong {
    color: #2c3e50;
    font-weight: 500;
}

.post-navigation i {
    color: #ff0005;
    margin: 0 0.5rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .post-featured-image {
        height: 300px;
    }

    .post-content {
        padding: 2rem 1rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .next-post {
        align-items: flex-start;
        text-align: left;
    }
} 