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

footer a {
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

.rank-math-breadcrumb{
	text-align: center;
}

.pb-0 {
	padding-bottom: 0 !important;
}

.py-small {
	padding: var(--wp--preset--font-size--small) 0 var(--wp--preset--font-size--small) 0 !important
}

a.custom-logo-link:active,
a.custom-logo-link:focus,
.wp-block-navigation-item__content {
    border: none;
    outline: 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--accent-hover)
    ) !important;
    color: var(--btn-hover-color, var(--wp--preset--color--white)) !important;
    transition: all 0.3s ease;
}

.is-style-link .wp-block-button__link {
	font-size: var(--wp--preset--font-size--extra-small);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: var(--wp--preset--color--primary) !important;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}
.is-style-link .wp-block-button__link:hover {
    text-decoration: underline;
}

.is-style-link .wp-block-button__link:focus {
    text-decoration: underline;
    border: none;
    outline: none;
}

.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: 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;
}

.swiper-slide img {
	max-height: 100% !important;
}

/* *******************************
********* Fluent Forms **********
******************************* */

.fluent_form_3 .ff-btn-submit {
	font-size: clamp(14px, 1.2vw, 18px);
}

.fluentform_wrapper_3 .ff-errors-in-stack {
	margin: 0 !important;
}

.frm-fluent-form input {
	min-height: 50px;
    border-radius: 10px;
    border: none;
    padding-left: 10px;
    color: var(--wp--preset--color--accent-2);
}

.frm-fluent-form input::placeholder {
    color: var(--wp--preset--color--accent-2) !important;
}

.frm-fluent-form button {
	min-height: 50px;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.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;
}

/* Form 4 */

/*
.fluent_form_4 .ff-column-container {
	padding-bottom: 1.2rem;	
}
*/

.fluent_form_4 input,
.fluent_form_4 select {
	min-height: 55px;
}

.fluent_form_4 .ff-column-container:not(:last-of-type) {
    padding-bottom: 1.2rem;
}

.fluent_form_4 .ff-btn-submit {
    background-color: var(--wp--preset--color--accent);
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--primary);
    font-family: inherit;
    font-size: clamp(14px, 1.2vw, 18px);
    font-style: inherit;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: inherit;
    padding-top: 0.8rem;
    padding-right: 1.2rem;
    padding-bottom: 0.8rem;
    padding-left: 1.2rem;
    text-decoration: none;
    text-transform: capitalize;
}

.fluent_form_4 .ff-btn-submit:hover {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--accent-hover) !important;
}

/* **********************
**     CTA EXCLIPSE      
********************** */

.cta-box {
  position: relative;
  background: #0b5330;
  padding: 80px 40px;
  border-radius: 10px;
  overflow: hidden; /* important */
  color: white;
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -150px;
  right: -150px;
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -180px;
  left: -180px;
}

/* **********************
**     CTA EXCLIPSE      
********************** */

/* **********************
**     Discussions      
********************** */

.wp-block-post-comments-form .comment-notes {
	font-size: var(--wp--preset--font-size--body)
}

.wp-block-post-comments-form .comment-form label {
	font-size: var(--wp--preset--font-size--body)
}

.wp-block-post-comments-form .comment-form-comment textarea {
	min-height: 150px;
    height: 150px;
}

.wp-block-post-comments-form .comment-form input[type="text"],
.wp-block-post-comments-form .comment-form input[type="email"] {
	padding: 5px;
}

.wp-block-post-comments-form .logged-in-as {
	font-size: var(--wp--preset--font-size--body)
}

/* Swipper Equal Hight */

.swiper-wrapper {
  align-items: baseline;
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  height: auto !important;
  display: flex;
}

.swiper-slide > .wp-block-group {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.swiper-slide > .wp-block-group > .wp-block-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}


.emblem-right::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/wp-content/uploads/2025/12/baytreecare-emblem.png') no-repeat right bottom;
    background-size: 80px;
    opacity: 1;
    z-index: 0;
    bottom: 15px;
    right: 15px;
}