:root {
  --emerald: #0b4f3a;
  --emerald-dark: #073829;
  --gold: #c69749;
  --bg: #f8f7f3;
  --surface: #ffffff;
  --text: #141e1a;
  --muted: #52635b;
  --border: #e1e7e3;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
}

a {
  color: var(--emerald);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: var(--emerald);
  color: #ffffff;
  border-bottom: 3px solid var(--gold);
}

.topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--emerald-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--emerald-dark);
}

.container {
  max-width: 920px;
  margin: 28px auto 48px;
  padding: 0 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(11, 79, 58, 0.05);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f2ed;
  color: var(--emerald);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--emerald-dark);
}

.meta {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--muted);
}

h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  color: var(--emerald);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

p,
li {
  font-size: 15px;
  color: var(--text);
}

ul {
  padding-left: 20px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.portal-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
  text-decoration: none;
}

.portal-card h3 {
  margin: 0 0 8px;
  color: var(--emerald-dark);
  font-size: 17px;
}

.portal-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.portal-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
}

.info-box {
  background: #f3f7f5;
  border-left: 4px solid var(--emerald);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}

.danger-box {
  background: var(--danger-bg);
  border: 1px solid #fecdca;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  color: var(--danger);
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-bottom: 6px;
}

input[type="text"],
input[type="tel"],
input[type="password"],
select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5d0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
}

input:focus,
select:focus {
  outline: 2px solid rgba(11, 79, 58, 0.25);
  border-color: var(--emerald);
}

.radio-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.radio-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.radio-card input {
  margin-top: 4px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin: 14px 0 18px;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-banner {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.status-banner.success {
  display: block;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #abefc6;
}

.status-banner.error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecdca;
}

footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
}

[data-lang="bn"] {
  display: none;
}

body.lang-bn [data-lang="en"] {
  display: none;
}

body.lang-bn [data-lang="bn"] {
  display: block;
}

body.lang-bn span[data-lang="bn"] {
  display: inline;
}

body:not(.lang-bn) span[data-lang="en"] {
  display: inline;
}
