.header_area {
  background: transparent linear-gradient(180deg, #112b64 0%, #f2f4f9 100%) 0%
    0% no-repeat padding-box;
}

.header_navbar {
  background-color: #112b64;
}

body {
  background: white !important;
}

.card-data.p-2 {
  background: #112b64;
}

/* ============ SUGGESTED HOMEWORKS SLIDER STYLES ============ */

:root {
  --primary-pink: #e85b7c;
  --dark-bg: #f8f9fa;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --overlay-gradient: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.feature-review-section {
  background-color: var(--dark-bg);
  padding: 40px 0;
}

.container-main {
  padding: 0 20px;
  max-width: 100%;
}

@media (max-width: 767px) {
  .container-main {
    padding: 0 10px;
  }
}

/* Slider Header */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 0 10px;
}

.slider-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.slider-controls {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-pink);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(232, 91, 124, 0.3);
}

.slider-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(232, 91, 124, 0.5);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Slider Container */
.slider-container {
  position: relative;
  overflow: hidden;
  padding: 0 10px;
}

.slider-wrapper {
  display: flex;
  gap: 15px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-right: 30px;
  /* Extra padding for mobile peek */
}

.slider-wrapper::-webkit-scrollbar {
  display: none;
}

/* Card Styling */
.slider-card {
  flex: 0 0 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
  min-height: 400px;
  scroll-snap-align: start;
  transition: flex 0.3s ease;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.card-image-wrapper > a.card-full-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.slider-card:hover .card-image {
  transform: scale(1.06);
}

.card-overlay {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 15%) 0%,
    rgba(0, 0, 0, 0) 50%,
    #000 100%
  );
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #ffd700;
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.card-content-top flex-grow-1 {
  color: white;
  margin-bottom: 10px;
}

.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

/* span styled to look exactly like .card-title (non-heading) */
.card-title-span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.card-description {
  color: white;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-rating-section {
  /* No background - ratings are part of the overlay */
}

.rating-row {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
  justify-content: space-between;
}

.rating-row:last-child {
  margin-bottom: 0;
}

.rating-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  min-width: 80px;
  flex: 0 0 auto;
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background-color: #e8e8e8;
  border-radius: 3px;
  margin: 8px 0px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #ffd700;
  border-radius: 3px;
  width: 100%;
}

.rating-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  min-width: 45px;
  text-align: right;
}

/* ============ RESPONSIVE SLIDER ============ */

/* Mobile: 1 card visible + peek of next card */
@media (max-width: 767px) {
  .slider-wrapper {
    gap: 15px;
    padding-right: 40px;
    /* Extra space for peek */
  }

  .slider-card {
    flex: 0 0 calc(75vw - 15px);
    /* 75% width to show peek of next card */
    max-width: calc(75vw - 15px);
    min-width: calc(75vw - 15px);
    min-height: 350px;
    /* Slightly smaller height for mobile */
  }

  .slider-container {
    padding: 0 15px;
    /* Adjust container padding */
    overflow: visible;
    /* Allow peek to be visible */
  }

  .card-overlay {
    padding: 15px;
  }

  .card-title {
    font-size: 20px;
    color: white;
  }

  .card-title-span {
    font-size: 20px;
    color: white;
  }
  .card-description {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .card-rating-section {
    padding: 0px;
  }
}

/* Tablet: 2 cards visible */
@media (min-width: 768px) and (max-width: 991px) {
  .slider-card {
    flex: 0 0 calc(50% - 8px);
    min-height: 380px;
  }

  .card-overlay {
    padding: 18px;
  }

  .card-title {
    font-size: 22px;
    color: white;
  }
  
  .card-title-span {
    font-size: 22px;
    color: white;
  }

  .card-description {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .card-rating-section {
    padding: 0px;
  }
}

/* Desktop: 4 cards visible */
@media (min-width: 992px) {
  .slider-card {
    flex: 0 0 calc(25% - 12px);
    min-height: 400px;
  }

  .card-overlay {
    padding: 20px;
  }

  .card-title {
    font-size: 24px;
    color: white;
  }
  
  .card-title-span {
    font-size: 24px;
    color: white;
  }

  .card-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .card-rating-section {
    padding: 0px;
  }
}

/* ============ FILTER TABS ============ */

.filter-section {
  margin-top: 40px;
  padding: 0 10px;
}

.tabs-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border-radius: 50px;
  padding: 12px 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  /* width: fit-content;
                                margin: 0 auto; */
}

.tab-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #999;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  transform: scale(1.08);
}

.tab-btn.active {
  background-color: var(--primary-pink);
  color: white;
}

.tab-separator {
  width: 1px;
  height: 25px;
  background-color: #e8e8e8;
}

.tab-filter {
  /* margin-left: auto; */
}

/* ============ UTILITY ============ */

@media (max-width: 767px) {
  .slider-title {
    font-size: 20px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .slider-controls {
    gap: 10px;
  }

  .card-title {
    font-size: 22px;
  }
  
  .card-title-span {
    font-size: 22px;
  }

  .card-description {
    font-size: 12px;
  }

  .rating-label,
  .rating-value {
    font-size: 12px;
  }
}

/**/
