/* Tiranga Game – theme from logo: black, white, light blue #66CCFF, yellow #FFFF00 */
:root {
  --bg: #000000;
  --bg-soft: #0d0d0d;
  --card: #141414;
  --surface: #1a1a1a;
  --text: #ffffff;
  --muted: #b0b0b0;
  --accent: #66CCFF;
  --accent-2: #FFFF00;
  --max: 1160px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --topbar-height: 72px;
  --topbar-padding: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  padding-top: calc(var(--topbar-padding) + var(--topbar-height));
}

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

a:hover {
  color: var(--accent-2);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  vertical-align: middle;
}

/* Skip link - accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Focus visible - accessibility & best practices */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header – fixed on scroll, padding from top (no margin) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: var(--topbar-padding);
  z-index: 100;
  border-bottom: 1px solid rgba(102, 204, 255, 0.2);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 200px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.menu a:hover,
.menu a.active {
  background: rgba(102, 204, 255, 0.15);
  color: var(--accent);
  border-color: rgba(102, 204, 255, 0.3);
}

.actions {
  display: flex;
  gap: 8px;
}

/* Hamburger toggle - hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(102, 204, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4db8e8);
  color: var(--bg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7dd4ff, var(--accent));
}

.btn-ghost {
  border: 1px solid rgba(102, 204, 255, 0.5);
  color: var(--accent);
  background: transparent;
}

/* Hero – text one side, image other side */
.hero {
  padding: 32px 0 48px;
}

