/* ==========================================================================
   DAYCARE PREMIUM V8 DESIGN - Warm & Nurturing Institutional
   ========================================================================== */

:root {
    --daycare-primary: #f7941d; /* Warm Glow */
    --daycare-secondary: #75c137; /* Growth Green */
    --daycare-accent: #2390ff; /* Trust Blue */
    --daycare-soft: rgba(247, 148, 29, 0.08); 
    --daycare-glass: rgba(255, 255, 255, 0.95);
    --daycare-dark: #1f2235;
    --daycare-border: #f0f0f0;
}

/* --- SECTION WRAPPERS --- */
.daycare-v8-section {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.daycare-v8-section--alt {
    background: #fbfbfc;
    padding: 80px 0;
}

/* --- V8 HERO COLLAGE --- */
.v8-collage-box {
    position: relative;
    z-index: 1;
}

.v8-image-main {
    position: relative;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    border: 15px solid #fff;
    transition: all 0.5s ease;
}

.v8-image-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.18);
}

.v8-image-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.v8-badge-float {
    position: absolute;
    top: 40px;
    left: -20px;
    background: var(--daycare-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 15px 30px rgba(247, 148, 29, 0.3);
    z-index: 3;
    animation: bounceSlow 4s infinite ease-in-out;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- V8 TEXT CONTENT --- */
.v8-content-box {
    padding-left: 60px;
    text-align: left; /* Keep left or centered? I will try centered for better balance if title is centered */
}

.daycare-v8-section--center {
    text-align: center;
}

.daycare-v8-section--center .v8-content-box {
    padding-left: 0;
}

.v8-pre-title {
    display: inline-block;
    padding: 10px 25px;
    background: var(--daycare-soft);
    color: var(--daycare-primary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.v8-main-title {
    font-size: 56px;
    line-height: 1.2; /* Increased for better legibility */
    font-weight: 800;
    color: var(--daycare-dark);
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 35px;
    max-width: 600px; /* Prevent single word orphans */
}

.v8-main-title span {
    color: var(--daycare-primary);
}

.v8-lead-text {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
    font-weight: 600;
    margin-bottom: 30px;
    max-width: 550px;
}

.v8-main-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- V8 FEATURE CARDS --- */
.v8-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.v8-feature-card {
    background: #fff;
    border-radius: 40px 40px 60px 60px; 
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.06);
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0,0,0,1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.v8-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 50px 100px rgba(0,0,0,0.12);
    border-color: var(--daycare-primary);
}

.v8-fc-image {
    height: 320px; /* Slightly reduced fruitfully */
    overflow: hidden;
    position: relative;
    border-radius: 40px 40px 0 0;
}

.v8-fc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.v8-feature-card:hover .v8-fc-image img {
    transform: scale(1.05);
}

.v8-fc-content {
    padding: 30px 20px; /* Reduced padding as per feedback */
    text-align: center;
    background: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


.v8-fc-content h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--daycare-dark, #1f2235);
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: -0.5px;
}

/* Individual card border accents like in image */
.v8-feature-card:nth-child(1) { border-color: rgba(247, 148, 29, 0.3); }
.v8-feature-card:nth-child(2) { border-color: rgba(117, 193, 55, 0.3); }
.v8-feature-card:nth-child(3) { border-color: rgba(35, 144, 255, 0.3); }
.v8-feature-card:nth-child(4) { border-color: rgba(117, 193, 55, 0.3); }


/* --- V8 FOCUS CARDS GRID --- */
.v8-focus-header {
    text-align: center;
    margin-bottom: 70px;
}

.v8-focus-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 40px;
    border: 1px solid var(--daycare-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.v8-focus-card:hover {
    transform: translateY(-15px);
    border-color: var(--daycare-primary);
    box-shadow: 0 30px 70px rgba(247, 148, 29, 0.12);
}

.v8-fc-icon {
    width: 70px;
    height: 70px;
    background: var(--daycare-soft);
    color: var(--daycare-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.v8-focus-card:hover .v8-fc-icon {
    background: var(--daycare-primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.v8-fc-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 26px;
    color: var(--daycare-dark);
    margin-bottom: 20px;
}

.v8-fc-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* Theme variations */
.v8-fc--green .v8-fc-icon { background: rgba(117, 193, 55, 0.08); color: var(--daycare-secondary); }
.v8-fc--green:hover { border-color: var(--daycare-secondary); box-shadow: 0 30px 70px rgba(117, 193, 55, 0.12); }
.v8-fc--green:hover .v8-fc-icon { background: var(--daycare-secondary); }

.v8-fc--blue .v8-fc-icon { background: rgba(35, 144, 255, 0.08); color: var(--daycare-accent); }
.v8-fc--blue:hover { border-color: var(--daycare-accent); box-shadow: 0 30px 70px rgba(35, 144, 255, 0.12); }
.v8-fc--blue:hover .v8-fc-icon { background: var(--daycare-accent); }


/* Responsive Overrides */
@media (max-width: 1400px) {
    .v8-main-title { font-size: 48px; }
    .v8-content-box { padding-left: 30px; }
}

@media (max-width: 1199px) {
    .v8-image-main img { height: 500px; }
    .v8-content-box { padding-left: 0; margin-top: 80px; }
    .v8-main-title { font-size: 42px; }
    .v8-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .v8-focus-card { padding: 40px 30px; }
}

@media (max-width: 767px) {
    .daycare-v8-section { padding: 80px 0; }
    .v8-main-title { font-size: 34px; }
    .v8-lead-text { font-size: 18px; }
    .v8-image-main { border-radius: 40px; border-width: 8px; }
    .v8-feature-grid { grid-template-columns: 1fr; }
    .v8-focus-card { padding: 30px 25px; }
}
