:root {
  --bg: #050908;
  --bg-2: #071312;
  --surface: #0d1a18;
  --surface-2: #112522;
  --surface-3: #152d29;
  --line: rgba(160, 255, 94, 0.18);
  --line-strong: rgba(51, 255, 124, 0.42);
  --text: #f4fff7;
  --muted: #b9c9c1;
  --soft: #7fa096;
  --lime: #a6ff3f;
  --lime-2: #d8ff58;
  --cyan: #36f4d6;
  --gold: #f7d560;
  --danger: #ffcc66;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --radius-lg: 8px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% -5%, rgba(166, 255, 63, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 7%, rgba(54, 244, 214, 0.1), transparent 26rem),
    linear-gradient(180deg, #020504 0%, var(--bg) 36%, #07100e 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans Bengali", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:hover {
  color: var(--lime);
}

button,
input {
  font: inherit;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--lime);
  color: #06100d;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 8, 7, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--container);
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo-link img {
  width: auto;
  max-width: 124px;
  max-height: 42px;
}

.site-wordmark {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: var(--lime);
  text-decoration: none;
}

.brand-subline {
  color: var(--soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

.primary-nav {
  justify-self: center;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 180ms ease, background 180ms ease;
}

.menu a:hover,
.current-menu-item > a {
  background: rgba(166, 255, 63, 0.1);
  color: var(--text);
}

.header-quick-links {
  display: flex;
  gap: 8px;
}

.header-quick-links a {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.header-quick-links a:last-child {
  background: var(--lime);
  color: #07110c;
  border-color: var(--lime);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.site-main {
  min-height: 70vh;
}

.hero,
.authorization-scope-strip,
.quick-icons,
.stats-strip,
.portal-modules,
.article-shell,
.page-hero,
.content-wrap,
.post-grid-wrap {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.portal-hero {
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(44px, 8vw, 92px) 0 42px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(166, 255, 63, 0.08);
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.05rem, 6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-lede,
.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 28px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  color: #06110b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(166, 255, 63, 0.18);
  font-weight: 950;
  text-decoration: none;
}

.secondary-action {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.hero-note {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.94rem;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(166, 255, 63, 0.07), rgba(54, 244, 214, 0.04));
  transform: rotate(-2deg);
}

.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-status-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: 245px;
  padding: 14px 16px;
  background: rgba(5, 13, 11, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-status-card span {
  display: block;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-status-card strong {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.authorization-scope-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  margin-top: -20px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(135deg, rgba(166, 255, 63, 0.08), rgba(54, 244, 214, 0.04));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.authorization-scope-strip .eyebrow {
  margin-bottom: 10px;
}

.authorization-scope-strip h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.16;
}

.authorization-scope-strip p:last-child {
  margin: 0;
  color: var(--muted);
}

.quick-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: rgba(13, 26, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.quick-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.quick-icons span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(166, 255, 63, 0.14);
  color: var(--lime);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.stats-strip div {
  padding: 20px;
  background: linear-gradient(180deg, var(--surface), rgba(13, 26, 24, 0.64));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats-strip strong {
  display: block;
  color: var(--lime);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.portal-modules {
  padding: clamp(58px, 8vw, 96px) 0 20px;
}

.section-heading,
.article-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p,
.article-intro p {
  margin: 0 0 8px;
  color: var(--lime);
  font-weight: 900;
}

.section-heading h2,
.article-intro h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.15;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-card,
.post-card {
  background: linear-gradient(180deg, rgba(21, 45, 41, 0.94), rgba(9, 20, 18, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.portal-card {
  padding: 18px;
}

.portal-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.portal-card h3,
.portal-card h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

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

.article-shell,
.content-wrap,
.post-grid-wrap {
  padding: clamp(36px, 6vw, 76px) 0;
}

.longform-content {
  max-width: 920px;
  color: var(--text);
}

.article-shell .longform-content,
.content-wrap .longform-content {
  padding: clamp(22px, 5vw, 46px);
  background:
    linear-gradient(180deg, rgba(17, 37, 34, 0.92), rgba(5, 10, 9, 0.92)),
    radial-gradient(circle at 0 0, rgba(166, 255, 63, 0.08), transparent 18rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.longform-content > *:first-child {
  margin-top: 0;
}

.longform-content h1,
.longform-content h2,
.longform-content h3 {
  color: var(--text);
  line-height: 1.22;
  letter-spacing: 0;
}

.longform-content h1 {
  font-size: clamp(1.9rem, 5vw, 3.35rem);
}

.longform-content h2 {
  position: relative;
  margin-top: 44px;
  padding-top: 14px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.longform-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.longform-content h3 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.longform-content p,
.longform-content li {
  color: var(--muted);
}

.longform-content a:not(.primary-action):not(.secondary-action) {
  color: var(--lime);
  text-underline-offset: 4px;
}

.longform-content ul,
.longform-content ol {
  padding-left: 1.25rem;
}

.longform-content figure {
  margin: 30px 0;
}

.longform-content figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.longform-content figcaption {
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.88rem;
}

.wp-block-group,
.info-panel {
  padding: 18px;
  background: rgba(166, 255, 63, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wp-block-table {
  display: block;
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 19, 17, 0.84);
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table,
.longform-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.wp-block-table th,
.wp-block-table td,
.longform-content th,
.longform-content td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  white-space: normal;
}

.wp-block-table tr:last-child td,
.longform-content tr:last-child td {
  border-bottom: 0;
}

.wp-block-table th:last-child,
.wp-block-table td:last-child,
.longform-content th:last-child,
.longform-content td:last-child {
  border-right: 0;
}

.wp-block-table th,
.longform-content th {
  color: var(--lime);
  background: rgba(166, 255, 63, 0.08);
  font-weight: 900;
}

.schema-faq,
.wp-block-yoast-faq-block {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.schema-faq-section,
.wp-block-yoast-faq-block .schema-faq-section {
  padding: 18px;
  background: rgba(9, 23, 20, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.schema-faq-question {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.schema-faq-answer {
  margin: 8px 0 0;
}

.page-hero {
  padding: clamp(46px, 8vw, 88px) 0 clamp(28px, 5vw, 48px);
}

.page-hero > div {
  max-width: 920px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(17, 37, 34, 0.94), rgba(5, 10, 9, 0.86)),
    radial-gradient(circle at 80% 0, rgba(166, 255, 63, 0.12), transparent 18rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  overflow: hidden;
}

.post-card-media {
  display: block;
  min-height: 160px;
  background: var(--surface-2);
}

.post-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  padding: 18px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.3;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
}

.post-meta {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
}

.search-form {
  display: flex;
  max-width: 560px;
  gap: 10px;
  margin-top: 24px;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(4, 10, 9, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-form label {
  flex: 1;
}

.search-form button {
  min-height: 48px;
  padding: 10px 16px;
  color: #06110b;
  background: var(--lime);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.site-footer {
  background: #020504;
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.05fr 1.15fr;
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1rem;
}

.footer-grid p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-age {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--lime) !important;
  background: rgba(166, 255, 63, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.footer-contact {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-contact span {
  display: block;
  color: var(--soft);
  font-size: 0.82rem;
}

.footer-contact strong {
  display: block;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.footer-nav .menu {
  display: grid;
  align-items: start;
  gap: 4px;
}

.footer-nav .menu a {
  justify-content: flex-start;
  min-height: 32px;
  padding-left: 0;
}

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 16px 0 24px;
  color: var(--soft);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .primary-action,
  .secondary-action,
  .portal-card,
  .quick-icons a,
  .post-card {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .primary-action:hover,
  .secondary-action:hover,
  .portal-card:hover,
  .quick-icons a:hover,
  .post-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 16px 18px;
    background: rgba(3, 8, 7, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-quick-links a:first-child {
    display: none;
  }

  .portal-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .authorization-scope-strip {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 680px;
  }

  .quick-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-strip,
  .module-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 20px, 1180px);
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 62px;
    gap: 10px;
  }

  .custom-logo-link img {
    max-width: 104px;
    max-height: 36px;
  }

  .brand-subline {
    display: none;
  }

  .header-quick-links a {
    min-height: 34px;
    padding: 5px 9px;
    font-size: 0.82rem;
  }

  .primary-nav {
    top: 62px;
  }

  .portal-hero {
    padding-top: 30px;
    gap: 24px;
  }

  .hero h1,
  .page-hero h1,
  .longform-content h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .primary-action {
    width: 100%;
  }

  .hero-status-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .quick-icons {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .quick-icons a {
    min-width: 130px;
    scroll-snap-align: start;
  }

  .stats-strip,
  .module-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-shell .longform-content,
  .content-wrap .longform-content {
    padding: 18px;
  }

  .page-hero {
    padding-top: 32px;
  }

  .search-form {
    display: grid;
  }
}
