/* ==============================================
   THE LOOK LAB BLOG — Homepage Design
   Koaj / Permoda 2026
   ============================================== */

/* ---- Hero Banner ---- */
@keyframes blogHeroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blogHeroBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.blog-hero {
  position: relative;
  width: 100%;
  height: 720px !important;
  min-height: 400px !important;
  background: url('../img/blog-hero.jpg') center center / cover no-repeat #1a1a1a;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero::before {
  display: none;
}

.blog-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 64px 24px;
  animation: blogHeroIn 0.9s ease both;
}

.blog-hero__title {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1.05;
  color: #fff;
}

.blog-hero__subtitle {
  font-size: 15px;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0.88;
  font-weight: 400;
}

.blog-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  color: #fff;
  opacity: 0.75;
  animation: blogHeroBounce 1.8s ease-in-out infinite;
  transition: opacity 0.2s;
}

.blog-hero__scroll:hover {
  opacity: 1;
}

/* ---- Category Filter Tabs ---- */
.blog-cats-filter {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 32px;
}

.blog-cats-filter__label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  flex-shrink: 0;
}

.blog-cats-filter__tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  flex-wrap: wrap;
}

.blog-cats-filter__tab {
  font-size: 14px;
  cursor: pointer;
  color: #888;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.blog-cats-filter__tab a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
}

.blog-cats-filter__tab:hover,
.blog-cats-filter__tab:hover a {
  color: #111;
}

.blog-cats-filter__tab.active {
  color: #111;
  font-weight: 600;
  border-bottom-color: #111;
}

.blog-cats-filter__tab.active a {
  color: #111;
  font-weight: 600;
}

/* ---- AJAX loading state ---- */
#blog-content-area {
  transition: opacity 0.2s ease;
}
#blog-content-area.blog-content-loading {
  opacity: 0.4;
  pointer-events: none;
}

/* ---- Blog Cards Grid ---- */
.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 24px 56px;
  max-width: 100%;
}

/* ---- Individual Card ---- */
.blog-home-card {
  display: flex;
  flex-direction: column;
}

.blog-home-card.blog-card-hidden {
  display: none;
}

.blog-home-card__image-link {
  display: block;
  text-decoration: none;
}

.blog-home-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #d8d8d8;
}

.blog-home-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blog-home-card__image:hover img {
  transform: scale(1.05);
}

/* Dark gradient overlay at bottom of card image */
.blog-home-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blog-home-card__cat {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.blog-home-card__cta {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Card info below image ---- */
.blog-home-card__info {
  padding: 14px 4px 6px;
}

.blog-home-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
  color: #111;
  font-weight: 400;
}

.blog-home-card__title a {
  color: #111;
  text-decoration: none;
}

.blog-home-card__title a:hover {
  text-decoration: underline;
}

.blog-home-card__date {
  margin: 0;
  font-size: 12px;
  color: #999;
}

/* ---- Pagination on blog home ---- */
.page-blog-default .pagination {
  padding: 0 24px 48px;
}

/* ---- Category Banner (full-width header in full_width_top) ---- */
.blog-cat-banner {
  width: 100%;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}

.blog-cat-banner__title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.05;
}

.blog-cat-banner__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 14px auto 0;
  max-width: 520px;
}

/* ---- Category article grid (inside .container, less horizontal padding) ---- */
.blog-cat-grid {
  padding: 28px 0 56px !important;
}

/* ---- Empty state ---- */
.blog-cat-empty {
  padding: 56px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .blog-hero__title { font-size: 34px; }
  .blog-cat-banner__title { font-size: 30px; }

  .blog-home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px 40px;
  }
  .blog-cat-grid { padding: 20px 0 40px !important; }
}

@media (max-width: 575px) {
  .blog-hero { background-attachment: scroll; }
  .blog-hero__title { font-size: 26px; letter-spacing: 2px; }
  .blog-hero__subtitle { font-size: 13px; }
  .blog-cats-filter { padding: 14px 16px; gap: 12px; }
  .blog-cat-banner { padding: 36px 16px; }
  .blog-cat-banner__title { font-size: 22px; letter-spacing: 2px; }

  .blog-home-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
  }
  .blog-cat-grid { padding: 16px 0 32px !important; }
}
