/* style/index.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --site-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-index {
  background-color: var(--site-bg);
  color: var(--text-main);
}

.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Aligns with global body padding, avoiding double spacing */
}

.page-index__video-container {
  position: relative;
  width: 100%; /* Desktop width: Must be 100% to allow max-width to function correctly */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from interfering with link click */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(242, 193, 78, 0.8); /* Using primary color for hint background */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__keyword-intro-section {
  padding: 80px 20px;
  background-color: var(--site-bg);
  color: var(--text-main);
}

.page-index__keyword-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__keyword-intro-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-index__keyword-intro-visual {
  flex: 1;
  min-width: 0;
}

.page-index__keyword-intro-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-index__keyword-intro-content {
  flex: 1;
  min-width: 0;
}

.page-index__keyword-intro-title {
  font-size: clamp(28px, 4vw, 42px); /* Using clamp for H1-like title */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-index__keyword-intro-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-index__keyword-intro-cta {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-index__keyword-intro-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-index__keyword-intro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.page-index__keyword-intro-stat {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__keyword-intro-stat-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 8px;
  line-height: 1;
}

.page-index__keyword-intro-stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}

.page-index__articles-section {
  padding: 60px 20px;
  background: var(--site-bg);
}

.page-index__articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__articles-main-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 40px;
  text-align: left;
}

.page-index__articles-title-small {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-color);
}

.page-index__articles-title-large {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-main);
}

.page-index__category-section {
  margin-bottom: 60px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-index__category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 1;
  min-width: 0;
}

.page-index__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5)); /* Glow effect */
}

.page-index__category-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.page-index__category-read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-index__category-read-more:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}