/*
 Theme Name:   Amokwe-get1
 Theme URI:    http://www.amokwe-nigeria.org
 Description:  Child theme for ft-charity-ngo
 Author:       PACO @ Tell a Friend
 Author URI:   http://www.getawebsite.ch
 Template:     ft-charity-ngo
 Version:      1.5.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/


/* ========================================================================
   1. GENERELLE TYPOGRAPHIE & FARBEN
   ======================================================================== */

p {
    line-height: 1.75 !important;
    color: black !important;
}

.logo-wrap.site-title a,
.callout-title h2 a,
.stat-div h3,
h2 {
    color: #008000 !important;
}

button.navbar-toggle,
.hero-section-content a,
.card-content .content,
.btn-default {
    background: #008000 !important;
    color: #ffffff !important;
}

.site-footer p {
    color: #696969 !important;
}


/* ========================================================================
   BANNER BILD
   ======================================================================== */

/*
   Das Bild wird leicht aufgehellt.
   Der Effekt bleibt bewusst moderat, damit das Foto nicht ausgewaschen
   oder zu dunkel/trüb wirkt.
*/

.hero-section img,
.page-header img,
.banner-image img,
.attachment-full {
    filter:
        brightness(1.5)
        sepia(0.2)
        hue-rotate(-10deg)
        saturate(0.8) !important;
}


/* ========================================================================
   2. HEADER & NAVIGATION
   ======================================================================== */

.site-title,
.site-description {
    display: none;
}


/* Logo Platzierung & Größe */

a.custom-logo-link img {
    float: left !important;
    margin-top: 0.5rem;
    margin-right: 0.75rem;
}

.site-branding img {
    width: 100% !important;
    height: 100px !important;
}


/* Navigation mit Farbverlauf */

.site-header,
header#masthead,
.header-desktop,
.header-mobile {
    background: linear-gradient(
        to bottom,
        rgba(252, 251, 228, 0.95) 0%,
        rgba(252, 251, 228, 0.95) 70%,
        rgba(252, 251, 228, 0.95) 105%
    ) !important;

    box-shadow: none !important;
    z-index: 999 !important;
}


.logged-in.home.page-template-template-home header#masthead,
.home.page-template-template-home header#masthead {
    border-bottom: 0px !important;
}


.navbar,
.main-navigation {
    background-color: transparent !important;
}


/* Einheitliche Schrift für Navigation */

.site-header .navbar-nav > li > a,
.site-header .main-navigation a,
.site-header .nav-menu a,
.header-mobile .navbar-collapse a,
.header-mobile #menu-main a {
    color: #008000 !important;
    font-weight: bold !important;
    text-transform: none !important;
    font-family: "Open Sans", sans-serif;
}


/* Hover-Effekte */

.site-header .navbar-nav > li > a:hover,
.site-header .main-navigation a:hover,
.site-header .nav-menu a:hover,
.header-mobile .navbar-collapse a:hover,
.header-mobile #menu-main a:hover {
    color: #005E31 !important;
}


/* Submenü */

.navbar-nav .dropdown-menu,
.nav-menu .sub-menu,
.header-mobile .navbar-collapse .dropdown-menu {
    background-color: #fcfbe4 !important;
    border: none !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
}


.navbar-nav .dropdown-item,
.header-mobile .navbar-collapse .dropdown-item {
    color: #005E31 !important;
}


.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav .dropdown-item:hover,
.header-mobile .navbar-collapse .dropdown-menu > li > a:hover {
    background-color: #008000 !important;
    color: #ffffff !important;
}


/* Aktiver Tab im Dropdown */

.navbar-nav .dropdown-menu > li.active > a,
.navbar-nav .dropdown-menu > .current-menu-item > a,
.navbar-nav .dropdown-item.active {
    background-color: #008000 !important;
    color: #ffffff !important;
}


/* ========================================================================
   3. DESKTOP HEADER LAYOUT FIX
   ======================================================================== */

