/*
Theme Name: Hello Elementor Child
Description: Child theme for Hello Elementor
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Custom styles */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}
.portfolio-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 5px;
    background: #111;
}
.portfolio-card-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100% !important;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}
.portfolio-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition:
        transform 0.6s ease;
}
.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180.12deg, #00000000 58.62%, #000000B3 91.16%);
    z-index: 1;
    transition: all 0.3s;
}
.portfolio-card-link:hover .portfolio-card-overlay {
    background: linear-gradient(180.87deg, rgba(0, 54, 64, 0.112) 58.24%, rgba(0, 54, 64, 0.8) 86.15%);
}
.portfolio-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-row-gap: 18px;
    padding: 30px;
    z-index: 2;
}
.portfolio-card-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.portfolio-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column-gap: 20px;
    width: 100%;
}
.portfolio-card-title {
    color: #fff;
    font-family: Titillium Web;
    font-weight: 400;
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -2%;
    text-align: left;
    margin: 0;
}
.portfolio-card-arrow {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}
.portfolio-card-arrow svg {
    width: 30px;
    height: 30px;

    fill: none;
    stroke: #fff;
    stroke-width: 1.3;
}
.portfolio-card-link:hover .portfolio-card-arrow {
    transform: translate(0px, -6px);
}
.portfolio-card-arrow {
    transition: transform 0.3s ease;
}
/* CUSTOM ELEMENTOR GALLERY */
.custom-gallery .gallery {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    grid-column-gap: 26px;
    grid-row-gap: 18px;
    width: 100%;
    margin: 0 !important;
}
/* Remove Elementor / WordPress gallery defaults */
.custom-gallery .gallery-item {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative;
    overflow: hidden;
}
/* Make the image fill its grid area */
.custom-gallery .gallery-icon,
.custom-gallery .gallery-icon a {
    width: 100%;
    height: 100%;
    display: block;
}
.custom-gallery .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.custom-gallery .gallery-item:nth-child(10n + 1) {
    grid-column: 1 / 5;
}
.custom-gallery .gallery-item:nth-child(10n + 2) {
    grid-column: 5 / 13;
    grid-row: span 2;
}
.custom-gallery .gallery-item:nth-child(10n + 3) {
    grid-column: 1 / 5;
}
.custom-gallery .gallery-item:nth-child(10n + 4) {
    grid-column: 1 / 6;
}
.custom-gallery .gallery-item:nth-child(10n + 5) {
    grid-column: 6 / 13;
}
.custom-gallery .gallery-item:nth-child(10n + 6) {
    grid-column: 1 / 9;
    grid-row: span 2;
}
.custom-gallery .gallery-item:nth-child(10n + 7) {
    grid-column: 9 / 13;
}
.custom-gallery .gallery-item:nth-child(10n + 8) {
    grid-column: 9 / 13;
}
.custom-gallery .gallery-item:nth-child(10n + 9) {
    grid-column: 1 / 8;
}
.custom-gallery .gallery-item:nth-child(10n + 10) {
    grid-column: 8 / 13;
}
.custom-gallery .gallery-item:nth-child(n+6) {
    display: none !important;
}
/** FAQs section custom how we win*/
.faq-section-wrapper {
    background: #ffffff;
}
.faq-section-wrapper h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}
.faq-container {
    display: flex;
    flex-direction: column;
}
.faq-item {
    border-bottom: 1px solid #333333;
    padding: 20px 0;
    cursor: pointer;
}
.faq-item:first-child {
    border-top: 1px solid #333333;
}
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.faq-title {
    font-family: Titillium Web;
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -2%;
    color: #333333;
    transition: color 0.2s ease;
}
.faq-item:hover .faq-title {
    color: #333333;
}
/* Accordion Icons */
.faq-status span.icons {
    display: block !important;
    height: 40px !important;
    width: 40px !important;
    background-color: #1E1E1E;
    border: 1px solid #1E1E1E;
    border-radius: 40px;
    position: relative;
    transition: all 0.3s !important;
}
[open] .faq-status span.icons {
    background-color: #00AFAA;
    border: 1px solid #FFFFFF;
}
.faq-status span.icons::after {
    content: '';
    width: 23px;
    height: 3px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    background-color: #fff;
}
[open] .faq-status span.icons::after {
    display: none !important;
}
.faq-status span.icons::before {
    content: '';
    width: 23px;
    height: 3px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    display: block;
    background-color: #fff;
    transition: all 0.3s !important;
}
[open] .faq-status span.icons::before {
    transform: translate(-50%, -50%) rotate(0deg);
    transition: all 0.3s !important;
}
.faq-preview {
    display: block;
    margin-top: 5px;
    color: #333333;
    font-family: Titillium Web;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -2%;
    cursor: pointer;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.faq-item.active .faq-preview {
    display: none;
}
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2rem;
    opacity: 0;
    transform: translateY(-15px);
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition:
        grid-template-rows 0.7s ease,
        opacity 0.5s ease,
        transform 0.5s ease,
        padding 0.5s ease;
}
.faq-content>* {
    min-height: 0;
}
.faq-item.active .faq-content {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}
.faq-text-block,
.faq-image-block {
    opacity: 0;
    transform: translateY(-10px);

    transition:
        opacity 0.35s ease,
        transform 0.5s ease;
}
.faq-item.active .faq-text-block,
.faq-item.active .faq-image-block {
    opacity: 1;
    transform: translateY(0);
}
.faq-item.active .faq-text-block {
    transition-delay: 0.1s;
}
.faq-item.active .faq-image-block {
    transition-delay: 0.2s;
}
.faq-text {
    margin: 0;
    color: #333333;
    font-family: Titillium Web;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -2%;
}
.faq-image-block {
    width: 100%;
    /* height: 180px; */
    border-radius: 8px;
    overflow: hidden;
}
.faq-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.faq-no-results {
    padding: 20px 0;
    color: #4b5563;
}
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .portfolio-card {
        height: 280px;
    }
    .portfolio-card-content {
        padding: 18px;
    }
    .custom-gallery .gallery {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
        gap: 8px;
    }
    .custom-gallery .gallery-item:nth-child(10n + 1) {
        grid-column: 1 / 2;
    }
    .custom-gallery .gallery-item:nth-child(10n + 2) {
        grid-column: 1 / 3;
        grid-row: 2 / span 2;
    }
    .custom-gallery .gallery-item:nth-child(10n + 3) {
        grid-column: 2 / 3;
    }
    .custom-gallery .gallery-item:nth-child(10n + 4) {
        grid-column: 1 / 2;
    }
    .custom-gallery .gallery-item:nth-child(10n + 5) {
        grid-column: 2 / 3;
    }
    .custom-gallery .gallery-item:nth-child(10n + 6) {
        grid-column: 1 / 3;
        grid-row: 5 / span 2;
    }
    .custom-gallery .gallery-item:nth-child(10n + 7) {
        grid-column: 1 / 2;
    }
    .custom-gallery .gallery-item:nth-child(10n + 8) {
        grid-column: 2 / 3;
    }
    .custom-gallery .gallery-item:nth-child(10n + 9) {
        grid-column: 1 / 2;
    }
    .custom-gallery .gallery-item:nth-child(10n + 10) {
        grid-column: 2 / 3;
    }
    .faq-item.active .faq-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .faq-item.active .faq-content {
        max-height: 650px;
    }
}