/* =========================================
   NEWS DETAIL PAGE
========================================= */

/* Hero */
.news-detail-hero {
  background: linear-gradient(160deg, #0d1f33 0%, #1a3a5c 60%, #0f2a45 100%);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.news-detail-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin: 12px 0 16px;
  line-height: 1.3;
}
.news-detail-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}
.news-detail-hero .section-label {
  color: var(--accent-light);
}
.news-detail-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(232,160,32,0.1);
  top: -150px; right: -100px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.news-date-lg {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}
.news-cat-lg {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.news-detail-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
}

/* Body Layout */
.news-detail-body { padding: 72px 0 100px; background: #fff; }

.news-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

/* Article */
.news-article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.news-lead {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 8px;
  padding: 24px 28px;
  background: rgba(26,58,92,0.04);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
}
.news-article p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 16px;
}

.news-list-items {
  list-style: none;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-list-items li {
  font-size: 0.9rem;
  color: var(--text-sub);
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}
.news-list-items li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Recruit table */
.recruit-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}
.recruit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.recruit-row:last-child { border-bottom: none; }
.recruit-label {
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(26,58,92,0.04);
  border-right: 1px solid var(--border);
}
.recruit-val {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--text-sub);
}

/* Flow steps */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}
.flow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-gray);
  border-radius: var(--radius);
}
.flow-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  min-width: 36px;
}
.flow-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.flow-text p {
  font-size: 0.825rem;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.6;
}

/* Area grid */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 16px 0;
}
.area-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  position: relative;
}
.area-card.new-area {
  background: rgba(26,58,92,0.05);
  border: 2px solid var(--primary);
}
.area-badge {
  position: absolute;
  top: -10px; right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
}
.area-icon { font-size: 1.5rem; margin-bottom: 8px; }
.area-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.area-card p { font-size: 0.78rem; color: var(--text-sub); line-height: 1.6; margin: 0; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.stat-box {
  background: linear-gradient(160deg, #0d1f33, #1a3a5c);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: #fff;
}
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1.2;
  margin-bottom: 8px;
}
.stat-num span { font-size: 0.9rem; }
.stat-box p { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin: 0; }

/* CTA */
.news-cta {
  margin-top: 56px;
  padding: 40px;
  background: linear-gradient(160deg, #0d1f33, #1a3a5c);
  border-radius: 16px;
  text-align: center;
}
.news-cta p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Sidebar */
.news-sidebar {
  position: sticky;
  top: 100px;
}
.news-sidebar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-news {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.sidebar-news li a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.5;
  transition: color 0.2s;
}
.sidebar-news li a:hover { color: var(--primary); }
.sidebar-news li a span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.btn-back {
  display: inline-block;
  font-size: 0.825rem;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  transition: all 0.2s;
}
.btn-back:hover {
  background: var(--primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .news-container { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
  .area-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .recruit-row { grid-template-columns: 1fr; }
  .recruit-label { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .news-cta { padding: 28px 20px; }
}

/* =========================================
   PAGES (about / service / recruit)
========================================= */
.page-main {
  padding: 80px 0;
  background: #fff;
}
.page-section {
  margin-bottom: 80px;
}
.page-section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* Philosophy card */
.philosophy-card {
  background: linear-gradient(160deg, #0d1f33, #1a3a5c);
  border-radius: 16px;
  padding: 40px 48px;
  margin-bottom: 40px;
}
.philosophy-quote {
  color: #fff;
  font-size: 1.05rem;
  line-height: 2;
  font-weight: 500;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: var(--text-sub); }

/* Map */
.map-container { border-radius: 12px; overflow: hidden; }
.map-address { margin-top: 16px; font-size: 0.9rem; color: var(--text-sub); }

/* Service detail */
.service-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-detail-section.reverse { direction: rtl; }
.service-detail-section.reverse > * { direction: ltr; }
.service-detail-img {
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
}
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-detail-content .section-label {
  margin-bottom: 12px;
  font-size: 0.75rem;
}
.service-detail-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.service-detail-list li {
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-sub);
  position: relative;
}
.service-detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Recruit page */
.recruit-page-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
}
.recruit-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recruit-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,31,51,0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 40px;
}
.recruit-page-hero-overlay h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.4;
}
.recruit-page-hero-overlay p {
  font-size: 1rem;
  opacity: 0.85;
}
.recruit-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.recruit-point-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}
.recruit-point-icon { font-size: 2rem; margin-bottom: 12px; }
.recruit-point-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.recruit-point-card p { font-size: 0.875rem; color: var(--text-sub); line-height: 1.7; }

/* Jobs detail */
.jobs-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.job-detail-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.job-type-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.job-type-badge.full-time { background: #1a3a5c; color: #fff; }
.job-type-badge.part-time { background: var(--accent); color: #fff; }
.job-type-badge.contract { background: #2d6a4f; color: #fff; }
.job-detail-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.job-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.job-table tr { border-bottom: 1px solid var(--border); }
.job-table th {
  padding: 8px 4px;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  width: 80px;
}
.job-table td { padding: 8px 4px; color: var(--text-sub); }

/* Flow steps */
.flow-steps {
  display: flex;
  align-items: center;
  gap: 16px;
}
.flow-step {
  flex: 1;
  background: linear-gradient(160deg, #0d1f33, #1a3a5c);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
}
.flow-step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.flow-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 0.78rem; opacity: 0.75; line-height: 1.5; }
.flow-arrow { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }

/* Entry CTA */
.entry-cta {
  background: linear-gradient(160deg, #0d1f33, #1a3a5c);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}
.entry-cta h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 16px; }
.entry-cta p { opacity: 0.8; margin-bottom: 32px; line-height: 1.8; }

/* Responsive */
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
  .service-detail-section { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-section.reverse { direction: ltr; }
  .jobs-detail-grid { grid-template-columns: 1fr; }
  .recruit-points-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}
