
/* --- TABLE OF CONTENTS --- */
.toc-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 5px solid #0ea5e9;
  border-radius: 10px;
  margin: 32px 40px;
  padding: 24px 28px;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom:4px;
}

.toc-list {
  list-style: decimal;
  padding-left: 20px;
}

.toc-list li {
  margin-bottom:4px;
}

.toc-list a {
  color: #0284c7;
  font-size: 0.93rem;
  font-weight: 500;
}

.toc-list a:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* --- ARTICLE SECTIONS --- */
.article-section {
  padding: 36px 40px;
  border-bottom: 1px solid #e5e7eb;
}

.article-section:last-child {
  border-bottom: none;
}

.article-section h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom:4px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dbeafe;
}

.article-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-top: 20px;
  margin-bottom:4px;
}

.article-section p {
  margin-bottom:4px;
  font-size: 0.97rem;
  color: #374151;
}

.article-section ul,
.article-section ol {
  padding-left: 22px;
  margin-bottom:44px;
}

.article-section li {
  margin-bottom:4px;
  font-size: 0.96rem;
}

/* --- INLINE LINKS --- */
.inline-link {
  color: #2563eb;
  font-weight: 600;
  border-bottom: 1px dotted #93c5fd;
  text-decoration: none;
}

.inline-link:hover {
  color: #1d4ed8;
  border-bottom-style: solid;
  text-decoration: none;
}

/* --- HIGHLIGHT BOX --- */
.highlight-box {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-left: 5px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

.highlight-box p {
  margin: 0;
  font-size: 0.93rem;
  color: #92400e;
}

/* --- COMPARISON TABLE --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  background: #1e3a8a;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.comparison-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.comparison-table tr:nth-child(even) td {
  background: #f8fafc;
}

.comparison-table tr:hover td {
  background: #eff6ff;
}

/* --- SECTION CARDS --- */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-card:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
  border-color: #93c5fd;
}

.section-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom:40px;
  color: #1e40af;
}

.section-card p {
  font-size: 0.87rem;
  margin-bottom:4px;
}

/* --- RESUME SAMPLE --- */
.resume-sample {
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 32px 36px;
  margin: 24px 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

.resume-header-block {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #1e3a8a;
  margin-bottom:40px;
}

.resume-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: -0.5px;
  margin-bottom:4px;
}

.resume-contact {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.8;
}

.resume-section-block {
  margin-bottom:42px;
}

.resume-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1.5px solid #93c5fd;
  padding-bottom: 5px;
  margin-bottom:42px;
}

.resume-job {
  margin-bottom:48px;
}

.job-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom:4px;
}

.job-header strong {
  font-size: 0.97rem;
  color: #1f2937;
}

.remote-tag {
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.job-meta {
  font-size: 0.83rem;
  color: #6b7280;
  margin-bottom:4px;
  font-style: italic;
}

.job-bullets {
  list-style: disc;
  padding-left: 18px;
}

.job-bullets li {
  font-size: 0.88rem;
  margin-bottom:4px;
  color: #374151;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-tag {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.cert-list {
  list-style: disc;
  padding-left: 18px;
}

.cert-list li {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom:4px;
}

.sample-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #166534;
}

/* --- TIPS LIST --- */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.tip-item {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  align-items: flex-start;
  transition: border-color 0.2s ease;
}

.tip-item:hover {
  border-color: #93c5fd;
}

.tip-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: #bfdbfe;
  min-width: 40px;
  line-height: 1;
  padding-top: 2px;
}

.tip-content h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom:4px;
}

.tip-content p {
  font-size: 0.88rem;
  margin-bottom:4px;
  color: #4b5563;
}

/* --- TWO COLUMN SKILLS --- */
.two-col-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}

.skill-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.skill-col h3 {
  font-size: 1rem;
  margin-top: 0;
  color: #1e40af;
  margin-bottom:42px;
}

.skill-col ul {
  padding-left: 18px;
}

.skill-col li {
  font-size: 0.88rem;
  margin-bottom:4px;
  color: #374151;
}

/* --- ATS TIPS GRID --- */
.ats-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.ats-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 16px;
}

.ats-icon {
  font-size: 1.2rem;
  color: #16a34a;
  font-weight: 900;
  min-width: 20px;
  margin-top: 1px;
}

