/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/
/* =======================================================
   HUISDOSSIER MASTER CSS (CHILE THEME)
   ======================================================= */

/* --- 1. ALGEMENE STYLING --- */

/* Verwijder standaard Enfold lijntjes bij secties */
.avia-section {
    border: none !important;
}

/* Standaard Huisdossier Knop (Pil-vorm & Groen) */
body div .avia-button {
    background-color: #5CB85C;
    border-color: #5CB85C;
    color: #ffffff;
    border-radius: 100px;
    padding: 15px 30px;
    font-weight: 700;
    text-transform: none; /* Geen hoofdletters */
    transition: all 0.3s ease;
}

/* Hover effect knoppen (Donkerpaars) */
body div .avia-button:hover {
    background-color: #2E2A67;
    border-color: #2E2A67;
    color: #ffffff;
    opacity: 1 !important; /* Voorkom standaard Enfold fade */
}

/* Secundaire "Ghost" knop (See how it works) */
#hero-card .avia-button.avia-color-light {
    border: none !important;
    background: transparent !important;
    padding-left: 0;
    color: #444444; /* Of donkerpaars */
    box-shadow: none !important;
}
#hero-card .avia-button.avia-color-light:hover {
    background: transparent !important;
    opacity: 0.7 !important;
}
#hero-card .avia-button.avia-color-light .avia_button_icon {
    color: #5CB85C;
    font-size: 20px;
    vertical-align: middle;
}

/* Socket (Footer onderkant) */
#top #wrap_all #socket .container,
#top #wrap_all #socket .copyright {
    text-align: center;
    float: none;
    clear: both;
}


/* --- 2. HERO CARD & SPLIT CARDS (DESKTOP BASIS) --- */

/* Container instellingen */
#hero-card .container {
    max-width: 1210px; 
    padding: 0 !important;
    margin-top: 0px;
}

/* Tekst styling in Hero */
#hero-card .avia_textblock p {
    font-size: 20px;
    line-height: 1.6em;
    color: #444444;
    margin-bottom: 25px;
}

/* Knoppen naast elkaar */
#hero-card .avia-button-wrap {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}

/* RONDE HOEKEN LOGICA (Desktop: Links/Rechts rond) */
@media only screen and (min-width: 768px) {
    /* Hero Sectie */
    #hero-card .av_one_half.first {
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
    }
    #hero-card .av_one_half:last-child {
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
        overflow: hidden;
    }

    /* Split Feature Card (Huis genereert...) */
    .round-card-left {
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
        overflow: hidden;
    }
    .round-card-right {
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
        overflow: hidden;
    }
}


/* --- 3. FEATURE GRID (De 6 Iconen) --- */

.huis-feature-card {
    background-color: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    padding: 30px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.huis-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #5CB85C;
}

.huis-feature-card .av_font_icon {
    margin-bottom: 15px !important;
    display: block;
}

/* =======================================================
   4. NIEUWS & UPDATES GRID (COMPLEET)
   ======================================================= */

/* A. DE CONTAINER (Het Grid zelf - Deze miste je!) */
.huis-blog-grid .slide-entry-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Dit dwingt de 3 kolommen af */
    gap: 30px !important;       /* Ruimte tussen de kaarten */
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;   /* Beetje ruimte voor de schaduw */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* B. DE KAARTEN (Strakke randen, geen padding) */
.huis-blog-grid .slide-entry {
    background-color: #ffffff !important;
    border: 1px solid #EBEBEB !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
    
    /* CRUCIAAL VOOR DE FOTO: Padding op 0 zodat foto aansluit! */
    padding: 0 !important; 
    
    width: 100% !important; 
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 420px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.huis-blog-grid .slide-entry:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1) !important;
    border-color: #5CB85C !important;
    z-index: 2;
}

/* C. DE AFBEELDING */
.huis-blog-grid .slide-image {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
}
.huis-blog-grid .slide-image img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
}

/* D. CONTENT (Titel & Tekst) */
.huis-blog-grid .slide-entry-title {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    color: #2E2A67 !important;
    /* Hier geven we weer padding, want de kaart heeft nu 0 */
    padding: 0 25px !important; 
    margin: 20px 0 10px 0 !important;
    border: none !important;
}
.huis-blog-grid .slide-entry-title a {
    text-decoration: none !important;
    color: #2E2A67 !important;
}