.hero-inner {
  width: min(92%, var(--max));
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-text {
  order: 1;
}

.hero-title {
  font-size: 2.25rem;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.hero-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.hero-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 3;
  min-height: 200px;
  order: 2;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Download page – app preview */
.download-app-preview {
  padding: 24px 0 40px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.download-preview-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.download-preview-desc {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.download-app-visual {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.download-app-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.download-cta-wrap {
  text-align: center;
}

.btn-download-cta {
  display: inline-block;
}

/* Login page – app preview */
.login-app-preview {
  padding: 24px 0 40px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

/* Two-column: left = app image, right = How to Login + Forgot Password */
.login-two-col .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.login-col-left {
  position: sticky;
  top: calc(var(--topbar-padding) + var(--topbar-height) + 16px);
}

.login-preview-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.login-two-col .login-preview-title {
  text-align: center;
}

.login-preview-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.login-two-col .login-preview-desc {
  text-align: center;
  max-width: 100%;
}

.login-app-visual {
  text-align: center;
  margin: 0 0 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.login-app-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.login-cta-wrap {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.login-col-right {
  padding-top: 0;
}

.login-steps-block {
  margin-bottom: 28px;
}

.login-steps-block:last-child {
  margin-bottom: 0;
}

.login-steps-block h2 {
  margin-top: 0;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.login-steps-block p,
.login-steps-block li {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.login-steps-block ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

/* Register page – same two-col layout as login */
.register-app-preview {
  padding: 24px 0 40px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.register-two-col .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.register-col-left {
  position: sticky;
  top: calc(var(--topbar-padding) + var(--topbar-height) + 16px);
}

.register-preview-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.register-two-col .register-preview-title {
  text-align: center;
}

.register-preview-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.register-two-col .register-preview-desc {
  text-align: center;
  max-width: 100%;
}

.register-app-visual {
  text-align: center;
  margin: 0 0 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.register-app-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.register-cta-wrap {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.register-col-right {
  padding-top: 0;
}

.register-steps-block {
  margin-bottom: 28px;
}

.register-steps-block:last-child {
  margin-bottom: 0;
}

.register-steps-block h2 {
  margin-top: 0;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.register-steps-block p,
.register-steps-block li {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.register-steps-block ol,
.register-steps-block ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

/* Gift Code page – banner */
.gift-code-banner {
  padding: 24px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.gift-code-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.gift-code-banner-inner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Invite Code page – banner */
.invite-code-banner {
  padding: 24px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.invite-code-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.invite-code-banner-inner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Customer Care page – banner */
.customer-care-banner {
  padding: 24px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.customer-care-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.customer-care-banner-inner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Game Teacher page – banner */
.game-teacher-banner {
  padding: 24px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.game-teacher-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.game-teacher-banner-inner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Download page – top banner (Tiranga Game Register / Download Now) */
.download-banner {
  padding: 24px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.download-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.download-banner-inner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Sections */
.section {
  padding: 24px 0 48px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; margin-top: 24px; }
h3 { font-size: 1.2rem; margin-top: 18px; }

.page-content p,
.page-content li,
.card p,
.section p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-content ul,
.page-content ol {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.page-content {
  padding: 16px 0 48px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.panel {
  background: var(--card);
  border: 1px solid rgba(102, 204, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 20px;
}

.page-hero {
  padding: 32px 0 16px;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

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

/* Forms */
.form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(102, 204, 255, 0.25);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(102, 204, 255, 0.15);
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
}

.table th {
  color: var(--accent);
  font-weight: 600;
}

/* Notice */
.notice {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--accent-2);
  background: rgba(255, 255, 0, 0.08);
  border: 1px solid rgba(255, 255, 0, 0.25);
}

/* Blog pages */
.blog-subtitle {
  color: var(--muted);
  margin: 0 0 16px;
}

.blog-status {
  color: var(--muted);
  margin: 12px 0;
}

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

.blog-post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(102, 204, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
}

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

.blog-post-body {
  padding: 14px;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-post-card__excerpt {
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-post-card__readmore {
  color: var(--accent);
  font-weight: 600;
}

.blog-pagination {
  margin-top: 18px;
}

.pager-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pager-btn {
  padding: 8px 14px;
  border: 1px solid rgba(102, 204, 255, 0.4);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.blog-detail-hero img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.blog-sidebar-item {
  list-style: none;
  margin-bottom: 10px;
}

.blog-sidebar-item__link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  color: var(--text);
}

.blog-sidebar-item__thumb {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.blog-sidebar-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-sidebar-item__title {
  display: block;
  font-size: 0.95rem;
}

.blog-sidebar-item__date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(102, 204, 255, 0.2);
  background: var(--bg-soft);
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 32px 0;
}

.footer h4 {
  margin-bottom: 12px;
  color: var(--text);
}

.footer p,
.footer li {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Pages section: 2 columns */
.footer-grid section:nth-child(2) ul {
  columns: 2;
  column-gap: 24px;
}

.footer-grid section:nth-child(2) li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent);
}

.copyright {
  border-top: 1px solid rgba(102, 204, 255, 0.1);
  text-align: center;
  color: var(--muted);
  padding: 14px 0 18px;
  font-size: 0.9rem;
}

/* Content links in body */
.page-content a {
  color: var(--accent);
}

.page-content a:hover {
  color: var(--accent-2);
}

/* ========== RESPONSIVE ========== */

/* Tablet and below */
@media (max-width: 980px) {
  .content-grid,
  .footer-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .content-grid {
    gap: 24px;
  }

  .actions {
    display: none;
  }

  .menu {
    justify-content: center;
  }

  .footer-grid {
    gap: 28px;
    padding: 28px 0;
  }

  .section {
    padding: 22px 0 40px;
  }

  .card {
    padding: 18px;
  }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; margin-top: 20px; }
  h3 { font-size: 1.15rem; margin-top: 16px; }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 68px;
  }

  .topbar {
    margin-top: 0;
    padding-top: 12px;
  }

  .container {
    width: min(94%, var(--max));
    padding-left: 14px;
    padding-right: 14px;
  }

  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }

  .brand img {
    width: 140px;
    max-height: 40px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 0;
    width: 100%;
  }

  .brand {
    flex-shrink: 0;
    order: 1;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .menu {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    padding: 12px 0 0;
    border-top: 1px solid rgba(102, 204, 255, 0.15);
    margin-top: 12px;
    gap: 4px;
  }

  .nav .actions {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    margin-top: 8px;
    padding-top: 8px;
    gap: 8px;
  }

  .nav.nav-open .menu,
  .nav.nav-open .actions {
    display: flex;
  }

  .menu a {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    font-size: 0.95rem;
    border-radius: 8px;
    min-height: 44px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
  }

  .nav .actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 20px 0 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(94%, var(--max));
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-banner {
    aspect-ratio: 16 / 10;
    min-height: 200px;
    max-height: 280px;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .download-app-preview {
    padding: 20px 0 32px;
  }

  .download-preview-title {
    font-size: 1.35rem;
  }

  .download-preview-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 0 8px;
  }

  .download-app-visual {
    max-width: 280px;
    margin-bottom: 20px;
  }

  .download-app-visual img {
    border-radius: 20px;
  }

  .login-app-preview {
    padding: 20px 0 32px;
  }

  .login-two-col .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .login-col-left {
    position: static;
  }

  .login-preview-title {
    font-size: 1.35rem;
  }

  .login-preview-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 0 8px;
  }

  .login-app-visual {
    max-width: 280px;
    margin-bottom: 20px;
  }

  .login-app-visual img {
    border-radius: 20px;
  }

  .login-steps-block h2 {
    font-size: 1.25rem;
  }

  .register-app-preview {
    padding: 20px 0 32px;
  }

  .register-two-col .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .register-col-left {
    position: static;
  }

  .register-preview-title {
    font-size: 1.35rem;
  }

  .register-preview-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .register-app-visual {
    max-width: 280px;
    margin-bottom: 20px;
  }

  .register-app-visual img {
    border-radius: 20px;
  }

  .register-steps-block h2 {
    font-size: 1.25rem;
  }

  .gift-code-banner {
    padding: 20px 0 28px;
  }

  .gift-code-banner-inner {
    max-width: 100%;
  }

  .invite-code-banner {
    padding: 20px 0 28px;
  }

  .invite-code-banner-inner {
    max-width: 100%;
  }

  .customer-care-banner {
    padding: 20px 0 28px;
  }

  .customer-care-banner-inner {
    max-width: 100%;
  }

  .game-teacher-banner {
    padding: 20px 0 28px;
  }

  .game-teacher-banner-inner {
    max-width: 100%;
  }

  .download-banner {
    padding: 20px 0 28px;
  }

  .download-banner-inner {
    max-width: 100%;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .hero-features {
    margin-bottom: 18px;
    text-align: left;
    display: inline-block;
  }

  .hero-features li {
    font-size: 0.9rem;
  }

  .page-hero {
    padding: 24px 0 12px;
  }

  .page-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .page-content {
    padding: 12px 0 36px;
    font-size: 0.95rem;
  }

  .page-content p,
  .page-content li {
    margin-bottom: 10px;
  }

  .page-content ul,
  .page-content ol {
    padding-left: 1.2em;
    margin-bottom: 14px;
  }

  .section {
    padding: 18px 0 32px;
  }

  .card {
    padding: 16px;
  }

  .footer-grid {
    padding: 24px 0;
    gap: 24px;
  }

  .footer h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer p,
  .footer li {
    font-size: 0.9rem;
  }

  .copyright {
    padding: 12px 0 14px;
    font-size: 0.85rem;
  }

  .footer-grid section:nth-child(2) ul {
    column-gap: 20px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.95rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; margin-top: 18px; }
  h3 { font-size: 1.1rem; margin-top: 14px; }

  input,
  textarea,
  select {
    padding: 12px 14px;
    font-size: 16px; /* prevents zoom on focus in iOS */
    min-height: 44px;
  }

  textarea {
    min-height: 100px;
  }

  .table th,
  .table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .notice {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Small phones */
@media (max-width: 560px) {
  .container {
    width: 96%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
  }

  .nav .actions {
    width: 100%;
  }

  .nav .actions .btn {
    width: 100%;
  }

  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .brand img {
    width: 140px;
    max-height: 40px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-banner {
    aspect-ratio: 3 / 2;
    min-height: 180px;
    max-height: 240px;
  }

  .download-app-visual {
    max-width: 260px;
  }

  .download-preview-title {
    font-size: 1.25rem;
  }

  .login-app-visual {
    max-width: 260px;
  }

  .login-preview-title {
    font-size: 1.25rem;
  }

  .register-app-visual {
    max-width: 260px;
  }

  .register-preview-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .footer-grid section:nth-child(2) ul {
    columns: 1;
  }

  .copyright {
    font-size: 0.8rem;
    padding: 10px 0 12px;
  }

  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; margin-top: 16px; }
  h3 { font-size: 1.05rem; margin-top: 12px; }
}

/* Extra small */
@media (max-width: 380px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand img {
    width: 100px;
    max-height: 32px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .page-title {
    font-size: 1.15rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-banner {
    min-height: 160px;
    max-height: 200px;
  }
}
