/*
 Theme Name:   Batiment Child
 Theme URI:    http://keenitsolutions.com/products/wordpress/batiment/
 Description:  Batiment Child
 Author:       RS Theme
 Author URI:   http://rstheme.com
 Template:     batiment
 Version:      2.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

/* =============================================
   BATIMENT – DEFAULT SINGLE POST
============================================= */

.batiment-single-post {
    background: #ffffff;
}

.custom-single-post {
    padding: 90px 0;
}

.custom-single-post > .container {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

/* Δύο ίσες στήλες */

.custom-post-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 70px;
}

/* Τίτλος */

.custom-post-header {
    margin-bottom: 35px;
}

.custom-post-title {
    margin: 0;
    color: #c6413e;
    font-size: 36px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

@media (max-width: 575px) {
    .custom-post-title {
        font-size: 26px;
    }
}

/* Κυρίως περιεχόμενο */

.custom-post-text {
    min-width: 0;
}

.custom-post-text .entry-content {
    color: #555555;
    font-size: 17px;
    line-height: 1.8;
}

.custom-post-text .entry-content > :first-child {
    margin-top: 0;
}

.custom-post-text .entry-content > :last-child {
    margin-bottom: 0;
}

.custom-post-text .entry-content img {
    max-width: 100%;
    height: auto;
}

/* Featured image */

.custom-post-media {
    min-width: 0;
}

.custom-post-media .project-img {
    margin: 0;
    overflow: hidden;
}

.custom-featured-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Previous / Next – δομή Batiment */

.custom-single-post .project-navigation {
    clear: both;
    margin-top: 80px;
    padding-top: 35px;
    border-top: 1px solid #e5e5e5;
}

.custom-single-post .project-navigation ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-single-post .project-navigation .next {
    text-align: right;
}

.custom-single-post .project-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.custom-single-post .project-navigation a:hover {
    color: #f5a623;
}

.custom-single-post .project-navigation i {
    font-size: 14px;
}

/* Pagination μέσα στο ίδιο post */

.custom-single-post .page-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
}

.custom-single-post .page-links > span,
.custom-single-post .page-links a span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedede;
}

/* Tablet και κινητά */

@media (max-width: 991px) {
    .custom-single-post {
        padding: 60px 0;
    }

    .custom-post-columns {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .custom-post-media {
        order: -1;
    }
}

@media (max-width: 575px) {
    .custom-single-post > .container {
        width: calc(100% - 30px);
    }

    .custom-post-title {
        font-size: 36px;
    }

    .custom-single-post .project-navigation ul {
        gap: 20px;
    }

    .custom-single-post .project-navigation a {
        font-size: 13px;
    }
}

/* =========================================
   PREVIOUS / NEXT – SAME CATEGORY
========================================= */

.post-category-navigation {
    clear: both;
    width: 100%;
    margin-top: 80px;
    padding-top: 35px;
    border-top: 1px solid #e5e5e5;
}

.post-navigation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: center;
}

.post-navigation-previous {
    text-align: left;
}

.post-navigation-next {
    text-align: right;
}

/* Κουμπιά */

