/* ============================================
   FlightWineBar.com - Archive/Category Pages
   FWB Brand: Burgundy #722F37, Gold #C5A55A, 
   Cream #FAF8F5, Dark #2C1810
   Font: Playfair Display (headings), Lora (body)
   ============================================ */

:root {
  --fwb-primary: #722F37;
  --fwb-gold: #C5A55A;
  --fwb-cream: #FAF8F5;
  --fwb-dark: #2C1810;
  --fwb-white: #FFFFFF;
  --fwb-gray: #7A7A7A;
  --fwb-border: #E8E0D8;
  --fwb-radius: 8px;
}

/* ============================================
   1. ARCHIVE TITLE / PAGE HEADER
   ============================================ */
.archive .elementor-widget-theme-archive-title .elementor-heading-title,
.category .elementor-widget-theme-archive-title .elementor-heading-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  color: var(--fwb-white) !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

/* Override the lime green background */
.archive .elementor-widget-theme-archive-title,
.category .elementor-widget-theme-archive-title {
  background: linear-gradient(135deg, var(--fwb-primary) 0%, #5A252C 100%) !important;
  border-radius: var(--fwb-radius) !important;
  padding: 25px 30px !important;
  margin-bottom: 30px !important;
  position: relative;
  overflow: hidden;
}

/* Decorative wine-themed accent line */
.archive .elementor-widget-theme-archive-title::after,
.category .elementor-widget-theme-archive-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--fwb-gold) 50%, transparent 100%);
}

/* ============================================
   2. SEARCH FORM
   ============================================ */
.archive .elementor-widget-search-form .elementor-search-form__input,
.category .elementor-widget-search-form .elementor-search-form__input {
  font-family: 'Lora', serif !important;
  border: 1px solid var(--fwb-border) !important;
  border-radius: var(--fwb-radius) 0 0 var(--fwb-radius) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
}

.archive .elementor-widget-search-form .elementor-search-form__input:focus,
.category .elementor-widget-search-form .elementor-search-form__input:focus {
  border-color: var(--fwb-primary) !important;
  box-shadow: 0 0 0 2px rgba(114, 47, 55, 0.1) !important;
}

.archive .elementor-widget-search-form .elementor-search-form__submit,
.category .elementor-widget-search-form .elementor-search-form__submit {
  background: var(--fwb-primary) !important;
  border-radius: 0 var(--fwb-radius) var(--fwb-radius) 0 !important;
  transition: background 0.3s ease !important;
}

.archive .elementor-widget-search-form .elementor-search-form__submit:hover,
.category .elementor-widget-search-form .elementor-search-form__submit:hover {
  background: #5A252C !important;
}

/* ============================================
   3. POST CARDS GRID
   ============================================ */

/* Grid container */
.archive .elementor-posts-container.elementor-posts--skin-cards,
.category .elementor-posts-container.elementor-posts--skin-cards {
  gap: 25px !important;
}

