/* ================================
   Shared Styles for Sub Pages
   (column, column-article, resources, resource-*, privacy, 404)
   ================================ */

/* Page Hero */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero .section-heading {
  margin-bottom: 16px;
}

.page-hero .section-lead {
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: 100px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
  transition: color 0.2s;
}

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-light);
}

/* Column Grid */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 140px;
}

.column-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-border);
}

.column-card-thumb {
  width: 100%;
  height: 180px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

.column-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.column-card-date {
  font-size: 13px;
  color: var(--text-light);
}

.column-card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 10px;
  border-radius: 9999px;
}

.column-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

.column-card-excerpt {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  flex: 1;
}

.column-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 16px;
  transition: gap 0.2s var(--ease);
}

.column-card:hover .column-card-link {
  gap: 8px;
}

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 48px 0 140px;
}

.article-header {
  margin-bottom: 48px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.article-date {
  font-size: 14px;
  color: var(--text-light);
}

.article-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 10px;
  border-radius: 9999px;
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-bg);
}

.article-body p {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 20px;
}

.article-body strong {
  font-weight: 700;
  color: var(--text);
}

.article-cta {
  margin-top: 64px;
  padding: 48px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.article-cta-text {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.sidebar-article {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.sidebar-article:first-of-type {
  padding-top: 0;
}

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

.sidebar-article-date {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.sidebar-article-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  transition: color 0.2s;
}

.sidebar-article:hover .sidebar-article-title {
  color: var(--accent);
}

.sidebar-cta {
  background: var(--accent-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.sidebar-cta-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.sidebar-cta-text {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 140px;
}

.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-border);
}

.resource-card-thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-bg) 0%, #d1fae5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.resource-card-thumb-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.resource-card-thumb-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.resource-card-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.resource-card-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 24px;
}

.resource-card .btn {
  width: 100%;
  justify-content: center;
}

/* Resource Detail Page */
.resource-detail {
  padding: 40px 0 140px;
}

.resource-detail-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.resource-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.resource-thumb {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--accent-bg) 0%, #d1fae5 50%, #a7f3d0 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.resource-thumb-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
}

.resource-thumb-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.resource-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-gray);
  padding: 8px 16px;
  border-radius: 9999px;
  margin-bottom: 40px;
}

.resource-meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.resource-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-bg);
}

.resource-check-list {
  margin-bottom: 40px;
}

.resource-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  padding: 8px 0;
}

.resource-check-list li svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.resource-usage {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 40px;
}

/* Resource Form (Sticky Right Column) */
.resource-form-wrapper {
  position: sticky;
  top: 96px;
}

.resource-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.resource-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}

.resource-form .form-group {
  margin-bottom: 18px;
}

.resource-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.resource-form label .optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 4px;
}

.resource-form label .required {
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  margin-left: 4px;
}

.resource-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
  background: #fff;
}

.resource-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.resource-form input::placeholder {
  color: var(--text-light);
}

.resource-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.resource-form-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.form-success.active {
  display: block;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.form-success-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-success-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* Modal (resources.html) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-sub);
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 20px;
}

.modal-close:hover {
  background: var(--bg-gray);
  color: var(--text);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.modal-form .form-group {
  margin-bottom: 20px;
}

.modal-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
  background: #fff;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.modal-form input::placeholder {
  color: var(--text-light);
}

.modal-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success.active {
  display: block;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.modal-success-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-success-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* Privacy Policy Page */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 140px;
}

.privacy-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-bg);
}

.privacy-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.privacy-content ul li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  padding: 4px 0 4px 20px;
  position: relative;
}

.privacy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.privacy-update {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-sub);
  text-align: right;
}

/* 404 Page */
.error-page {
  padding: 200px 0 160px;
  text-align: center;
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
}

.error-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.error-text {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 900px) {
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 32px 0 100px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-body h2 {
    font-size: 20px;
  }

  .article-cta {
    padding: 32px 24px;
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .resource-detail-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .resource-form-wrapper {
    position: static;
    order: -1;
  }

  .resource-title {
    font-size: 26px;
  }

  .resource-thumb {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 120px 0 48px;
  }

  .column-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 100px;
  }

  .column-card-thumb {
    height: 160px;
  }

  .breadcrumb {
    padding-top: 84px;
  }

  .article-title {
    font-size: 22px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 100px;
  }

  .modal {
    padding: 28px 24px;
  }

  .resource-detail {
    padding: 28px 0 100px;
  }

  .resource-title {
    font-size: 22px;
  }

  .resource-thumb {
    height: 180px;
  }

  .resource-form-card {
    padding: 24px 20px;
  }

  .privacy-content {
    padding-bottom: 100px;
  }

  .error-page {
    padding: 160px 0 120px;
  }

  .error-code {
    font-size: 80px;
  }
}