.post-category-navigation a {
    display: inline-flex;
    min-height: 46px;
    padding: 14px 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6413e;
    border-radius: 0;
    color: #ffffff !important;
    background-color: #c6413e;
    text-decoration: none !important;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.post-category-navigation .navigation-direction {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.post-category-navigation i {
    color: #ffffff !important;
}

/* Hover */

.post-category-navigation a:hover,
.post-category-navigation a:focus {
    border-color: #a83432;
    color: #ffffff !important;
    background-color: #a83432;
}

.post-category-navigation a:hover .navigation-direction,
.post-category-navigation a:focus .navigation-direction {
    color: #ffffff !important;
}

/* Κινητά */

@media (max-width: 575px) {
    .post-category-navigation {
        margin-top: 50px;
    }

    .post-navigation-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .post-category-navigation a {
        padding: 13px 18px;
    }
}

/* =========================================
   CUSTOM POST GALLERY
========================================= */

.custom-post-gallery {
    clear: both;
    width: 100%;
    margin-top: 70px;
}

.custom-post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.custom-post-gallery-item {
    min-width: 0;
    overflow: hidden;
}

.custom-post-gallery-item .file-list-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.custom-post-gallery-item .image-popup {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.custom-post-gallery-item .custom-gallery-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Κόκκινο overlay */

.custom-post-gallery-item .p-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgb(198 65 62 / 75%);
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-post-gallery-item .p-zoom i {
    color: #ffffff;
}

.custom-post-gallery-item .image-popup:hover .custom-gallery-image {
    transform: scale(1.04);
}

.custom-post-gallery-item .image-popup:hover .p-zoom {
    opacity: 1;
}

/* Tablet */

@media (max-width: 991px) {
    .custom-post-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Κινητά */

@media (max-width: 575px) {
    .custom-post-gallery {
        margin-top: 50px;
    }

    .custom-post-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .custom-post-gallery-item .custom-gallery-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

.custom-gallery-title {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 14px;


    line-height: 1.25;
}

/* Μικρή διακοσμητική γραμμή */

.custom-gallery-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: #c6413e;
    content: "";
}

/* =========================================
   POSTS INDEX – 3 COLUMNS / LOAD MORE
========================================= */

.liontos-posts-page {
    padding: 80px 0;
    background-color: #ffffff;
}

.liontos-posts-page > .container {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.liontos-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px 30px;
}

.liontos-posts-grid.liontos-posts-grid--4-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.liontos-post-card {
    min-width: 0;
    margin: 0;
}

.liontos-post-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f2f2f2;
}

.liontos-post-thumbnail {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.liontos-post-card-image:hover .liontos-post-thumbnail {
    transform: scale(1.035);
}

.liontos-post-card-content {
    padding-top: 18px;
}

.liontos-post-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.liontos-post-card-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.25s ease;
}

.liontos-post-card-title a:hover,
.liontos-post-card-title a:focus {
    color: #c6413e;
}

.liontos-post-card-category {
    display: inline-block;
    color: #888888;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.liontos-post-card-category:hover,
.liontos-post-card-category:focus {
    color: #c6413e;
}

.liontos-load-more-wrap {
    margin-top: 60px;
    text-align: center;
}

.liontos-load-more {
    min-width: 170px;
    min-height: 48px;
    padding: 14px 28px;
    border: 1px solid #c6413e;
    border-radius: 0;
    color: #ffffff;
    background-color: #c6413e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        opacity 0.25s ease;
}

.liontos-load-more:hover,
.liontos-load-more:focus {
    border-color: #a83432;
    color: #ffffff;
    background-color: #a83432;
}

.liontos-load-more:disabled {
    cursor: wait;
    opacity: 0.65;
}

.liontos-no-posts {
    margin: 0;
    text-align: center;
}

@media (max-width: 991px) {
    .liontos-posts-page {
        padding: 60px 0;
    }

    .liontos-posts-grid,
    .liontos-posts-grid.liontos-posts-grid--4-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 25px;
    }
}

@media (max-width: 575px) {
    .liontos-posts-page {
        padding: 45px 0;
    }

    .liontos-posts-page > .container {
        width: calc(100% - 30px);
    }

    .liontos-posts-grid,
    .liontos-posts-grid.liontos-posts-grid--4-columns {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .liontos-post-card-title {
        font-size: 17px;
    }

    .liontos-load-more-wrap {
        margin-top: 45px;
    }
}

/* Ύψος sticky menu */
.is-sticky .header-area,
.is-sticky .header-inner,
.is-sticky .main-menu-area,
.is-sticky .logo,
.sticky-header {
    min-height: 70px !important;
    height: auto !important;
}

/* Μέγεθος λογοτύπου στο sticky menu */
.is-sticky .logo img,
.is-sticky .site-logo img,
.is-sticky .navbar-brand img,
.sticky-header .logo img,
.sticky-header img {
    width: auto !important;
    height: 60px !important;
    max-width: none !important;
    max-height: 60px !important;
    object-fit: contain !important;
}

/* Footer: copyright αριστερά, menu και social δεξιά */
@media (min-width: 992px) {

    .footer-bottom .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    /* Copyright */
    .footer-bottom .row > .col-md-4 {
        order: 1;
        width: auto !important;
        flex: 0 0 auto;
        float: none !important;
        margin-right: auto;
    }

    /* Footer menu */
    .footer-bottom .row > .col-sm-12 {
        order: 2;
        width: auto !important;
        flex: 0 0 auto;
        float: none !important;
        padding-left: 15px;
        padding-right: 25px;
    }

    /* Social icons */
    .footer-bottom .row > .col-md-8 {
        order: 3;
        width: auto !important;
        flex: 0 0 auto;
        float: none !important;
    }

    .footer-bottom .navbar-footer,
    .footer-bottom #footer-menu {
        margin: 0 !important;
    }

    .footer-bottom #footer-menu {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        white-space: nowrap;
    }
}

/* Μείωση επάνω και κάτω κενού στο κύριο τμήμα του footer */
#rs-footer .footer-top {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
}

/* Ακόμη πιο συμπαγές στα κινητά */
@media (max-width: 767px) {
    #rs-footer .footer-top {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }
}

/* Κόκκινο βελάκι στις λίστες του κυρίως περιεχομένου των posts */
.single-post .entry-content ul,
.single-post .project-desc ul,
.single-post .custom-post-content ul {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none !important;
}

.single-post .entry-content ul > li,
.single-post .project-desc ul > li,
.single-post .custom-post-content ul > li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
    line-height: 1.6;
}

