/* V10.2 visual fidelity patch: applies to both theme-native and Elementor homepages. */
/* Smoothly fade the coloured rectangular background around the hero art. The illustration remains fully visible. */
.cqv10-hero-art>img,
.cq-elementor-home .cqv10-el-hero-art img{display:block;max-width:100%;width:100%;height:auto;object-fit:contain;mix-blend-mode:multiply;-webkit-mask-image:radial-gradient(ellipse 55% 70% at 50% 52%,#000 56%,rgba(0,0,0,.88) 68%,transparent 93%);mask-image:radial-gradient(ellipse 55% 70% at 50% 52%,#000 56%,rgba(0,0,0,.88) 68%,transparent 93%)}
.cqv10-hero-art,.cq-elementor-home .cqv10-el-hero-right{isolation:isolate;overflow:visible;background:transparent!important}
.cqv10-hero-art:before,.cq-elementor-home .cqv10-el-hero-right:before{content:'';position:absolute;inset:12% 3% 6%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 48% 55%,rgba(246,202,224,.50),rgba(246,202,224,0) 66%)}
.cq-elementor-home .cqv10-el-hero-right{position:relative}
.cq-elementor-home .cqv10-el-hero-art{overflow:visible}
.cq-elementor-home .cqv10-el-hero-art .elementor-widget-container{background:transparent!important}
.cqv10-hero,.cq-elementor-home .cqv10-el-home-hero{overflow:hidden}
/* Native and Elementor country cards: edge-to-edge images, clear overlays and legible labels. */
.cqv10-country,.cq-elementor-home .cqv10-el-country-card{isolation:isolate}
.cqv10-country-photo,.cq-elementor-home .cqv10-el-country-image img{object-fit:cover!important;object-position:center 50%;width:100%!important;height:100%!important;display:block!important}
.cqv10-country:after{background:linear-gradient(180deg,rgba(255,247,249,.95) 0%,rgba(255,247,249,.59) 35%,rgba(56,32,63,.05) 61%,rgba(46,26,52,.69) 100%)}
.cqv10-country-cover{position:relative;z-index:2;justify-content:flex-start}
.cqv10-country strong{font-weight:850;line-height:1.15}
.cqv10-country em{display:inline-flex;align-items:center;justify-content:center;max-width:100%;line-height:1.3;box-shadow:0 4px 18px rgba(48,25,45,.13)}
.cqv10-country[href*="nigeria"] .cqv10-country-photo{object-position:58% 54%}
.cq-elementor-home .cqv10-el-country-card:has(.cqv10-el-country-content h3) .cqv10-el-country-content{z-index:2}
.cq-elementor-home .cqv10-el-country-image{inset:0;overflow:hidden;background:#f6d9e4}
.cq-elementor-home .cqv10-el-country-image .elementor-widget-container{width:100%;height:100%;overflow:hidden}
.cq-elementor-home .cqv10-el-country-content{background:linear-gradient(180deg,rgba(255,248,246,.94) 0%,rgba(255,248,246,.62) 30%,rgba(255,248,246,.05) 63%,rgba(56,31,57,.73) 100%)}
.cq-elementor-home .cqv10-el-country-content .elementor-button{box-shadow:0 6px 20px #38223733}
/* Distinct worldwide panoramic photo instead of the small square globe symbol. */
.cqv10-worldwide,.cq-elementor-home .cqv10-el-worldwide{background:linear-gradient(150deg,#462954,#7c5c98);isolation:isolate}
.cqv10-worldwide>.cqv10-country-photo,.cq-elementor-home .cqv10-el-worldwide .cqv10-el-country-image img{position:absolute;inset:0;right:auto;left:0;top:0;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center;opacity:1;filter:none;background:none}
.cqv10-worldwide:after{background:linear-gradient(110deg,rgba(42,23,61,.92) 0%,rgba(42,23,61,.67) 44%,rgba(42,23,61,.10) 100%)}
.cqv10-worldwide .cqv10-country-cover{color:#fff}
.cqv10-worldwide .cqv10-country-cover strong,.cqv10-worldwide .cqv10-country-cover small{color:#fff}
.cqv10-worldwide .cqv10-flag{background:rgba(255,255,255,.19);color:#fff;border:1px solid rgba(255,255,255,.5)}
.cqv10-worldwide .cqv10-flag img{width:24px;height:24px;object-fit:contain}
.cq-elementor-home .cqv10-el-worldwide .cqv10-el-country-content{background:linear-gradient(120deg,rgba(42,23,61,.91),rgba(42,23,61,.42) 80%)}
.cq-elementor-home .cqv10-el-worldwide .cqv10-el-country-content h3,.cq-elementor-home .cqv10-el-worldwide .cqv10-el-country-content p{color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.17)}
.cq-elementor-home .cqv10-el-worldwide .cqv10-el-country-content .elementor-widget-image{width:42px;height:34px;max-width:42px;padding:4px;border-radius:9px;background:rgba(255,255,255,.21);border:1px solid rgba(255,255,255,.24)}
.cq-elementor-home .cqv10-el-worldwide .cqv10-el-country-content .elementor-widget-image img{width:100%;height:26px;object-fit:contain}
/* More visual structure in the story / progress panel while respecting the existing typography. */
.cqv10-story{position:relative;overflow:hidden;background:radial-gradient(ellipse at 94% 20%,#9d67925e,transparent 46%),linear-gradient(120deg,#482a45,#644164);border-top:1px solid #d5aec8}
.cqv10-story:before{content:'✧';position:absolute;right:5%;top:3%;font-size:130px;line-height:1;color:rgba(255,217,172,.20);pointer-events:none}
.cqv10-story-grid>img{max-width:300px;height:auto;filter:drop-shadow(0 18px 24px rgba(30,14,30,.13))}
/* Premium custom 404 panel fixes text clipping and adds matching pastel visual guidance. */
.cqv10-404-hero{padding:64px 0 70px;background:radial-gradient(ellipse at 75% 33%,#f9dce7,transparent 55%),linear-gradient(145deg,#fffbf8,#fff3f8);border-bottom:1px solid #f1dfe8}
.cqv10-404-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:50px;align-items:center}
.cqv10-404-copy{min-width:0}.cqv10-404-code{display:block;font-weight:850;font-size:clamp(54px,9vw,122px);letter-spacing:-.075em;line-height:1.03;margin:18px 0 4px;color:#d19ab8}
.cqv10-404-copy h1{font-size:clamp(34px,4.4vw,62px);line-height:1.15;letter-spacing:-.045em;overflow-wrap:break-word;margin:10px 0 16px;color:#48293f}
.cqv10-404-copy h1 span{color:#bb6c91}
.cqv10-404-copy p{font-size:17px;line-height:1.7;color:#786778;max-width:560px}
.cqv10-404-scene{position:relative;min-height:350px;display:flex;align-items:center;justify-content:center}
.cqv10-404-orbit{position:absolute;width:min(350px,85%);aspect-ratio:1;border-radius:50%;border:2px dashed rgba(191,138,170,.38);box-shadow:0 0 0 25px rgba(238,196,218,.2)}
.cqv10-404-scene img{position:relative;width:min(320px,70%);height:auto;filter:drop-shadow(0 21px 25px rgba(83,41,77,.13))}
.cqv10-404-spark{position:absolute;font-size:33px;color:#e4ab62}.cqv10-404-spark.sparkle-a{top:6%;left:13%}.cqv10-404-spark.sparkle-b{right:12%;bottom:17%;color:#c781ad}
.cqv10-404-bubble{position:absolute;bottom:10%;left:2%;padding:12px 16px;border:1px solid #eddae4;border-radius:15px;box-shadow:0 13px 25px #58394c1a;background:#fff;color:#794b6c;font-size:12px;font-weight:800;transform:rotate(-5deg)}
.cqv10-404-links{padding:66px 0 90px;background:#fffaf7}
.cqv10-404-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.cqv10-404-link-grid>a{min-width:0;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid #efdce5;border-radius:23px;padding:26px;box-shadow:0 10px 25px #683b4c0d;text-decoration:none}
.cqv10-404-link-grid img{width:85px;height:84px;object-fit:contain;margin-bottom:14px}
.cqv10-404-link-grid strong{font-size:20px;font-weight:850;color:#52314b}
.cqv10-404-link-grid small{font-size:13px;color:#806b7a;line-height:1.6;margin:6px 0 14px}
.cqv10-404-link-grid span{font-size:12px;font-weight:800;color:#a65f80;margin-top:auto}
.cqv10-404-link-grid>a:hover{transform:translateY(-3px);box-shadow:0 17px 30px #683b4c17}
@media(max-width:900px){.cqv10-404-grid{grid-template-columns:1fr;gap:12px}.cqv10-404-scene{min-height:300px}.cqv10-404-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.cqv10-404-hero{padding:45px 0 48px}.cqv10-404-copy p{font-size:15px}.cqv10-404-link-grid{grid-template-columns:1fr}.cqv10-404-scene{min-height:260px}.cqv10-404-bubble{left:0;bottom:4%}.cqv10-404-scene img{width:65%}.cqv10-country-cover{padding:16px}.cqv10-country strong{font-size:20px}.cqv10-hero-art>img,.cq-elementor-home .cqv10-el-hero-art img{-webkit-mask-image:radial-gradient(ellipse 58% 71% at 50% 52%,#000 56%,transparent 94%);mask-image:radial-gradient(ellipse 58% 71% at 50% 52%,#000 56%,transparent 94%)}}
@media(prefers-reduced-motion:reduce){.cqv10-404-link-grid>a{transition:none}}

.cqv10-404-scene>img{mix-blend-mode:multiply;-webkit-mask-image:radial-gradient(ellipse 59% 69% at 50% 50%,#000 62%,transparent 96%);mask-image:radial-gradient(ellipse 59% 69% at 50% 50%,#000 62%,transparent 96%)}

/* Existing Elementor V10 pages created before this release still point to global.webp.
   Show the corrected scenic photo until the owner chooses the safe one-click update. */
.cq-elementor-home .cqv10-el-worldwide:has(.cqv10-el-country-image img[src$="/global.webp"]) .cqv10-el-country-image{background-image:url('../images/country-worldwide.webp');background-size:cover;background-position:center}
.cq-elementor-home .cqv10-el-worldwide:has(.cqv10-el-country-image img[src$="/global.webp"]) .cqv10-el-country-image img{opacity:0}