@media (min-width: 768px) {

    .site-header .header-top .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
    }

    .site-header .header-top .row > .site-branding {
        flex: 0 0 auto !important;
        max-width: 470px !important;
        margin-right: 20px !important;
    }

    .site-header .header-top .row > .navbar-collapse {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }

    .site-header .header-top .row > .navbar-right {
        flex: 0 0 auto !important;
        margin-left: 20px !important;
    }

    .site-header .navbar-nav > li {
        white-space: nowrap !important;
    }
}


/* ========================================================================
   4. MOBILE ANPASSUNGEN
   ======================================================================== */

@media (max-width: 767px) {

    /* --- 1. Mobile Header & Menü --- */

    .header-mobile {
        position: relative !important;
        z-index: 9999 !important;
        background-color: #fcfbe4 !important;
        padding-bottom: 15px !important;
    }


    .header-mobile .navbar-toggle,
    .header-mobile .menu-toggle {
        z-index: 10001 !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        margin: 0 !important;
    }


    /* Menü als Block aufklappen */

    .header-mobile .navbar-collapse,
    .header-mobile #menu-main {
        position: relative !important;
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
        background: #ffffff !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 9998 !important;
    }


    .header-mobile .navbar-collapse a,
    .header-mobile #menu-main a {
        padding: 15px !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0;
    }


    /* --- 2. Kontakt-Button auf Mobile --- */

    .header-mobile .header-btn.btn-default,
    .header-mobile .navbar-right .btn.btn-default {
        background-color: #008000 !important;
        color: #ffffff !important;
        margin-top: 20px !important;
    }


    /* --- 3. Abstände auf der gesamten Mobile-Seite --- */

    .site-content,
    #content,
    .vb-section-content,
    .section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }


    .site-content .container,
    #content .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }


    /* --- 4. Footer Abstände auf Mobile --- */

    .site-footer,
    #colophon {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }


    .site-footer .row > div {
        margin-bottom: 20px !important;
    }


    /* --- 5. Mobile Karussell-Karten --- */

    .cause-section .support-content .card-content .content {
        min-height: 400px !important;
        display: flex !important;
        flex-direction: column !important;
    }


    .cause-section .support-content .card-content .content .btn.btn-default {
        align-self: flex-start !important;
        margin-top: auto !important;
    }


    /* ================================================================
       MOBILE BANNER
       ================================================================ */

    /*
       Auf Mobile wird die Textbox nicht zu weit nach oben verschoben.
       Dadurch bleibt das Motiv sichtbar und der Text bleibt innerhalb
       eines ruhigen Bildbereichs.
    */

    .hero-section.image .hero-section-content {
        transform: translateY(-20px) !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }


    .hero-section.image .hero-section-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}


/* ========================================================================
   5. BLOG & SEITEN LAYOUTS
   ======================================================================== */

.post-thumbnail,
.wp-block-cover {
    position: relative;
    width: 100% !important;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}


.post-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}


header.entry-header {
    background: rgba(0, 94, 49, 0.2);
    border-radius: 8px;
    padding-left: 1rem;
}


.entry-meta,
.entry-footer {
    display: none;
}

.blog-wrap .date {
    display: none !important;
}


.page-id-10 .entry-header,
.page-id-10 .post-thumbnail {
    display: none !important;
}

.page-id-10 #content {
    padding-top: 0px;
}

.page-id-12 .entry-title {
    display: none;
}


/* ========================================================================
   6. CAUSE SECTION (KARUSSELL)
   ======================================================================== */

.cause-section .support-content .card-content .content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}


.cause-section .support-content .card-content .content .btn.btn-default {
    margin-top: auto !important;
    align-self: flex-start !important;
    width: fit-content !important;
    display: inline-block !important;
    border: 2px solid #ffffff !important;
}


.cause-section .support-content .card-content .content .btn.btn-default:hover {
    background-color: #ffffff !important;
    color: #008000 !important;
}


/* ========================================================================
   7. BLOGPOST ZURÜCK UND WEITER
   ======================================================================== */

