/* ==========================================================================
   BLOGS & ARTICLES PAGE STYLESHEET
   nmirshad.com/blogs/
   4 blogs in a row, tabs for categories, responsive layout
   ========================================================================== */

/* Page Background and Layout */
body.blog-page-body {
  background-color: #000000;
  color: #f0eee9;
  font-family: 'Poppins', sans-serif;
}

/* Keep the native pointer available if the custom cursor script is unavailable. */
body.blog-page-body {
  cursor: auto !important;
}
body.blog-page-body a,
body.blog-page-body button,
body.blog-page-body [role="button"] {
  cursor: pointer !important;
}

/* Header permanently visible on blog page */
.site-sticky-header.blog-page-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 180, 0, 0.2) !important;
  z-index: 9990 !important;
  padding: 15px 0 !important;
}

@media (max-width: 768px) {
  body.blog-page-body {
    padding-top: 66px !important;
  }

  .site-sticky-header.blog-page-header,
  .site-sticky-header {
    display: none !important;
  }

  .mobile-top-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 66px !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 180, 0, 0.2) !important;
    padding: 0 20px !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
  }

  .mobile-top-bar .mobile-logo-link {
    display: flex !important;
    align-items: center !important;
  }

  .mobile-top-bar .mobile-logo-img {
    height: 32px !important;
    width: auto !important;
    display: block !important;
    max-width: 140px !important;
  }

  .mobile-top-bar .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    color: #ffb400 !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 6px !important;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
}

/* Hero Header Section */
.blog-hero-section {
  padding: 70px 0 35px 0;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.25;
  color: #f0eee9;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .blog-hero-section {
    padding: 35px 0 25px 0 !important;
  }

  .blog-hero-title {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
  }
}

.blog-hero-title span {
  color: #ffb400;
}

.blog-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(240, 238, 233, 0.78);
  max-width: 800px;
  margin: 0;
}

.blog-hero-desc p {
  margin: 0 0 6px 0;
}
.blog-hero-desc p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   CATEGORY TABS (Matching Elementor nested-tabs horizontal alignment)
   tabs_justify_horizontal: start, horizontal_scroll: enable
   ========================================================================== */
.blog-tabs-nav-wrapper {
  margin: 35px 0 45px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ffb400 transparent;
  padding-bottom: 8px;
}

.blog-tabs-nav-wrapper::-webkit-scrollbar {
  height: 4px;
}

.blog-tabs-nav-wrapper::-webkit-scrollbar-thumb {
  background: #ffb400;
  border-radius: 4px;
}

.blog-tabs-list {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* start alignment from old page */
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: max-content;
}

.blog-tab-btn {
  background: #111111;
  color: #f0eee9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 !important;
  padding: 10px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-tab-btn:hover {
  border-color: #ffb400;
  color: #ffb400;
  background: rgba(255, 180, 0, 0.06);
}

.blog-tab-btn.active {
  background: #ffb400;
  color: #000000;
  border-color: #ffb400;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 180, 0, 0.25);
  border-radius: 0 !important;
}

.blog-tab-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 0 !important;
  font-weight: 600;
}

.blog-tab-btn.active .blog-tab-badge {
  background: rgba(0, 0, 0, 0.15);
  color: #000000;
}

/* ==========================================================================
   4 BLOGS IN A ROW GRID
   ========================================================================== */
.blog-cards-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}

@media (max-width: 1200px) {
  .blog-cards-grid-4col {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .blog-cards-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .blog-cards-grid-4col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Blog Card Styling */
.blog-card-item {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.blog-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 0, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Featured Image Box */
.blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #141414;
  overflow: hidden;
  border-radius: 0 !important;
}

.blog-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 0 !important;
}

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

/* Category and subcategory labels sit between the image and date. */
.blog-card-taxonomy {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 18px 0;
}

.blog-card-cat-badge,
.blog-card-subcat-badge {
  background: transparent;
  color: #ffb400;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0;
  border-radius: 0 !important;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-card-cat-badge:hover,
.blog-card-subcat-badge:hover { color: #ffffff; }

.blog-card-subcat-badge { color: rgba(240, 238, 233, 0.68); }

/* Card Body Content */
.blog-card-body {
  padding: 8px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Subcategory & Date Meta */
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(240, 238, 233, 0.6);
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

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

.blog-card-meta-date i {
  color: #ffb400;
  font-size: 12px;
}

.blog-card-subcat {
  color: #ffb400;
  font-weight: 500;
  font-size: 11px;
  background: rgba(255, 180, 0, 0.1);
  padding: 2px 8px;
  border-radius: 0 !important;
  display: inline-block;
}

/* Blog Title - Hidden as requested */
.blog-card-title {
  display: none !important;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #ffb400;
}

/* Short Excerpt */
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(240, 238, 233, 0.72);
  margin: 0 0 18px 0;
  flex-grow: 1;
}

/* Read More Button (Yellow button style matching other pages) */
.blog-card-read-btn {
  background-color: #ffb400;
  color: #000000 !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  text-align: center;
  display: block;
  border-radius: 0 !important;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  margin-top: auto;
}

.blog-card-read-btn:hover {
  background-color: #ffffff;
  color: #000000 !important;
}

/* Empty State / No Posts Found */
.blog-no-posts-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #0d0d0d;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 0 !important;
  color: rgba(240, 238, 233, 0.6);
  font-size: 16px;
  display: none;
}

.blog-no-posts-found i {
  font-size: 32px;
  color: #ffb400;
  margin-bottom: 15px;
  display: block;
}
