/**
 * Theme Name: Axsis Child
 * Description: This is a child theme of Axsis
 * Author: Fluxtheme
 * Author URI: http://fluxtheme.com
 * Template: axsis
 * Version: 5.0.0
 */
 
/* ==================================
   KhashayarHub Portfolio Design
   ================================== */

.single-portfolio .inner-page-section {
    background-color: #F8F6FC;
}

.kh-portfolio {
    direction: rtl;
    text-align: right;
}

.kh-portfolio-project {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E4DAFA;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(33, 24, 67, 0.07);
}

.kh-portfolio-image {
    margin-bottom: 35px;
    overflow: hidden;
    border-radius: 18px;
}

.kh-portfolio-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.kh-portfolio-content {
    padding: 10px 15px;
    color: #302846;
}

.kh-portfolio-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #7654C4;
    margin-bottom: 25px;
    padding-right: 15px;
    border-right: 4px solid #7654C4;
}

.kh-portfolio-content p {
    font-size: 16px;
    line-height: 2.2;
    color: #302846;
    margin-bottom: 20px;
    text-align: right;
}





/* Mobile Responsive */

@media (max-width: 767px) {

    .kh-portfolio-project {
        padding: 15px;
        border-radius: 16px;
    }

    .kh-portfolio-image {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .kh-portfolio-content {
        padding: 5px;
    }

    .kh-portfolio-content h2 {
        font-size: 22px;
    }

    .kh-portfolio-content p {
        font-size: 14px;
        line-height: 2;
    }
}
/* ===========================
   KhashayarHub Project Details
   =========================== */

.kh-project-info {
    background-color: #F8F6FC;
    border: 1px solid #E4DAFA;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 35px;
    direction: rtl;
    text-align: right;
}

.kh-project-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: #7654C4;
    margin-bottom: 20px;
    text-align: right;
}

.kh-info-item {
    padding: 12px 0;
    border-bottom: 1px solid #E4DAFA;
    color: #302846;
    font-size: 15px;
    line-height: 2;
}

.kh-info-item strong {
    color: #302846;
    font-weight: 700;
    margin-left: 8px;
}

.kh-technologies {
    margin-top: 8px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.kh-project-button {
    display: inline-block;
    background-color: #7654C4;
    color: #FFFFFF !important;
    padding: 13px 28px;
    border-radius: 10px;
    margin-top: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

.kh-project-button:hover {
    background-color: #593AA5;
    color: #FFFFFF !important;
}

.kh-project-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E4DAFA;
}

.kh-project-info,
.kh-project-section {
    direction: rtl;
    text-align: right !important;
}

.single-portfolio .kh-portfolio-content,
.single-portfolio .entry-content {
    direction: rtl !important;
    text-align: right !important;
}

.single-portfolio .kh-portfolio-content h2,
.single-portfolio .kh-portfolio-content p,
.single-portfolio .entry-content h2,
.single-portfolio .entry-content p {
    direction: rtl !important;
    text-align: right !important;
}

/* Mobile Responsive */

@media (max-width: 767px) {

    .kh-project-info {
        padding: 18px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .kh-project-info h2 {
        font-size: 20px;
    }

    .kh-info-item {
        font-size: 14px;
    }

    .kh-project-button {
        display: block;
        text-align: center;
        padding: 12px 15px;
    }

    .kh-project-section {
        margin-top: 20px;
        padding-top: 20px;
    }
}

/* ===========================
   KhashayarHub Portfolio Archive
   =========================== */

.kh-portfolio-archive {
    background-color: #F8F6FC;
    direction: rtl;
}

.kh-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.kh-project-card {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #E4DAFA;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(33, 24, 67, 0.07);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.kh-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(33, 24, 67, 0.12);
}

.kh-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background-color: #F8F6FC;
}

.kh-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kh-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    padding: 25px;
    text-align: right;
}

.kh-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 25px;
    text-align: right;
}

.kh-card-title a {
    color: #302846 !important;
    text-decoration: none;
}

.kh-card-title a:hover {
    color: #7654C4 !important;
}

.kh-card-button {
    display: inline-block;
    margin-top: auto;
    background-color: #7654C4;
    color: #FFFFFF !important;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

.kh-card-button:hover {
    background-color: #593AA5;
}

.kh-portfolio-pagination {
    margin-top: 40px;
    text-align: center;
}



/* Tablet */

@media (max-width: 991px) {
    .kh-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile */

@media (max-width: 575px) {
    .kh-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kh-card-content {
        padding: 20px;
    }

    .kh-card-title {
        font-size: 18px;
    }

    .kh-card-button {
        width: 100%;
        text-align: center;
    }
}

/* Portfolio Archive RTL Fix */

.kh-portfolio-archive,
.kh-portfolio-list,
.kh-portfolio-grid,
.kh-project-card,
.kh-card-content,
.kh-card-title,
.kh-card-title a {
    direction: rtl !important;
    text-align: right !important;
}

.kh-card-content {
    align-items: flex-start !important;
}

.kh-card-title {
    width: 100%;
}

.kh-card-button {
    direction: rtl !important;
    text-align: center !important;
    align-self: flex-start !important;
}