/* Individual card */
.archive .elementor-post__card,
.category .elementor-post__card {
  background: var(--fwb-white) !important;
  border: 1px solid var(--fwb-border) !important;
  border-radius: var(--fwb-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.archive .elementor-post__card:hover,
.category .elementor-post__card:hover {
  box-shadow: 0 8px 25px rgba(114, 47, 55, 0.12) !important;
  transform: translateY(-3px) !important;
  border-color: var(--fwb-gold) !important;
}

/* ============================================
   4. CARD THUMBNAIL
   ============================================ */
.archive .elementor-post__thumbnail,
.category .elementor-post__thumbnail {
  overflow: hidden !important;
  position: relative !important;
}

.archive .elementor-post__thumbnail img,
.category .elementor-post__thumbnail img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  object-fit: cover !important;
}

.archive .elementor-post__card:hover .elementor-post__thumbnail img,
.category .elementor-post__card:hover .elementor-post__thumbnail img {
  transform: scale(1.05) !important;
}

/* Subtle overlay on hover */
.archive .elementor-post__thumbnail::after,
.category .elementor-post__thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44, 24, 16, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   5. CATEGORY BADGE
   ============================================ */
.archive .elementor-post__badge,
.category .elementor-post__badge {
  background: var(--fwb-primary) !important;
  color: var(--fwb-white) !important;
  font-family: 'Lora', serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 4px 12px !important;
  border-radius: 3px !important;
  z-index: 2 !important;
}

/* ============================================
   6. CARD TEXT AREA
   ============================================ */
.archive .elementor-post__text,
.category .elementor-post__text {
  padding: 15px 18px 20px !important;
}

/* Post Title */
.archive .elementor-post__title,
.category .elementor-post__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.archive .elementor-post__title a,
.category .elementor-post__title a {
  color: var(--fwb-dark) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.archive .elementor-post__title a:hover,
.category .elementor-post__title a:hover {
  color: var(--fwb-primary) !important;
}

/* ============================================
   7. AVATAR
   ============================================ */
.archive .elementor-post__avatar,
.category .elementor-post__avatar {
  border: 2px solid var(--fwb-white) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.archive .elementor-post__avatar img,
.category .elementor-post__avatar img {
  border-radius: 50% !important;
}

/* ============================================
   8. LOAD MORE BUTTON
   ============================================ */
.archive .elementor-button-wrapper,
.category .elementor-button-wrapper {
  text-align: center !important;
  margin: 35px 0 !important;
}

.archive .elementor-button-wrapper .elementor-button,
.category .elementor-button-wrapper .elementor-button,
.archive a.elementor-button-link.elementor-button,
.category a.elementor-button-link.elementor-button {
  background-color: var(--fwb-primary) !important;
  color: var(--fwb-white) !important;
  font-family: 'Lora', serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 14px 40px !important;
  border-radius: var(--fwb-radius) !important;
  border: 2px solid var(--fwb-primary) !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.archive .elementor-button-wrapper .elementor-button:hover,
.category .elementor-button-wrapper .elementor-button:hover,
.archive a.elementor-button-link.elementor-button:hover,
.category a.elementor-button-link.elementor-button:hover {
  background-color: transparent !important;
  color: var(--fwb-primary) !important;
  border-color: var(--fwb-primary) !important;
}

.archive .elementor-button-wrapper .elementor-button .elementor-button-text,
.category .elementor-button-wrapper .elementor-button .elementor-button-text {
  color: inherit !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* Spinner */
.archive .e-load-more-spinner,
.category .e-load-more-spinner {
  color: var(--fwb-primary) !important;
}

/* ============================================
   9. PAGINATION (numbers style if used)
   ============================================ */
.archive .elementor-pagination,
.category .elementor-pagination {
  margin-top: 40px !important;
  gap: 8px !important;
  justify-content: center !important;
}

.archive .elementor-pagination .page-numbers,
.category .elementor-pagination .page-numbers {
  font-family: 'Lora', serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--fwb-radius) !important;
  background: var(--fwb-white) !important;
  color: var(--fwb-dark) !important;
  border: 1px solid var(--fwb-border) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.archive .elementor-pagination .page-numbers:hover,
.category .elementor-pagination .page-numbers:hover {
  background: var(--fwb-cream) !important;
  border-color: var(--fwb-primary) !important;
  color: var(--fwb-primary) !important;
}

.archive .elementor-pagination .page-numbers.current,
.category .elementor-pagination .page-numbers.current {
  background: var(--fwb-primary) !important;
  color: var(--fwb-white) !important;
  border-color: var(--fwb-primary) !important;
}

/* ============================================
   10. "NO MORE POSTS" MESSAGE
   ============================================ */
.archive .e-load-more-message,
.category .e-load-more-message {
  font-family: 'Lora', serif !important;
  font-size: 14px !important;
  color: var(--fwb-gray) !important;
  font-style: italic !important;
  margin-top: 20px !important;
}

/* ============================================
   11. AD SECTIONS - Clean spacing
   ============================================ */
.archive .elementor-widget-html,
.category .elementor-widget-html {
  margin: 20px 0 !important;
}

/* ============================================
   12. RESPONSIVE - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .archive .elementor-widget-theme-archive-title .elementor-heading-title,
  .category .elementor-widget-theme-archive-title .elementor-heading-title {
    font-size: 28px !important;
  }

  .archive .elementor-post__title,
  .category .elementor-post__title {
    font-size: 15px !important;
  }

  .archive .elementor-post__text,
  .category .elementor-post__text {
    padding: 12px 14px 16px !important;
  }
}

/* ============================================
   13. RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 767px) {
  .archive .elementor-widget-theme-archive-title .elementor-heading-title,
  .category .elementor-widget-theme-archive-title .elementor-heading-title {
    font-size: 24px !important;
  }

  .archive .elementor-widget-theme-archive-title,
  .category .elementor-widget-theme-archive-title {
    padding: 18px 20px !important;
  }

  .archive .elementor-post__title,
  .category .elementor-post__title {
    font-size: 14px !important;
  }

  .archive .elementor-post__text,
  .category .elementor-post__text {
    padding: 10px 12px 14px !important;
  }

  .archive .elementor-post__badge,
  .category .elementor-post__badge {
    font-size: 9px !important;
    padding: 3px 8px !important;
  }
}

/* === Hermes 2026-08-02: vá nút Previous/Next bị tràn ===
   Quy tắc phía trên ép mọi .page-numbers thành ô vuông 40x40,
   khiến chữ "« Previous" / "Next »" tràn ra ngoài khung.       */
.archive .elementor-pagination .page-numbers.prev,
.archive .elementor-pagination .page-numbers.next,
.category .elementor-pagination .page-numbers.prev,
.category .elementor-pagination .page-numbers.next,
.search .elementor-pagination .page-numbers.prev,
.search .elementor-pagination .page-numbers.next {
  width: auto !important;
  min-width: 40px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* Previous ở trang 1 và Next ở trang cuối là <span>, không bấm được -> làm mờ */
.archive .elementor-pagination span.page-numbers.prev,
.archive .elementor-pagination span.page-numbers.next,
.category .elementor-pagination span.page-numbers.prev,
.category .elementor-pagination span.page-numbers.next {
  opacity: 0.4 !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Cho phép xuống dòng gọn trên di động */
.archive .elementor-pagination,
.category .elementor-pagination {
  flex-wrap: wrap !important;
  row-gap: 8px !important;
}