.ats-tip p {
  font-size: 0.87rem;
  margin: 0;
  color: #166534;
}

.ats-tip strong {
  color: #14532d;
  display: block;
  margin-bottom:4px;
}

/* --- MISTAKES LIST --- */
.mistakes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.mistake-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 14px 18px;
}

.mistake-item.bad {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.mistake-icon {
  font-size: 1.2rem;
  font-weight: 900;
  color: #e11d48;
  min-width: 20px;
  margin-top: 2px;
}

.mistake-item strong {
  font-size: 0.95rem;
  color: #881337;
  display: block;
  margin-bottom:4px;
}

.mistake-item p {
  font-size: 0.87rem;
  color: #9f1239;
  margin: 0;
}

/* --- FAQ --- */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.faq-item[open] {
  border-color: #93c5fd;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  color: #1e3a8a;
  background: #f8fafc;
  list-style: none;
  transition: background 0.2s ease;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem;
  color: #2563eb;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-item[open] .faq-question {
  background: #eff6ff;
}

.faq-q-icon {
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.faq-answer {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.faq-answer p {
  font-size: 0.92rem;
  color: #374151;
  margin-bottom:4px;
}

.faq-answer p:last-child {
  margin-bottom:4;
}

/* --- CONCLUSION SECTION --- */
.conclusion-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
}

.conclusion-checklist {
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}

.conclusion-checklist h3 {
  color: #0369a1;
  margin-top: 0;
  margin-bottom:4px;
}

.conclusion-checklist ul {
  list-style: none;
  padding: 0;
}

.conclusion-checklist li {
  font-size: 0.92rem;
  padding: 5px 0;
  color: #1f2937;
  border-bottom: 1px dotted #e2e8f0;
}

.conclusion-checklist li:last-child {
  border-bottom: none;
}


/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 768px) {

  .toc-box,
  .article-section,
  .resume-sample,
  .highlight-box,
  .conclusion-checklist {
    margin: 16px;
    padding: 18px;
  }

  .article-section {
    padding: 24px 16px;
  }

  .article-section h2 {
    font-size: 1.35rem;
  }

  .article-section h3 {
    font-size: 1.05rem;
  }

  .article-section p,
  .article-section li,
  .faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Resume */

  .resume-sample {
    padding: 20px 16px;
  }

  .resume-name {
    font-size: 1.45rem;
  }

  .resume-contact {
    font-size: .8rem;
    word-break: break-word;
    line-height: 1.6;
  }

  .resume-section-title {
    font-size: .95rem;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .job-header strong {
    font-size: .92rem;
  }

  .remote-tag {
    align-self: flex-start;
  }

  /* Cards */

  .section-cards,
  .ats-tips-grid,
  .two-col-skills {
    grid-template-columns: 1fr;
  }

  .tip-item,
  .mistake-item,
  .ats-tip {
    flex-direction: column;
    gap: 10px;
  }

  .tip-number,
  .mistake-icon,
  .ats-icon {
    min-width: auto;
  }

  /* Skills */

  .skills-grid {
    gap: 6px;
  }

  .skill-tag {
    font-size: .75rem;
    padding: 5px 10px;
  }

  /* FAQ */

  .faq-question {
    padding: 14px 16px;
    font-size: .92rem;
  }

  .faq-answer {
    padding: 14px 16px;
  }

  /* Tables */

  .comparison-table {
    min-width: 650px;
  }

  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Lists */

  .toc-list,
  .article-section ul,
  .article-section ol {
    padding-left: 18px;
  }

}


/* =====================================================
   EXTRA SMALL DEVICES
===================================================== */

@media (max-width: 480px) {

  .toc-box,
  .article-section,
  .resume-sample,
  .highlight-box,
  .conclusion-checklist {
    margin: 10px;
    padding: 14px;
  }

  .article-section h2 {
    font-size: 1.2rem;
  }

  .article-section h3 {
    font-size: 1rem;
  }

  .resume-name {
    font-size: 1.25rem;
  }

  .resume-contact {
    font-size: .75rem;
  }

  .skill-tag {
    width: 100%;
    text-align: center;
  }

  .faq-question {
    font-size: .88rem;
  }

  .faq-q-icon {
    font-size: .65rem;
    padding: 3px 8px;
  }

}