/* Kids4U Playhouse — Homepage organization V2.0
   Clear visual hierarchy, four primary destinations and consistent section rhythm. */
.k4-home-body .k4-home-main{width:min(1240px,94%);}
.k4-home-body .k4-hero{margin-top:26px;margin-bottom:12px;}

/* Four primary destinations: the homepage becomes a clear directory. */
.k4-home-body .k4-path-section{padding:34px 28px 30px;margin:18px 0 26px;border:2px solid rgba(255,255,255,.98);border-radius:30px;background:linear-gradient(128deg,#fff4d8 0%,#f0eaff 42%,#e2f9ff 75%,#e6fff1 100%);box-shadow:0 16px 36px rgba(67,60,145,.10);}
.k4-home-body .k4-path-section .k4-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px;}
.k4-home-body .k4-path-section .k4-section-heading>p{max-width:480px;font-size:.92rem;}
.k4-home-body .k4-path-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
.k4-home-body .k4-path-card{position:relative;min-width:0;min-height:146px;align-items:flex-start;flex-direction:column;gap:12px;padding:17px 17px 15px;border-radius:22px;overflow:hidden;}
.k4-home-body .k4-path-card:after{content:"";position:absolute;width:100px;height:100px;right:-36px;top:-42px;border-radius:50%;background:rgba(255,255,255,.4);pointer-events:none;}
.k4-home-body .k4-path-card .k4-path-icon{width:49px;height:49px;flex-basis:49px;font-size:1.6rem;border:1px solid rgba(255,255,255,.95);box-shadow:0 6px 14px rgba(59,61,127,.08);}
.k4-home-body .k4-path-content{position:relative;z-index:1;gap:4px;}
.k4-home-body .k4-path-content strong{font-size:1rem;line-height:1.25;}
.k4-home-body .k4-path-content small{font-size:.78rem;line-height:1.4;}
.k4-home-body .k4-path-card .k4-card-arrow{position:absolute;right:15px;bottom:14px;font-size:1.2rem;z-index:2;}
.k4-home-body .k4-path-card.path-science{background:linear-gradient(145deg,#e8e1ff,#fff 88%);}
.k4-home-body .k4-path-card.path-tools{background:linear-gradient(145deg,#dff7ff,#fff 88%);}
.k4-home-body .k4-path-card.path-learn{background:linear-gradient(145deg,#fff0cc,#fff 88%);}
.k4-home-body .k4-path-card.path-print{background:linear-gradient(145deg,#ffe5f1,#fff 88%);}

/* Align the main section rhythm and make each destination feel like one group. */
.k4-home-body .k4-section{scroll-margin-top:100px;}
.k4-home-body .k4-science-section{margin-top:22px;margin-bottom:24px;}
.k4-home-body .k4-watch-section{padding-top:26px;padding-bottom:30px;}
.k4-home-body .k4-tools-preview-section{padding-top:30px;padding-bottom:34px;}
.k4-home-body .k4-learn-section{padding-top:42px;padding-bottom:42px;}
.k4-home-body .k4-print-section{padding-top:38px;padding-bottom:42px;}
.k4-home-body .k4-parent-section{padding-top:20px;padding-bottom:22px;}
.k4-home-body .k4-stories-section{padding-top:34px;padding-bottom:48px;}

/* Shared section-heading rhythm; links remain visible on small screens. */
.k4-home-body .k4-section-heading h2,.k4-home-body .k4-stories-heading h2{max-width:780px;}
.k4-home-body .k4-heading-with-side .k4-text-link{flex:0 0 auto;margin-bottom:5px;}
.k4-home-body .k4-section-heading p{line-height:1.65;}
.k4-home-body .k4-print-note{padding:10px 13px;border-radius:13px;background:rgba(255,255,255,.72);border:1px solid #ebe7fb;}
.k4-home-body .k4-watch-card{overflow:hidden;}
.k4-home-body .k4-watch-copy{min-width:0;}
.k4-home-body .k4-watch-actions .k4-button{min-height:48px;}

/* More consistent visual weights for feature groups. */
.k4-home-body .k4-science-card{display:flex;flex-direction:column;min-width:0;}
.k4-home-body .k4-science-card-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;}
.k4-home-body .k4-science-card-copy .k4-card-cta{margin-top:auto;padding-top:3px;}
.k4-home-body .k4-learning-card{height:100%;}
.k4-home-body .k4-print-card{min-width:0;}
.k4-home-body .k4-parent-panel{box-shadow:0 10px 25px rgba(67,60,145,.07);}

/* Tablet and mobile destination layout. */
@media(max-width:1050px){
 .k4-home-body .k4-path-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .k4-home-body .k4-path-section .k4-section-heading{align-items:flex-start;flex-direction:column;gap:8px;}
}
@media(max-width:600px){
 .k4-home-body .k4-path-section{padding:25px 14px 17px;margin:14px 0 18px;border-radius:23px;}
 .k4-home-body .k4-path-grid{grid-template-columns:1fr;gap:9px;}
 .k4-home-body .k4-path-card{min-height:88px;flex-direction:row;align-items:center;padding:12px 14px;gap:11px;}
 .k4-home-body .k4-path-card .k4-path-icon{width:45px;height:45px;flex-basis:45px;}
 .k4-home-body .k4-path-card .k4-card-arrow{right:14px;top:50%;bottom:auto;transform:translateY(-50%);}
 .k4-home-body .k4-path-content{padding-right:24px;}
 .k4-home-body .k4-watch-section,.k4-home-body .k4-tools-preview-section,.k4-home-body .k4-learn-section,.k4-home-body .k4-print-section{padding-top:29px;padding-bottom:30px;}
 .k4-home-body .k4-heading-with-side .k4-text-link{white-space:normal;}
}
