/*
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;
}

a.custom-logo-link:active,
a.custom-logo-link:focus,
.wp-block-navigation-item__content {
    border: none;
    outline: none;
}

/* ******************************************
******* Custom Navigation Breakpoint ********
****************************************** */
@media (min-width: 1225px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
            .is-menu-open
        ) {
        display: block !important;
        width: 100%;
        position: relative;
        z-index: auto;
        background-color: inherit;
    }
}

/* neutralize the wp default for 600px */
@media (min-width: 600px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
            .is-menu-open
        ) {
        display: none;
    }
}

/* ***********************************************
******* 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--white)) !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;
}

/* 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: 30px;
    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;
    border-radius: 33554400px !important;
}

#fluentform_2 input[type='email'] {
    border-radius: 33554400px !important;
}

form.fluent_form_2 .wpf_has_custom_css.ff-btn-submit {
    border-radius: 33554400px !important;
}
