/* =====================================================================
   Optional extra sections for service detail pages
   (template-parts/section-extra.php, fields in inc/service-extra-fields.php).
   Loaded only on services that use them. Colours, pills, cards and hover lift
   follow the existing service-detail.css design.
   ===================================================================== */

.sd-page .sx-section{padding:70px 0;background:#fff}
.sd-page .sx-section.sx-alt{background:linear-gradient(180deg,#f5f7fa 0%,#ffffff 100%);border-radius:25px}
.sd-page .sx-section .container{max-width:1090px}

/* ---------- headings ---------- */
.sd-page .sx-head{margin-bottom:40px}
.sd-page .sx-head-center{text-align:center;max-width:760px;margin-left:auto;margin-right:auto}
.sd-page .sx-badge{display:inline-block;background:#0f3b4c;color:#fff;padding:5px 14px;font-size:15px;border-radius:20px;font-weight:500;margin-bottom:16px;letter-spacing:.01em}
.sd-page .sx-badge-light{background:rgba(255,255,255,.16);color:#fff}
.sd-page .sx-title{font-size:30px;font-weight:800;line-height:1.25;color:#033a52;margin:0 0 14px}
.sd-page .sx-intro p,.sd-page .sx-split-body p,.sd-page .sx-panel-text p{font-size:16px;line-height:1.7;color:#555;margin:0 0 12px}
.sd-page .sx-statement{margin-top:20px !important;padding:14px 20px;border-left:4px solid #1c5c73;background:#eef4f7;border-radius:0 10px 10px 0;font-weight:700;color:#0f3b4c !important}

/* ---------- cards (same look as Key Features) ---------- */
.sd-page .sx-grid{display:grid;gap:25px}
.sd-page .sx-grid-3{grid-template-columns:repeat(3,1fr)}
.sd-page .sx-grid-4{grid-template-columns:repeat(4,1fr)}
.sd-page .sx-card{background:#fff;padding:25px;border-radius:12px;border:1px solid #eaeaea;transition:transform .4s ease,box-shadow .4s ease;height:100%}
.sd-page .sx-card:hover{transform:translateY(-8px);box-shadow:0 18px 40px rgba(31,79,163,.12)}
.sd-page .sx-card h3{margin:14px 0 8px;font-weight:800;font-size:18px;line-height:1.35;color:#033a52}
.sd-page .sx-card p{font-size:15px;line-height:1.6;color:#555;margin:0}
.sd-page .sx-icon{width:40px;height:40px;background:#0f3b4c;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:17px;flex-shrink:0}
.sd-page .sx-icon-soft{background:#e6eff3;color:#0f3b4c}
/* 5 challenge cards: 3 + 2, second row centred */
.sd-page .sx-grid-center{grid-template-columns:repeat(6,1fr)}
.sd-page .sx-grid-center > .sx-card{grid-column:span 2}
.sd-page .sx-grid-center > .sx-card:nth-child(4):nth-last-child(2){grid-column:2 / span 2}

/* ---------- How it works: numbered steps ---------- */
.sd-page .sx-steps{list-style:none;margin:0;padding:0;display:grid;gap:20px;grid-template-columns:repeat(5,1fr);counter-reset:none;position:relative}
.sd-page .sx-steps-4{grid-template-columns:repeat(4,1fr)}
.sd-page .sx-steps-3{grid-template-columns:repeat(3,1fr)}
.sd-page .sx-steps::before{content:"";position:absolute;left:10%;right:10%;top:26px;height:2px;background:repeating-linear-gradient(90deg,#9fbccb 0 8px,transparent 8px 16px);z-index:0}
.sd-page .sx-step{position:relative;z-index:1;background:#fff;border:1px solid #eaeaea;border-radius:12px;padding:0 18px 22px;text-align:center;margin-top:26px;transition:transform .4s ease,box-shadow .4s ease}
.sd-page .sx-step:hover{transform:translateY(-8px);box-shadow:0 18px 40px rgba(31,79,163,.12)}
.sd-page .sx-step-num{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:-26px auto 12px;border-radius:50%;background:linear-gradient(135deg,#0f3b4c,#1c5c73);color:#fff;font-weight:800;font-size:20px;box-shadow:0 0 0 6px #fff}
.sd-page .sx-step h3{font-size:16px;font-weight:800;line-height:1.35;color:#033a52;margin:0 0 8px}
.sd-page .sx-step p{font-size:14px;line-height:1.55;color:#555;margin:0}

/* ---------- two-column layouts ---------- */
.sd-page .sx-split{display:grid;grid-template-columns:5fr 7fr;gap:50px;align-items:start}
.sd-page .sx-split-center{grid-template-columns:1fr 1fr;align-items:center}
.sd-page .sx-split .sx-head{margin-bottom:0}
.sd-page .sx-stack{display:grid;gap:18px}
.sd-page .sx-card-row{display:flex;gap:16px;align-items:flex-start}
.sd-page .sx-card-row h3{margin-top:0}

/* ---------- related service card (Connected Communication) ---------- */
.sd-page .sx-related{background:linear-gradient(135deg,#0f3b4c,#1c5c73);border-radius:25px;padding:34px;color:#fff;transition:transform .4s ease,box-shadow .4s ease}
.sd-page .sx-related:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(15,59,76,.3)}
.sd-page .sx-related h3{color:#fff;font-size:24px;font-weight:800;margin:0 0 10px}
.sd-page .sx-related p{color:rgba(255,255,255,.88);font-size:15px;line-height:1.65;margin:0 0 22px}
/* with a background photo: light fade on the left, dark text, subject visible on the right */
/* card takes the photo's wide shape so the whole image shows (it only grows taller if the text needs it) */
.sd-page .sx-related-photo{position:relative;isolation:isolate;background:#eaf4fb;color:#0b1f33;aspect-ratio:1.85 / 1;padding:26px 30px;display:flex;flex-direction:column;justify-content:center;border:1px solid #d6e6f2;box-shadow:0 18px 40px rgba(31,79,163,.10)}
.sd-page .sx-related-photo .sx-related-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;z-index:-2;border-radius:inherit}
.sd-page .sx-related-photo .sx-badge{align-self:flex-start;font-size:13px;padding:4px 12px;margin-bottom:10px}
.sd-page .sx-related-photo::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(90deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.78) 38%,rgba(255,255,255,.2) 58%,rgba(255,255,255,0) 70%)}
.sd-page .sx-related-photo > :not(.sx-related-bg){max-width:56%}
.sd-page .sx-related-photo h3{color:#0b1f33;font-size:20px;line-height:1.3;margin-bottom:8px}
.sd-page .sx-related-photo p{color:#1f3347;font-weight:500;font-size:13.5px;line-height:1.55;margin-bottom:16px}
.sd-page .sx-related-photo .blog_section-btn{padding:8px 10px 8px 18px;font-size:14px}
.sd-page .sx-related-photo .blog_section-btn-icon{width:28px;height:28px}
.sd-page .sx-related-photo .blog_section-btn{background:linear-gradient(90deg,#0f2a6b,#1e4c9a);align-self:flex-start;box-shadow:0 8px 20px rgba(15,42,107,.25)}
.sd-page .sx-related-photo .blog_section-btn:hover{background:#0f2a6b}
.sd-page .sx-related-photo:hover{box-shadow:0 18px 40px rgba(31,79,163,.18)}
/* desktop (side by side): card is as tall as the text column on the left; kiosks kept in view on the right */
@media (min-width:992px){
  .sd-page .sx-conn .sx-split-center:has(.sx-related-photo){align-items:stretch}
  .sd-page .sx-related-photo{aspect-ratio:auto;height:100%;padding:34px 36px}
  .sd-page .sx-related-photo .sx-related-bg{object-position:85% center}
  .sd-page .sx-related-photo h3{font-size:22px}
  .sd-page .sx-related-photo p{font-size:14.5px}
}

/* ---------- AI + Human support panel (same theme as "Why Asiatel") ---------- */
.sd-page .sx-panel{background:linear-gradient(135deg,#0f3b4c,#1c5c73);border-radius:25px;padding:44px;color:#fff}
.sd-page .sx-panel .sx-title{color:#fff}
.sd-page .sx-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;margin-top:8px}
.sd-page .sx-panel-text p{color:rgba(255,255,255,.9)}
.sd-page .sx-statement-light{background:rgba(255,255,255,.1);border-left-color:#7fd3e6;color:#fff !important}

/* ---------- tick lists ---------- */
.sd-page .sx-ticks{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sd-page .sx-ticks li{position:relative;padding:12px 16px 12px 46px;background:rgba(255,255,255,.1);border-radius:10px;font-size:15px;line-height:1.5;color:#fff}
.sd-page .sx-ticks li::before{content:"\2713";position:absolute;left:14px;top:12px;width:22px;height:22px;border-radius:50%;background:#fff;color:#0f3b4c;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.sd-page .sx-tickbox{background:#fff;border:1px solid #eaeaea;border-radius:20px;padding:28px;box-shadow:0 18px 40px rgba(31,79,163,.08)}
.sd-page .sx-ticks-dark li{background:#f3f7f9;color:#033a52;font-weight:600}
.sd-page .sx-ticks-dark li::before{background:#0f3b4c;color:#fff}

/* ---------- responsive ---------- */
@media (max-width:991.98px){
  .sd-page .sx-section{padding:56px 0}
  .sd-page .sx-grid-3,.sd-page .sx-grid-4{grid-template-columns:repeat(2,1fr)}
  .sd-page .sx-grid-center{grid-template-columns:repeat(2,1fr)}
  .sd-page .sx-grid-center > .sx-card,
  .sd-page .sx-grid-center > .sx-card:nth-child(4):nth-last-child(2){grid-column:auto}
  .sd-page .sx-grid-center > .sx-card:last-child:nth-child(odd){grid-column:1 / -1}
  .sd-page .sx-steps,.sd-page .sx-steps-4,.sd-page .sx-steps-3{grid-template-columns:repeat(2,1fr);row-gap:44px}
  .sd-page .sx-steps::before{display:none}
  .sd-page .sx-step:last-child:nth-child(odd){grid-column:1 / -1;max-width:360px;justify-self:center;width:100%}
  .sd-page .sx-split,.sd-page .sx-split-center{grid-template-columns:1fr;gap:30px}
  .sd-page .sx-panel{padding:32px 26px}
  .sd-page .sx-panel-grid{grid-template-columns:1fr;gap:22px}
  .sd-page .sx-title{font-size:26px}
}
@media (max-width:575.98px){
  .sd-page .sx-grid-3,.sd-page .sx-grid-4,.sd-page .sx-grid-center,.sd-page .sx-steps,.sd-page .sx-steps-4,.sd-page .sx-steps-3{grid-template-columns:1fr}
  .sd-page .sx-step:last-child:nth-child(odd){max-width:none}
  .sd-page .sx-title{font-size:23px}
  .sd-page .sx-related{padding:26px}
  /* phone: text needs the full width, so fade top-to-bottom and leave the kiosks visible at the bottom right */
  .sd-page .sx-related-photo{aspect-ratio:auto;padding:26px 26px 200px;justify-content:flex-start;background:#f3f9fd}
  .sd-page .sx-related-photo p{font-size:15px}
  .sd-page .sx-related-photo > :not(.sx-related-bg){max-width:none}
  .sd-page .sx-related-photo .sx-related-bg{top:auto;height:290px;object-position:85% 45%}
  .sd-page .sx-related-photo::before{background:linear-gradient(180deg,#f3f9fd 0%,#f3f9fd calc(100% - 290px),rgba(243,249,253,.75) calc(100% - 230px),rgba(243,249,253,0) calc(100% - 150px))}
}
@media (hover:none),(prefers-reduced-motion:reduce){
  .sd-page .sx-card:hover,.sd-page .sx-step:hover,.sd-page .sx-related:hover{transform:none}
}

/* =====================================================================
   2026-11-30: extra hooks used by AI Voice Agent (all optional fields)
   ===================================================================== */
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* hero: second button + bullets */
.sd-page .sx-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.sd-page .sx-hero-btn2{display:inline-flex;align-items:center;gap:10px;padding:10px 12px 10px 20px;border-radius:50px;border:1.5px solid rgba(255,255,255,.65);color:#fff;font-weight:600;text-decoration:none;transition:background .3s ease,border-color .3s ease}
.sd-page .sx-hero-btn2:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.sd-page .sx-hero-btn2 .blog_section-btn-icon{width:30px;height:30px;background:rgba(255,255,255,.2)}
.sd-page .sx-hero-bullets{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:9px}
.sd-page .sx-hero-bullets li{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.45;color:rgba(255,255,255,.92)}
.sd-page .sx-hero-bullets i{color:#7fd3e6;font-size:15px;margin-top:2px;flex-shrink:0}

/* introduction: list + highlight box (no inner scrollbar when they are used) */
.sd-page .transform-section .transform-content:has(.sx-intro-list,.sx-intro-cta){max-height:none;overflow:visible}
.sd-page .sx-intro-list{margin:4px 0 0}
.sd-page .sx-intro-list-title{font-weight:700;color:#033a52;margin:0 0 8px}
.sd-page .sx-intro-list ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.sd-page .sx-intro-list li{position:relative;padding-left:28px;font-size:15px;line-height:1.5;color:#33475b}
.sd-page .sx-intro-list li::before{content:"\2713";position:absolute;left:0;top:2px;width:19px;height:19px;border-radius:50%;background:#e6eff3;color:#0f3b4c;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.sd-page .sx-intro-cta{margin-top:22px;padding:18px 20px;border-left:4px solid #1c5c73;background:#eef4f7;border-radius:0 12px 12px 0}
.sd-page .sx-intro-cta-title{font-weight:800;color:#0f3b4c;margin:0 0 4px;font-size:16px}
.sd-page .sx-intro-cta-desc{margin:0 0 10px;font-size:14.5px;line-height:1.55;color:#33475b}
.sd-page .sx-link-btn{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:#1c5c73;text-decoration:none}
.sd-page .sx-link-btn .blog_section-btn-icon{width:auto;height:auto;background:none;font-size:15px;transition:transform .3s ease}
.sd-page .sx-link-btn:hover{color:#0f3b4c}
.sd-page .sx-link-btn:hover .blog_section-btn-icon{transform:translateX(4px)}

/* use cases: tagline + 2-column grid + button under sections */
.sd-page .sx-grid-2{grid-template-columns:repeat(2,1fr)}
.sd-page .sx-card .sx-card-tag{color:#1c5c73;font-weight:700;font-size:14px;margin:-2px 0 8px}
.sd-page .sx-section-btn{margin-top:34px}

/* industries with a short description */
.sd-page .industry-card.sx-industry-has-desc{height:100%}
.sd-page .industry-card .sx-industry-desc{font-size:13.5px;line-height:1.5;color:#5b6b7a;font-weight:400;margin:6px 0 0}
.sd-page .sx-solutions-subtitle{color:#5b6b7a;font-size:16px;margin:8px 0 0}

/* demo form */
.sd-page .sx-demo{scroll-margin-top:90px}
.sd-page .sx-demo-card{display:grid;grid-template-columns:5fr 7fr;gap:40px;align-items:center;background:linear-gradient(135deg,#0f3b4c,#1c5c73);border-radius:25px;padding:44px}
.sd-page .sx-demo-intro .sx-title{color:#fff}
.sd-page .sx-demo-intro p{color:rgba(255,255,255,.9);font-size:16px;line-height:1.7;margin:0}
.sd-page .sx-demo-form .contact{background:#fff;border-radius:18px;padding:28px;box-shadow:0 18px 40px rgba(0,0,0,.18)}
.sd-page .sx-demo-form .php-email-form{background:none;padding:0;box-shadow:none}
.sd-page .sx-demo-form .row{--bs-gutter-y:14px}
.sd-page .sx-demo-form .form-control{border-radius:10px;font-size:15px;padding:11px 14px}
.sd-page .ccf-note,.contact .ccf-note{font-size:13px;color:#5b6b7a;margin:10px 0 0}

/* line after the FAQs */
.sd-page .sx-faq-cta{text-align:center;margin:28px auto 0;font-size:16px;font-weight:600;color:#033a52}
.sd-page .sx-faq-cta a{color:#1c5c73;text-decoration:underline;text-underline-offset:3px}

@media (max-width:991.98px){
  .sd-page .sx-demo-card{grid-template-columns:minmax(0,1fr);gap:24px;padding:32px 22px}
}
@media (max-width:575.98px){
  .sd-page .sx-grid-2{grid-template-columns:1fr}
  /* the reCAPTCHA box is a fixed 304px wide: keep at least that much room inside the form */
  .sd-page .sx-demo-card{padding:28px 10px 12px}
  .sd-page .sx-demo-intro{padding:0 12px}
  .sd-page .sx-demo-form .contact{padding:18px 8px 16px}
}
@media (max-width:380px){
  .sd-page .sx-demo-form .g-recaptcha{transform:scale(.9);transform-origin:center top}
  .sd-page .sx-hero-actions .demo-btn,.sd-page .sx-hero-btn2{justify-content:space-between}
}
