/* ========================================
   株式会社Goodwill 共通スタイルシート
   ======================================== */

/* ========================================
   リセット＆ベーススタイル
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;  /* 横スクロール防止 */
}

/* 管理バーはユニバーサルセレクタから除外 */
#wpadminbar,
#wpadminbar * {
  max-width: none !important;
}

html {
  overflow-x: hidden;  /* 横スクロール完全防止 */
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;  /* 横スクロール完全防止 */
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   カラー変数
   ======================================== */
:root {
  --ongacha-gradient: linear-gradient(90deg,
    rgba(74, 156, 255, 0.7) 0%,
    rgba(122, 90, 248, 0.7) 50%,
    rgba(255, 102, 196, 0.7) 100%
  );
  --ongacha-blue: rgba(74, 156, 255, 0.7);
  --ongacha-purple: rgba(122, 90, 248, 0.7);
  --ongacha-pink: rgba(255, 102, 196, 0.7);
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
}

/* Override CSS variable for single posts to allow gradient */
body.single-post,
body.single {
  --color-bg-secondary: transparent;
}

/* ========================================
   ヘッダー
   ======================================== */
.l-header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.l-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-header__logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
}

.p-header__nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.p-header__nav a {
  color: #000 !important;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.p-header__nav a:hover {
  color: #555 !important;
}

.p-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ongacha-gradient);
  transition: width 0.3s ease;
}

.p-header__nav a:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--ongacha-gradient);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg,
    rgba(74, 156, 255, 0.85) 0%,
    rgba(122, 90, 248, 0.85) 50%,
    rgba(255, 102, 196, 0.85) 100%
  );
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(122, 90, 248, 0.3);
}

.btn-outline {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 32px;
  border: 2px solid #7A5AF8;
  border-radius: 8px;
  color: #7A5AF8;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #7A5AF8;
  color: #fff;
}

/* ========================================
   共通コンテンツエリア
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  padding: 80px 24px 60px;
  background: var(--color-bg-secondary);
  text-align: center;
}

/* Single post pages: gradient background override */
body.single-post .page-header,
body.single .page-header {
  background: linear-gradient(135deg, rgba(122, 90, 248, 0.1) 0%, rgba(74, 156, 255, 0.1) 50%, rgba(255, 102, 196, 0.1) 100%);
  padding: 100px 24px 80px;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000000;
}

.page-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.content-section {
  padding: 80px 24px;
  background: #ffffff;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #111827;
}

.section-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ========================================
   ボタンスタイル
   ======================================== */
.btn-secondary {
  background: #ffffff;
  color: var(--ongacha-purple);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--ongacha-purple);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(122, 90, 248, 0.05);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--ongacha-blue);
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   テーブルスタイル（会社概要用）
   ======================================== */
.info-table {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  background: #f9fafb;
  padding: 24px;
  font-weight: 600;
  color: #111827;
  border-right: 1px solid rgba(17, 24, 39, 0.1);
}

.info-value {
  padding: 24px;
  color: #6b7280;
}

/* ========================================
   フォームスタイル（お問い合わせ用）
   ======================================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.form-label .required {
  color: #ef4444;
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: #ffffff;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ongacha-blue);
  box-shadow: 0 0 0 3px rgba(48, 149, 173, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  background: var(--ongacha-gradient);
  color: #ffffff;
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(48, 149, 173, 0.3);
}

/* ========================================
   利用規約・プライバシーポリシー用スタイル
   ======================================== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.policy-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #111827;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ongacha-blue);
}

.policy-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #111827;
}

.policy-content p {
  margin-bottom: 16px;
  color: #6b7280;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #6b7280;
}

.policy-content li {
  margin-bottom: 8px;
}

/* ========================================
   フッター
   ======================================== */
.l-footer {
  background: #111827 !important;
  background-color: #111827 !important;
  color: #ffffff !important;
  padding: 60px 24px 32px !important;
}

.footer-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 48px !important;
  margin-bottom: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
}

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

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-company p {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.8;
  margin: 8px 0;
}

