:root {
  --primary: #059eff;
  --secondary: #def3ff;
  --text-dark: #000000;
  --text-body: #4a4a4a;
  --bg-page: #f8f9fa;
  --border-color: #e5e9f0;
}

.blog-index-page {
  background-color: var(--bg-page);
  min-height: 100vh;
}

.section-padding {
  padding: 60px 0;
}

/* --- Header Banner --- */
.bi-header-banner {
  background-color: #FFE5E7;
  border-bottom: 2px solid #CD1E2D;
  border-top: 2px solid #CD1E2D;
  padding: 25px 0;
}

.bi-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bi-page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

.bi-breadcrumb {
  font-size: 14px;
  color: #888;
  font-weight: 600;
}

.bi-breadcrumb a {
  color: #00196E;
  text-decoration: none;
  transition: color 0.3s;
}

.bi-breadcrumb a:hover {
  /* color: var(--primary); */
}

.bi-breadcrumb span {
  color: #000000;
}

/* --- Main Layout --- */
.bi-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* --- Left Column: Blog Grid --- */
.bi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0px 20px 0px 20px;
}

.bi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bi-card:hover {
  /* box-shadow: 0 10px 20px rgba(5, 158, 255, 0.1); */
  transform: translateY(-5px);
  border-color: #00196E;
}

.bi-card-img-wrap {
  display: block;
  max-height: 220px;
  overflow: hidden;
  position: relative;
}

.bi-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.5s ease;
}

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

.bi-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, var(--secondary), #f0f8ff); */
}

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

.bi-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}

.bi-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.bi-card-title a:hover {
  color: #00196E;
}

.bi-card-excerpt {
  font-size: 16px;
  color: #000000;
  line-height: 1.6;
  margin: 0;
}

/* Pagination */
.bi-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* --- Right Column: Sidebar --- */
.bi-sidebar {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.bi-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 4px;
}

.bi-widget-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.bi-widget-title span {
  color: #00196E;
}

/* Categories Widget */
.bi-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bi-category-list li {
  border-bottom: 1px solid #f0f0f0;
}

.bi-category-list li:last-child {
  border-bottom: none;
}

.bi-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.bi-category-list a:hover,
.bi-category-list a.is-active {
  color: #00196E;
}

.bi-category-list a span {
  font-weight: 400;
  color: #000000;
}

/* Recent Posts Widget */
.bi-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bi-recent-list li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bi-recent-list img {
  /* width: 60px; */
  /* height: 60px; */
  max-width: 70px;
  max-height: 70px;
  object-fit: fill;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.bi-recent-list a {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.3s;
}

.bi-recent-list a:hover {
  color: #00196E;
}

/* Tags Cloud Widget */
.bi-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bi-tags-cloud a {
  display: inline-block;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.bi-tags-cloud a:hover {
  background: #f25b2a;
  color: #ffffff;
  border-color: var(--primary);
}

/* --- Responsive Queries --- */
@media (max-width: 1024px) {
  .bi-main-layout {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }
}

@media (max-width: 991px) {
  .bi-main-layout {
    grid-template-columns: 1fr;
  }

  .bi-sidebar {
    order: 2;
  }
}

@media (max-width: 767px) {
  .bi-header-flex {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .bi-page-title {
    font-size: 24px;
  }

  .bi-grid {
    grid-template-columns: 1fr;
  }
}

.bi-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 600;
  background: #FF9802;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
  margin-top: 10px;
  border: 2px solid #FF9802;
}

.bi-card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.bi-card-link:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  border: 2px solid #FF9802;
}

.bi-card-link:hover svg {
  transform: translateX(3px);
}

.page-title img {
  width: 100%;
  background-position: center;
  display: block;
  /* height: 350px; */
}

@media (max-width: 767px) {
  .page-title img {
    height: 200px;
    object-fit: cover;
    object-position: left;
  }
}

.op-hero {
  position: relative;
}

.op-hero img {
  width: 100%;
  display: block;
}

.op-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.op-hero-title {
  /* background: rgba(60, 60, 60, 0.75); */
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  padding: 10px 30px;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.op-breadcrumb {
  /* background: rgba(60, 60, 60, 0.75); */
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.op-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.op-breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .op-hero img {
    height: 140px;
    object-fit: cover;
    object-position: center;
  }

  .op-hero-title {
    font-size: 30px;
  }
}

@media (max-width: 450px) {
  .op-hero-title {
    font-size: 20px;
  }

  .op-breadcrumb {
    font-size: 12px;
  }
}