/* Base Styles (for Desktop/Large Screens) */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #f9ef69;
    scroll-behavior: smooth;
}

.desktop-13 {
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    font-size: 48px;
    color: #000;
    font-family: Pacifico;
    height: 2560px;
}

.events-bg {
    position: absolute;
    left: 0px;
    width: 100%;
    object-fit: cover;
}

.e-bg2 {
    top: 924px;
    height: 1200px;
    object-position: top;

}

.e-bg6 {
    top: 1704px;
}

.welcome-to-childcarepro {
    position: absolute;
    top: 244px;
    left: calc(50% - 126px);
    letter-spacing: -0.02em;
    line-height: 52px;
}

.frame-parent {
    position: absolute;
    top: 384px;
    left: calc(50% - 570px);
    width: 1140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 300px;
    font-size: 40px;
    color: #28261b;
    font-family: Domine;
}

.service-left-content-parent,
.chid-therapy-parent {
    width: 100%;
    border-radius: 28px;
    background-color: rgba(251, 244, 205, 0.6);
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 60px;
    scroll-margin-top: 100px;
}

.chid-therapy-parent {
    background-color: rgba(255, 235, 128, 0.6);
}

.service-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.content,
.frame-container {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.service-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.comprehensive-support-for {
    position: relative;
    letter-spacing: -0.01em;
    line-height: 52px;
}

.desc {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 16px;
    color: #000;
    font-family: Outfit;
}

.discover-the-latest,
.discover-the-latest2,
.discover-the-latest4 {
    align-self: stretch;
    position: relative;
}

.discover-the-latest2,
.discover-the-latest4 {
    font-size: 18px;
    font-weight: 500;
}

.key-areas {
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px 20px;
}

.key-tabs {
    position: relative;
    border-radius: 16px;
    background-color: rgba(255, 205, 41, 0.2);
    border: 2px solid #ffcd29;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    white-space: nowrap;

    transition: all 0.3s ease-in-out;
}

.key-tabs:hover {
    box-shadow: 0 0 10px rgba(255, 205, 41, 0.5);
    transform: translateY(-2px);
}

.primary-cta {
    cursor: pointer;
    border: none;
    /*background-color: #fefcf2;*/
	background-color: #f6fb44;
    border-radius: 10px;
	border: 2px solid #235789;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    box-sizing: border-box;
    text-align: left;
    font-size: 20px;
    color: #fefcf2;
    font-family: Outfit;
    font-weight: 500;
}
a {
  text-decoration: none; /* Removes underline */
color: black;    /*Optional: changes link color */
}


/* .button {
    width: 50%;
    display: flex;
    justify-content: center;
} */

.chid-therapy-icon {
    height: 420px;
    width: 360px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* YELLOW BUTTON STYLING (Next/Popups) - FIXED */
/* ------------------------------------------------------------------ */

.s2-personal-info-cta,
.s3-accompanying-mem-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.next-wrapper {
    position: relative;
    border-radius: 10px;
    background-color: #e0b523;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 80px;
    box-shadow: 4px 6px 0 0 #000;
    transition: all 0.1s ease-in-out;
}

.next-wrapper:active {
    transform: translate(4px, 6px);
    box-shadow: 0 0 0 0 #000;
}

/* =========================================== */
/* ANIMATION KEYFRAMES */
/* =========================================== */
@keyframes light-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 205, 41, 0.3);
    }

    50% {
        box-shadow: 0 0 10px 2px rgba(255, 205, 41, 0.6);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 205, 41, 0.3);
    }
}


/* ------------------------------------------- */
/* MOBILE RESPONSIVENESS (max-width: 768px) */
/* ------------------------------------------- */

@media screen and (max-width: 768px) {

    .desktop-13 {
        height: auto;
        min-height: 100vh;
        padding-bottom: 180px;
    }

    .events-bg {
        height: 400px;
        object-fit: cover;
        object-position: top;


        /* background-size: cover;
		background-repeat: no-repeat;
		background-position: top; */
    }

    .e-bg2 {
        top: 1110px;
        height: 1180px;
    }

    .e-bg6 {
        top: 2112px;
    }

    .welcome-to-childcarepro {
        position: relative;
        top: 100px;
        left: 0;
        font-size: 32px;
        line-height: 36px;
        margin: 0 auto;
        width: 90%;
    }

    .frame-parent {
        position: relative;
        top: 150px;
        left: 0;
        width: 76%;
        max-width: 600px;
        margin: 0 auto;
        align-items: center;
        gap: 100px;
        font-size: 28px;
    }

    /* ******************************************************************* */
    /* FIX: Implement Image -> Content Block Flow for ALL Service Blocks */
    /* ******************************************************************* */

    /* Service 1 & 3: Original HTML order is Content Block -> Image. 
       We use column-reverse to swap them: Image -> Content Block. */
    .service-left-content-parent {
        flex-direction: column-reverse;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    /* Service 2: Original HTML order is Image -> Content Block. 
       We use column (the default for mobile) to keep the order: Image -> Content Block. */
    .chid-therapy-parent {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    /* The final visual flow for all services will now be: 
       [Image] -> [Content Block: Heading -> Description -> Button] 
       This is the closest possible to Heading -> Image -> Content without HTML changes. 
    */
    /* ******************************************************************* */
    /* END OF ORDERING FIX */
    /* ******************************************************************* */

    .service-left-content {
        width: 100%;
        gap: 16px;
    }

    .content,
    .frame-container {
        width: 100%;
        max-width: 100%;
        gap: 16px;
        align-items: center;
    }

    .service-heading {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .comprehensive-support-for {
        font-size: 24px;
        line-height: 32px;
        text-align: center;
    }

    .desc {
        text-align: center;
    }

    .discover-the-latest,
    .discover-the-latest2,
    .discover-the-latest4 {
        text-align: left;
        font-size: 14px;
        width: 100%;
    }

    .discover-the-latest2,
    .discover-the-latest4 {
        font-size: 16px;
    }

    /* Key Areas Tags - Sizing and Animation Fixes */
    .key-areas {
        justify-content: center;
        gap: 10px;
        padding: 0 5px;
    }

    .key-tabs {
        width: calc(50% - -40px);
        flex-grow: 0;
        flex-shrink: 0;
        font-size: 14px;
        padding: 6px 12px;
        white-space: normal;
        text-align: center;
        animation: light-pulse 2s infinite ease-in-out;
    }

    .key-tabs:hover {
        transform: none;
    }

    /* Centering and Sizing for all CTA buttons on mobile */
    .button,
    .s2-personal-info-cta,
    .s3-accompanying-mem-cta {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .primary-cta,
    .next-wrapper {
        width: 90%;
        max-width: 300px;
        font-size: 18px;
        padding: 10px 20px;
    }

    .chid-therapy-icon {
        width: 100%;
        height: auto;
        max-height: 300px;
        /* Removed 'order' property to rely purely on flex-direction for the parent */
    }
}