:root {
  --primary: #059eff;
  --secondary: #def3ff;
  --text-dark: #000000;
  --text-body: #4a4a4a;
  --bg-page: #f8f9fa;
  --border-color: #e5e9f0;
}

.blog-index-page {
  background: rgba(250, 235, 215, 0.98) !important;
  min-height: 100vh;
}

.section-padding {
  padding: 60px 0;
}

/* --- Header Banner --- */
.bi-header-banner {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  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: #000000;
  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;
}

.bi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  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: #29c3d4;
} */

.bi-card-img-wrap {
  display: block;
  height: 220px;
  overflow: hidden;
  position: relative;
  padding: 15px;
}
.bi-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 25px;
}
.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: 18px;
  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: #ec483b;
}
.bi-card-excerpt {
  font-size: 14px;
  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: #2ab0dd;
}

/* 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: var(--text-body);
  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: #2ab0dd;
}
.bi-category-list a span {
  font-weight: 400;
  color: #999;
}

/* 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;
  object-fit: cover;
  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: var(--primary);
}

/* 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: #29c3d4;
  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-content-area--full {
  width: 100%;
}

.bi-grid {
  grid-template-columns: repeat(3, 1fr);
}

.bi-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #ec483b;
  text-decoration: none;
}
.bi-card-readmore:hover {
  color: #ec483b;
}

/* Categories Section */
.bi-categories-section {
  margin-top: 70px;
}

.bi-categories-heading {
  text-align: center;
  margin-bottom: 36px;
}
.bi-categories-heading h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.bi-categories-heading h2 span {
  color: #ec483b;
}
.bi-categories-heading p {
  font-size: 16px;
  color: #000000;
  margin: 0;
}

.bi-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bi-cat-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
/* .bi-cat-card:hover {
  box-shadow: 0 10px 20px rgba(5, 158, 255, 0.1);
  transform: translateY(-5px);
  border-color: #29c3d4;
} */

.bi-cat-card-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.bi-cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bi-cat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 2px;
}

.bi-cat-card-body {
  padding: 20px;
}
.bi-cat-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.bi-cat-card-body p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0 0 14px;
}

.bi-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ec483b;
}

@media (max-width: 991px) {
  .bi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bi-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bi-grid,
  .bi-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile responsiveness for categories */
.hero-section {
  /* width: 100%; */
  position: relative;
  background-image: url("/images/blog/fix-hero-images.webp");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-heading {
  font-size: 62px;
  display: flex;
  color: #fff;
  text-align: center;
  align-items: center;
  height: 125px;
  margin-bottom: 20px;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

/* Provided class names from Figma */
.top-rated-area-rug-container {
  /* width: 626px !important;
  position: relative !important;
  font-size: 55px !important;
  line-height: 127% !important;
  display: flex !important;
  color: #fff !important;
  text-align: center !important;
  align-items: center !important;
  height: 125px !important;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6) !important; */
}
.rated-area-rug-top-rated-area-rug-container {
  /* width: 100% !important; */
}
.top-rated-area-rug {
  /* margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
  display: block;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6) !important; */
}

.hero-heading span {
  width: 100%;
}

.hero-heading p {
  margin: 0;
}

.hero-subheading {
  width: 571px;
  position: relative;
  font-size: 20px;
  line-height: 38px;
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
  color: #fff;
  text-align: center;
  display: inline-block;
  height: 38px;
  margin-top: 0;
  margin-bottom: 0;
}

.hero-button {
  width: 200px;
  position: relative;
  border-radius: 25px;
  background-color: #ec483b;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.hero-button:hover {
  background-color: #db574a;
}

.hero-button-text {
  width: 74px;
  position: relative;
  font-size: 18px;
  font-family: "Open Sans", sans-serif;
  color: #fff;
  text-align: center;
  display: inline-block;
}

/* Mobile Responsive Styles for Hero Section */
@media (max-width: 768px) {
  .hero-section {
    height: 400px;
    padding: 0 15px;
    /* margin-top: 100px; */
  }

  .hero-heading {
    width: 100%;
    font-size: 55px;
    height: auto;
    margin-bottom: 15px;
  }

  .top-rated-area-rug-container {
    width: 100% !important;
    font-size: 32px !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 80px !important;
  }

  .hero-subheading {
    width: 100%;
    font-size: 16px;
    line-height: 1.4;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero-button {
    width: 180px;
    height: 45px;
    margin-top: 20px;
  }

  .hero-button-text {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 350px;
  }

  .hero-heading {
    font-size: 50px;
    margin-bottom: 10px;
  }

  .top-rated-area-rug-container {
    font-size: 28px !important;
    min-height: 70px !important;
  }

  .hero-subheading {
    font-size: 14px;
    margin-top: 0;
  }

  .hero-button {
    width: 160px;
    height: 40px;
  }

  .hero-button-text {
    font-size: 14px;
  }
}

.our-247-services-container {
  width: 326px;
  position: relative;
  font-size: 24px;
  line-height: 60px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center; /* ADD THIS — centers the flex child horizontally */
  height: 60px;
  color: #000;
  margin: 0 auto 10px auto; /* CHANGE THIS — centers the box itself */
}

.our-247-services-our-247-services-container {
  width: 100%;
  display: block; /* ADD THIS — span needs block to respect width:100% */
}

.span {
  color: #ec483b;
}

.turning-cores-into {
  width: 394px;
  position: relative;
  font-size: 20px;
  line-height: 35px;
  font-weight: 500;
  font-family: "Open Sans";
  color: #6d6d6d;
  text-align: center;
  display: inline-block;
  margin-bottom: 30px;
}
.rectangle-div {
  width: 100%;
  position: relative;
  background: antiquewhite;
  height: auto;
  min-height: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 20px;
  clear: both;
  opacity: 1;
  visibility: visible;
  z-index: 1000;
}