.post-navigation,
.navigation.post-navigation,
.nav-links,
.nav-subtitle,
.nav-title {
    font-family: "Open Sans", sans-serif !important;
    text-transform: none !important;
    font-style: normal !important;
}


.nav-subtitle {
    font-weight: normal !important;
    color: #666666 !important;
    font-size: 0.9em !important;
}


.nav-title {
    font-weight: bold !important;
    color: #008000 !important;
}


/* ========================================================================
   8. BANNER OVERLAY + BANNER SCHRIFT
   ======================================================================== */


/*
   Hero benötigt position: relative, damit Overlay und Textbox
   sauber innerhalb des Banners positioniert werden können.
*/

.hero-section.image {
    position: relative !important;
}


/*
   KEIN dunkles Overlay über das gesamte Bild.

   Stattdessen nur eine sehr leichte globale Abdunklung.
   Das Bild bleibt hell und freundlich.
*/

.hero-section.image::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.00) 0%,
            rgba(0, 0, 0, 0.015) 45%,
            rgba(0, 0, 0, 0.035) 100%
        ) !important;

    z-index: 1;
}


/*
   Text-Container über das Bild legen.
*/

.hero-section.image .container {
    position: relative !important;
    z-index: 2 !important;
}


/* ========================================================================
   9. BANNER TEXTBOX
   ======================================================================== */


/*
   Desktop:
   Die gesamte Textbox wird etwas nach oben verschoben.

   Dadurch liegt sie weniger direkt über den Köpfen und Körpern
   der Schüler und kommt stärker in den ruhigeren Wandbereich.
*/

