/* ==========================================================================
   BLOG & SINGLE POST STYLES
   ========================================================================== */

/* Blog Index / Cards Grid */
.blog-section {
  padding: 60px 0 90px;
  background-color: var(--bg-light, #f8fafc);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 30px;
}

.blog-card {
  background: var(--white, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(27, 42, 107, 0.12);
}

.blog-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #1e293b;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #2b2b9b, #1b2a6b);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.blog-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.blog-meta-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 12px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--primary, #2b2b9b);
}

.blog-card-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary, #2b2b9b);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.btn-read-more:hover {
  color: var(--accent-gold, #cda250);
  gap: 12px;
}

/* Single Post Layout */
.single-post-section {
  padding: 50px 0 80px;
  background: #ffffff;
}

.post-container {
  max-width: 900px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 35px;
}

.post-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 16px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
}

.post-meta-bar svg {
  width: 16px;
  height: 16px;
  color: var(--primary, #2b2b9b);
}

.editorial-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.editorial-policy-link svg {
  width: 15px;
  height: 15px;
  color: #0284c7;
  transition: color 0.25s ease;
}

.editorial-policy-link:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.editorial-policy-link:hover svg {
  color: #ffffff;
}

.post-featured-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Post Content Styling */
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: var(--primary, #2b2b9b);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: var(--accent-gold, #cda250);
}

.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 30px 0 12px;
}

/* Table of Contents */
.toc-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary, #2b2b9b);
  border-radius: 8px 12px 12px 8px;
  padding: 24px 28px;
  margin: 30px 0 35px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.toc-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.toc-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary, #2b2b9b);
  font-weight: bold;
}

.toc-list li a {
  color: #475569;
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}

.toc-list li a:hover {
  color: var(--primary, #2b2b9b);
  text-decoration: underline;
}

/* Post Tables */
.post-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.post-table th {
  background: linear-gradient(135deg, #1b2a6b, #2b2b9b);
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
}

.post-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  background: #ffffff;
}

.post-table tr:last-child td {
  border-bottom: none;
}

.post-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Callout Box / Key Takeaway */
.callout-box {
  background: linear-gradient(135deg, rgba(43, 43, 155, 0.05), rgba(205, 162, 80, 0.08));
  border-left: 4px solid var(--accent-gold, #cda250);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
}

.callout-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 15px;
  color: #334155;
}

/* Bullet list in article */
.post-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 25px;
}

.post-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.post-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 800;
  font-size: 16px;
}

/* Q&A / FAQ style in blog post */
.blog-qa-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.blog-qa-item strong.question {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.blog-qa-item p {
  margin-bottom: 0;
  font-size: 14.5px;
  color: #475569;
}

/* Post FAQ Accordion */
.post-content .faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 35px;
}

.post-content .faq-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-content .faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.post-content .faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.post-content .faq-question:hover {
  background: rgba(27, 42, 107, 0.03);
  color: var(--primary, #1b2a6b);
}

.post-content .faq-icon {
  width: 28px;
  height: 28px;
  background: var(--primary, #1b2a6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.post-content .faq-icon svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.post-content .faq-item.active .faq-icon {
  background: var(--accent-gold, #cda250);
}

.post-content .faq-item.active .faq-icon svg {
  transform: rotate(45deg);
}

.post-content .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.post-content .faq-item.active .faq-answer {
  max-height: 500px;
}

.post-content .faq-answer p {
  padding: 0 24px 20px;
  color: #475569;
  line-height: 1.8;
  font-size: 14.5px;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .post-content h2 {
    font-size: 20px;
  }

  .post-meta-bar {
    font-size: 12.5px;
    gap: 12px;
  }
}

/* ==========================================================================
   EDITORIAL POLICY PAGE STYLES
   ========================================================================== */
.editorial-hero {
  background: linear-gradient(135deg, #0a1128 0%, #152259 50%, #1b2a6b 100%);
  color: #ffffff;
  padding: 60px 0 90px;
  text-align: center;
  position: relative;
}

.editorial-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.editorial-hero .breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.editorial-hero .breadcrumb a:hover {
  color: var(--accent-gold, #cda250);
}

.editorial-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(205, 162, 80, 0.15);
  border: 1px solid rgba(205, 162, 80, 0.4);
  color: #f6d28b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.editorial-hero h1 {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  margin-bottom: 20px;
  color: #ffffff;
}

.editorial-meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.editorial-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.editorial-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold, #cda250);
}

.editorial-main-section {
  padding: 0 0 80px;
  background: #f8fafc;
}

.editorial-card {
  max-width: 980px;
  margin: -45px auto 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 55px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 2;
}

.editorial-highlight-box {
  background: #f8fafc;
  border-left: 4px solid var(--accent-gold, #cda250);
  border-radius: 8px 12px 12px 8px;
  padding: 24px 28px;
  margin-bottom: 35px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #334155;
}

.editorial-lead {
  font-size: 15.5px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 35px;
}

.editorial-section {
  margin-bottom: 35px;
}

.editorial-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.editorial-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 16px;
}

.editorial-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.editorial-checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

.editorial-checklist li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--primary, #1b2a6b);
  font-size: 20px;
  line-height: 1;
  top: -2px;
}

.editorial-checklist strong {
  color: #0f172a;
}

.editorial-contact-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 24px 30px;
  margin-top: 40px;
  border: 1px solid #e2e8f0;
}

.editorial-contact-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.editorial-contact-box p {
  font-size: 14.5px;
  color: #475569;
  margin-bottom: 12px;
}

.editorial-contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.editorial-contact-details a {
  color: var(--primary, #1b2a6b);
  text-decoration: none;
}

.editorial-contact-details a:hover {
  color: var(--accent-gold, #cda250);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .editorial-hero h1 {
    font-size: 28px;
  }

  .editorial-card {
    padding: 30px 22px;
    margin-top: -30px;
    border-radius: 14px;
  }

  .editorial-meta-pills {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .editorial-contact-details {
    flex-direction: column;
    gap: 8px;
  }
}

