/* =====================================================
   GLOBAL – Express Style Base
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f5;
}

section {
  background: transparent;
}

/* Bootstrap row compact like AliExpress */
.row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

/* =====================================================
   HERO
===================================================== */
#homeHero .carousel-item {
  height: 75vh;
  min-height: 400px;
}

#homeHero img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.6);
}

.carousel-caption {
  background: rgba(0,0,0,0.55);
  padding: 20px;
  border-radius: 10px;
}

/* =====================================================
   COMMON CARD – AliExpress Look
===================================================== */
.card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.card-img-top {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f1f1;
}

.card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.card-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 0.5rem;
}

/* =====================================================
   PRICE & TITLE HIERARCHY
===================================================== */
.card h6,
.card h5,
.card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 2.6rem;
}

.text-success {
  color: #ff4747 !important;
  font-size: 1.1rem;
  font-weight: 700;
}

/* =====================================================
   BADGES – Clean Marketplace Style
===================================================== */
.badge {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
}

/* =====================================================
   BUTTONS – AliExpress Feel
===================================================== */
.btn {
  border-radius: 6px;
  font-weight: 600;
}

.btn-primary,
.btn-success,
.btn-warning {
  color: #fff;
}

.card-footer .btn {
  font-size: 0.8rem;
}

/* Hover reveal */
.card-footer {
  opacity: 0.9;
}
.card:hover .card-footer {
  opacity: 1;
}

/* =====================================================
   FILTER BARS – Sticky Like AliExpress
===================================================== */
#blog-category-filter,
#product-category-filter,
#course-category-filter,
#class-category-filter {
  position: sticky;
  top: 70px;
  z-index: 9;
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #eaeaea;
}

#blog-category-filter .btn.active {
  background: #0d6efd;
  color: #fff;
}
#product-category-filter .btn.active {
  background: #198754;
  color: #fff;
}
#course-category-filter .btn.active {
  background: #ffc107;
  color: #000;
}
#class-category-filter .btn.active {
  background: #0d6efd;
  color: #fff;
}

/* =====================================================
   BLOG CARDS
===================================================== */
.blog-card p {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* =====================================================
   PRODUCT GRID – Dense Marketplace View
===================================================== */
.product-card-item {
  padding: 4px;
}

@media (min-width: 992px) {
  .product-card-item {
    flex: 0 0 auto;
  }
}

/* =====================================================
   COURSES & CLASSES
===================================================== */
.course-card img,
.class-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* =====================================================
   RATING STARS
===================================================== */
.text-warning {
  font-size: 0.75rem;
}

/* =====================================================
   ABOUT SECTION
===================================================== */
#about {
  background: #fff;
}

#about h2 {
  font-weight: 700;
}

#about p.lead {
  font-size: 1rem;
  line-height: 1.7;
}

/* =====================================================
   VISITOR COUNTER
===================================================== */
.display-5 {
  color: #0d6efd;
}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 1.4rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .card h6 {
    font-size: 0.85rem;
  }

  .text-success {
    font-size: 1rem;
  }
}
