/**
 * Home page only — loaded after style.css + header-static.css.
 * Pair with resources/views/site/partials/home-body-static.blade.php (no inline CSS in that partial).
 */

/*
 * style.css sets html, body { height: 100%; }. With long pages the body box stays viewport-tall
 * while content extends below; the scrollable area below the footer can show as white.
 * Let height follow content so the page background reaches the true document bottom.
 */
html {
    height: auto;
    min-height: 100%;
}

body {
    height: auto;
    min-height: 100%;
}

body.home {
    overflow-x: hidden;
}

/* Hero slides: background URL comes from data-bg-image (see home.js); no inline styles in Blade */
.home .hero-area .home-hero-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home .content .event-content {
    height: auto !important;
}

@media (min-width: 1200px) {
    .home .container {
        width: 90%;
    }
}

.home .home-intro-col {
    margin: 0 auto;
    float: none;
    padding-top: 30px;
}

.home .home-text-center {
    text-align: center;
}

/* Who Are We — read more: same red as mockup (link + chevrons) */
.home .home-read-more-link,
.home .home-read-more-link em {
    color: #ef4136;
    /* font-weight: bold; */
    font-size: 17px;
}

.home .home-read-more-link:hover,
.home .home-read-more-link:focus,
.home .home-read-more-link:active {
    color: #c7372e;
}

.home .home-read-more-link em {
    font-style: italic;
    color: inherit;
}

.home .home-read-more-chevron {
    font-size: 17px;
    color: #ef4136;
    font-weight: bold;
}

.home .home-footer-map-iframe {
    border: 0;
}

.home .card-content h3 a,
.home .card-content_oc h3 a {
    text-decoration: underline;
}

.site-footer-bottom {
    margin-bottom: 0;
    position: relative;
}

/* Bottom banner wedge: must be outside .hero-slider (overflow:hidden) and above slide stack */
.home .hero-area {
    position: relative;
    left: 50%;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: 0;
    box-sizing: border-box;
}

