.ngk-schedule{
  --p:#6d28d9;
  --p2:#8b5cf6;
  --p-soft:#f3efff;
  --text:#111827;
  --muted:#667085;
  --border:#e7e5ee;
  --card:#ffffff;
  --shadow:0 10px 30px rgba(34,24,64,.08);
  --shadow-hover:0 18px 44px rgba(86,48,170,.16);
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:18px 12px 34px;
  box-sizing:border-box;
  color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Bengali","Hind Siliguri",sans-serif
}
.ngk-schedule *{box-sizing:border-box}

.ngk-schedule-head{
  text-align:center;
  margin:4px auto 22px;
  padding:0 8px
}
.ngk-kicker{
  display:inline-block;
  color:var(--p);
  font-weight:800;
  font-size:12px;
  letter-spacing:.02em;
  margin-bottom:8px
}
.ngk-schedule-head h2{
  margin:0 0 7px;
  font-size:clamp(26px,4.5vw,42px);
  line-height:1.18;
  letter-spacing:-.02em
}
.ngk-schedule-head p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55
}

/* Level selector */
.ngk-levels{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  max-width:760px;
  margin:0 auto 24px
}
.ngk-level-btn{
  position:relative;
  overflow:hidden;
  min-height:48px;
  border:1px solid var(--border);
  border-radius:12px;
  background:linear-gradient(180deg,#fff,#fbfbfd);
  color:#c72d5c;
  font-weight:850;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(20,28,45,.04);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,color .22s ease,background .22s ease
}
.ngk-level-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,transparent 28%,rgba(255,255,255,.75) 48%,transparent 68%);
  transform:translateX(-130%);
  transition:transform .55s ease
}
.ngk-level-btn.is-active{
  background:linear-gradient(135deg,var(--p2),var(--p));
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 28px rgba(109,40,217,.28)
}
.ngk-level-btn.is-active::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:30px;
  height:6px;
  border-radius:10px 10px 0 0;
  background:var(--p2);
  transform:translateX(-50%)
}

/* Level panel */
.ngk-level-panel,.ngk-phase-panel{display:none}
.ngk-level-panel.is-active,.ngk-phase-panel.is-active{display:block}
.ngk-level-summary{
  padding:10px 2px 16px
}
.ngk-level-summary h3{
  margin:0;
  font-size:clamp(22px,3vw,30px);
  line-height:1.25;
  letter-spacing:-.01em
}
.ngk-level-summary h3 span{
  font-size:13px;
  color:var(--muted);
  font-weight:700
}
.ngk-level-summary p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px
}

/* Phase selector */
.ngk-phases{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:8px 0 20px
}
.ngk-phases::before{
  content:"";
  position:absolute;
  top:21px;
  left:10%;
  right:10%;
  height:2px;
  background:linear-gradient(90deg,#ede9fe,#e5e7eb,#ede9fe);
  z-index:0
}
.ngk-phase-btn{
  position:relative;
  z-index:1;
  border:0;
  background:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:#6b7280;
  cursor:pointer;
  padding:0;
  min-width:0
}
.ngk-phase-btn span{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid #dedbe8;
  border-radius:50%;
  background:#fff;
  font-weight:850;
  box-shadow:0 5px 14px rgba(20,28,45,.05);
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease,color .22s ease,border-color .22s ease
}
.ngk-phase-btn small{
  font-size:10px;
  line-height:1.15;
  text-align:center;
  max-width:100%;
  color:#60677a
}
.ngk-phase-btn.is-active{color:var(--p)}
.ngk-phase-btn.is-active span{
  background:linear-gradient(135deg,var(--p2),var(--p));
  color:#fff;
  border-color:transparent;
  box-shadow:0 10px 24px rgba(109,40,217,.22)
}
.ngk-phase-btn.is-active small{
  color:var(--p);
  font-weight:800
}

.ngk-phase-title{
  text-align:center;
  margin:0 0 16px
}
.ngk-phase-title strong{
  display:block;
  font-size:18px
}
.ngk-phase-title span{
  display:inline-block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted)
}

