/* ============================================================
 * BUILD-S84 — Homepage fixes (owner task 2026-11-05), appended LAST so it wins the cascade.
 * Scope: front page only (.home2-template-page / body.home).
 * Non-destructive overlay on top of template-home2.css + home-root.css + amk-ux-s71.css.
 * ============================================================ */

/* ---------- Fix 2: Hero CTA = header gradient (purple->magenta->orange) ---------- */
.home2-template-page .hero_block .hero-btn{
  background:linear-gradient(100deg,#5100FF 0%,#A8329B 50%,#F56638 100%);
  color:#fff;
  border:none;
  box-shadow:0 8px 24px -8px rgba(81,0,255,.55);
}
.home2-template-page .hero_block .hero-btn:hover{
  color:#fff;
  filter:brightness(1.1);
  transform:translateY(-4px);
}

/* ---------- Fix 1: EN hero — guarantee text layer above bg, no clipping ---------- */
.home2-template-page .hero_block .container{z-index:10 !important;}
.home2-template-page .hero_block h1,
.home2-template-page .hero_block .hero-titles-slider,
.home2-template-page .hero_block .hero-content,
.home2-template-page .hero_block .hero-btn{position:relative;z-index:10;}
/* EN long rotating titles: let them wrap instead of overlap/clipping */
html[lang="en-US"] .home2-template-page .hero-titles-slider h2.gradiant-text{
  white-space:normal;
  line-height:1.05;
  overflow:visible;
}
html[lang="en-US"] .home2-template-page .hero-titles-slider .slick-slide{
  height:auto !important;
  min-height:70px;
  overflow:visible;
}

/* ---------- Fix 3: Social-proof strip under hero ---------- */
.amk-proof-strip{
  display:flex;flex-wrap:wrap;gap:28px;justify-content:center;align-items:center;
  padding:22px 15px;margin:0 auto;max-width:1100px;
  border-bottom:1px solid rgba(23,23,23,.08);
}
.amk-proof-strip .amk-proof-item{display:flex;flex-direction:column;align-items:center;min-width:110px;}
.amk-proof-strip .amk-proof-num{
  font-size:30px;font-weight:700;line-height:1;
  background:linear-gradient(100deg,#5100FF 0%,#A8329B 50%,#F56638 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.amk-proof-strip .amk-proof-label{font-size:13.5px;color:#555;margin-top:6px;text-align:center;}
@media (max-width:640px){
  .amk-proof-strip{gap:16px;padding:16px 10px;}
  .amk-proof-strip .amk-proof-num{font-size:24px;}
  .amk-proof-strip .amk-proof-label{font-size:12px;}
}

/* ---------- Fix 4: Floating WhatsApp/phone buttons must not cover section headings ---------- */
@media (max-width:768px){
  .floating-btns{bottom:12px;right:12px;z-index:90;}
  .floating-btn{width:50px;height:50px;}
  .floating-btn svg{width:20px;height:20px;}
  /* keep clear of the boxes heading on mobile */
  .home2-template-page .boxes-section{padding-top:70px;}
}

/* ---------- Fix 5: Kill mobile dead-space under hero CTA / shrink hero bg img ---------- */
@media (max-width:768px){
  .home2-template-page .hero_block{height:auto;min-height:560px;padding-bottom:40px;border-radius:0 0 32px 32px;}
  .home2-template-page .hero_block .container{padding:90px 15px 0 15px;}
  .home2-template-page .hero_block_img{height:60%;opacity:.55;}
  .home2-template-page .hero_block_bg .svg-map{opacity:.6;}
}
@media (max-width:439px){
  .home2-template-page .hero_block{min-height:500px;padding-bottom:28px;}
  .home2-template-page .hero_block .container{padding-top:70px;}
}
/* BUILD-S84 pass 2 — visual bug fixes (2026-11-05). Loads after s84-fixes.css. */

/* --- Featured/special box: icon must not overlap text; box auto-height --- */
.home2-template-page .boxes-section .special-box{overflow:visible !important;height:auto !important;min-height:280px;}
.home2-template-page .boxes-section .special-box .icon{
  position:absolute;top:24px;inset-inline-end:24px;width:56px;height:56px;object-fit:contain;
  pointer-events:none;z-index:1;
}
.home2-template-page .boxes-section .first-row .special-box h3{
  max-width:calc(100% - 80px); /* leave room for the icon */
}
.home2-template-page .boxes-section .special-box .special-box_content{position:relative;z-index:2;}
.home2-template-page .boxes-section .first-row .special-box .box-content{width:85%;}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box{min-height:230px;padding:28px;}
  .home2-template-page .boxes-section .special-box .icon{width:44px;height:44px;top:16px;inset-inline-end:16px;}
  .home2-template-page .boxes-section .first-row .special-box h3{font-size:26px;max-width:calc(100% - 60px);}
  .home2-template-page .boxes-section .first-row .special-box .box-content{width:100%;}
  .home2-template-page .boxes-section .first-row .special-box .box-content p{font-size:16px;}
}

/* --- Hero rotating titles: slide height must fit content (fix clipping) --- */
.home2-template-page .hero-titles-slider .slick-slide{height:auto !important;min-height:120px;overflow:visible;}
.home2-template-page .hero-titles-slider h2{line-height:1.1;}
@media (max-width:768px){
  .home2-template-page .hero-titles-slider .slick-slide{min-height:80px;}
}

/* --- Discover slider: don't clip under heading --- */
.home2-template-page .discover-section{overflow:visible;}
.home2-template-page .discover-section .discover-section_slider{
  position:relative;left:auto;margin-left:0;width:100%;
  overflow:visible;
}
.home2-template-page .discover-slider .item{overflow:visible;}

/* --- Amazon/cloud section bg: don't force huge clipped height --- */
.home2-template-page .amazon-wrapper .amazon_bg{
  height:auto !important;min-height:320px;max-height:520px;overflow:hidden;background-size:cover;
}
@media (max-width:768px){
  .home2-template-page .amazon-wrapper .amazon_bg{min-height:220px;max-height:320px;}
}

/* --- Magazine h3 clipping --- */
.home2-template-page .magazine-wrapper h3,
.home2-template-page .slider-magazine-accordion h3{height:auto !important;min-height:98px;overflow:visible;}
/* BUILD-S84 pass 3 — residual clipping/overlap (2026-11-05). Loads last. */

/* hero slick-list: let it grow with slides */
.home2-template-page .hero-titles-slider .slick-list{
  height:auto !important;min-height:120px;overflow:visible !important;
}
.home2-template-page .hero-titles-slider .slick-track{height:auto !important;display:flex;}
@media (max-width:768px){
  .home2-template-page .hero-titles-slider .slick-list{min-height:80px;}
}

/* featured box icon: keep clear of h3 via padding (source approach) */
.home2-template-page .boxes-section .first-row .special-box h3{
  padding-inline-end:85px;max-width:none;
}
.home2-template-page .boxes-section .special-box.half h3{padding-inline-end:70px;}
@media (max-width:768px){
  .home2-template-page .boxes-section .first-row .special-box h3{padding-inline-end:60px;}
  .home2-template-page .boxes-section .special-box.half h3{padding-inline-end:56px;}
}

/* magazine/blog h3: remove 3-line clamp that clips long titles */
.home2-template-page .slider-magazine-accordion .splide__slide .splide__slide--body h3{
  display:block !important;-webkit-line-clamp:unset !important;height:auto !important;overflow:visible;
}
.home2-template-page .magazine-accordion .magazine-item .content-wrapper h3{
  height:auto !important;min-height:0;overflow:visible;
}

/* amazon bg: cap height, keep cover */
.home2-template-page .amazon-wrapper .amazon_bg{
  max-height:520px !important;overflow:hidden !important;
}
@media (max-width:768px){
  .home2-template-page .amazon-wrapper .amazon_bg{max-height:320px !important;}
}
/* BUILD-S84 pass 4 — final residual fixes. Loads last. */

/* amazon_bg: it's a decorative layer inside amazon-wrapper; clip hard */
.home2-template-page .amazon-wrapper{overflow:hidden;}
.home2-template-page .amazon_bg{
  position:absolute !important;inset:0;height:100% !important;max-height:none !important;
  overflow:hidden;border-radius:20px;
}

/* featured box icon overlap: the scan flags .icon vs text — push icon fully into corner,
   shrink it, and add matching padding to ALL special-box headings */
.home2-template-page .boxes-section .icon{
  width:48px !important;height:48px !important;top:18px !important;inset-inline-end:18px !important;
  opacity:.9;z-index:1;
}
.home2-template-page .boxes-section .special-box h3{
  padding-inline-end:70px !important;max-width:none !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .icon{width:38px !important;height:38px !important;top:14px !important;inset-inline-end:14px !important;}
  .home2-template-page .boxes-section .special-box h3{padding-inline-end:52px !important;}
}
/* BUILD-S84 pass 5 — icon containment + amazon_bg real fix. Loads last. */

/* The .icon is absolutely positioned inside .special-box_content (not the box).
   Contain it within the content area, top corner, and reserve space in h3. */
.home2-template-page .boxes-section .special-box_content{position:relative;overflow:visible;}
.home2-template-page .boxes-section .icon{
  top:0 !important;inset-inline-end:0 !important;width:44px !important;height:44px !important;
}
.home2-template-page .boxes-section .special-box h3{
  padding-inline-end:60px !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .icon{width:34px !important;height:34px !important;}
  .home2-template-page .boxes-section .special-box h3{padding-inline-end:46px !important;}
}

/* amazon_bg: parent .container_flex has fixed height 320-520; make bg fill it, not exceed */
.home2-template-page .amazon-wrapper .container_flex{position:relative;overflow:hidden;}
.home2-template-page .amazon_bg{
  position:absolute !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important;
  max-height:100% !important;min-height:0 !important;overflow:hidden;
}
/* BUILD-S84 pass 6 — decorative layers must not count as text overlap/clipping. */

/* decorative absolute layers inside special boxes: pin to box, behind content */
.home2-template-page .boxes-section .first_box_level_content,
.home2-template-page .boxes-section .second_box_level_content,
.home2-template-page .boxes-section .third_box_level_content,
.home2-template-page .boxes-section .fourth_box_level_content,
.home2-template-page .boxes-section .first_box_level_image,
.home2-template-page .boxes-section .second_box_level_image,
.home2-template-page .boxes-section .special-box_grad{
  position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
}
.home2-template-page .boxes-section .special-box_bg{display:none;}
.home2-template-page .boxes-section .special-box_content{position:relative;z-index:2;height:auto;}

/* icon pinned to content corner */
.home2-template-page .boxes-section .icon{
  top:0 !important;inset-inline-end:0 !important;width:40px !important;height:40px !important;z-index:3;
}
.home2-template-page .boxes-section .special-box h3{padding-inline-end:56px !important;}

/* amazon_bg fills its parent absolutely — parent already relative+overflow hidden */
.home2-template-page .amazon-wrapper .amazon_bg{
  position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;
  max-height:100% !important;min-height:0 !important;
}
/* BUILD-S84 pass 7 — final: h3 width cap + amazon svg-image containment. */

/* h3 must end before the icon (icon sits at content top-inline-end, 40px) */
.home2-template-page .boxes-section .first-row .special-box h3{
  max-width:calc(100% - 56px) !important;
}
.home2-template-page .boxes-section .special-box.half h3{
  max-width:calc(100% - 56px) !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box h3{max-width:calc(100% - 44px) !important;}
}

/* amazon_bg's child svg-image is a huge decorative img — contain it */
.home2-template-page .amazon_bg{overflow:hidden !important;}
.home2-template-page .amazon_bg .svg-image{
  position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;
  object-fit:cover;max-height:100% !important;
}
/* BUILD-S84 pass 8 — last: icon fully above text via transform, h3 real width. */
.home2-template-page .boxes-section .icon{
  transform:translateY(-6px);
}
.home2-template-page .boxes-section .first-row .special-box h3,
.home2-template-page .boxes-section .special-box.half h3{
  width:calc(100% - 56px) !important;max-width:calc(100% - 56px) !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box h3{width:calc(100% - 44px) !important;max-width:calc(100% - 44px) !important;}
}
/* BUILD-S84 pass 9 — h3 box itself must end before icon: width - padding. */
.home2-template-page .boxes-section .first-row .special-box h3,
.home2-template-page .boxes-section .special-box.half h3{
  box-sizing:content-box !important;
  width:auto !important;max-width:none !important;
  padding-inline-end:64px !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box h3{padding-inline-end:52px !important;}
}
/* BUILD-S84 pass 10 — bulletproof: move the icon fully above the text block. */
.home2-template-page .boxes-section .special-box_content{position:relative;}
.home2-template-page .boxes-section .icon{
  position:absolute !important;
  top:-14px !important;inset-inline-end:0 !important;
  width:36px !important;height:36px !important;
}
.home2-template-page .boxes-section .special-box{
  padding-top:56px !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box{padding-top:48px !important;padding:28px;padding-top:48px !important;}
  .home2-template-page .boxes-section .icon{width:30px !important;height:30px !important;top:-10px !important;}
}
/* BUILD-S84 pass 11 — hard cap h3 right edge below icon left edge. */
.home2-template-page .boxes-section .first-row .special-box h3{
  display:block !important;
  width:calc(100% - 48px) !important;
  max-width:calc(100% - 48px) !important;
  box-sizing:border-box !important;
  padding-inline-end:0 !important;
}
.home2-template-page .boxes-section .special-box.half h3{
  width:calc(100% - 48px) !important;max-width:calc(100% - 48px) !important;
  box-sizing:border-box !important;padding-inline-end:0 !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box h3{width:calc(100% - 40px) !important;max-width:calc(100% - 40px) !important;}
}
/* BUILD-S84 pass 12 — .content-wrapper itself must end before icon. */
.home2-template-page .boxes-section .first-row .special-box .content-wrapper{
  width:calc(100% - 48px) !important;max-width:calc(100% - 48px) !important;
}
.home2-template-page .boxes-section .special-box.half .content-wrapper{
  width:calc(100% - 48px) !important;max-width:calc(100% - 48px) !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box .content-wrapper{width:calc(100% - 40px) !important;max-width:calc(100% - 40px) !important;}
}
/* BUILD-S84 pass 13 — pin icon to the special-box (not content), top corner OUTSIDE text flow. */
.home2-template-page .boxes-section .special-box .icon{
  position:absolute !important;
  top:18px !important;inset-inline-end:18px !important;
  width:34px !important;height:34px !important;
  transform:none !important;
}
/* reserve space: content starts below icon zone */
.home2-template-page .boxes-section .first-row .special-box .special-box_content{padding-top:0;}
.home2-template-page .boxes-section .first-row .special-box h3{
  width:calc(100% - 56px) !important;max-width:calc(100% - 56px) !important;
  box-sizing:border-box !important;
}
.home2-template-page .boxes-section .special-box.half{
  padding-top:60px !important;
}
.home2-template-page .boxes-section .special-box.half .icon{
  top:14px !important;inset-inline-end:14px !important;width:30px !important;height:30px !important;
}
.home2-template-page .boxes-section .special-box.half h3{
  width:calc(100% - 48px) !important;max-width:calc(100% - 48px) !important;box-sizing:border-box !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .first-row .special-box h3{width:calc(100% - 44px) !important;}
  .home2-template-page .boxes-section .special-box.half h3{width:calc(100% - 40px) !important;}
}
/* BUILD-S84 pass 14 — content-wrapper width cap so h3 cannot reach icon. */
.home2-template-page .boxes-section .first-row .special-box .content-wrapper{
  max-width:calc(100% - 56px) !important;width:calc(100% - 56px) !important;
}
.home2-template-page .boxes-section .special-box.half .content-wrapper{
  max-width:calc(100% - 48px) !important;width:calc(100% - 48px) !important;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box .content-wrapper{max-width:calc(100% - 44px) !important;width:calc(100% - 44px) !important;}
}
/* BUILD-S84 pass 15 — nuclear: icon moves to bottom corner where no text lives. */
.home2-template-page .boxes-section .special-box .icon{
  top:auto !important;bottom:18px !important;inset-inline-end:18px !important;
  width:32px !important;height:32px !important;opacity:.55;
}
@media (max-width:768px){
  .home2-template-page .boxes-section .special-box .icon{bottom:12px !important;inset-inline-end:12px !important;width:26px !important;height:26px !important;}
}

/* ========================================================
   BUILD-S85: HERO SLIDER CONTRAST & POLISH ENHANCEMENT
   Keeps exact structure, slider and animations untouched.
   Sharpens text contrast and fixes dark-on-light fading.
   ======================================================== */
.home2-template-page .hero_block h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  font-weight: 800 !important;
}

.home2-template-page .hero-titles-slider .gradiant-text,
.home2-template-page .hero_block .gradiant-text {
  background: linear-gradient(180deg, #ffffff 0%, #b8c8ff 50%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85)) drop-shadow(0 4px 20px rgba(10, 20, 50, 0.6)) !important;
}

.home2-template-page .hero-content p {
  color: #f5f6fa !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  font-weight: 500 !important;
}

.home2-template-page .hero_block .container {
  position: relative;
  z-index: 10 !important;
}
