/*
Theme Name: Hosty Theme
Theme URI: https://hosty-eg.com
Author: Ahmed Samir
Author URI: https://hosty-eg.com
Description: Custom WordPress Theme For Hosty Advertising Agency
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
Text Domain: hosty
*/
/* =========================================================
   HOSTY - SINGLE PORTFOLIO FINAL
   ========================================================= */

.hosty-single-portfolio {
    direction: rtl !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: #f5f7fb !important;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.hosty-portfolio-breadcrumb {
    width: 100% !important;
    padding: 25px 0 15px !important;
}

.hosty-portfolio-breadcrumb .container {
    width: calc(100% - 80px) !important;
    max-width: 1500px !important;
    margin: 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 10px !important;
}


/* =========================================================
   PROJECT SECTION
   ========================================================= */

.hosty-project-section {
    width: 100% !important;
    padding: 15px 0 80px !important;
}

.hosty-project-section > .container {
    width: calc(100% - 80px) !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
}


/* =========================================================
   MAIN PROJECT CARD
   ========================================================= */

.hosty-project-card {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr !important;

    background: #ffffff !important;

    border-radius: 28px !important;
    overflow: hidden !important;

    box-shadow: 0 18px 50px rgba(30, 55, 80, 0.08) !important;

    direction: ltr !important;
}


/* =========================================================
   PROJECT IMAGE - LEFT
   ========================================================= */

