@font-face {
  font-family: 'Farabee';
  src: url('../fonts/Farabee font/Farabee Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Farabee';
  src: url('../fonts/Farabee font/Farabee Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Farabee';
  src: url('../fonts/Farabee font/Farabee Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --muted: #718096;
  --primary: #6667AB;
  --primary-hover: #5558a0;
  --primary-light: #e8e8f5;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(102, 103, 171, 0.1);
  --shadow-hover: 0 8px 24px rgba(102, 103, 171, 0.18);
  --radius: 16px;
  --maxw: 1120px;
  --textw: min(860px, 92vw);
  --videow: min(640px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Farabee', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img.rounded {
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 60;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header h1 {
  display: none;
}

.header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1px);
}

main {
  display: block;
  min-height: calc(100vh - 200px);
  contain: layout style paint;
}

main > section {
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

main > section:first-child {
  margin-top: 40px;
}

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

h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.hero-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.hero-divider {
  display: none;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-divider {
  display: none;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  will-change: transform;
  content-visibility: auto;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.article-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.05);
}

.article-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.article-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.article-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: auto;
}

.article-card-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-link::after {
  transform: translateX(4px);
}

.faq-section {
  max-width: min(var(--textw), 800px);
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-hover);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-content {
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

.faq-item .faq-content p {
  margin: 12px 0 0 0;
}

.faq-item .faq-content p:first-child {
  margin-top: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: var(--videow);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(102, 103, 171, 0.4);
}

.video-play-btn::before {
  content: '▶';
  margin-left: 4px;
}

.video-play-btn:hover {
  background: var(--primary-hover);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(102, 103, 171, 0.5);
}

.content-section {
  max-width: var(--textw);
  margin: 0 auto;
}

.content-section h2 {
  text-align: left;
  margin-top: 40px;
}

.content-section ul,
.content-section ol {
  padding-left: 24px;
  margin: 16px 0;
}

.content-section li {
  margin: 10px 0;
  color: var(--text-secondary);
}

.content-section strong {
  color: var(--text);
  font-weight: 600;
}

blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 8px;
  color: var(--text-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

table th,
table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table thead th {
  background: var(--bg-secondary);
  color: var(--text);
  font-weight: 600;
}

table tbody tr:hover {
  background: var(--bg-secondary);
}

table tbody tr:last-child td {
  border-bottom: none;
}

footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  text-align: center;
}

footer .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(102, 103, 171, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top::before {
  content: '↑';
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(102, 103, 171, 0.4);
}

article {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

article header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

article header h1 {
  margin-bottom: 16px;
}

article header nav {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

article header nav a {
  color: var(--primary);
  text-decoration: none;
}

article header nav a:hover {
  text-decoration: underline;
}

article header nav .sep {
  color: var(--muted);
  margin: 0 4px;
}

article section {
  margin: 40px 0;
}

article section:first-of-type {
  margin-top: 0;
}

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

@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .hero-image {
    order: -1;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  nav a {
    padding: 8px 14px;
    font-size: 15px;
  }

  main > section {
    margin: 40px auto;
  }

  .hero-section {
    padding: 32px 20px;
  }

  .hero-title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .faq-item summary {
    padding: 16px 20px;
    font-size: 16px;
  }

  .faq-item .faq-content {
    padding: 0 20px 20px 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .article-card-content {
    padding: 20px;
  }
}
