/* MTP DigiTech V9 UI/UX polish
   Loaded last to stabilize layout, mobile behavior, button contrast and footer/WhatsApp placement
   without replacing page-specific visual systems. */

:root{
  --mtp-v9-pink:#ef006f;
  --mtp-v9-pink-dark:#c90062;
  --mtp-v9-navy:#061936;
  --mtp-v9-navy-2:#101154;
  --mtp-v9-ink:#0b1b32;
  --mtp-v9-muted:#5b687c;
  --mtp-v9-line:#e4e9f1;
  --mtp-v9-soft:#f7f9fc;
  --mtp-v9-shadow:0 18px 48px rgba(7,25,54,.10);
}

html{overflow-x:hidden}
body{overflow-x:hidden;min-width:0;background:#fff;color:var(--mtp-v9-ink)}
main#content{display:block;min-width:0;min-height:1px}
.container{
  width:calc(100% - 36px)!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  min-width:0;
}
img,svg,video,iframe{max-width:100%}

/* ---------- HEADER / NAV ---------- */
.site-header{z-index:120!important}
.nav-wrap{width:100%;min-width:0}
.brand{min-width:0;max-width:310px}
.brand>span{min-width:0}
.brand strong,.brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-toggle{flex:0 0 auto}
.main-nav{min-width:0}

/* ---------- BUTTON VISIBILITY ---------- */
.btn,
.nav-cta,
.v5-btn,
.dm-btn,
button[type="submit"],
input[type="submit"]{
  -webkit-tap-highlight-color:transparent;
  text-decoration:none!important;
}

.btn-primary,
.nav-cta,
.v5-btn-primary,
.dm-btn-primary,
.course-form button[type="submit"],
.form-shell button[type="submit"],
.v5-audit-card button[type="submit"],
.hero-form button[type="submit"]{
  background:linear-gradient(135deg,var(--mtp-v9-pink) 0%,#e00070 52%,var(--mtp-v9-pink-dark) 100%)!important;
  color:#fff!important;
  border-color:transparent!important;
  text-shadow:0 1px 0 rgba(0,0,0,.06);
  box-shadow:0 12px 28px rgba(239,0,111,.24)!important;
}
.btn-primary *,
.nav-cta *,
.v5-btn-primary *,
.dm-btn-primary *,
.course-form button[type="submit"] *,
.form-shell button[type="submit"] *{color:#fff!important}

.btn-primary:hover,
.nav-cta:hover,
.v5-btn-primary:hover,
.dm-btn-primary:hover,
.course-form button[type="submit"]:hover,
.form-shell button[type="submit"]:hover{
  color:#fff!important;
  background:linear-gradient(135deg,#f7097a 0%,#d70069 58%,#b90059 100%)!important;
  box-shadow:0 16px 34px rgba(218,0,101,.30)!important;
  transform:translateY(-2px);
}
.btn-primary:focus-visible,.nav-cta:focus-visible,.v5-btn-primary:focus-visible,.dm-btn-primary:focus-visible{
  outline:3px solid rgba(239,0,111,.22)!important;
  outline-offset:3px!important;
}
.btn-light{background:#fff!important;color:#0b1b32!important;border-color:rgba(255,255,255,.75)!important}
.btn-light *{color:inherit!important}
.btn-outline{background:#fff!important;color:#15223a!important;border-color:#cfd7e3!important}
.btn-outline:hover{border-color:#e7a5c4!important;color:#c5005e!important;background:#fff7fb!important}

/* improve tap/readability across small cards */
a.text-link,.card a,.blog-grid a{font-weight:800}

/* ---------- FORMS ---------- */
input,select,textarea{max-width:100%}
.form-shell,.course-form,.v5-audit-card,.dm-form{min-width:0}
.form-field input,.form-field select,.form-field textarea,
.course-form input,.course-form select,.course-form textarea{
  background:#fff!important;
  color:#122039!important;
  border-color:#d9e0ea!important;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus,
.course-form input:focus,.course-form select:focus,.course-form textarea:focus{
  border-color:#e20069!important;
  box-shadow:0 0 0 3px rgba(239,0,111,.09)!important;
}

/* ---------- FOOTER ---------- */
.site-footer{position:relative;overflow:hidden}
.site-footer:before{
  content:"";
  position:absolute;
  width:420px;height:420px;border-radius:50%;
  right:-210px;top:-270px;
  background:radial-gradient(circle,rgba(104,58,200,.20),transparent 66%);
  pointer-events:none;
}
.footer-grid,.footer-bottom{position:relative;z-index:1}
.footer-grid{align-items:start}
.footer-grid>div{min-width:0}
.footer-brand{width:max-content;max-width:100%}
.footer-brand strong{white-space:normal}
.footer-contact p{overflow-wrap:anywhere}
.footer-bottom{align-items:center}

/* ---------- WHATSAPP: ALWAYS SAFE, COMPACT, BOTTOM-RIGHT ---------- */
a.wa{
  position:fixed!important;
  right:max(16px,env(safe-area-inset-right))!important;
  bottom:max(16px,env(safe-area-inset-bottom))!important;
  left:auto!important;
  top:auto!important;
  z-index:999!important;
  width:56px!important;
  min-width:56px!important;
  height:56px!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  border-radius:50%!important;
  border:2px solid rgba(255,255,255,.92)!important;
  background:linear-gradient(145deg,#28d66f,#159e56)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(18,140,89,.34)!important;
  line-height:1!important;
  transform:none;
}
a.wa:after{content:none!important;display:none!important}
a.wa svg{width:25px!important;height:25px!important;display:block!important;flex:0 0 auto!important}
a.wa:hover{transform:translateY(-3px)!important;box-shadow:0 18px 40px rgba(18,140,89,.40)!important}

/* ---------- GENERIC COURSE PAGES ---------- */
.course-template-page .course-hero{
  position:relative;
  overflow:hidden;
  padding:72px 0 66px;
  background:
    radial-gradient(circle at 88% 10%,rgba(239,0,111,.30),transparent 25%),
    radial-gradient(circle at 68% 86%,rgba(94,57,210,.32),transparent 30%),
    linear-gradient(118deg,#041631 0%,#071b45 44%,#17105b 72%,#32106d 100%);
}
.course-template-page .course-hero:before{
  content:"";position:absolute;inset:auto -180px -260px 42%;height:520px;
  border-radius:50%;border:1px solid rgba(255,255,255,.055);box-shadow:0 0 0 70px rgba(255,255,255,.018),0 0 0 140px rgba(255,255,255,.012);
  pointer-events:none;
}
.course-template-page .course-hero-grid{position:relative;z-index:1;grid-template-columns:minmax(0,1.05fr) minmax(360px,.72fr);gap:52px;align-items:center}
.course-template-page .course-hero h1{font-size:clamp(42px,5vw,66px);line-height:1.05;letter-spacing:-.045em;max-width:760px}
.course-template-page .course-hero h1 em{display:block;color:#ff318c}
.course-template-page .course-hero p{max-width:760px;color:#dbe4f4;line-height:1.72}
.course-template-page .course-tags{gap:10px;margin:25px 0 28px}
.course-template-page .course-tags span{border-radius:999px;padding:8px 12px;font-size:12px;background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.13);color:#f3f6fb}
.course-template-page .course-form{border-radius:22px;padding:28px;box-shadow:0 30px 78px rgba(0,0,0,.30);border:1px solid rgba(255,255,255,.65)}
.course-template-page .course-form .eyebrow{margin-bottom:9px}
.course-template-page .course-form h2{font-size:29px;line-height:1.18;color:#101c32}
.course-template-page .course-form label{margin-bottom:11px;color:#27334a}
.course-template-page .course-form input,.course-template-page .course-form select,.course-template-page .course-form textarea{min-height:47px;border-radius:10px}
.course-template-page .course-form textarea{min-height:88px}
.course-template-page .course-proof{background:#fff;box-shadow:0 8px 26px rgba(8,28,57,.035)}
.course-template-page .course-proof-grid div{padding:23px 24px}
.course-template-page .course-proof-grid strong{font-size:17px;color:#0e1b31}
.course-template-page .course-outcomes article,
.course-template-page .course-city-grid article{
  background:#fff;border-radius:17px;box-shadow:0 9px 27px rgba(8,28,57,.05);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.course-template-page .course-outcomes article:hover,.course-template-page .course-city-grid article:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(8,28,57,.08);border-color:#efbfd5}
.course-template-page .course-outcomes span{display:inline-flex;background:#fff0f7;border-radius:999px;padding:6px 9px;margin-bottom:13px}
.course-template-page .curriculum-grid details{border-radius:15px;box-shadow:0 7px 20px rgba(8,28,57,.035)}
.course-template-page .curriculum-grid summary{font-size:16px;line-height:1.45}
.course-template-page .course-dark{border-radius:24px;box-shadow:0 22px 54px rgba(7,25,54,.17);background:radial-gradient(circle at 86% 8%,rgba(239,0,111,.18),transparent 28%),linear-gradient(145deg,#061936,#101154)}
.course-template-page .course-final{background:linear-gradient(100deg,#ec006d 0%,#8a0c83 46%,#071e4a 100%)}
.course-template-page .course-final h2{font-size:clamp(28px,3.2vw,42px)}

/* resource card on SEO course */
.course-template-page .section.soft .card[style*="grid-template-columns"]{border-radius:20px;box-shadow:0 14px 38px rgba(8,28,57,.07);border-color:#e7d7df}

/* ---------- TABLET ---------- */
@media(max-width:1060px){
  .brand{max-width:260px}
  .footer-grid{gap:28px!important}
  .course-template-page .course-hero-grid{grid-template-columns:1fr 390px;gap:34px}
}

/* ---------- MOBILE / TABLET NAV ---------- */
@media(max-width:900px){
  .topbar{display:none!important}
  .site-header{position:sticky!important;top:0!important}
  .nav-wrap{min-height:70px!important;gap:12px!important}
  .brand{max-width:calc(100vw - 92px)!important;gap:10px!important}
  .brand img{width:44px!important;height:44px!important;flex:0 0 44px!important}
  .brand strong{font-size:14px!important;line-height:1.15!important}
  .brand small{font-size:10px!important;line-height:1.3!important;margin-top:3px!important}
  .menu-toggle{display:block!important;width:44px!important;height:42px!important;border-radius:10px!important;background:#fff!important;box-shadow:0 6px 18px rgba(7,25,54,.06)!important}
  .main-nav{top:70px!important;z-index:130!important}
  .main-nav.open{display:flex!important}

  .footer-grid{grid-template-columns:1fr 1fr!important;gap:30px 24px!important}
  .footer-grid>div:first-child{grid-column:1/-1}
  .footer-grid>div:last-child{grid-column:auto!important}
  .footer-bottom{flex-wrap:wrap;row-gap:8px}

  .course-template-page .course-hero{padding:54px 0 56px}
  .course-template-page .course-hero-grid{grid-template-columns:1fr!important;gap:32px!important}
  .course-template-page .course-hero-grid>div{text-align:center}
  .course-template-page .course-hero h1{font-size:clamp(38px,8vw,52px);margin-bottom:16px}
  .course-template-page .course-hero p{font-size:17px!important;margin-left:auto;margin-right:auto}
  .course-template-page .course-tags{justify-content:center}
  .course-template-page .course-hero-grid>div>.btn{width:min(100%,320px);margin-inline:auto}
  .course-template-page .course-form{max-width:620px;width:100%;margin-inline:auto;text-align:left}
  .course-template-page .course-split{grid-template-columns:1fr!important;gap:28px!important}
}

@media(max-width:620px){
  .container{width:calc(100% - 28px)!important;max-width:none!important}
  .site-header .container{width:calc(100% - 24px)!important}
  .brand{max-width:calc(100vw - 78px)!important}
  .brand img{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:10px!important}
  .brand strong{font-size:13.5px!important}
  .brand small{font-size:9.5px!important}

  .section{padding-top:54px!important;padding-bottom:54px!important}
  .section-head{margin-bottom:30px!important}
  .section-head h2{font-size:clamp(27px,8vw,34px)!important}

  .btn{min-height:50px;padding-left:18px!important;padding-right:18px!important}

  .site-footer{padding:44px 0 82px!important}
  .footer-grid{grid-template-columns:1fr!important;gap:24px!important}
  .footer-grid>div:first-child{grid-column:auto}
  .footer-grid h3{margin-bottom:9px!important}
  .site-footer p,.site-footer a{font-size:14px!important;line-height:1.65!important}
  .footer-bottom{margin-top:24px!important;padding-top:16px!important;display:grid!important;grid-template-columns:1fr!important;font-size:11.5px!important}
  .footer-brand{margin-bottom:10px!important}

  a.wa{width:54px!important;min-width:54px!important;height:54px!important;right:max(14px,env(safe-area-inset-right))!important;bottom:max(14px,env(safe-area-inset-bottom))!important}

  .course-template-page .course-hero{padding:42px 0 48px!important}
  .course-template-page .course-hero h1{font-size:38px!important;line-height:1.07!important}
  .course-template-page .course-hero p{font-size:16px!important;line-height:1.7!important}
  .course-template-page .course-tags{gap:8px!important;margin:20px 0 23px!important}
  .course-template-page .course-tags span{font-size:11px!important;padding:7px 9px!important}
  .course-template-page .course-form{padding:21px!important;border-radius:18px!important}
  .course-template-page .course-form h2{font-size:25px!important}
  .course-template-page .course-proof-grid{grid-template-columns:1fr 1fr!important}
  .course-template-page .course-proof-grid div{padding:18px 14px!important;border-bottom:1px solid #e4e9f1!important}
  .course-template-page .course-proof-grid div:nth-child(2n){border-right:0!important}
  .course-template-page .course-outcomes,.course-template-page .course-city-grid{grid-template-columns:1fr!important}
  .course-template-page .curriculum-grid{grid-template-columns:1fr!important}
  .course-template-page .course-final{padding:46px 0!important}
  .course-template-page .course-final .container{grid-template-columns:1fr!important;gap:20px!important;text-align:center}
  .course-template-page .course-final .btn{width:100%}
  .course-template-page .section.soft .card[style*="grid-template-columns"]{display:block!important;padding:22px!important}
  .course-template-page .section.soft .card[style*="grid-template-columns"] .btn{width:100%;margin-top:10px}
}

@media(max-width:390px){
  .brand small{display:none!important}
  .brand strong{font-size:13px!important}
  .course-template-page .course-proof-grid{grid-template-columns:1fr!important}
}

.footer-contact strong{color:#fff}
.footer-contact p{line-height:1.65}
.footer-contact .footer-whatsapp{color:#72e6a4!important;font-weight:800}
.footer-contact .footer-whatsapp:hover{color:#9bf0bd!important}


/* V14: dark service hero heading contrast safeguard. */
.content-page-v1 .content-hero h1,
.cro-page-v2 .cro-hero h1,
.wpdev-page-v1 .wpdev-hero h1{color:#fff!important}
.content-page-v1 .content-hero h1 em,
.cro-page-v2 .cro-hero h1 em,
.wpdev-page-v1 .wpdev-hero h1 em{color:#ff70b3!important}