.home .hero-area .hero-slider.flexslider,
.home .hero-area .hero-slider .flex-viewport,
.home .hero-area .hero-slider.flexslider ul.slides {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.home .hero-area .hero-slider.flexslider ul.slides > li {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Banner: no white frame (FlexSlider theme / CDN may add border) — full-bleed image */
.home .hero-area .hero-slider.flexslider,
.home .hero-area .hero-slider .flex-viewport,
.home .hero-area .hero-slider.flexslider ul.slides,
.home .hero-area .hero-slider.flexslider ul.slides > li,
.home .hero-area .hero-slider.flexslider ul.slides > li.parallax {
    border: none !important;
    outline: none;
    box-shadow: none;
}

.home .hero-area > .cuv {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    /* Above .hero-slider (z-index:1), below .middle-icon img so logo stays in front */
    z-index: 2;
    margin-top: -20px;
    pointer-events: none;
}

.home .hero-area > .cuv img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.home .middle-icon img,
.home .middle-icon-home img {
    position: relative;
    z-index: 4;
}

/*
 * Global .content { padding: 75px 0; min-height: 400px }. Home overrides:
 * - padding-top: 0 — avoids gap under tagline before intro
 * - min-height: 0 — no empty min-height band
 * - padding-bottom: 0 — avoids a white strip below .lgray-bg (last block before footer)
 *   (75px bottom was inherited intent from .content rhythm but sits outside the grey band)
 */
.home .content {
    padding-top: 0;
    min-height: 0;
    padding-bottom: 0;
}

/* Continuous grey band under tagline (global .tagline has duplicate padding rules in style.css) */
.home .tagline {
    padding-top: 0;
    padding-bottom: 5px;
}

/* Video section container — match design widths (1325px at 1200px+); body uses .home not .mlf-home */
.home .container.mlf-videos-section {
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .home .container.mlf-videos-section {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .home .container.mlf-videos-section {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .home .container.mlf-videos-section {
        width: 90%;
    }
}

/* See all inside carousel row (floated pull-right); row + ul clear so Owl stays full width */
.home .mlf-videos-carousel > .row {
    overflow: hidden;
}

.home .mlf-videos-carousel a.event-all.pull-right {
    display: inline-block;
    margin-top: 0;
    /* Gap between button and carousel slides (matches new design) */
    margin-bottom: 20px;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .home .mlf-videos-carousel a.event-all.pull-right {
        float: none !important;
        display: block;
        margin-bottom: 16px;
        text-align: left;
    }
}

.home .mlf-videos-carousel a.event-all.pull-right + ul.owl-carousel,
.home .mlf-videos-carousel ul#news-slider {
    clear: both;
    width: 100%;
    float: none;
}

/* spacer-20 keeps design vertical gap; no extra margin (style.css defines height) */
.home .mlf-videos-section .spacer-20 {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Owl: no dots (theme CSS can still paint them between items); nav only */
.home .mlf-videos-carousel .owl-dots,
.home .mlf-videos-carousel .owl-dots.disabled {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Remove list markers that can look like stray dots between cards */
.home .mlf-videos-carousel ul.owl-carousel,
.home .mlf-videos-carousel ul#news-slider {
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.home .mlf-videos-carousel .owl-item > li.item {
    list-style: none !important;
}

/* Video slider cards — match design (style.css event-grid + grid-item h3); do not override with flex */
.home .mlf-videos-carousel .event-grid-item {
    margin-bottom: 0;
}

.home .mlf-videos-carousel h1,
.home .mlf-videos-carousel h2,
.home .mlf-videos-carousel h3,
.home .mlf-videos-carousel h4,
.home .mlf-videos-carousel h5,
.home .mlf-videos-carousel h6 {
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 500;
    line-height: 1.5em;
    font-family: 'Poppins', serif;
}

.home .mlf-videos-carousel .event-grid-item h3 {
    min-height: 65px;
    margin-top: 10px;
}

.home .mlf-videos-carousel .grid-item h3 {
    font-size: 15px;
    line-height: 21px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    padding: 0px 10px;
}

.home .mlf-videos-carousel .grid-item h3 a {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

/* Owl nav: gutter + FA chevrons (navText uses nbsp in JS to avoid stray < > text) */
.home .mlf-videos-carousel {
    position: relative;
    overflow: visible;
    padding-left: 48px;
    padding-right: 48px;
}

@media (max-width: 767px) {
    .home .mlf-videos-carousel {
        padding-left: 36px;
        padding-right: 36px;
    }
}

.home .mlf-videos-carousel .owl-carousel.owl-loaded {
    overflow: visible;
}

.home .mlf-videos-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.home .mlf-videos-carousel .owl-nav button.owl-prev,
.home .mlf-videos-carousel .owl-nav button.owl-next {
    pointer-events: auto;
    position: absolute;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
    background: rgba(34, 34, 34, 0.65);
    color: #fff;
    font-size: 0;
    overflow: hidden;
}

.home .mlf-videos-carousel .owl-nav button.owl-prev {
    left: 0;
}

.home .mlf-videos-carousel .owl-nav button.owl-next {
    right: 0;
}

.home .mlf-videos-carousel .owl-nav button.owl-prev:before,
.home .mlf-videos-carousel .owl-nav button.owl-next:before {
    font-family: "Font Awesome 6 Free";
    font-size: 22px;
    line-height: 40px;
    display: block;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
}

.home .mlf-videos-carousel .owl-nav button.owl-prev:before {
    content: "\f104";
}

.home .mlf-videos-carousel .owl-nav button.owl-next:before {
    content: "\f105";
}

.cta {
    border: 1px solid #E6E6E6;
    padding: 25px;
    margin: 15px 0;
    background: #F6F6F6;
}

.joinus .form-control {
    width: 80%;
    margin-bottom: 0;
    border-radius: 50px;
    height: 45px;
    font-size: 20px;
    padding: 5px 20px;
    display: inline-block;
    margin-right: 18px;
}

.counter-count {
    font-size: 40px;
    font-weight: 700;
    color: #333;
    text-align: left;
    display: block;
    margin: 20px 0px;
}

.card_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
}

.card {
    flex: 1 1 calc(33.333% - 14px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, opacity 0.8s ease;
}

.home .card.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.home .card.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.home .card_container .card:nth-child(1) {
    transition-delay: 0.1s;
}

.home .card_container .card:nth-child(2) {
    transition-delay: 0.3s;
}

.home .card_container .card:nth-child(3) {
    transition-delay: 0.5s;
}

.home .card_container .card:nth-child(4) {
    transition-delay: 0.7s;
}

.card:hover {
    transform: translateY(-6px);
}

.home .card.reveal.active:hover {
    transform: translateY(-6px) scale(1);
}

.card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.home .card.reveal > img {
    transform: scale(1.05);
    transition: transform 0.8s ease;
}

.home .card.reveal.active > img {
    transform: scale(1);
}

.icon_helpline {
    width: 35px !important;
    object-fit: cover;
    display: block;
}

.icon_credibility {
    height: 57px;
    width: auto !important;
    padding-bottom: 10px;
    display: block;
}

.card-content {
    padding: 20px 20px 0px 20px;
}

.card-content_oc {
    padding: 20px 20px 0px 20px;
}

.card-content_oc h3 {
    font-size: 18px !important;
}

.card-content h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.card-content p {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .card {
        flex: 1 1 100%;
    }
}

.home-video-thumb {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.join-member-section {
    text-align: center;
}

.join-member-section .joinus {
    margin-top: 25px;
}

.join-benefit-highlight {
    font-weight: 600;
    color: #ef4136;
}

.join-results-msg {
    color: green;
}

.join-error-msg {
    color: red;
}

.home .js-join-loader.is-hidden {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    .header-info-col {
        margin-left: 5px;
        line-height: 25px;
        padding: 0px 12px;
        font-size: 13px;
        margin-top: 24px;
    }

    #menu-toggle {
        float: right;
        font-size: 24px;
        line-height: 50px;
        margin-top: 10px;
        color: #fff;
        margin-left: 6px;
    }
}

/* Header search: ensure Font Awesome magnifying glass shows on red pill */
.site-header .mlf-search-toggle.loginbutton i.fa-magnifying-glass {
    color: #fff !important;
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal;
    font-weight: 900;
    font-size: 16px;
    line-height: 40px;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*
 * Hero nav: FlexSlider CDN uses flexslider-icon :before glyphs; style.css maps them via FA unicode.
 * Mixing fonts makes the wrong icon (e.g. search). We use real .fa icons from home.js and drop :before.
 */
.home .hero-slider.flexslider .flex-direction-nav a.flex-prev:before,
.home .hero-slider.flexslider .flex-direction-nav a.flex-next:before,
.home .hero-slider.flexslider .flex-prev:before,
.home .hero-slider.flexslider .flex-next:before {
    content: none !important;
    display: none !important;
}

.home .hero-slider.flexslider .flex-prev .fa-solid,
.home .hero-slider.flexslider .flex-next .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal;
    font-weight: 900;
    font-size: 30px;
    line-height: 50px;
    display: block;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}