/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* =========================================================
   RENTAL POWER - CUSTOM SINGLE BLOG
   ========================================================= */

/* Main page */
.rental-power-single {
    width: 100%;
    background: #fff;
}

/* Main container */
.rp-blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 70px;
    box-sizing: border-box;
}

/* Breadcrumb */
.rp-breadcrumb {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.rp-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.rp-breadcrumb a:hover {
    color: #ff5a00;
}


/* =========================================================
   MAIN TWO COLUMN LAYOUT
   ========================================================= */

.rp-blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 780px) 320px;
    gap: 50px;
    align-items: start;
}

/* Main article */
.rp-blog-content {
    min-width: 0;
    width: 100%;
}

/* Sidebar */
.rp-blog-sidebar {
    width: 100%;
    min-width: 0;
    position: sticky;
    top: 30px;
}


/* =========================================================
   BLOG HEADER
   ========================================================= */

.rp-blog-header {
    margin-bottom: 25px;
}

.rp-blog-title {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    color: #171717;
}

.rp-blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #777;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.rp-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.rp-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}


/* =========================================================
   BLOG CONTENT
   ========================================================= */

.rp-blog-body {
    width: 100%;
    font-size: 17px;
    line-height: 1.75;
    color: #333;
}

.rp-blog-body p {
    margin: 0 0 22px;
}

.rp-blog-body h2 {
    margin: 45px 0 18px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #171717;
}

.rp-blog-body h3 {
    margin: 35px 0 15px;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    color: #171717;
}

.rp-blog-body h4 {
    margin: 30px 0 12px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #171717;
}

.rp-blog-body ul,
.rp-blog-body ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.rp-blog-body li {
    margin-bottom: 8px;
}

.rp-blog-body img {
    max-width: 100%;
    height: auto;
}

.rp-blog-body a {
    color: #ff5a00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rp-blog-body blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #ff5a00;
    background: #f7f7f7;
}


/* =========================================================
   SIDEBAR BOXES
   ========================================================= */

.rp-sidebar-box {
    margin-bottom: 30px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.rp-sidebar-box h3 {
    margin: 0 0 18px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
    color: #171717;
}


/* =========================================================
   CATEGORY LIST
   ========================================================= */

.rp-category-list,
.rp-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-category-list li,
.rp-service-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eeeeee;
}

.rp-category-list li:last-child,
.rp-service-list li:last-child {
    border-bottom: 0;
}

.rp-category-list a,
.rp-service-list a {
    display: block;
    padding: 11px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rp-category-list a:hover,
.rp-service-list a:hover {
    color: #ff5a00;
    padding-left: 5px;
}


/* =========================================================
   CONTACT BOX
   ========================================================= */

.rp-contact-box {
    background: #f8f8f8;
}

.rp-contact-box p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.rp-contact-item {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.rp-contact-item strong {
    display: block;
    margin-bottom: 3px;
    color: #222;
}

.rp-contact-item a,
.rp-contact-item span {
    color: #444;
    text-decoration: none;
}

.rp-contact-item a:hover {
    color: #ff5a00;
}

.rp-quote-button {
    display: inline-block;
    margin-top: 5px;
    padding: 12px 20px;
    background: #ff5a00;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.rp-quote-button:hover {
    background: #e84f00;
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.rp-related-posts {
    width: 100%;
    margin-top: 70px;
    padding-top: 45px;
    border-top: 1px solid #e5e5e5;
}

.rp-related-heading {
    margin-bottom: 30px;
}

.rp-related-heading h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #171717;
}

.rp-related-heading p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.rp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.rp-related-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rp-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.rp-related-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
}

.rp-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #777;
    font-weight: 600;
}

.rp-related-content {
    padding: 20px;
}

.rp-related-date {
    margin-bottom: 8px;
    color: #ff5a00;
    font-size: 12px;
    font-weight: 600;
}

.rp-related-content h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.35;
}

.rp-related-content h3 a {
    color: #171717;
    text-decoration: none;
}

.rp-related-content h3 a:hover {
    color: #ff5a00;
}

.rp-read-more {
    color: #ff5a00;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.rp-read-more:hover {
    color: #d94700;
}


/* =========================================================
   TABLES / WIDE CONTENT
   ========================================================= */

.rp-blog-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

.rp-blog-body th,
.rp-blog-body td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.rp-blog-body th {
    font-weight: 700;
    background: #f5f5f5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .rp-blog-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 35px;
    }

    .rp-blog-title {
        font-size: 38px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .rp-blog-container {
        padding: 35px 20px 55px;
    }

    .rp-blog-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .rp-blog-sidebar {
        position: static;
    }

    .rp-blog-title {
        font-size: 34px;
    }

    .rp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .rp-blog-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .rp-blog-title {
        font-size: 29px;
    }

    .rp-blog-body {
        font-size: 16px;
        line-height: 1.7;
    }

    .rp-blog-body h2 {
        font-size: 26px;
    }

    .rp-blog-body h3 {
        font-size: 21px;
    }

    .rp-related-grid {
        grid-template-columns: 1fr;
    }


    
    /* =========================================================
   BLOG ARCHIVE / LISTING PAGE
   ========================================================= */

.rp-archive-header {
    margin-bottom: 35px;
}

.rp-archive-title {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 700;
    color: #171717;
}

.rp-archive-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.rp-archive-content {
    min-width: 0;
    width: 100%;
}

.rp-archive-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rp-archive-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.rp-archive-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 5px;
    background: #f2f2f2;
}

.rp-archive-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rp-archive-image:hover img {
    transform: scale(1.04);
}

.rp-archive-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-archive-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #777;
}

.rp-archive-card-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.rp-archive-card-title a {
    color: #171717;
    text-decoration: none;
}

.rp-archive-card-title a:hover {
    color: #ff5a00;
}

.rp-archive-excerpt {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
}

/* Pagination */
.rp-pagination {
    margin-top: 45px;
}

.rp-pagination .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.rp-pagination a,
.rp-pagination span {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.rp-pagination a:hover {
    background: #ff5a00;
    color: #fff;
    border-color: #ff5a00;
}

/* Mobile */
@media (max-width: 700px) {
    .rp-archive-card {
        grid-template-columns: 1fr;
    }
    .rp-archive-title {
        font-size: 32px;
    }
}
}