/*
Theme Name: JobJalebi
Theme URI: https://jobjalebi.com
Author: JobJalebi.com
Version: 2.1
Description: Colorful Job Portal – Fully Responsive (4‑col buttons, 2‑col boxes on mobile)
*/

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
}
h1, h2, h3, h4 {
  margin-top: 0.5em;
  margin-bottom: 0.3em;
  line-height: 1.3;
}
a {
  color: #1d4ed8;
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: #e11d48;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header (same as before – no change) */
.main-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-bottom: 1px solid #e2e8f0;
}
.header-row-1 {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fef9c3;
  
}
.header-col-logo {
  flex: 2;
}
.header-col-logo .site-title {
  font-size: 1.3rem;
}
.custom-logo {
  max-width: 280px;
  height: auto;
}
.header-col-search {
  flex: 0 0 auto;
}
.header-col-menu-icon {
  flex: 0 0 auto;
}
.search-icon-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
}
.hamburger {
  background: none;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.secondary-menu-horizontal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 5px 0;
}
.secondary-menu-horizontal a {
  padding: 5px 8px;
  background: #f1f5f9;
  border-radius: 30px;
  font-size: 0.9rem;
}
.primary-menu-hidden {
  display: none;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.primary-menu-hidden.show {
  display: block;
}
.primary-menu-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
}

/* Job Top Bar */
.job-top-bar {
  background: #1e40af;
  color: #fff;
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}
.job-top-bar a.job-btn {
  background: #fff;
  color: #1e40af;
  padding: 6px 18px;
  border-radius: 40px;
  font-weight: 700;
}
.job-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 8px;
}

/* News Ticker */
.news-ticker {
  background: #fef9c3;
  padding: 3px 0;
  overflow: hidden;
}
.ticker {
  display: inline-block;
  animation: ticker 80s linear infinite;
  white-space: nowrap;
}
.ticker a {
  margin-right: 40px;
  color: #b45309;
  font-weight: 500;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Hero Section */
/* ===== HERO SECTION - MOBILE FIX (FULL WIDTH & NO CROP) ===== */
.hero-section {
  position: relative;
  background: #0b3b5f;
  border-radius: 0 0 30px 30px;
  margin-bottom: 5px;
  min-height: 280px;  /* mobile ke liye default height */
  overflow: hidden;
}
.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* image cover karega poore area ko, cut nahi hoga */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
}

/* Mobile ke liye height adjust */
@media (max-width: 768px) {
  .hero-section {
    min-height: 320px;  /* thoda height badha diya taaki text overlap na ho */
  }
  .hero-section h1 {
    font-size: 1.3rem;
  }
  .hero-section p {
    font-size: 0.85rem;
  }
  .hero-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .hero-section {
    min-height: 200px;
  }
}
.hero-section h1 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-shadow: 1px 1px 3px black;
}
.hero-section p {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.hero-btn {
  background: #fff;
  color: #0b3b5f;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 800;
  margin: 4px 6px;
  display: inline-block;
  font-size: 0.9rem;
}
.hero-btn.job-alert {
  background: #ffd700;
  color: #333;
}

/* ========== CATEGORY BUTTONS – 4 COLUMN ON ALL SCREENS ========== */
.category-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.cat-btn-box {
  background: #fff;
  text-align: center;
  padding: 10px 4px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #1f2937;
  border: 1px solid #e2e8f0;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  line-height: 1.3;
}
.cat-btn-box:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
}

/* ========== MOBILE : KEEP 4 COLUMN BUTTONS, BUT REDUCE PADDING ========== */
@media (max-width: 640px) {
  .category-buttons-grid {
    gap: 8px;
  }
  .cat-btn-box {
    font-size: 0.7rem;
    padding: 8px 3px;
  }
}
@media (max-width: 480px) {
  .category-buttons-grid {
    gap: 6px;
  }
  .cat-btn-box {
    font-size: 0.65rem;
    padding: 6px 2px;
  }
}