/* Weekly timeline */
.ngk-week-list{
  position:relative;
  padding-left:16px
}
.ngk-week-list::before{
  content:"";
  position:absolute;
  left:5px;
  top:18px;
  bottom:18px;
  width:3px;
  border-radius:6px;
  background:linear-gradient(180deg,#b794f4,#7c3aed,#d8b4fe)
}

.ngk-week{
  position:relative;
  margin:0 0 12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(252,251,255,.98));
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease
}
.ngk-week::before{
  content:"";
  position:absolute;
  left:-17px;
  top:25px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--p);
  box-shadow:0 0 0 4px #fff,0 0 0 5px rgba(109,40,217,.15)
}
.ngk-week::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  background:
    radial-gradient(circle at 92% 72%,rgba(124,58,237,.10),transparent 20%),
    linear-gradient(110deg,transparent 28%,rgba(255,255,255,.72) 48%,transparent 68%);
  transform:translateX(-80%);
  transition:transform .6s ease,opacity .25s ease
}

.ngk-week-toggle{
  position:relative;
  z-index:2;
  width:100%;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  min-height:72px;
  text-align:left;
  cursor:pointer;
  color:inherit
}
.ngk-week-no{
  flex:0 0 46px;
  width:46px;
  height:46px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--p2),var(--p));
  color:#fff;
  font-weight:900;
  font-size:14px;
  box-shadow:
    0 8px 18px rgba(109,40,217,.22),
    0 0 0 5px rgba(139,92,246,.08)
}
.ngk-week-main{
  min-width:0;
  flex:1
}
.ngk-week-main strong{
  display:block;
  font-size:16px;
  line-height:1.3;
  letter-spacing:-.01em
}
.ngk-week-main small{
  display:block;
  margin-top:5px;
  color:var(--p);
  font-size:11px;
  line-height:1.35;
  font-weight:700
}
.ngk-chevron{
  flex:0 0 auto;
  font-size:22px;
  color:var(--p);
  transition:transform .22s ease
}
.ngk-week-toggle[aria-expanded="true"] .ngk-chevron{
  transform:rotate(180deg)
}
.ngk-week:has(.ngk-week-toggle[aria-expanded="true"]){
  border-color:#cbb8ff;
  box-shadow:0 18px 42px rgba(109,40,217,.12)
}

/* Expanded details */
.ngk-week-details{
  position:relative;
  z-index:2;
  padding:0 13px 15px 71px
}
.ngk-detail-block{
  background:linear-gradient(180deg,#fbf9ff,#f8f6ff);
  border:1px solid #eee9ff;
  border-radius:12px;
  padding:11px 12px;
  margin-top:9px
}
.ngk-detail-block h4{
  margin:0 0 6px;
  font-size:13px;
  color:#5b21b6
}
.ngk-detail-block p{
  margin:0;
  font-size:13px;
  line-height:1.75;
  color:#273142
}

.ngk-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:11px
}
.ngk-action{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:11px;
  padding:10px 12px;
  text-decoration:none!important;
  font-weight:850;
  font-size:13px;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease
}
.ngk-action.primary{
  background:linear-gradient(135deg,var(--p2),var(--p));
  color:#fff!important;
  box-shadow:0 9px 20px rgba(109,40,217,.20)
}
.ngk-action.secondary{
  border:1px solid #bfa7ff;
  color:var(--p)!important;
  background:#fff
}

