/* Checkout, student learning area, content pages and the site-wide helpers. */

/* Payment logos */
.academy-page .shell.pay-row, .public-dark .shell.pay-row, .pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; color: var(--muted); font-size: 13px; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 2px; flex: 0 0 auto; }
.pay-logo img { display: block; height: 26px; width: auto; }
.pay-logo.bkash { padding: 0 12px; background: #e2136e; }
.pay-logo.bkash img { height: 20px; }

/* The shared .shell rule turns grids off, so the course page turns its own back on. */
.academy-page .shell.course-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 75px; }
.academy-page .academy-action { margin-bottom: 8px; }
@media (max-width: 900px) { .academy-page .shell.course-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; } }

/* Checkout */
.checkout-box { width: min(560px, calc(100% - 32px)); margin-inline: auto; }
.checkout-box .academy-kicker { margin-bottom: 18px; }
.checkout-lines { margin: 0 0 20px; }
.checkout-lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkout-lines dt { color: var(--muted); }
.checkout-lines dd { margin: 0; }
.checkout-total dt { color: var(--light); font-weight: 600; }
.checkout-total dd { color: var(--gold); font: 400 24px var(--serif); }
.checkout-methods { display: grid; gap: 8px; }
.checkout-methods label { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); cursor: pointer; letter-spacing: 0; text-transform: none; }
.checkout-methods label.selected { border-color: var(--gold); background: rgba(201,168,106,.07); }
.checkout-methods input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.checkout-methods b { display: block; color: var(--light); font-size: 15px; font-weight: 600; }
.checkout-methods small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }

/* Home additions */
.roi-cta { margin: 28px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.testimonial { padding: 28px; background: linear-gradient(145deg, var(--surface), #101c30); border: 1px solid var(--line); }
.testimonial p { margin: 0 0 18px; font-size: 16px; line-height: 1.7; }
.testimonial b { display: block; font-weight: 600; }
.testimonial small { color: var(--muted); font-size: 13px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }

/* Floating helpers: back to top sits lowest, then WhatsApp, then chat */
.float-btn { position: fixed; right: 20px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold); background: var(--surface); color: var(--gold); font: 600 12px var(--sans); text-decoration: none; cursor: pointer; }
.float-btn:hover { background: var(--gold); color: #101827; }
.float-whatsapp { bottom: 76px; border-color: #25d366; background: #25d366; color: #fff; }
.float-whatsapp:hover { background: #1fb457; color: #fff; }
.float-whatsapp svg { width: 24px; height: 24px; fill: currentColor; }
.float-chat { bottom: 132px; }
.chat-panel { position: fixed; right: 20px; bottom: 188px; z-index: 95; display: flex; flex-direction: column; width: min(360px, calc(100vw - 40px)); height: min(460px, calc(100dvh - 280px)); background: #0e1727; border: 1px solid var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.chat-head button { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; }
.chat-msg { max-width: 88%; padding: 9px 11px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.user { align-self: flex-end; background: var(--gold); color: #101827; }
.chat-msg.bot { align-self: flex-start; background: var(--surface); color: var(--light); }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat-panel form { display: flex; }
.chat-form input { flex: 1; min-width: 0; margin: 0; padding: 10px; }
.chat-form button { padding: 0 14px; background: var(--gold); border: 0; color: #101827; font-weight: 600; cursor: pointer; }

/* Newsletter strip above the footer, and cookie choice */
.newsletter-strip { border-top: 1px solid var(--line); padding: 44px 0; background: #0e1727; }
.newsletter-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.newsletter-inner h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.newsletter-inner p { margin: 0; color: var(--muted); font-size: 14px; }
form.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 320px; max-width: 480px; grid-template-columns: none; }
.newsletter-form input[type="email"] { flex: 1 1 200px; margin: 0; min-height: 48px; }
.newsletter-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.consent-bar { position: fixed; left: 20px; bottom: 20px; z-index: 96; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: min(460px, calc(100vw - 96px)); padding: 14px; background: #0e1727; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.consent-bar a { color: var(--gold); }
.consent-bar button { padding: 7px 12px; background: var(--gold); border: 1px solid var(--gold); color: #101827; font: 600 13px var(--sans); cursor: pointer; }
.consent-bar button.ghost { background: none; color: var(--light); border-color: var(--line); }
.privacy-choices { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.site-ad-slot { min-height: 90px; margin: 28px 0; overflow: hidden; text-align: center; }
.site-ad-slot:empty { display: none; }

/* Content pages */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.content-card { display: flex; flex-direction: column; padding: 28px; background: linear-gradient(145deg, var(--surface), #101c30); border: 1px solid var(--line); color: inherit; text-decoration: none; }
a.content-card:hover { border-color: rgba(201,168,106,.55); }
.content-card img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.content-card h3 { margin: 0 0 10px; font: 500 22px/1.3 var(--display); letter-spacing: -.02em; }
.content-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; white-space: pre-line; }
.content-card .tutorial-meta { margin-top: auto; }
.content-card.highlighted { border-color: var(--gold); }
.package-price { margin: 0 0 16px; color: var(--gold); font: 400 28px var(--serif); }
.package-features { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; }
.package-features li { display: flex; gap: 10px; padding: 7px 0; }
.package-features li::before { content: "✓"; color: var(--gold); }
.article-body { width: min(760px, calc(100% - 48px)); margin-inline: auto; color: var(--muted); font-size: 17px; line-height: 1.8; }
.article-body h2 { margin: 36px 0 12px; color: var(--light); font-size: 28px; letter-spacing: -.02em; line-height: 1.25; }
.article-body img.article-cover { width: 100%; margin-bottom: 32px; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body a { color: var(--gold); }
.empty-panel { padding: 50px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.empty-panel h3 { margin: 0 0 10px; color: var(--light); font: 500 26px/1.3 var(--display); }
@media (max-width: 1000px) { .content-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .content-grid { grid-template-columns: 1fr; } .empty-panel { padding: 28px 22px; } }

/* ROI calculator */
.roi-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-panel { padding: 30px; background: linear-gradient(145deg, var(--surface), #101c30); border: 1px solid var(--line); }
.roi-panel h2 { margin: 0 0 20px; font-size: 24px; letter-spacing: -.02em; }
.roi-field { display: grid; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 14px; letter-spacing: 0; text-transform: none; }
.roi-field span { display: flex; justify-content: space-between; gap: 12px; }
.roi-field b { color: var(--gold); font-weight: 600; }
.roi-field input { margin: 0; padding: 0; accent-color: var(--gold); }
.roi-field input[type="number"] { padding: 12px; }
.roi-result { padding: 16px 0; border-bottom: 1px solid var(--line); }
.roi-result small { display: block; color: var(--muted); font-size: 13px; }
.roi-result strong { color: var(--gold); font: 400 32px var(--serif); }
.roi-note { margin: 16px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 860px) { .roi-layout { grid-template-columns: minmax(0, 1fr); } }

/* Student area */
.student-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.student-tabs button { min-height: 42px; padding: 0 16px; background: none; border: 1px solid var(--line); color: var(--muted); font: 500 14px var(--sans); cursor: pointer; }
.student-tabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #101827; }
.student-card { margin-bottom: 12px; padding: 26px; background: linear-gradient(145deg, var(--surface), #101c30); border: 1px solid var(--line); }
.student-card h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.student-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.student-progress { height: 6px; margin: 12px 0; background: #26344a; overflow: hidden; }
.student-progress span { display: block; height: 100%; background: var(--gold); transition: width .4s; }
.student-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.student-table th, .student-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.student-table th { color: var(--muted); font-size: 12px; font-weight: 500; }
.student-table a { color: var(--gold); }
.table-scroll { overflow-x: auto; }

.learn-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; width: min(1200px, calc(100% - 48px)); margin-inline: auto; align-items: start; }
.learn-nav { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.learn-nav h3 { margin: 16px 0 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.learn-nav h3:first-child { margin-top: 0; }
.learn-nav button { display: flex; gap: 8px; width: 100%; padding: 9px 8px; background: none; border: 0; border-left: 2px solid transparent; color: var(--light); font: 400 14px/1.4 var(--sans); text-align: left; cursor: pointer; }
.learn-nav button:hover { background: rgba(255,255,255,.04); }
.learn-nav button[aria-current="true"] { border-left-color: var(--gold); color: var(--gold); }
.learn-nav i { flex: 0 0 auto; font-style: normal; color: var(--gold); width: 16px; }
.learn-main { min-width: 0; padding: 30px; background: var(--surface); border: 1px solid var(--line); }
.learn-main h1 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 36px); }
.learn-main .tutorial-step { padding-left: 0; }
.learn-main .tutorial-step::before { display: none; }
.learn-main .tutorial-num { position: static; margin-bottom: 12px; }
.learn-text { color: var(--muted); line-height: 1.8; white-space: pre-line; }
.video-frame { aspect-ratio: 16 / 9; margin-bottom: 20px; background: #000; }
.video-frame iframe, .video-frame video { display: block; width: 100%; height: 100%; border: 0; }
.quiz-question { margin-bottom: 22px; }
.quiz-question legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.quiz-question fieldset { margin: 0; padding: 0; border: 0; }
.quiz-question label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; color: var(--muted); font-size: 15px; letter-spacing: 0; text-transform: none; cursor: pointer; }
.quiz-question input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.learn-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .learn-layout { grid-template-columns: minmax(0, 1fr); width: min(100% - 32px, 1200px); }
  .learn-nav { position: static; max-height: 320px; }
  .learn-main { padding: 22px 18px; }
}

/* Receipt and certificate */
.receipt { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 36px; background: #fff; color: #1a2433; }
.receipt h1 { margin: 0 0 4px; color: #0b1220; font-size: 28px; letter-spacing: -.02em; }
.receipt table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px; }
.receipt th, .receipt td { padding: 10px 6px; border-bottom: 1px solid #dfe3ea; text-align: left; }
.receipt-meta { color: #5a6474; font-size: 14px; line-height: 1.7; }
.receipt-actions { width: min(720px, calc(100% - 32px)); margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 12px; }
.certificate-sheet { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 56px 40px; background: #fff; color: #1a2433; text-align: center; border: 10px double var(--accent, #c9a86a); }
.certificate-sheet h1 { margin: 0 0 18px; color: #0b1220; font: 400 clamp(30px, 4.5vw, 48px)/1.15 var(--serif); letter-spacing: 0; }
.certificate-name { margin: 22px 0; color: #0b1220; font: 400 clamp(26px, 4vw, 40px) var(--serif); }
.certificate-sheet p { margin: 0 auto 14px; max-width: 620px; line-height: 1.7; }
.certificate-sign { margin-top: 34px; font-size: 14px; }
.certificate-small { margin-top: 26px; color: #5a6474; font-size: 12px; }
@media print {
  body { background: #fff !important; }
  .nav-wrap, footer, .noise, .back-to-top, .float-btn, .chat-panel, .consent-bar, .newsletter-strip, .no-print { display: none !important; }
  .public-dark { padding-top: 0 !important; background: #fff !important; }
  .platform-section { padding: 0 !important; }
}