/* Verberg metadata */
.huis-blog-grid .slide-meta, 
.huis-blog-grid .post-meta-infos {
    display: none !important;
}

/* De platte tekst */
.huis-blog-grid .slide-entry-excerpt {
    padding: 0 25px !important;
    color: #555555 !important;
    font-size: 15px !important;
    line-height: 1.6em !important;
    flex-grow: 1;
}

/* E. LEES MEER KNOP - FIX VOOR DUBBELE PIJL & POSITIE */
.huis-blog-grid .read-more-link {
    padding: 10px 25px 30px 0px !important;  
    margin-top: auto !important;
    width: 100%;
    text-align: left !important;
    box-sizing: border-box; /* Zorgt dat padding binnen de 100% valt */
}

.huis-blog-grid a.more-link {
    color: #5CB85C !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    text-decoration: none !important;
    background: transparent !important;
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* We halen de '::after' regel WEG om de dubbele pijl te voorkomen. 
   Enfold plaatst zelf al een pijltje. */


/* --- MOBIEL HERSTEL (ALTIJD NODIG!) --- */
@media only screen and (max-width: 900px) {
    .huis-blog-grid .slide-entry-wrap {
        grid-template-columns: 1fr !important;
    }
}


/* --- 5. MENUBALK FIX (Pilvormige knop) --- */

#top #wrap_all .header_color .av-menu-button-colored > a .avia-menu-text {
    background: #50b849;
    border: none;
    padding: 10px;
    border-radius: 30px;
}
/* Verberg het lijntje onder menu items */
#avia-menu li:hover .avia-menu-fx,
.current-menu-item .avia-menu-fx {
    display: none !important;
}


/* =======================================================
   MOBIEL / RESPONSIVE (ALLES ONDER ELKAAR)
   ======================================================= */

@media only screen and (max-width: 900px) {
    /* Nieuws Grid: 1 kolom */
    .huis-blog-grid .slide-entry-wrap {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media only screen and (max-width: 767px) {
    
    /* 1. HERO SECTIE OPTIMALISATIE */
    #hero-card .container {
        width: 90% !important;
        max-width: 90% !important;
    }
    
    /* Bovenkant (Tekst): Minder padding, ronde bovenhoeken */
    #hero-card .av_one_half.first {
        border-radius: 30px 30px 0 0 !important;
        padding: 40px 30px 30px 30px !important; /* Strakke padding */
        margin-bottom: 0 !important;
    }
    
    /* Titels strak bovenaan */
    #hero-card .av_one_half.first h1,
    #hero-card .av_one_half.first h2,
    #hero-card .av_one_half.first .av-special-heading {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    #hero-card .avia_textblock p {
        margin-bottom: 15px !important;
    }
    #hero-card .avia-button-wrap {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Onderkant (Foto): Ronde onderhoeken & Zichtbaar maken */
    #hero-card .av_one_half:last-child {
        border-radius: 0 0 30px 30px !important;
        min-height: 250px !important; /* Foto zichtbaar maken! */
        margin-top: 0 !important;
    }


    /* 2. SPLIT CARD (Je Huis Genereert...) */
    .round-card-left {
        border-radius: 30px 30px 0 0 !important;
        min-height: 250px !important;
        margin-bottom: 0 !important;
    }
    .round-card-right {
        border-radius: 0 0 30px 30px !important;
        margin-top: 0 !important;
        padding: 30px !important;
    }


    /* 3. FEATURE CARDS (Ruimte tussen items) */
    .huis-feature-card {
        margin-bottom: 20px !important;
    }
}

/* Styling voor de Footer rand */
#footer {
    border-top: 1px solid #EBEBEB !important; /* Subtiel grijs lijntje */
    padding-top: 50px; /* Ietsje lucht tussen lijn en tekst */
}

/* Zorgt dat losse foto's ook die mooie 30px ronde hoeken krijgen */
.rounded-image img {
    border-radius: 30px !important;
}

/* video */

/* Afgeronde hoeken voor de video */
.avia-video,
.avia-video .mejs-container,
.avia-video mediaelementwrapper,
.avia-video video {
    border-radius: 30px;
    overflow: hidden;
}

/* Zorg dat de controls ook netjes blijven */
.avia-video .mejs-container {
    overflow: hidden;
}