/* ================================================
   Home Mobile — Flow Layout Overrides
   Converts Anima absolute layout to document flow.
   Loaded AFTER home-mobile.css so these rules win.
   ================================================ */

/* Main container: flex column, no fixed height */
.home-mobile .kinderplezier {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: unset;
    overflow-x: hidden;
    padding-bottom: 80px; /* space for fixed bottom nav */
}

/* ---- Fixed elements ---- */
.home-mobile .group-24 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}
.home-mobile .fixed-menu {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* ---- USP balk: clear leftover absolute ---- */
.home-mobile .group-20 {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 60px; /* below sticky header */
}

/* ---- Hero section wrapper ---- */
.home-mobile .section-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}
.home-mobile .section-hero .kinderplezier-de {
    position: relative;
    top: auto;
    left: auto;
}
.home-mobile .section-hero .p {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 16px;
}
.home-mobile .section-hero .group-18 {
    margin-top: 24px;
}

/* ---- Sections with absolute children: set position:relative ---- */
.home-mobile .group,
.home-mobile .group-2,
.home-mobile .group-12,
.home-mobile .group-13,
.home-mobile .group-17,
.home-mobile .mobile-footer,
.home-mobile .group-14,
.home-mobile .group-15 {
    position: relative;
}

/* ---- Kinderboeken card (.group-17): orange hero box ---- */
.home-mobile .group-17 {
    background-color: #ff5d00;
    border-radius: 16px;
    padding: 40px 20px;
    margin: 24px 12px 0;
    position: relative;
    overflow: hidden;
}
/* Override the absolute bg div — not needed, card itself is orange */
.home-mobile .group-17 .rectangle-14 {
    display: none;
}

/* ---- Section spacing ---- */
.home-mobile .group      { margin-top: 32px; } /* Nijntje */
.home-mobile .group-2    { margin-top: 32px; } /* Prentenboek */
.home-mobile .voor-al-onze { margin-top: 8px; }
.home-mobile .rectangle-6 { margin-top: 0; }
.home-mobile .group-12   { margin-top: -20px; } /* overlaps yellow bg slightly */
.home-mobile .group-13   { margin-top: 24px; }

/* ---- Lezen & KP cards: force column stack on mobile ---- */
.home-mobile .group-12,
.home-mobile .group-13 {
    display: flex;
    flex-direction: column;
    width: calc(100% - 24px);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Hoe het werkt section: background cover ---- */
.home-mobile .section-stappen {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    margin-top: 48px;
}
.home-mobile .section-stappen .adobestock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.home-mobile .section-stappen .z-werkt-het-in {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}
.home-mobile .section-stappen .group-4,
.home-mobile .section-stappen .group-6,
.home-mobile .section-stappen .group-8 {
    position: relative;
    left: auto;
    z-index: 1;
    margin-bottom: 20px;
}
.home-mobile .section-stappen .group-10 {
    position: relative;
    left: auto;
    z-index: 1;
    margin-top: 8px;
}

/* ---- Dark background section ---- */
.home-mobile .section-dark {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    margin-top: 24px;
}
.home-mobile .section-dark .istockphoto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.home-mobile .section-dark .rectangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.home-mobile .section-dark .wij-geloven-in-het,
.home-mobile .section-dark .begin-direct-met {
    position: relative;
    z-index: 2;
}
.home-mobile .section-dark .begin-direct-met {
    margin-top: 32px;
}

/* ---- Reviews section ---- */
.home-mobile .section-reviews {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    margin-top: 0;
}
.home-mobile .section-reviews .rectangle-9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.home-mobile .section-reviews .rectangle-10,
.home-mobile .section-reviews .rectangle-11 {
    position: relative;
    z-index: 1;
}
.home-mobile .section-reviews .group-14,
.home-mobile .section-reviews .text-wrapper-19,
.home-mobile .section-reviews .text-wrapper-20,
.home-mobile .section-reviews .rectangle-12,
.home-mobile .section-reviews .group-15,
.home-mobile .section-reviews .subtract,
.home-mobile .section-reviews .subtract-2 {
    position: relative;
    z-index: 1;
}

/* ---- Stats section ---- */
.home-mobile .section-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    width: 100%;
}

/* ---- Merken section ---- */
.home-mobile .section-merken {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 24px 0;
}
.home-mobile .section-merken .group-17 {
    position: relative;
    margin-top: 24px;
}
.home-mobile .section-merken .logoos-uitgeverijen {
    margin-top: 24px;
}
.home-mobile .section-merken .logoos-uitgeverijen-2 {
    margin-top: 16px;
}
/* Fix Anima artifact: absurd margins on logo elements */
.home-mobile .logo-studio,
.home-mobile .merk-suske-en-wiske,
.home-mobile .logo-unieboek,
.home-mobile .merk-paw-patrol {
    margin-top: 0;
    margin-right: 0;
}

/* ---- Footer ---- */
.home-mobile .mobile-footer {
    margin-top: 32px;
}
