/* ICT World Technical Training Institute — premium blue theme, mobile-first.
   Blue matches the supplied logo: #0b5ed7 / #0a4da6 / navy #0a2a5e. */
:root {
  --blue: #0b5ed7; --blue-dark: #0a4da6; --navy: #0a2a5e; --sky: #e8f1fe;
  --bg: #f4f7fc; --card: #ffffff; --text: #14213d; --muted: #5b6b82;
  --line: #dbe4f0; --green: #0a7d4d; --amber: #b45309; --red: #b91c1c;
  --radius: 14px; --shadow: 0 6px 24px rgba(10, 42, 94, .10);
}
[data-theme="dark"] {
  --bg: #0d1526; --card: #152238; --text: #e8eef7; --muted: #9fb0c8;
  --line: #26395c; --sky: #16294a; --shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 1.6rem; line-height: 1.3; margin: .6em 0 .4em; }
h2 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.muted { color: var(--muted); }
small { display: block; }

/* Header */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(10, 42, 94, .06); }
.topbar-in { display: flex; align-items: center; gap: 14px; padding: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: .75rem; }
.topnav { display: none; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.topnav a { color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: .92rem; }
.topnav a:hover { background: var(--sky); text-decoration: none; }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.topnav ~ .top-actions { margin-left: 0; }
.chip-btn { background: var(--sky); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; }
.admit-bar { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); color: #fff; font-size: .92rem; padding: 8px 0; }
.admit-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy), var(--blue-dark) 60%, var(--blue)); color: #fff; border-radius: 0 0 22px 22px; margin: 0 -16px; padding: 34px 16px 30px; text-align: center; }
.hero-logo { background: #fff; border-radius: 14px; padding: 10px 14px; max-width: 340px; width: 86%; height: auto; box-shadow: var(--shadow); }
.hero h1 { color: #fff; font-size: 1.7rem; margin: .5em 0 .2em; }
.hero-tag { font-size: 1.1rem; color: #cfe3ff; margin: .2em 0; }
.hero-sub { color: #dbe9ff; max-width: 620px; margin: .6em auto 1.2em; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.btn { display: inline-block; background: var(--card); color: var(--blue-dark); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: .95rem; }
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.big { padding: 12px 26px; font-size: 1.02rem; }
.btn.small { padding: 8px 16px; font-size: .88rem; margin: 0 12px 12px; }
.btn.wa { background: #128c4b; border-color: #128c4b; color: #fff; }
.btn.call { background: #fff; color: var(--navy); }
.btn.ghost { background: transparent; }
.hero .btn { border-color: transparent; }
.hero .btn:not(.primary):not(.wa):not(.call) { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }

/* Hero slider: slides stack in one grid cell and cross-fade. No-JS shows slide 1 only. */
.hero-slider { position: relative; }
.hero-viewport { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; min-width: 0; }
.hero-slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease; }
.hero-slide-icon { display: block; font-size: 2.6rem; line-height: 1.1; margin-top: .4em; }
.hero-slide-title { color: #fff; font-size: 1.7rem; margin: .5em 0 .2em; }
.slider-arrow { position: absolute; top: 42%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.slider-arrow:hover { background: rgba(255, 255, 255, .32); }
.slider-arrow.prev { left: 2px; }
.slider-arrow.next { right: 2px; }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.slider-dot.active { background: #fff; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Cards / grids */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { display: flex; gap: 12px; padding: 16px; color: var(--text); align-items: flex-start; }
.card-body:hover { text-decoration: none; }
.card-icon { font-size: 1.8rem; flex: none; }
.card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-text strong { font-size: 1.05rem; line-height: 1.35; }
.fee { color: var(--blue-dark); font-weight: 700; }
.course-card { display: flex; flex-direction: column; }
.course-card .card-body { flex: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.5rem; color: var(--blue); }
.badge { display: inline-block; background: var(--sky); color: var(--blue-dark); border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 700; }
.badge.demo { background: #fef3c7; color: var(--amber); }
.badge.govt { background: var(--green); color: #fff; }
.notice-list { list-style: none; padding: 0; }
.notice-list li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.syllabus li { margin-bottom: 4px; }

/* Forms / tables */
.form { display: flex; flex-direction: column; gap: 12px; }
.form.narrow { max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.flash { border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-weight: 600; }
.flash.ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.flash.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
[data-theme="dark"] .flash.ok { background: #14532d; color: #dcfce7; }
[data-theme="dark"] .flash.err { background: #7f1d1d; color: #fee2e2; }
.result-table, .admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.result-table th, .result-table td, .admin-table th, .admin-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; font-size: .92rem; vertical-align: top; }
.result-table th { width: 38%; background: var(--sky); }
.admin-table { display: block; overflow-x: auto; }
.admin-table th { background: var(--sky); white-space: nowrap; }
.admin-table td a { margin-right: 8px; white-space: nowrap; }

/* ID / registration card */
.id-card, .reg-card { background: var(--card); border: 2px solid var(--blue); border-radius: var(--radius); padding: 20px; max-width: 520px; margin: 16px auto; text-align: center; }
.id-head { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 10px; }
.id-head img { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; }
.id-photo { font-size: 3.4rem; }
.verified { color: var(--green); font-weight: 700; }
.reg-card { text-align: left; }
.reg-card h2 { text-align: center; }
.about-logo { background: #fff; border-radius: 14px; padding: 10px 14px; max-width: 420px; width: 100%; height: auto; }

/* Footer */
.footer { background: var(--navy); color: #dbe9ff; margin-top: 40px; padding: 26px 0 90px; }
.footer a { color: #fff; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.footer h4 { color: #fff; margin: 0 0 8px; }
.foot-logo { background: #fff; border-radius: 10px; padding: 6px 10px; max-width: 260px; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 20px; padding-top: 14px; font-size: .88rem; }

/* Mobile bottom nav + call fab */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(10, 42, 94, .12); }
.bottomnav a { flex: 1; text-align: center; padding: 8px 2px 7px; color: var(--text); font-size: 1.15rem; line-height: 1.1; }
.bottomnav a span { display: block; font-size: .68rem; }
.call-fab { position: fixed; right: 14px; bottom: 74px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: var(--shadow); }

/* Admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.admin-nav a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; color: var(--text); font-size: .88rem; }
.admin-nav a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-nav a:hover { text-decoration: none; }
.draft-warning { background: #fef3c7; color: #7c2d12; border: 1px solid #fcd34d; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
[data-theme="dark"] .draft-warning { background: #451a03; color: #fde68a; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
@media (min-width: 900px) {
  .topnav { display: flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .bottomnav, .call-fab { display: none; }
  .footer { padding-bottom: 26px; }
  h1 { font-size: 1.9rem; }
}
@media print {
  .topbar, .admit-bar, .bottomnav, .call-fab, .footer, .print-hide { display: none !important; }
  body { background: #fff; color: #000; }
  .reg-card, .id-card { border: 2px solid #000; box-shadow: none; }
}
