/*
Theme Name: Evo Theme Child
Theme URI: https://evolynk.com/
Author: EVOLYNK
Author URI: https://evolynk.com/
Description: Child theme for Evo Theme. Use this theme to override or extend Evo Theme templates and styles without modifying the parent.
Template: evotheme
Version: 1.0
Text Domain: evotheme-child
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ******************************************
******* Fix long URLs breaking layout *******
****************************************** */
p,
a {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

footer {
    margin-top: 0;
}

/* ***********************************************
******* Apply Style to all buttons - hover *******
*********************************************** */

:where(.wp-block-button .wp-block-button__link, .wp-element-button) {
    transition: all 0.3s ease;
}
:where(.wp-block-button .wp-block-button__link, .wp-element-button):hover {
    background-color: var(
        --btn-hover-bg,
        var(--wp--preset--color--button-hover)
    ) !important;
    color: var(--btn-hover-color, var(--wp--preset--color--primary)) !important;
    transition: all 0.3s ease;
}

.w-500 {
    max-width: 500px;
}
.w-600 {
    max-width: 600px;
}
.w-700 {
    max-width: 700px;
}

.ms-0 {
    margin-left: 0 !important;
}
.me-0 {
    margin-right: 0 !important;
}

/* Header */
a.custom-logo-link:focus {
    border: none;
    outline: none;
}

@media (min-width: 782px) {
header.wp-block-template-part {
    min-height: 182px;
    margin-bottom: -182px;
    z-index: 99999;
    position: relative;
}
}
header.wp-block-template-part * {
    color: #ffffff;
}

/* Footer */

footer a:focus {
    border: none;
    outline: none;
}

.footer-site-title a{
    text-decoration: none;
}

footer.wp-block-template-part {
  position: relative;
}

footer.wp-block-template-part::before {
  content: "";
  position: absolute;
  inset: 0;
  top: -270px;
  height: 270px;
  background: linear-gradient(to bottom, #DDDDD1 0%, #DBCEBD 25%, #D1BEA6 55%, #11213d 100%);
  z-index: 0;
  pointer-events: none;
}

/* Transparent floating header over hero video (frontend) */

body header.wp-block-template-part {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
}

/* “card heights don’t match because some titles/excerpts are longer” problem.
Fix it by making each post card a flex column, clamping the title/excerpt to a set number of lines, and pinning the meta row to the bottom. */

/* Equal-height cards */
.wp-block-query .wp-block-post-template {
    align-items: stretch;
}
.wp-block-query .wp-block-post-template > li {
    display: flex;
}
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* optional: ensure enough space for multi-line titles */
    min-height: 28rem; /* tweak to your design */
    gap: var(--wp--preset--spacing--20, 1rem);
    padding-bottom: 1.5rem;
}

/* Image: consistent ratio */
.post-card .wp-block-post-featured-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.post-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content area flexes to use available space */
.post-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

/* TITLE: allow up to 3 lines (not 1) */
.post-card__content .wp-block-post-title,
.post-card__content .wp-block-post-title a {
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3; /* <-- allow 2–3 lines here */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* EXCERPT: clamp to keep cards even */
.post-card__content .wp-block-post-excerpt {
    margin: 0;
    line-height: 1.5;
    .post-card__content .wp-block-post-excerpt p,
    .post-card__content .wp-block-post-excerpt__excerpt {
        margin: 0;
        line-height: 1.5;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3; /* 2–3 lines is typical */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Meta stays glued to bottom */
.post-card__meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.post-card__meta > * {
    margin: 0;
}

/* ******************************
******* Emblem Background *******
****************************** */

.emblem-background {
    position: relative;
    z-index: 1;
}

.emblem-background::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url("/wp-content/uploads/2025/10/evo-emblem-1.png") no-repeat
        left bottom;
    background-size: 333px;
    opacity: 0.3;
    z-index: -1;
}

/* *******************************
********* Fluent Form 1 **********
******************************* */

.fluent_form_1 input,
.fluent_form_1 textarea,
.fluent_form_1 select,
.fluent_form_1 .choices__inner {
    border-radius: 0 !important;
}

.fluent_form_1 select {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.fluent_form_1 .ff-el-input--label {
    font-size: var(--wp--preset--font-size--medium);
    padding-bottom: 3px;
    color: var(--wp--preset--color--evo-dark);
}

.fluent_form_1 .ff-el-input--label label::after {
    color: var(--wp--preset--color--evo-dark) !important;
}

.fluent_form_1 input,
.fluent_form_1 select {
    min-height: 50px;
}

.fluent_form_1 button[type="submit"] {
    font: normal normal 600 18px / 24px Manrope;
    letter-spacing: 0px;
    text-transform: uppercase;
    padding: 13px 20px;
}


.swiper-slide img{
    max-height: 100% !important;
    filter: grayscale(1);
    transition: all ease-in-out 0.3s;
}

.swiper-slide img:hover {
    filter: grayscale(0);
}

.social-icons {
    background-color: var(--wp--preset--color--tertiary) !important;
    padding: 5px 15px;
    border-radius: 25px;
    margin: auto;
}

/* Classes  */
.d-inline {
    display: inline-block !important;
}

.text-center {
    text-align: center;
}

.text-decoration-none {
    text-decoration: none;
}

/* Mobile Classes */
@media (max-width: 781px) {
    .justify-content-md-start {
        justify-content: flex-start;
    }
    .text-md-start {
        text-align: start;
    }
}

/* FAQs */

.evo-faq-accordion__question span {
    font-size: var(--wp--preset--font-size--large) !important;
}

.evo-faq-accordion__question:after {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2311213D' stroke='%2311213D' stroke-width='1.5' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a.5.5 0 0 1 .5.5v6h6a.5.5 0 0 1 0 1h-6v6a.5.5 0 0 1-1 0v-6h-6a.5.5 0 0 1 0-1h6v-6A.5.5 0 0 1 8 1z'/%3E%3C/svg%3E") no-repeat 50%;
    background-size: 50%;
}

.evo-faq-accordion__item.is-open .evo-faq-accordion__question:after {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2311213D' stroke='%2311213D' stroke-width='1.5' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 8a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 0 1H2a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E") no-repeat 50%;
    background-size: 50%;
}

.evo-faq-accordion__item {
    border-top: 1px solid color-mix(in srgb,var(--wp--preset--color--evo-dark) 100%,transparent);
}

.evo-faq-accordion__item:last-child {
    border-bottom: 1px solid color-mix(in srgb,var(--wp--preset--color--evo-dark) 100%,transparent)
}

/* Steps  */

@media (min-width: 782px ) {
    .steps-timeline .wp-block-columns {
        position: relative;
    }

    .steps-timeline .wp-block-columns::before {
        content: '';
        position: absolute;
        top: 7px; /* adjust to align with dots */
        left: 0%;
        right: 0%;
        border-top: 1.5px dashed #11213d;
        z-index: 0;
    }

    .steps-timeline .wp-block-column::before {
        content: '';
        display: block;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: #11213d;
        margin-bottom: 4rem;
        position: relative;
        z-index: 1;
    }
}

