:root {
  --base-color: #DC7056;
  /* define global variable */
}

.btn-tb {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background-image: linear-gradient(to bottom, #eeb14d, #f48311);
  cursor: pointer;
  align-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hover effect */
.btn-tb:hover {
  background-image: linear-gradient(to bottom, #eeb14d, #f48311);
  /* transform: translateY(-1px); */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  color: #af5700;
  text-decoration: none;
}

/* Optional: focus/active */
.btn-tb:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

/* blog page search section */
.blog-artical-section {
  padding: 30px 0;
}

.search-box {
  display: flex;
  justify-content: center;
  max-width: 300px;
}

.tags-container ul li {
  margin: 4px;
}

.tags-container .badge {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-block;
}

.tags-container .badge:hover {
  background-color: #f1f3f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-artical-search-section {
  padding: 40px 0 20px 0;
}

.blog-artical-search-section .search-container .search-box .input-group-text{
  border-radius: 20px;
  background-color: transparent;
  border: none;
}
.blog-artical-search-section .search-container .search-box #searchInput{
  background-color: transparent;
  border: none;
  border-radius: 0 20px 20px 0;
}
.blog-artical-search-section .search-container .search-box #searchInput:focus {
    border: none;
    outline: none; /* optional: remove default blue outline */
    box-shadow: none;
}
.blog-artical-search-section .search-container .search-box{
  border: 1px solid #eeb14d;
  border-radius: 20px;
}
.blog-artical-search-section .search-container .search-box:focus-within {
    border: 1px solid #f48311;
    box-shadow: 0 4px 12px rgba(244, 131, 17, 0.15);
    border-radius: 20px;
}

.blog-artical-search-section .search-container .view-toggle .btn.active{
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background-image: linear-gradient(to bottom, #eeb14d, #f48311);
  cursor: pointer;
  align-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Hover effect */
.blog-artical-search-section .search-container .view-toggle .btn:hover {
  background-image: linear-gradient(to bottom, #eeb14d, #f48311);
  /* transform: translateY(-1px); */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  color: #af5700;
}

/* Optional: focus/active */
.blog-artical-search-section .search-container .view-toggle .btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}


.blog-artical-search-section .search-container .view-toggle .btn-outline-tb{
  background: transparent;
  border: 1px solid #eeb14d;
  color: #eeb14d;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
   cursor: pointer;
  align-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* blog page search section */


/* card blog page */
.blog-artical-section .blog-card {
  flex: 0 0 auto;
  width: 100%;
  height: 130px;
  /* background-color: #222; */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform: scale(1);
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.blog-artical-section .blog-card .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  /* position: absolute; */
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.blog-artical-section .blog-card .card-title {
  font-weight: 600;
}

.blog-artical-section .blog-card .card-title:hover {
  -webkit-line-clamp: unset;
  overflow: visible;
  white-space: normal;
}


/* Active Card */
.blog-artical-section .blog-card:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.blog-artical-section .blog-card.active img {
  transition: all 0.3s ease;
  transform: scale(1.5);
}

.blog-artical-section .blog-card.active .card-text {
  display: none;
}

.blog-artical-section .blog-card .card-body .card-text {
  padding: 0.5rem auto !important;
  font-size: .9rem;
  margin-top: 10px;
  color: #5b5b5b;
}

.blog-artical-section .blog-card .card-body .tags-container .tags li {
  font-size: .5rem;
}
.blog-artical-section .blog-card .card-body .card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #f48311;
}

/* Nav buttons */
.blog-artical-section .nav-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.blog-artical-section .nav-btn:hover {
  transform: scale(1.2);
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* card blog page */

/* ✅ Remove rounded-pill from badges */
.tags-container .badge {
  border-radius: 4px !important;
  /* normal square badges */
  background: #f5f5f5 !important;
  padding: 4px 8px;
}

/* ✅ Grid View (default) */
.blog-artical-section #blogContainer.grid-view .col-xl-4 {
  display: block;
}

.blog-artical-section #blogContainer.grid-view .blog-card {
  flex-direction: column;
}

/* ✅ List View */
.blog-artical-section #blogContainer.list-view .col-xl-4 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.blog-artical-section #blogContainer.list-view .blog-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.blog-artical-section #blogContainer.list-view .blog-card img {
  width: 280px;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem 0 0 0.5rem;
}

.blog-artical-section #blogContainer.list-view .blog-card .card-body {
  padding: 1.5rem;
}

/* ✅ Active Button Styling */
.view-toggle .btn.active {
  background-color: #0d6efd;
  color: #fff;
}

.blog-artical-section #blogContainer.grid-view .blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 270px;
}

@media screen and (max-width: 480px) {
  .blog-artical-section #blogContainer.list-view .blog-card img {
    width: 120px;
    height: 100px;
  }
  .blog-artical-section #blogContainer.list-view .blog-card .card-body{
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
  }
  .blog-artical-section #blogContainer.list-view .blog-card .card-body .card-title{
    font-size: 0.8rem;
  }
  .blog-artical-section #blogContainer.list-view .blog-card .card-body .card-text,
  .blog-artical-section #blogContainer.list-view .blog-card .card-body .tags-container{
    display: none;
  }

}