/* ========== CATEGORY BOXES – 3 COLUMN DESKTOP, 2 COLUMN TABLET/MOBILE ========== */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.category-box {
  border-radius: 24px;
  padding: 16px;
  transition: 0.25s;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
}
.category-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px -10px rgba(0,0,0,0.15);
}

/* Box Colors – same 12 categories */
.cat-color-govt-jobs { background: linear-gradient(145deg, #fff7ed, #ffedd5); border-bottom: 3px solid #e67e22; }
.cat-color-private-jobs { background: linear-gradient(145deg, #eff6ff, #dbeafe); border-bottom: 3px solid #3b82f6; }
.cat-color-results { background: linear-gradient(145deg, #f0fdf4, #dcfce7); border-bottom: 3px solid #22c55e; }
.cat-color-admit-card { background: linear-gradient(145deg, #fef2f2, #fee2e2); border-bottom: 3px solid #ef4444; }
.cat-color-answer-key { background: linear-gradient(145deg, #fdf2f8, #fce7f3); border-bottom: 3px solid #ec489a; }
.cat-color-syllabus { background: linear-gradient(145deg, #faf5ff, #f3e8ff); border-bottom: 3px solid #a855f7; }
.cat-color-international-jobs { background: linear-gradient(145deg, #fff1f0, #ffe4e2); border-bottom: 3px solid #f97316; }
.cat-color-previous-paper { background: linear-gradient(145deg, #e0f2fe, #bae6fd); border-bottom: 3px solid #0ea5e9; }
.cat-color-scholarships { background: linear-gradient(145deg, #fef9e6, #fef3c7); border-bottom: 3px solid #f59e0b; }
.cat-color-career-guidance { background: linear-gradient(145deg, #ecfdf5, #d1fae5); border-bottom: 3px solid #10b981; }
.cat-color-special-category { background: linear-gradient(145deg, #f1f5f9, #e2e8f0); border-bottom: 3px solid #64748b; }
.cat-color-skill-development { background: linear-gradient(145deg, #ffe4e6, #fecdd3); border-bottom: 3px solid #e11d48; }

.box-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  display: inline-block;
}

/* Newspaper list inside boxes */
.newspaper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.newspaper-item {
  overflow: hidden;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.newspaper-thumb-link {
  float: left;
  margin-right: 12px;
  line-height: 0;
}
.newspaper-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.newspaper-title {
  margin: 0 0 4px;
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 700;
}
.newspaper-excerpt {
  font-size: 0.7rem;
  color: #334155;
  margin: 0;
  line-height: 1.4;
}
.view-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  background: rgba(0,0,0,0.05);
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.75rem;
}

/* ===== MOBILE: Category boxes 2 columns, About 2 columns ===== */
@media (max-width: 768px) {
  .home-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .about-sarkari {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .newspaper-thumb {
    width: 45px;
    height: 45px;
  }
  .box-title {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .home-category-grid {
    gap: 12px;
  }
  .category-box {
    padding: 12px;
  }
  .newspaper-thumb {
    width: 40px;
    height: 40px;
  }
  .newspaper-title {
    font-size: 0.8rem;
  }
  .newspaper-excerpt {
    font-size: 0.65rem;
  }
}

/* About Section (front page) */
.about-sarkari {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.about-item {
  background: #fff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: 0.2s;
}
.about-item:hover {
  transform: translateY(-3px);
  background: #fefce8;
}
.about-item h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #1e40af;
}
.about-item p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #334155;
}
@media (max-width: 640px) {
  .about-sarkari {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .about-item {
    padding: 12px;
  }
  .about-item h3 {
    font-size: 0.85rem;
  }
  .about-item p {
    font-size: 0.7rem;
  }
}
@media (max-width: 480px) {
  .about-sarkari {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== SINGLE POST PAGE IMPROVED STYLES (UPDATED) ========== */
/* These override previous single post styles but keep everything else unchanged */

.single-post-container {
  background: #fff;
  border-radius: 28px;
  padding: 25px;
  margin: 20px auto;
}
.single-article {
  background: #fff;
  border-radius: 24px;
}
.article-header {
  border-bottom: 2px solid #eef2ff;
  padding-bottom: 15px;
  margin-bottom: 25px;
}
.post-meta-top {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 10px;
}
/* Featured Image Responsive */
.post-featured-image {
  margin-bottom: 30px;
  text-align: center;
}
.featured-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Intro paragraph spacing */
.post-intro {
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
  background: #fefce8;
  padding: 20px;
  border-radius: 20px;
  border-left: 5px solid #eab308;
}
/* Preview Table Wrapper */
.preview-table-wrapper {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 15px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.preview-table-title {
  font-size: 1.2rem;
  font-weight: 700;
  background: #1e40af;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 40px;
  color: white;
  margin-bottom: 15px;
}
.preview-table-responsive {
  overflow-x: auto;
}
.preview-table-responsive table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}
.preview-table-responsive th,
.preview-table-responsive td {
  padding: 12px;
  border: 1px solid #cbd5e1;
  text-align: left;
}
.preview-table-responsive th {
  background: #0f172a;
  color: white;
}
/* Inline Related (Interlinking) */
.inline-related-box {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border-radius: 20px;
  padding: 15px 20px;
  margin: 20px 0;
}
.inline-related-title {
  font-weight: 800;
  font-size: 1rem;
  color: #92400e;
  margin-bottom: 12px;
}
.inline-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.clickbait-link {
  background: #ffedd5;
  padding: 6px 14px;
  border-radius: 40px;
  color: #c2410c;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.2s;
}
.clickbait-link:hover {
  background: #fb923c;
  color: white;
  transform: translateY(-2px);
}
/* Share Bar (replaces old share-motivate-line) */
.share-bar {
  background: linear-gradient(95deg, #e0f2fe, #bae6fd);
  border-radius: 60px;
  padding: 12px 20px;
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.share-text {
  font-weight: 700;
  color: #0369a1;
}
.share-buttons a {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 40px;
  font-weight: 600;
  margin: 0 4px;
  transition: 0.2s;
  text-decoration: none;
}
.share-wa { background: #25d366; color: white; }
.share-fb { background: #1877f2; color: white; }
.share-tg { background: #0088cc; color: white; }
.share-tw { background: #1da1f2; color: white; }
.share-buttons a:hover { transform: translateY(-2px); filter: brightness(0.95); }
/* TOC (Only H2) */
.toc {
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
  margin: 30px 0;
  border-left: 6px solid #3b82f6;
}
.toc strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 12px;
}
.toc ul {
  list-style: disc;
  margin-left: 20px;
}
.toc li {
  margin-bottom: 8px;
}
.toc a {
  color: #1e40af;
  font-weight: 500;
}
/* Post Content Tables (Responsive) */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}
.post-content table::-webkit-scrollbar {
  height: 6px;
}
.post-content table::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.post-content th, .post-content td {
  border: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
}
.post-content th {
  background: #f1f5f9;
  font-weight: 700;
}
.post-content tr:nth-child(even) {
  background: #fafafa;
}
/* Spacing for headings and paragraphs in post content */
.post-content h2 {
  margin: 40px 0 15px;
  padding-top: 10px;
  border-top: 2px solid #e2e8f0;
}
.post-content h3 {
  margin: 30px 0 12px;
}
.post-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}
/* Related & Latest Grid (3 cols desktop, 2 mobile) */
.related-posts-box, .latest-posts-box {
  background: #f1f5f9;
  border-radius: 24px;
  padding: 20px;
  margin: 40px 0;
}
.related-grid, .latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}
.related-item, .latest-item {
  background: white;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  transition: 0.2s;
}
.related-item:hover, .latest-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.related-thumb img, .latest-thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
}
.related-item h4, .latest-item h4 {
  font-size: 0.85rem;
  margin-top: 10px;
}
/* Author Box */
.author-box {
  background: #fef3c7;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 40px 0;
}
.author-avatar img {
  border-radius: 50%;
  border: 3px solid #f59e0b;
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #92400e;
}
.author-bio {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}
/* Comments */
.comment-section {
  background: #fff;
  border-radius: 28px;
  padding: 20px;
  margin-top: 30px;
}
.comment-section h3 {
  background: #1e40af;
  display: inline-block;
  padding: 4px 20px;
  border-radius: 40px;
  color: white;
  font-size: 1.2rem;
}
.comment {
  background: #f8fafc;
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.comment-respond {
  background: #f1f5f9;
  border-radius: 24px;
  padding: 20px;
}
.comment-form input, .comment-form textarea {
  border-radius: 30px;
  padding: 10px 16px;
  width: 100%;
  border: 1px solid #cbd5e1;
}
.comment-form .submit {
  background: #1d4ed8;
  color: white;
  border-radius: 40px;
  padding: 10px 24px;
  font-weight: 700;
  border: none;
}
/* Responsive for Single Page */
@media (max-width: 768px) {
  .single-post-container { padding: 15px; }
  .share-bar { flex-direction: column; text-align: center; }
  .share-buttons a { margin: 3px; font-size: 0.75rem; padding: 4px 12px; }
  .related-grid, .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .author-box { flex-direction: column; text-align: center; }
  .post-content table { font-size: 0.75rem; }
  .post-content th, .post-content td { padding: 6px; }
  .featured-img { max-height: 300px; object-fit: cover; }
}
@media (max-width: 480px) {
  .related-grid, .latest-grid { grid-template-columns: 1fr; }
  .preview-table-title { font-size: 1rem; }
  .toc { padding: 12px; }
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 30px 0 15px;
  margin-top: 50px;
  text-align: center;
}
.footer-columns {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.footer-col h4 {
  color: #facc15;
  margin-bottom: 10px;
}
.footer-social a {
  background: #334155;
  padding: 5px 12px;
  border-radius: 30px;
  color: white;
  margin: 0 4px;
  display: inline-block;
  font-size: 0.8rem;
}
.copyright {
  border-top: 1px solid #1e293b;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 0.7rem;
}

/* Floating buttons */
.floating-social {
  position: fixed;
  left: 10px;
  bottom: 20px;
  background: white;
  padding: 6px 10px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  gap: 8px;
  z-index: 999;
}
.floating-social a {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Responsive fixes for mobile overflow */
@media (max-width: 600px) {
  .container {
    padding: 0 10px;
  }
  .hero-section h1 {
    font-size: 1.2rem;
  }
  .hero-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
  .single-post-container {
    padding: 12px;
  }
  .related-grid-6, .latest-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* ========== FIX MOBILE SEARCH OVERFLOW ========== */
@media (max-width: 768px) {
  .hero-main-image {
  width: 768px;
  height: 200px;  }
  
  
  .search-form-container {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: 95%;
    z-index: 10000;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }
  .search-form-container input {
    font-size: 1rem;
    padding: 12px 16px;
  }
  body.search-open {
    overflow: hidden;
  }
}

/* ========== COLORFUL CATEGORY BUTTONS (4 COLUMN GRID) ========== */
.category-buttons-grid .cat-btn-box {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s;
}
/* Assign unique colors to each button using nth-child (order from front-page.php) */
.category-buttons-grid .cat-btn-box:nth-child(1) { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-bottom: 3px solid #e67e22; color: #7c2d12; }
.category-buttons-grid .cat-btn-box:nth-child(2) { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-bottom: 3px solid #3b82f6; color: #1e3a8a; }
.category-buttons-grid .cat-btn-box:nth-child(3) { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-bottom: 3px solid #22c55e; color: #14532d; }
.category-buttons-grid .cat-btn-box:nth-child(4) { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-bottom: 3px solid #ef4444; color: #7f1d1d; }
.category-buttons-grid .cat-btn-box:nth-child(5) { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border-bottom: 3px solid #ec489a; color: #831843; }
.category-buttons-grid .cat-btn-box:nth-child(6) { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border-bottom: 3px solid #a855f7; color: #4c1d95; }
.category-buttons-grid .cat-btn-box:nth-child(7) { background: linear-gradient(135deg, #fff1f0, #ffe4e2); border-bottom: 3px solid #f97316; color: #7b341e; }
.category-buttons-grid .cat-btn-box:nth-child(8) { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border-bottom: 3px solid #0ea5e9; color: #0c4a6e; }
.category-buttons-grid .cat-btn-box:nth-child(9) { background: linear-gradient(135deg, #fef9e6, #fef3c7); border-bottom: 3px solid #f59e0b; color: #78350f; }
.category-buttons-grid .cat-btn-box:nth-child(10) { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-bottom: 3px solid #10b981; color: #064e3b; }
.category-buttons-grid .cat-btn-box:nth-child(11) { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border-bottom: 3px solid #64748b; color: #1e293b; }
.category-buttons-grid .cat-btn-box:nth-child(12) { background: linear-gradient(135deg, #ffe4e6, #fecdd3); border-bottom: 3px solid #e11d48; color: #881337; }

.category-buttons-grid .cat-btn-box:hover {
  transform: translateY(-3px);
  filter: brightness(0.97);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ===== ARCHIVE / TAG GRID (3 COLUMN DESKTOP, 2 COLUMN MOBILE) ===== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 20px 0;
}
.archive-item {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eef2ff;
}
.archive-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -12px rgba(0,0,0,0.15);
}
.archive-thumb-link {
  display: block;
  margin-bottom: 12px;
  line-height: 0;
}
.archive-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}
.archive-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 8px 0 6px;
  line-height: 1.4;
}
.archive-title a {
  color: #0f172a;
}
.archive-title a:hover {
  color: #1d4ed8;
}
.archive-excerpt {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .archive-item {
    padding: 12px;
  }
  .archive-title {
    font-size: 0.9rem;
  }
  .archive-excerpt {
    font-size: 0.7rem;
  }
}
@media (max-width: 480px) {
  .archive-grid {
    gap: 12px;
  }
  .archive-thumb {
    border-radius: 12px;
  }
}

/* Pagination styling */
.pagination {
  text-align: center;
  margin: 30px 0;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-weight: 500;
  color: #1e293b;
  min-width: 40px;
}
.pagination .page-numbers.current {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}
.pagination .page-numbers:hover:not(.current) {
  background: #e2e8f0;
}

/* Footer Logo Responsive */
.footer-logo .custom-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .footer-logo .custom-logo {
        max-width: 140px;
    }
}


/* ===== FORCE 2 COLUMNS FOR RELATED & LATEST POSTS ===== */
.related-grid.two-columns,
.latest-grid.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 640px) {
    .related-grid.two-columns,
    .latest-grid.two-columns {
        grid-template-columns: 1fr;
    }
}

/* ========== SINGLE PAGE ONLY – MIDDLE SECTION ADJUSTMENTS ========== */
.single-post-container .inline-related-box,
.single-post-container .share-bar {
    margin: 25px 0;
}
.single-post-container .share-bar:first-of-type {
    margin-top: 0;
}

/* Single page base styles */
.single-post-container {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
}
.post-meta-top {
    font-size: 0.85rem;
    color: #64748b;
    margin: 10px 0;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.author-box {
    background: #fef3c7;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
}
.author-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}
.author-info h4 {
    margin: 0 0 5px;
}
@media (max-width: 640px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}