/*
Theme Name: Divi Child
Template: Divi
Version: 4.27.4
*/

/* ---------- GLOBAL ---------- */

.sponer-img img {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

body {
    overflow-x: hidden;
}

.sameimghight img {
    width: 100% !important;
    max-width: 100% !important;
    height: 450px;
    object-fit: cover;
}

.same-height-box,
.et_pb_column {
    height: auto !important;
}

ul.footer-menu {
    padding: 0;
}
ul.footer-menu li {
    list-style-type: none;
}
ul.footer-menu li a {
    color: #373634;
}
ul.footer-menu li a:hover {
    color: #50688e;
}

.search-results p.post-meta {
    display: none !important;
}

.et-pb-contact-message {
    color: #fff;
}

.et_pb_contact p input[type=checkbox] + label i::before {
    color: #000 !important;
}

.search #main-content {
    padding-top: 150px !important;
    padding-bottom: 50px !important;
}

/* ---------- HEADER ---------- */

header.et-l.et-l--header {
    transition: top 0.3s ease-in-out;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.et_pb_menu__menu {
    margin-top: 20px;
}

.et_pb_menu .et-menu > li {
    padding-left: 20px;
    padding-right: 20px;
}

.et-menu .current-menu-item > a {
    border-bottom: 2px solid #446495;
}

ul.sub-menu a {
    font-size: 18px !important;
}

.sub-menu li a {
    padding: 6px 0px !important;
}

.et-menu .sub-menu li a:hover {
    background-color: transparent !important;
}

header .no-tel {
    pointer-events: none;
    text-decoration: none;
    color: inherit;
}

/* ---------- DONATE BUTTON ---------- */

.header-inline {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.donate-button {
    background-color: #127A05;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    transition: 0.3s;
}

.donate-button a {
    color: #fff;
    font-size: 20px;
}

button.donate-button:hover {
    background: #446495;
}

/* ---------- SEARCH BAR ---------- */

.search-container {
    position: relative;
    display: inline-block;
}

input.search-input,
.search-input {
    color: #373634;
    width: 0;
    padding: 5px;
    border-radius: 20px;
    outline: none;
    transition: width 0.4s ease;
    background: #ede8dc;
    border: 2px solid;
    font-size: 16px;
}

.search-container.active .search-input {
    width: 200px;
    padding: 10px 10px;
}

.search-icon {
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 8px 20px;
    background-color: #ede8dc;
    color: #373634;
    border-radius: 30px;
    border: 2px solid #000;
    transition: 0.3s;
}

.search-icon:hover {
    background-color: #373634;
    color: #ede8dc;
}

/* ---------- ARROWS (SLIDER) ---------- */

.et-pb-arrow-prev:before,
.et-pb-arrow-next:before {
    display: none;
}

.et-pb-arrow-prev,
.et-pb-arrow-next {
    width: 30px;
    height: 30px;
    display: inline-block;
    text-indent: -9999px;
    border: 1px solid #000;
    border-radius: 25px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;
}

.et-pb-arrow-prev {
    background-image: url('https://wip2025.projectredwood.org/wp-content/uploads/2025/07/left-arrow.png');
}

.et-pb-arrow-next {
    background-image: url('https://wip2025.projectredwood.org/wp-content/uploads/2025/07/right-arrow.png');
}

.et_pb_slider:hover .et-pb-arrow-prev {
    left: 100px;
}
.et_pb_slider:hover .et-pb-arrow-next {
    right: 100px;
}

/* ---------- ACCORDION ---------- */

.et_pb_toggle .et_pb_toggle_title:after {
    content: "\4c"; /* Plus */
    font-family: "ETmodules";
    position: absolute;
    right: 0px;
    font-size: 30px;
    color: #000;
    background: #f2f2f2;
    border-radius: 50%;
    width: 33px;
    height: 35px;
}

.et_pb_toggle_open .et_pb_toggle_title:after {
    content: "\4b"; /* Minus */
}

h2.et_pb_toggle_title::before {
    display: none !important;
}

.et_pb_accordion .et_pb_toggle_content ul {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ---------- SEARCH RESULTS PAGE ---------- */

.search #sidebar {
    display: none !important;
}

.search #left-area {
    width: 100% !important;
    float: none !important;
}

/* ---------- BUTTON LINKS ---------- */

.cstm-btn a {
    text-decoration: underline;
    color: #000;
    text-underline-offset: 15px;
    text-decoration-thickness: 1px;
    line-height: 2.5em;
}

.cstm-btn a:hover {
    color: #3b5f90;
}

/* ---------- MEDIA QUERIES ---------- */

/* mobile */
@media screen and (max-width: 768px) {
    .header-inline {
        justify-content: space-between !important;
    }

    .slide-left .read-more {
        position: inherit !important;
        margin-bottom: 0 !important;
    }

    .et_pb_section.et_pb_section_0_tb_header {
        display: flex;
        flex-direction: column-reverse;
    }

    .et-pb-arrow-prev {
        left: 60px !important;
    }
    .et-pb-arrow-next {
        right: 60px !important;
    }

    .et_pb_menu__logo img {
        margin-top: 0;
    }
	.slide-meta {
    white-space: normal !important;
}
}

@media only screen and (max-width: 480px) {
    .custom-slide p {
        font-size: 16px;
        line-height: 1.2em;
    }

    small.slide-meta {
        display: block;
		white-space: unset!important;
    }

    .slide-meta span.slide-description {
        margin-left: 0px;
    }
	span.slide-org {
    line-height: 30px !important;
}
.et-pb-slider-arrows {
	margin-top:15px!important;
    margin-bottom: 20px !important;
}
	.custom-slide p {
        font-size: 18px;
        line-height: 1.2em;
    }
.hero-mobile-fix {
    margin-top: 50px !important;
}	
}

/* iPad Pro 1024–1200 */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1200px) {
    .et_pb_menu__logo img {
        margin-top: -80px !important;
    }

    .custom-slide {
        height: 750px !important;
    }
    .ipadpro-btn {
        padding-bottom: 25px;
    }
	.slide-meta {
   white-space: normal !important;
}
	.custom-slide p {
        font-size: 17px;
        line-height: 1.2em;
    }
.slide-meta {
    white-space: normal !important;
}
.hero-mobile-fix.et_pb_with_background {
    background-position: top !important;
    margin-top: 80px!important;
}	
}

/* iPad 1024 */
@media only screen and (max-width: 1024px) {
    .et_pb_menu__wrap {
        margin-top: 20px !important;
    }
	.slide-meta {
   white-space: normal !important;
}
.custom-slide p {
        font-size: 17px;
        line-height: 1.2em;
    }	
	.slide-meta {
    white-space: normal !important;
}
.hero-mobile-fix.et_pb_with_background {
    background-position: top !important;
     margin-top: 80px!important;
}	
}
@media (max-width: 1700px) and (min-width: 1200px) {
  .slide-meta {
    white-space: normal !important;
}
}

/* XL screens */
@media (min-width: 1620px) {
    .funding-img img,
    .project-grant img {
        width: 100vw;
    }
}
