/* ========================================
   GameInsight — Game Education Site
   Domain: doasn.com
   Theme: Dark gaming aesthetic
   ======================================== */

/* --- Variables --- */
:root {
  --bg-primary: #070b1e;
  --bg-secondary: #0e1330;
  --bg-card: #141a3a;
  --bg-elevated: #1a2148;
  --accent-cyan: #00d4ff;
  --accent-orange: #ff6b35;
  --accent-purple: #8b5cf6;
  --text-primary: #e8ecf4;
  --text-secondary: #7e89a8;
  --text-muted: #4e5676;
  --border-color: #222b50;
  --border-light: #2a3460;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --font-heading: 'Chakra Petch', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* --- Placeholder Image System --- */
.img-placeholder {
  background: linear-gradient(135deg, #131937 0%, #1a2350 50%, #0f1535 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0, 212, 255, 0.02) 20px,
    rgba(0, 212, 255, 0.02) 40px
  );
}

.img-placeholder:has(img) {
  border: none;
  background: none;
}

.img-placeholder:has(img)::before {
  display: none;
}

.img-placeholder .ph-icon {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.img-placeholder .ph-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}

/* Placeholder sizes */
.ph-hero {
  width: 100%;
  height: 480px;
}

.ph-featured {
  width: 100%;
  height: 320px;
}

.ph-card {
  width: 100%;
  height: 220px;
}

.ph-square {
  width: 100%;
  aspect-ratio: 1;
}

.ph-wide {
  width: 100%;
  height: 400px;
}

.ph-banner {
  width: 100%;
  height: 260px;
}

.ph-gallery {
  width: 100%;
  aspect-ratio: 16/10;
}

.ph-inline {
  width: 100%;
  height: 200px;
}

/* When real image is placed */
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #33dfff;
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-outline {
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 11, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.site-logo img {
  width: 36px;
  height: 36px;
}

.site-logo:hover {
  color: var(--accent-cyan);
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(0, 212, 255, 0.08);
}

.main-nav a[aria-current="page"] {
  color: var(--accent-cyan);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 520px;
}

.hero-image-wrap .img-placeholder {
  border-radius: 0;
  border: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    rgba(7, 11, 30, 0.85) 30%,
    rgba(7, 11, 30, 0.4) 60%,
    rgba(7, 11, 30, 0.6) 100%
  );
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.hero-content {
  padding: 60px 0;
  max-width: 720px;
}

.hero-content h1 {
  margin-bottom: 16px;
}

.hero-content h1 .accent {
  color: var(--accent-cyan);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* --- Category Cards --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card .img-placeholder {
  height: 280px;
  border: none;
  border-radius: var(--radius-lg);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 30, 0.95) 0%, rgba(7, 11, 30, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 2;
}

.category-card-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.category-card-overlay p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Article Cards --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}

.article-card .card-image {
  position: relative;
  overflow: hidden;
}

.article-card .card-image .img-placeholder {
  border-radius: 0;
  border: none;
  border-bottom: 1px dashed var(--border-light);
}

.article-card .card-body {
  padding: 20px 24px 24px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-tag {
  padding: 3px 10px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-card h3 a {
  color: #fff;
}

.article-card h3 a:hover {
  color: var(--accent-cyan);
}

.article-card .card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Featured Article --- */
.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  padding: 0;
}

.featured-article .featured-image {
  height: 100%;
  min-height: 360px;
}

.featured-article .featured-image .img-placeholder {
  height: 100%;
  min-height: 360px;
  border-radius: 0;
  border: none;
}

.featured-article .featured-body {
  padding: 40px 40px 40px 0;
}

.featured-article h2 {
  margin-bottom: 16px;
}

.featured-article p {
  margin-bottom: 20px;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item .img-placeholder {
  border: none;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(7, 11, 30, 0.9), transparent);
  z-index: 2;
}

.gallery-caption h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-secondary);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(0, 212, 255, 0.04);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  color: var(--accent-cyan);
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Info Boxes --- */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
}

.info-box.warning {
  border-left: 4px solid var(--accent-orange);
}

.info-box.info {
  border-left: 4px solid var(--accent-cyan);
}

.info-box.purple {
  border-left: 4px solid var(--accent-purple);
}

.info-box h4 {
  margin-bottom: 12px;
  color: #fff;
}

.info-box p, .info-box li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-box ul {
  padding-left: 20px;
}

.info-box ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.info-box ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* --- Article Page --- */
.article-header {
  margin-top: var(--header-height);
  padding: 60px 0 40px;
}

.article-header .card-tag {
  margin-bottom: 16px;
  display: inline-block;
}

.article-header h1 {
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-hero-img {
  margin-bottom: 40px;
}

.article-hero-img .img-placeholder {
  border: none;
  border-radius: var(--radius-lg);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-body h2 {
  margin: 40px 0 16px;
  font-size: 1.6rem;
}

.article-body h3 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
}

.article-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body ul, .article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-body ul li {
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

.article-body .inline-img {
  margin: 24px 0;
}

/* --- Glossary --- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.glossary-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.glossary-item:hover {
  border-color: var(--border-light);
}

.glossary-item dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.glossary-item dd {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.glossary-item .term-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-header .section-line {
  width: 60px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* --- Notice Banner --- */
.notice-banner {
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-banner .notice-icon {
  flex-shrink: 0;
  color: var(--accent-orange);
  font-size: 1.2rem;
  line-height: 1;
}

.notice-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- About Page --- */
.about-section {
  margin-bottom: 48px;
}

.about-section h2 {
  margin-bottom: 16px;
}

.about-section h3 {
  margin: 24px 0 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.about-card h4 {
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.about-card p {
  font-size: 0.9rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--accent-cyan);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  margin-top: var(--header-height);
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.legal-content h2 {
  margin: 40px 0 16px;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin: 24px 0 12px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: 12px 0 16px;
  padding-left: 24px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-meta {
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- 404 Page --- */
.error-page {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--accent-cyan);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  margin-bottom: 16px;
}

.error-page p {
  margin-bottom: 24px;
  max-width: 480px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- SVG Placeholder Icon --- */
.ph-svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article .featured-body {
    padding: 24px;
  }

  .featured-article .featured-image {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 48px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 30, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 14px 16px;
  }

  .hero-image-wrap {
    height: 400px;
  }

  .hero-content {
    padding: 32px 0;
  }

  .hero-badges {
    flex-direction: column;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .ph-hero {
    height: 320px;
  }

  .ph-featured {
    height: 220px;
  }

  .ph-wide {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero-image-wrap {
    height: 320px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.92rem;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  h1, h2, h3, h4 {
    color: #000;
  }

  p, li, dd {
    color: #333;
  }

  .img-placeholder {
    border: 1px solid #ccc;
    background: #f5f5f5;
  }
}