/* Approved phase colors */
.ngk-color-blue .ngk-week-no,.ngk-color-blue::before{background:linear-gradient(135deg,#38bdf8,#2563eb)}
.ngk-color-teal .ngk-week-no,.ngk-color-teal::before{background:linear-gradient(135deg,#2dd4bf,#0f9f9a)}
.ngk-color-green .ngk-week-no,.ngk-color-green::before{background:linear-gradient(135deg,#4ade80,#16a34a)}
.ngk-color-orange .ngk-week-no,.ngk-color-orange::before{background:linear-gradient(135deg,#fbbf24,#f97316)}
.ngk-color-pink .ngk-week-no,.ngk-color-pink::before{background:linear-gradient(135deg,#f472b6,#ec4899)}

/* Premium hover only on devices that truly hover */
@media (hover:hover) and (pointer:fine){
  .ngk-level-btn:hover{
    transform:translateY(-3px);
    border-color:#c4b5fd;
    box-shadow:0 12px 26px rgba(83,63,127,.12)
  }
  .ngk-level-btn:hover::after{transform:translateX(130%)}
  .ngk-phase-btn:hover span{
    transform:translateY(-3px);
    border-color:#c4b5fd;
    box-shadow:0 10px 22px rgba(109,40,217,.14)
  }
  .ngk-week:hover{
    transform:translateY(-4px);
    border-color:#cbb8ff;
    box-shadow:var(--shadow-hover)
  }
  .ngk-week:hover::after{
    opacity:1;
    transform:translateX(75%)
  }
  .ngk-action:hover{
    transform:translateY(-2px);
    filter:brightness(1.03)
  }
}

/* Tablet */
@media (min-width:768px){
  .ngk-schedule{padding:24px 20px 40px}
  .ngk-levels{gap:10px}
  .ngk-level-btn{min-height:52px;font-size:16px}
  .ngk-level-summary{padding-top:14px}
  .ngk-phases{margin-top:12px}
  .ngk-phase-btn span{width:48px;height:48px}
  .ngk-phase-btn small{font-size:11px}
  .ngk-week-list{padding-left:22px}
  .ngk-week-list::before{left:8px}
  .ngk-week::before{left:-20px}
  .ngk-week-toggle{padding:15px 18px}
  .ngk-week-no{width:50px;height:50px;flex-basis:50px}
  .ngk-week-main strong{font-size:17px}
  .ngk-week-main small{font-size:12px}
  .ngk-week-details{padding:0 18px 18px 80px}
  .ngk-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Desktop */
@media (min-width:1025px){
  .ngk-schedule{padding-top:28px}
  .ngk-schedule-head{margin-bottom:26px}
  .ngk-levels{max-width:820px}
  .ngk-level-summary{padding-top:18px}
  .ngk-phases{margin-bottom:24px}
  .ngk-phase-btn small{font-size:11.5px}
  .ngk-week-toggle{min-height:78px}
  .ngk-week-main strong{font-size:18px}
  .ngk-week-details{padding-left:86px}
}

/* Small phones: no horizontal scroll, comfortable tap targets */
@media (max-width:480px){
  .ngk-schedule{padding-left:8px;padding-right:8px}
  .ngk-levels{gap:5px}
  .ngk-level-btn{
    min-height:44px;
    padding:0 5px;
    border-radius:10px;
    font-size:14px
  }
  .ngk-phases{gap:2px}
  .ngk-phases::before{left:8%;right:8%}
  .ngk-phase-btn span{width:38px;height:38px}
  .ngk-phase-btn small{
    font-size:8.5px;
    max-width:60px
  }
  .ngk-level-summary h3{font-size:21px}
  .ngk-week-toggle{
    min-height:68px;
    gap:9px;
    padding:11px 10px
  }
  .ngk-week-no{
    width:42px;height:42px;flex-basis:42px
  }
  .ngk-week-main strong{font-size:15px}
  .ngk-week-details{padding:0 10px 13px 10px}
  .ngk-detail-block{padding:10px}
}

/* Focus/accessibility */
.ngk-level-btn:focus-visible,
.ngk-phase-btn:focus-visible,
.ngk-week-toggle:focus-visible,
.ngk-action:focus-visible{
  outline:3px solid rgba(109,40,217,.28);
  outline-offset:3px
}
@media(prefers-reduced-motion:reduce){
  .ngk-level-btn,.ngk-phase-btn span,.ngk-week,.ngk-week::after,.ngk-chevron,.ngk-action{transition:none!important}
}


/* v1.0.2 — visibility/contrast fix across N5–N1.
   Prevents theme/global hover styles from turning text too light or invisible. */
.ngk-schedule,
.ngk-schedule .ngk-level-summary,
.ngk-schedule .ngk-phase-title,
.ngk-schedule .ngk-week,
.ngk-schedule .ngk-week-toggle,
.ngk-schedule .ngk-week-main,
.ngk-schedule .ngk-week-details{
  color:#111827 !important;
}

.ngk-schedule .ngk-week-main strong,
.ngk-schedule .ngk-level-summary h3,
.ngk-schedule .ngk-phase-title strong{
  color:#111827 !important;
}

.ngk-schedule .ngk-week-main small{
  color:#5b21b6 !important;
}

.ngk-schedule .ngk-level-summary p,
.ngk-schedule .ngk-level-summary h3 span,
.ngk-schedule .ngk-phase-title span{
  color:#667085 !important;
}

.ngk-schedule .ngk-phase-btn small{
  color:#4b5563 !important;
}

.ngk-schedule .ngk-phase-btn.is-active small{
  color:#6d28d9 !important;
}

/* Keep non-active level labels vivid and readable regardless of theme hover rules. */
.ngk-schedule .ngk-level-btn{
  color:#c72d5c !important;
}

.ngk-schedule .ngk-level-btn.is-active{
  color:#ffffff !important;
}

/* Explicitly preserve week-card text during hover/focus/expanded states. */
.ngk-schedule .ngk-week:hover,
.ngk-schedule .ngk-week:focus-within,
.ngk-schedule .ngk-week:has(.ngk-week-toggle[aria-expanded="true"]){
  color:#111827 !important;
}

.ngk-schedule .ngk-week:hover .ngk-week-main strong,
.ngk-schedule .ngk-week:focus-within .ngk-week-main strong,
.ngk-schedule .ngk-week:has(.ngk-week-toggle[aria-expanded="true"]) .ngk-week-main strong{
  color:#111827 !important;
}

.ngk-schedule .ngk-week:hover .ngk-week-main small,
.ngk-schedule .ngk-week:focus-within .ngk-week-main small,
.ngk-schedule .ngk-week:has(.ngk-week-toggle[aria-expanded="true"]) .ngk-week-main small{
  color:#5b21b6 !important;
}

.ngk-schedule .ngk-week:hover .ngk-chevron,
.ngk-schedule .ngk-week:focus-within .ngk-chevron,
.ngk-schedule .ngk-week:has(.ngk-week-toggle[aria-expanded="true"]) .ngk-chevron{
  color:#6d28d9 !important;
}

/* Expanded Bangla detail cards */
.ngk-schedule .ngk-detail-block h4{
  color:#5b21b6 !important;
}

.ngk-schedule .ngk-detail-block p{
  color:#273142 !important;
}

/* Button contrast */
.ngk-schedule .ngk-action.primary,
.ngk-schedule .ngk-action.primary:hover,
.ngk-schedule .ngk-action.primary:focus{
  color:#ffffff !important;
}

.ngk-schedule .ngk-action.secondary,
.ngk-schedule .ngk-action.secondary:hover,
.ngk-schedule .ngk-action.secondary:focus{
  color:#6d28d9 !important;
}

/* Hover/focus states: preserve contrast on every selectable control. */
@media (hover:hover) and (pointer:fine){
  .ngk-schedule .ngk-level-btn:hover:not(.is-active){
    color:#9f1239 !important;
    background:#ffffff !important;
  }

  .ngk-schedule .ngk-level-btn.is-active:hover{
    color:#ffffff !important;
  }

  .ngk-schedule .ngk-phase-btn:hover{
    color:#6d28d9 !important;
  }

  .ngk-schedule .ngk-phase-btn:hover small{
    color:#4c1d95 !important;
  }

  .ngk-schedule .ngk-week-toggle:hover,
  .ngk-schedule .ngk-week-toggle:focus{
    color:#111827 !important;
  }
}

/* Defensive reset against WordPress/theme global link/button hover colors. */
.ngk-schedule button:hover,
.ngk-schedule button:focus,
.ngk-schedule button:active{
  text-shadow:none !important;
  opacity:1 !important;
}



/* v1.0.3 — mobile-first phase navigation refinement. */
.ngk-schedule .ngk-phase-btn,
.ngk-schedule .ngk-phase-btn:active,
.ngk-schedule .ngk-phase-btn:focus{
  -webkit-tap-highlight-color:transparent;
}
.ngk-schedule .ngk-phase-btn.is-active{background:transparent !important;}
.ngk-schedule .ngk-phase-btn.is-active span{
  background:linear-gradient(135deg,#8b5cf6,#6d28d9) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 10px 24px rgba(109,40,217,.22) !important;
}
@media (max-width:767px){
  .ngk-schedule .ngk-phases{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:10px 0 18px;
    padding:4px 0 4px 10px;
  }
  .ngk-schedule .ngk-phases::before{
    left:29px;
    right:auto;
    top:25px;
    bottom:25px;
    width:2px;
    height:auto;
    background:linear-gradient(180deg,#ddd6fe,#c4b5fd,#ede9fe);
  }
  .ngk-schedule .ngk-phase-btn{
    position:relative;
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    align-items:center;
    gap:12px;
    width:100%;
    min-height:58px;
    padding:7px 10px 7px 0;
    border:1px solid transparent;
    border-radius:14px;
    text-align:left;
    color:#4b5563 !important;
    background:transparent !important;
    transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
  }
  .ngk-schedule .ngk-phase-btn span{
    position:relative;
    z-index:2;
    width:42px;
    height:42px;
    margin:0;
    background:#fff;
  }
  .ngk-schedule .ngk-phase-btn small{
    max-width:none;
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
    text-align:left;
    font-size:12px;
    line-height:1.35;
    letter-spacing:.01em;
    color:#4b5563 !important;
    font-weight:700;
  }
  .ngk-schedule .ngk-phase-btn.is-active{
    background:linear-gradient(90deg,rgba(237,233,254,.92),rgba(250,248,255,.72)) !important;
    border-color:#d8c7ff !important;
    box-shadow:0 8px 20px rgba(109,40,217,.08) !important;
  }
  .ngk-schedule .ngk-phase-btn.is-active small{
    color:#5b21b6 !important;
    font-weight:850;
  }
  .ngk-schedule .ngk-phase-btn.is-active::after{
    content:'CURRENT';
    justify-self:start;
    grid-column:2;
    margin-top:-7px;
    padding:2px 7px;
    border-radius:999px;
    background:#ede9fe;
    color:#6d28d9;
    font-size:9px;
    line-height:1.4;
    font-weight:900;
    letter-spacing:.08em;
  }
  .ngk-schedule .ngk-phase-title{margin-top:4px;margin-bottom:14px;}
  .ngk-schedule .ngk-phase-title strong{font-size:17px;line-height:1.35;}
}
.ngk-schedule .ngk-phase-btn:hover,
.ngk-schedule .ngk-phase-btn:active,
.ngk-schedule .ngk-phase-btn:focus,
.ngk-schedule .ngk-phase-btn.is-active:hover,
.ngk-schedule .ngk-phase-btn.is-active:active,
.ngk-schedule .ngk-phase-btn.is-active:focus{
  outline-color:rgba(109,40,217,.25);
}


/* v1.0.4 — desktop/tablet active phase color consistency.
   Layout is unchanged; only the selected phase styling is aligned with mobile. */
@media (min-width:768px){
  .ngk-schedule .ngk-phase-btn.is-active{
    background:transparent !important;
    color:#5b21b6 !important;
  }

  .ngk-schedule .ngk-phase-btn.is-active span{
    background:linear-gradient(135deg,#8b5cf6,#6d28d9) !important;
    color:#fff !important;
    border-color:transparent !important;
    box-shadow:0 10px 24px rgba(109,40,217,.22) !important;
  }

  .ngk-schedule .ngk-phase-btn.is-active small{
    color:#5b21b6 !important;
    font-weight:800;
  }

  .ngk-schedule .ngk-phase-btn.is-active:hover,
  .ngk-schedule .ngk-phase-btn.is-active:focus,
  .ngk-schedule .ngk-phase-btn.is-active:active{
    background:rgba(237,233,254,.38) !important;
    color:#5b21b6 !important;
  }
}