@media (min-width: 992px) {

    .hero-section.image .hero-section-content {
        position: relative !important;

        /*
           Text etwas höher positionieren.
        */
        transform: translateY(-85px) !important;

        /*
           Nur so breit wie nötig.
           Verhindert eine riesige Box über das komplette Banner.
        */
        width: fit-content !important;
        max-width: 850px !important;

        /*
           Innenabstand für eine hochwertige, luftige Darstellung.
        */
        padding: 22px 34px 24px 30px !important;

        /*
           Sehr dezenter heller Hintergrund.
           Dadurch bleibt die grüne Schrift erhalten und wird
           deutlich besser lesbar.
        */
        background:
            linear-gradient(
                90deg,
                rgba(252, 251, 228, 0.65) 0%,
                rgba(252, 251, 228, 0.45) 85%,
                rgba(252, 251, 228, 0.00) 100%
            ) !important;

        /*
           Nur links ein dezenter grüner Akzent.
        */
        border-left: 2px solid #008000 !important;

        /*
           Keine harte Karte.
        */
        border-radius: 0 !important;

        /*
           Sehr dezenter Schatten für die Trennung vom Foto.
        */
        box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.08) !important;
    }


    /*
       H1 selbst:
       Grünton des Kunden bleibt unverändert.
    */

    .hero-section.image .hero-section-content h1 {
        color: #008000 !important;

        /*
           Der bisherige schwarze 1px-Schatten war relativ hart.
           Ein größerer, sehr weicher Schatten wirkt hochwertiger.
        */
        text-shadow:
            0 1px 2px rgba(255, 255, 255, 0.65) !important;

        /*
           Etwas mehr Zeilenhöhe verbessert die Lesbarkeit
           bei zweizeiligen Überschriften.
        */
        line-height: 1.15 !important;

        /*
           Abstand zwischen den Zeilen.
        */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* ========================================================================
   10. FEINER VERLAUF FÜR DIE TEXTBOX
   ======================================================================== */


/*
   Zusätzliche Absicherung:
   Der helle Bereich soll nicht wie eine harte rechteckige Box wirken.

   Der Hintergrund läuft deshalb nach rechts weich ins Foto aus.
*/

@media (min-width: 992px) {

    .hero-section.image .hero-section-content {
        overflow: visible !important;
    }


    .hero-section.image .hero-section-content::after {
        content: "";
        position: absolute;

        /*
           Die Fläche liegt hinter dem Text und erweitert
           den hellen Bereich leicht nach rechts.
        */
        top: 0;
        bottom: 0;
        left: 0;
        right: -80px;

        background:
            linear-gradient(
                90deg,
                rgba(252, 251, 228, 0.12) 0%,
                rgba(252, 251, 228, 0.08) 60%,
                rgba(252, 251, 228, 0.00) 100%
            );

        z-index: -1;
        pointer-events: none;
    }
}


/* ========================================================================
   11. TABLET BANNER
   ======================================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    .hero-section.image .hero-section-content {
        position: relative !important;

        /*
           Auf Tablet etwas weniger stark verschieben,
           da das Bild deutlich kleiner dargestellt wird.
        */
        transform: translateY(-35px) !important;

        width: fit-content !important;
        max-width: 650px !important;

        padding: 18px 28px 20px 24px !important;

        background:
            linear-gradient(
                90deg,
                rgba(252, 251, 228, 0.94) 0%,
                rgba(252, 251, 228, 0.86) 72%,
                rgba(252, 251, 228, 0.00) 100%
            ) !important;

        border-left: 4px solid #008000 !important;

        box-shadow:
            0 5px 16px rgba(0, 0, 0, 0.07) !important;
    }


    .hero-section.image .hero-section-content h1 {
        color: #008000 !important;

        text-shadow:
            0 1px 2px rgba(255, 255, 255, 0.65) !important;

        line-height: 1.15 !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* ========================================================================
   12. BANNER MOBILE
   ======================================================================== */

@media (max-width: 767px) {

    .hero-section.image .hero-section-content {
        position: relative !important;

        /*
           Nur leicht nach oben verschieben.
        */
        transform: translateY(-20px) !important;

        width: calc(100% - 30px) !important;
        max-width: none !important;

        margin-left: 15px !important;
        margin-right: 15px !important;

        padding: 16px 20px 18px 18px !important;

        /*
           Auf kleinen Screens lieber eine fast durchgehende,
           aber weiterhin transparente helle Fläche.
        */
        background:
            linear-gradient(
                90deg,
                rgba(252, 251, 228, 0.96) 0%,
                rgba(252, 251, 228, 0.90) 85%,
                rgba(252, 251, 228, 0.82) 100%
            ) !important;

        border-left: 4px solid #008000 !important;

        box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }


    .hero-section.image .hero-section-content h1 {
        color: #008000 !important;

        text-shadow:
            0 1px 2px rgba(255, 255, 255, 0.65) !important;

        line-height: 1.2 !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* ========================================================================
   13. BILD CAPTION & LISTEN FORMATIERUNG
   ======================================================================== */

.wp-block-image figcaption {
    text-align: left !important;
    margin-top: 5px !important;
}


.wp-block-image img {
    margin-bottom: 5px !important;
}


.entry-content ul,
.entry-content ol,
.entry-content li,
.widget ul,
.widget ol,
.widget li,
.textwidget ul,
.textwidget ol,
.textwidget li,
article ul,
article ol,
article li {
    color: #000000 !important;
}


.entry-content ul li::before,
.widget ul li::before {
    color: #008000 !important;
}


/* ========================================================================
   14. FILTER FÜR FOOTER-LOGO UND LOGOS AUFHEBEN
   ======================================================================== */

.site-footer img,
img.custom-logo,
.wp-block-image img.custom-logo {
    filter: none !important;
}


/* ========================================================================
   15. MOBILE FOOTER
   ======================================================================== */

@media (max-width: 767px) {

    .site-footer .row > div {
        text-align: left !important;
        margin-bottom: 25px !important;
    }


    .site-footer ul,
    .site-footer .widget_nav_menu ul {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}


/* ========================================================================
   16. MOBILE KARUSSELL-KARTEN
   ======================================================================== */

@media (max-width: 767px) {

    .cause-section .support-content .card-content .content {
        min-height: 350px !important;
        display: flex !important;
        flex-direction: column !important;
    }
}


/* ========================================================================
   17. TABLET ANPASSUNGEN
   768px - 991px
   ======================================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    /*
       Desktop Flexbox Fix deaktivieren,
       damit Header nicht gequetscht wird.
    */

    .site-header .header-top .row {
        display: block !important;
        flex-wrap: wrap !important;
        align-items: initial !important;
    }


    /*
       Mobile Menü korrekt aufklappen.
    */

    .header-mobile .navbar-collapse,
    .header-mobile #menu-main {
        position: relative !important;
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
        background: #ffffff !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 9998 !important;
    }


    /*
       Footer Ausrichtung.
    */

    .site-footer .row > div {
        text-align: left !important;
        margin-bottom: 25px !important;
    }


    .site-footer ul,
    .site-footer .widget_nav_menu ul {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }


    /*
       Allgemeine Abstände.
    */

    .site-content,
    #content,
    .vb-section-content {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}


/* ========================================================================
   18. TEXT-LINKS IN INHALTSBEREICHEN
   ======================================================================== */

.entry-content p a,
.entry-content p a:visited,
article p a,
article p a:visited,
.widget_text p a,
.widget_text p a:visited {
    color: #008000 !important;
    font-style: bold !important;
}


/* Hover-Effekt für Text-Links */

.entry-content p a:hover,
article p a:hover,
.widget_text p a:hover {
    color: #005E31 !important;
    font-style: bold !important;
}


/* ========================================================================
   BUTTONS – GRÜN IN ALLEN ZUSTÄNDEN
   ======================================================================== */

/* Normal */
.btn,
.btn-default,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    background-color: #008000 !important;
    background-image: none !important;
    border-color: #008000 !important;
    color: #ffffff !important;
}


/* Hover */
.btn:hover,
.btn-default:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #005E31 !important;
    background-image: none !important;
    border-color: #005E31 !important;
    color: #ffffff !important;
}


/* ================================================================
   ACTIVE – beim tatsächlichen KLICK
   ================================================================ */

.btn:active,
.btn-default:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,

.btn.active,
.btn-default.active,

.btn-default:active:hover,
.btn-default:active:focus,
.btn-default.active:hover,
.btn-default.active:focus,

.btn:active:hover,
.btn:active:focus,
.btn.active:hover,
.btn.active:focus {
    background-color: #008000 !important;
    background-image: none !important;
    border-color: #008000 !important;
    color: #ffffff !important;

    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}


/* ================================================================
   FOCUS – nachdem der Button angeklickt wurde
   ================================================================ */

.btn:focus,
.btn-default:focus,
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,

.btn:focus-visible,
.btn-default:focus-visible,
button:focus-visible {
    background-color: #008000 !important;
    background-image: none !important;
    border-color: #008000 !important;
    color: #ffffff !important;

    outline: none !important;

    box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.20) !important;
    -webkit-box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.20) !important;
}


