/* ========================================
   射出成形金型メンテナンス業界サイト CSS
   Complete Renewal - 2026
   ======================================== */

/* ============ Google Fonts ============ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');

/* ============ CSS Variables ============ */
:root {
  --color-primary: #1b3a5c;
  --color-primary-light: #2a5a8c;
  --color-primary-dark: #0f2640;
  --color-accent: #d4841a;
  --color-accent-light: #e8a040;
  --color-accent-dark: #b06c10;
  --color-steel: #4a6275;
  --color-steel-light: #7a9ab0;
  --color-bg: #f0f2f5;
  --color-bg-warm: #f7f5f2;
  --color-white: #ffffff;
  --color-text: #1e2a36;
  --color-text-secondary: #5a6872;
  --color-border: #d0d7de;
  --color-border-light: #e8ecf0;
  --color-success: #1a8a4a;
  --color-danger: #c0392b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s ease;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
  --max-width: 1280px;
  --header-height: 64px;
}

/* ============ Reset & Base ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--color-primary-light);
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary-dark);
  height: var(--header-height);
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
}

.site-logo a:hover {
  color: var(--color-white);
  opacity: 0.9;
}

.site-logo h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--color-white);
  background: rgba(255,255,255,0.12);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { margin-bottom: 5px; }
.hamburger span:nth-child(2) { margin-bottom: 5px; }

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ============ Hero Section ============ */
.hero-section {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15,38,64,0.3) 0%,
    rgba(15,38,64,0.55) 60%,
    rgba(15,38,64,0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
}

.hero h1,
.hero-content h1 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 0 4px 8px rgba(0,0,0,0.5);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  max-width: 800px;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  font-weight: 500;
  max-width: 600px;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0.75rem 0;
}

.breadcrumb .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.breadcrumb li {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.breadcrumb li a {
  color: var(--color-steel);
}

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

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--color-border);
}

/* ============ Container & Layout ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* 2-column layout (sub-pages) */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* full-width (TOP page) */
.content-layout.full-width {
  grid-template-columns: 1fr;
}

/* ============ Main Content ============ */
.main-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-accent);
  line-height: 1.35;
}

/* Section styling */
.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid var(--color-accent);
  line-height: 1.4;
}

.section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 1.75rem 0 0.75rem;
}

.section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-steel);
  margin: 1.5rem 0 0.6rem;
}

.section p {
  margin-bottom: 1.25rem;
  line-height: 1.9;
  color: var(--color-text);
}

.section ul,
.section ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.75rem;
  list-style: disc;
}

.section ol {
  list-style: decimal;
}

.section li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
}

.section-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* Glossary links */
.glossary-link {
  color: var(--color-primary-light);
  border-bottom: 1px dotted var(--color-primary-light);
}

.glossary-link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============ Sidebar ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.sidebar-section {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
}

.sidebar-section li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
  font-size: 0.9rem;
}

.sidebar-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8rem;
}

.sidebar-section a {
  color: var(--color-text);
}

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

/* Sidebar ad space */
.sidebar-ad,
.ad-space {
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.sidebar-ad img,
.ad-space img {
  margin: 0 auto;
}

.amazon-banner {
  background: linear-gradient(135deg, #f7f3ec, #f0ebe0);
  border: 1px solid #e0d8cc;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.amazon-banner a {
  color: var(--color-primary);
  font-weight: 600;
}

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

/* ============ Top Page Sections ============ */
/* News preview section */
.news-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.news-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.news-preview .news-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.news-preview .news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-title {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.6;
}

.news-link-all {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.news-link-all:hover {
  color: var(--color-accent-dark);
}

/* News grid (older style) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-card-date {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.news-card-content {
  padding: 1.25rem;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.news-card p {
  color: var(--color-text);
  line-height: 1.75;
  font-size: 0.92rem;
}

.news-source {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

/* Service cards grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Latest news list */
.latest-news {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.latest-news h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg);
  margin-bottom: 0.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.news-list li a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
}

.news-list li a:hover {
  color: var(--color-accent);
}

.news-link {
  text-align: center;
  margin-top: 1.25rem;
}

.news-link a {
  font-weight: 600;
  color: var(--color-accent);
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

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

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

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

.footer-bottom p {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

/* ============ Table of Contents (sidebar) ============ */
.toc,
#table-of-contents {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.toc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

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

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.toc a:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}

/* ============ Blog styles ============ */
.blog-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.article-content {
  line-height: 1.9;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  padding: 0.4rem 0 0.4rem 0.75rem;
  border-left: 4px solid var(--color-accent);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.25rem;
  padding-left: 1.75rem;
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.featured-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.related-posts h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.related-posts a {
  color: var(--color-text);
}

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

/* ============ Glossary styles ============ */
.glossary-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.glossary-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: all var(--transition);
}

.glossary-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.glossary-card a {
  color: var(--color-text);
  font-weight: 500;
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
    position: static;
  }

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

  .blog-container .sidebar {
    order: -1;
  }

  .hero h1,
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary-dark);
    padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    box-shadow: -4px 0 12px rgba(0,0,0,0.3);
  }

  .main-nav.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-item a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .hero-section {
    height: 380px;
  }

  .hero h1,
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-content {
    padding-bottom: 2rem;
  }

  .main-content {
    padding: 1.5rem;
  }

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

  .section h2 {
    font-size: 1.3rem;
  }

  .news-section,
  .latest-news {
    padding: 1.5rem;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

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

  .blog-container {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .site-logo h1 {
    font-size: 0.95rem;
  }

  .hero-section {
    height: 320px;
  }

  .hero h1,
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 1.25rem 1rem;
  }

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

  .section h2 {
    font-size: 1.2rem;
  }

  .news-preview .news-item {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============ Mobile overflow fix ============ */
html, body { overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }

@media (max-width: 768px) {
  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  p, li, td, th, span, a {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}