.single-post .entry-content ul > li::before,
.single-post .project-desc ul > li::before,
.single-post .custom-post-content ul > li::before {
    content: "\f054";
    position: absolute;
    top: 7px;
    left: 0;
    color: #c6413e;
    font-family: "FontAwesome";
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}

/* =========================================
   LIONTOS – MOBILE HEADER + REVOLUTION SLIDER
========================================= */

@media screen and (max-width: 991px) {

    /*
     * Διατήρηση σταθερού χώρου για τον κεντρικό slider
     * πριν ολοκληρωθεί η φόρτωση του Revolution Slider.
     */
    body.home #SR7_7_1 {
        display: block !important;
        min-height: 43.7vw !important;
    }

    /* Αφαίρεση μόνο της βοηθητικής παραγράφου του Revolution Slider */
    #rs-header.header-style1 > .rs-p-wp-fix {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Σταθερό header χωρίς αλλαγή γεωμετρίας κατά το scroll */
    #rs-header.header-style1 {
        position: relative !important;
        z-index: 999999 !important;
    }

    #rs-header.header-style1 .header-inner.menu-sticky,
    #rs-header.header-style1 .header-inner.menu-sticky.sticky {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        animation: none !important;
    }

    /*
     * Το Batiment μετακινεί το menu 30px επάνω στον slider.
     * Στα κινητά το κρατάμε μέσα στη φυσική ροή της σελίδας.
     */
    #rs-header.header-style1 .menu_one {
        top: 0 !important;
    }

    /* Διατήρηση του λογότυπου χωρίς αναπήδηση */
    #rs-header.header-style1 .menu-middle,
    #rs-header.header-style1
    .header-inner.menu-sticky.sticky
    .menu-middle {
        display: block !important;
        width: auto !important;
    }

    /* Απόκρυψη Call Us / Mail Us */
    #rs-header.header-style1 .toolbar-contact-style4 {
        display: none !important;
    }

    #rs-header.header-style1 .menu-middle .logo-area {
        margin-bottom: 0 !important;
    }

    /* Το ανοιχτό mobile menu βρίσκεται πάνω από το περιεχόμενο */
    #rs-header.header-style1 .mobile-menu-container {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1000000 !important;
        pointer-events: none !important;
    }

    #rs-header.header-style1 .mobile-menu-container .sidenav {
        width: 360px !important;
        max-width: 100vw !important;
        z-index: 1000001 !important;
        pointer-events: auto !important;
    }

    /* Απόσταση ανάμεσα στον slider και το Engineering Solutions */
    body.home #about-sec2 {
        padding-top: 20px !important;
    }
}