.hosty-project-image {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    height: 720px !important;
    min-height: 720px !important;

    background: #eef1f5 !important;

    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hosty-project-image img {
    width: 100% !important;
    height: 100% !important;

    min-height: 720px !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center !important;
}

.hosty-project-no-image {
    width: 100% !important;
    height: 720px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #7b8794 !important;
    font-size: 18px !important;
}


/* =========================================================
   PROJECT DETAILS - RIGHT
   ========================================================= */

.hosty-project-details {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 55px !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    direction: rtl !important;
    text-align: right !important;
}


/* =========================================================
   LABEL
   ========================================================= */

.hosty-project-label {
    display: inline-flex !important;
    align-self: flex-start !important;

    margin-bottom: 18px !important;

    padding: 7px 16px !important;

    background: #edf5ff !important;
    color: #145a96 !important;

    border-radius: 50px !important;

    font-size: 13px !important;
    font-weight: 600 !important;
}


/* =========================================================
   TITLE
   ========================================================= */

.hosty-project-details h1 {
    margin: 0 !important;

    color: #172b4d !important;

    font-size: clamp(34px, 3.2vw, 52px) !important;

    line-height: 1.3 !important;

    font-weight: 800 !important;
}


/* =========================================================
   EXCERPT
   ========================================================= */

.hosty-project-excerpt {
    margin: 18px 0 0 !important;

    color: #687586 !important;

    font-size: 17px !important;
    line-height: 1.9 !important;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.hosty-project-divider {
    width: 100% !important;
    height: 1px !important;

    margin: 28px 0 !important;

    background: #e5e9ef !important;
}


/* =========================================================
   PROJECT INFO
   ========================================================= */

.hosty-project-info {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
}

.hosty-info-row {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: 150px 1fr !important;

    align-items: center !important;

    gap: 15px !important;

    padding: 13px 0 !important;

    border-bottom: 1px solid #edf0f4 !important;
}

.hosty-info-label {
    color: #145a96 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}

.hosty-info-label i {
    width: 20px !important;
    margin-left: 7px !important;
}

.hosty-info-value {
    color: #3d4855 !important;

    font-size: 14px !important;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.hosty-project-description {
    margin-top: 28px !important;
}

.hosty-project-description h2 {
    margin: 0 0 12px !important;

    color: #145a96 !important;

    font-size: 22px !important;
    font-weight: 800 !important;
}

.hosty-project-content {
    color: #5e6875 !important;

    font-size: 15px !important;

    line-height: 2 !important;
}

.hosty-project-content p {
    margin: 0 0 12px !important;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.hosty-back-button {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    align-self: flex-start !important;

    gap: 9px !important;

    margin-top: 30px !important;

    padding: 13px 25px !important;

    border-radius: 10px !important;

    background: #145a96 !important;
    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    transition: 0.3s ease !important;
}

.hosty-back-button:hover {
    background: #0d4170 !important;
    color: #ffffff !important;
}


/* =========================================================
   RELATED PROJECTS
   ========================================================= */

.hosty-related-projects {
    width: 100% !important;

    padding: 0 0 90px !important;
}

.hosty-related-projects > .container {
    width: calc(100% - 80px) !important;
    max-width: 1500px !important;

    margin: 0 auto !important;
}

.hosty-related-heading {
    text-align: center !important;
    margin-bottom: 35px !important;
}

.hosty-related-heading span {
    display: block !important;

    margin-bottom: 7px !important;

    color: #145a96 !important;

    font-size: 14px !important;
    font-weight: 600 !important;
}

.hosty-related-heading h2 {
    margin: 0 !important;

    color: #172b4d !important;

    font-size: 34px !important;
    font-weight: 800 !important;
}

.hosty-related-grid {
    display: grid !important;

    grid-template-columns: repeat(4, 1fr) !important;

    gap: 22px !important;
}

.hosty-related-card {
    background: #ffffff !important;

    border-radius: 18px !important;

    overflow: hidden !important;

    box-shadow: 0 8px 25px rgba(30, 55, 80, 0.07) !important;

    transition: 0.3s ease !important;
}

.hosty-related-card:hover {
    transform: translateY(-5px) !important;

    box-shadow: 0 15px 35px rgba(30, 55, 80, 0.12) !important;
}

.hosty-related-card a {
    display: block !important;

    color: inherit !important;
    text-decoration: none !important;
}

.hosty-related-card img {
    width: 100% !important;
    height: 210px !important;

    display: block !important;

    object-fit: cover !important;
}

.hosty-related-content {
    padding: 20px !important;
}

.hosty-related-content h3 {
    margin: 0 0 12px !important;

    color: #172b4d !important;

    font-size: 18px !important;
}

.hosty-related-content span {
    color: #145a96 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hosty-project-card {
        grid-template-columns: 1fr !important;
        direction: rtl !important;
    }

    .hosty-project-image {
        grid-column: 1 !important;
        grid-row: 1 !important;

        height: 520px !important;
        min-height: 520px !important;
    }

    .hosty-project-image img {
        height: 520px !important;
        min-height: 520px !important;
    }

    .hosty-project-details {
        grid-column: 1 !important;
        grid-row: 2 !important;

        padding: 45px 35px !important;
    }

    .hosty-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .hosty-portfolio-breadcrumb .container,
    .hosty-project-section > .container,
    .hosty-related-projects > .container {
        width: calc(100% - 30px) !important;
    }

    .hosty-project-card {
        border-radius: 18px !important;
    }

    .hosty-project-image {
        height: 360px !important;
        min-height: 360px !important;
    }

    .hosty-project-image img {
        height: 360px !important;
        min-height: 360px !important;
    }

    .hosty-project-no-image {
        height: 360px !important;
    }

    .hosty-project-details {
        padding: 30px 22px !important;
    }

    .hosty-project-details h1 {
        font-size: 30px !important;
    }

    .hosty-project-excerpt {
        font-size: 15px !important;
    }

    .hosty-info-row {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }

    .hosty-related-grid {
        grid-template-columns: 1fr !important;
    }

    .hosty-related-heading h2 {
        font-size: 28px !important;
    }
}
/* =========================================================
   PORTFOLIO ARCHIVE - BUTTON
   عرض التفاصيل
========================================================= */

.project-card .project-content a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 145px !important;

    padding: 12px 24px !important;
    margin-top: 14px !important;

    background: #145a96 !important;
    color: #ffffff !important;

    border-radius: 12px !important;

    text-decoration: none !important;

    font-family: Cairo, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1.5 !important;

    transition: all 0.3s ease !important;
}

.project-card .project-content a:hover {
    background: #0d4170 !important;
    color: #ffffff !important;

    transform: translateY(-2px) !important;
}