.footer-company .company-details {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-company .company-details p {
  margin: 4px 0;
  font-size: 0.8rem;
}

.footer-company .detail-section {
  margin-top: 16px;
}

.footer-company .detail-title {
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
  .p-header__nav ul {
    display: none;
  }

  .page-title {
    font-size: 1.75rem;  /* 2rem → 1.75rem 読みやすさ向上 */
    line-height: 1.3;
  }

  .page-subtitle {
    font-size: 0.95rem;  /* 1rem → 0.95rem */
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .info-label {
    border-right: none;
    border-bottom: 1px solid rgba(17, 24, 39, 0.1);
    padding: 16px;  /* 24px → 16px 省スペース化 */
    font-size: 0.9rem;
  }

  .info-value {
    padding: 16px;  /* 24px → 16px */
    font-size: 0.9rem;
  }

  .content-section {
    padding: 48px 16px;  /* 60px 20px → 48px 16px */
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;  /* 32px → 24px */
  }

  /* フッターフォントサイズ最適化 */
  .l-footer {
    padding: 48px 20px 24px;  /* 60px 24px 32px → 48px 20px 24px */
  }

  .footer-section h3 {
    font-size: 1.1rem;  /* 1.125rem → 1.1rem */
  }

  .footer-section a,
  .footer-company p {
    font-size: 0.95rem;  /* 0.875rem → 0.95rem */
    line-height: 2.0;
  }

  .footer-company .company-details,
  .footer-company .company-details p {
    font-size: 0.875rem;  /* 0.8rem → 0.875rem */
  }

  .footer-section li {
    margin-bottom: 16px;  /* 12px → 16px タップしやすく */
  }

  /* フォントサイズ最適化 */
  .section-title {
    font-size: 1.5rem;  /* 2rem → 1.5rem */
  }

  .section-description {
    font-size: 0.9rem;  /* 1rem → 0.9rem */
    line-height: 1.8;
  }

  .section-text {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  /* タップエリア最適化（最小44px） */
  a, button,
  .btn-primary,
  .btn-outline,
  .btn-secondary,
  .btn-white,
  .form-submit,
  .news-more-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ボタン系のpadding調整 */
  .btn-primary,
  .btn-outline,
  .btn-secondary {
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* ヘッダーナビのリンクもタップしやすく */
  .p-header__nav a {
    padding: 10px 16px;
  }

  /* ニュースカード全体をタップ可能に */
  .news-card {
    cursor: pointer;
  }

  .news-card a {
    display: block;
    min-height: auto;  /* カード全体がリンクの場合 */
  }

  /* 行間最適化（可読性向上） */
  body {
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  p {
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  h1, h2, h3, h4 {
    line-height: 1.4;
    word-break: keep-all;  /* 単語の途中で改行しない */
  }

  .policy-content p,
  .business-item p,
  .content-block p {
    line-height: 2.0;
  }

  .news-detail .news-body p {
    line-height: 2.0;
  }

  /* ボタンをフル幅化（押しやすさUP） */
  .form-submit,
  .btn-primary.cta-button,
  .news-more-link {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  /* フォーム要素の最適化 */
  .form-input,
  .form-textarea {
    padding: 16px;
    font-size: 1rem;
    min-height: 48px;
  }

  .form-textarea {
    min-height: 120px;
  }

  .form-label {
    margin-bottom: 10px;
    font-size: 0.95rem;
  }

  .form-submit {
    padding: 16px;
    font-size: 1rem;
    min-height: 52px;
  }

  /* 会社概要ページ専用の最適化 */
  .page-company .page-header,
  .page-template-page-company .page-header {
    padding: 60px 20px 48px !important;  /* 80px → 60px */
  }

  .page-company .section-title,
  .page-template-page-company .section-title {
    font-size: 1.3rem !important;  /* 1.5rem → 1.3rem */
    margin-top: 48px !important;   /* 80px → 48px */
    margin-bottom: 24px !important;
  }

  /* 最初のセクションタイトルは上余白なし */
  .page-company .content-section > .container > .section-title:first-of-type,
  .page-template-page-company .content-section > .container > .section-title:first-of-type {
    margin-top: 0 !important;
  }

  .info-table {
    margin-bottom: 40px;
  }

  .info-row {
    padding: 12px 0;  /* 行間を広げる */
  }

  .info-label {
    padding: 12px 16px !important;  /* 16px → 12px 16px */
    font-size: 0.85rem !important;  /* 0.9rem → 0.85rem */
    font-weight: 600;
  }

  .info-value {
    padding: 12px 16px !important;  /* 16px → 12px 16px */
    font-size: 0.9rem !important;
    line-height: 1.6;
  }

  /* CTAセクションのスマホ最適化 */
  .page-company section[style*="background: var(--ongacha-gradient)"],
  .page-template-page-company section[style*="background: var(--ongacha-gradient)"] {
    padding: 48px 20px !important;
  }

  .page-company section[style*="background: var(--ongacha-gradient)"] h2,
  .page-template-page-company section[style*="background: var(--ongacha-gradient)"] h2 {
    font-size: 1.5rem !important;  /* 2rem → 1.5rem */
  }

  .page-company section[style*="background: var(--ongacha-gradient)"] p,
  .page-template-page-company section[style*="background: var(--ongacha-gradient)"] p {
    font-size: 0.95rem !important;  /* 1.125rem → 0.95rem */
  }
}

/* ========================================
   事業内容ページ用スタイル
   ======================================== */
.page-hero {
  background: linear-gradient(
    90deg,
    rgba(122, 90, 248, 0.25) 0%,
    rgba(74, 156, 255, 0.25) 50%,
    rgba(255, 102, 196, 0.25) 100%
  );
  text-align: center;
  padding: 80px 20px;
  color: #111827;
  font-weight: 700;
}

.business-content {
  max-width: 1080px;
  margin: 80px auto;
  padding: 0 24px;
}

.business-content h2 {
  background: rgba(122, 90, 248, 0.08);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 40px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}

.business-item {
  margin-bottom: 60px;
}

.business-item h3 {
  border-left: 4px solid rgba(122, 90, 248, 0.6);
  padding-left: 12px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

.business-item p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 10px;
}

.business-item ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.business-item li {
  list-style: disc;
  margin-bottom: 6px;
  color: #374151;
}

/* ========================================
   コンテンツブロック（事業内容・会社概要共通）
   ======================================== */
.content-block {
  margin-bottom: 60px;
}

.content-block h2,
.content-block h3 {
  border-left: 4px solid rgba(122, 90, 248, 0.6);
  padding-left: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #111827;
}

.content-block h2 {
  font-size: 1.6rem;
}

.content-block h3 {
  font-size: 1.4rem;
}

.content-block p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-block ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.content-block li {
  list-style: disc;
  margin-bottom: 8px;
  color: #374151;
  line-height: 1.8;
}

/* ========================================
   お知らせセクション（静的3件表示）
   ======================================== */
.news-section {
  padding: 100px 0;
  text-align: center;
  background: #fff;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 50px;
}

.news-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.news-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  width: 300px;
  text-align: left;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-date {
  color: #4A9CFF;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.news-title {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-title a {
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.news-title a:hover {
  color: #7A5AF8;
}

.news-desc {
  color: #374151;
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.6;
}

.news-more {
  margin-top: 30px;
}

.news-more-link {
  display: inline-block;
  color: #fff;
  background: var(--ongacha-gradient);
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, opacity 0.3s ease;
  border: none;
}

.news-more-link:hover {
  background: linear-gradient(90deg,
    rgba(74, 156, 255, 0.85) 0%,
    rgba(122, 90, 248, 0.85) 50%,
    rgba(255, 102, 196, 0.85) 100%
  );
  opacity: 1;
}

@media (max-width: 768px) {
  .news-section {
    padding: 60px 16px;  /* 80px 20px → 60px 16px */
  }

  .news-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;  /* 24px → 16px 省スペース化 */
  }

  .news-item {
    width: 100%;
    max-width: 100%;  /* 340px → 100% 画面活用率UP */
    padding: 20px;    /* 24px → 20px */
  }

  .news-date {
    font-size: 0.8rem;  /* 0.9rem → 0.8rem */
    margin-bottom: 6px;
  }

  .news-title {
    font-size: 1rem;     /* 1.1rem → 1rem */
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .news-desc {
    font-size: 0.85rem;  /* 0.9rem → 0.85rem */
    line-height: 1.6;
  }
}

/* ========================================
   共通セクションブロック（企業理念・会社概要・事業内容）
   ======================================== */
.section-block {
  background: #fff;
  padding: 100px 0;
}

.section-block .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 80px;
  flex-wrap: wrap;
  padding: 0 48px;
}

.section-block .text-area {
  flex: 1.1;
  min-width: 340px;
  text-align: left;
}

.section-block .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  text-align: left;
}

.section-block .section-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, #7A5AF8 0%, #4A9CFF 50%, #FF66C4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  text-align: left;
}

.section-block .section-text {
  font-size: 1rem;
  color: #444;
  line-height: 2.0;
  letter-spacing: 0.02em;
  margin-bottom: 1.4em;
  text-align: left;
}

/* 段落間の余白を広めにする */
.section-block .section-text p {
  margin-bottom: 1.4em;
}

/* セクション内の段落をビジュアル的にブロック化 */
.section-block .section-text p:not(:last-child) {
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 各段落に自然な余白を追加 */
.section-block .section-text p + p {
  margin-top: 1.2em;
}

.section-block .image-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-block .image-placeholder {
  width: 100%;
  max-width: 480px;
  height: 300px;
  border-radius: 16px;
  background: linear-gradient(135deg,
    rgba(74, 156, 255, 0.1) 0%,
    rgba(122, 90, 248, 0.1) 50%,
    rgba(255, 102, 196, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  text-align: center;
  font-size: 0.9rem;
}

/* ワイド画面での余白調整 */
@media (min-width: 1200px) {
  .section-block .section-inner {
    padding: 0 64px;
  }
}

/* スマホ・タブレット対応 */
@media (max-width: 768px) {
  .section-block .section-inner {
    flex-direction: column;
    max-width: 100%;
    padding: 0 24px;
    gap: 40px;
  }

  .section-block .text-area {
    text-align: center;
  }

  .section-block .section-title,
  .section-block .section-subtitle,
  .section-block .section-text {
    text-align: center;
  }

  /* 小さめ画面では段落余白を減らして整える */
  .section-block .section-text {
    line-height: 1.9;
  }

  .section-block .section-text p {
    margin-bottom: 1.1em;
  }

  .section-block .image-placeholder {
    max-width: 320px;
    height: 220px;
  }
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ========================================
   News Detail Pages (from open.html)
   ======================================== */

/* Page Header with Gradient */
.page-header.gradient {
  background: linear-gradient(135deg,
    rgba(122, 90, 248, 0.1) 0%,
    rgba(74, 156, 255, 0.1) 50%,
    rgba(255, 102, 196, 0.1) 100%
  );
  padding: 80px 24px 60px;
  text-align: center;
}

.page-header .container {
  max-width: 1080px;
}

/* News Detail */
.news-detail {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}

.news-detail .news-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 24px 0;
}

.news-detail .news-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 32px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.news-detail .news-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 48px;
}

.news-detail .news-body p {
  margin: 0 0 1.5em 0;
}

.news-detail .news-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111827;
  margin: 2em 0 1em 0;
  line-height: 1.6;
}

.news-detail .news-body ul {
  margin: 1.5em 0;
  padding-left: 2em;
  line-height: 1.8;
}

.news-detail .news-body li {
  margin-bottom: 1em;
}

.news-detail .news-body strong {
  font-weight: 600;
  color: #111827;
}

.btn-link {
  display: inline-block;
  color: #7A5AF8;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border: 2px solid #7A5AF8;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-link:hover {
  background: #7A5AF8;
  color: #ffffff;
}

/* Responsive for News Detail */
@media (max-width: 768px) {
  .page-header.gradient {
    padding: 48px 16px;  /* 60px 20px → 48px 16px */
  }

  .page-header .page-title {
    font-size: 1.75rem;  /* 2rem → 1.75rem */
  }

  .news-detail {
    margin: 32px auto;  /* 40px → 32px */
    padding: 0 16px;
  }

  .news-detail .news-title {
    font-size: 1.3rem;  /* 1.4rem → 1.3rem */
  }

  .news-detail .news-meta {
    font-size: 0.85rem;  /* 0.9rem → 0.85rem */
  }

  .news-detail .news-body {
    font-size: 0.95rem;  /* 1rem → 0.95rem */
  }

  .news-detail .news-body h3 {
    font-size: 1.2rem;  /* 1.3rem → 1.2rem */
  }
}