/* ================================================================
   KOMBINATIONEN – Bootstrap/Theme überschreiben
   ================================================================ */

.btn-default:active,
.btn-default:active:hover,
.btn-default:active:focus,
.btn-default:active:hover:focus,
.btn-default.active,
.btn-default.active:hover,
.btn-default.active:focus,

.btn:active,
.btn:active:hover,
.btn:active:focus,
.btn:active:hover:focus,
.btn.active,
.btn.active:hover,
.btn.active:focus {
    background-color: #008000 !important;
    background-image: none !important;
    border-color: #008000 !important;
    color: #ffffff !important;
}


/* ================================================================
   LINKS, DIE ALS BUTTONS VERWENDET WERDEN
   ================================================================ */

a.btn,
a.btn-default {
    background-color: #008000 !important;
    background-image: none !important;
    border-color: #008000 !important;
    color: #ffffff !important;
}


a.btn:hover,
a.btn-default:hover {
    background-color: #005E31 !important;
    background-image: none !important;
    border-color: #005E31 !important;
    color: #ffffff !important;
}


a.btn:active,
a.btn:active:hover,
a.btn:active:focus,
a.btn-default:active,
a.btn-default:active:hover,
a.btn-default:active:focus {
    background-color: #008000 !important;
    background-image: none !important;
    border-color: #008000 !important;
    color: #ffffff !important;
}