/* ==========================================================================
   CATEGORY PAGE STYLES
   ========================================================================== */

/* Category Page Header */
.category-page-header {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  height: 87px;
  margin-bottom: 15px;
  padding: 0 !important;
}

/* Category Title */
.category-page-title {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 64px;
  line-height: 87px;
  letter-spacing: -0.07em;
  color: #092040;
  margin: 0;
  white-space: nowrap;
}

/* Subscribe Button Container */
.category-subscribe-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

/* Subscribe Text */
.category-subscribe-text {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #092040;
}

.category-subscribe-circle {
  width: 50px;
  height: 50px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.category-subscribe-circle svg {
  width: 50px;
  height: 50px;
  display: block;
}

/* Pagination Controls */
.category-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 40px;
  width: 100%;
  position: relative;
}

.category-nav-btn {
  width: 50px;
  height: 50px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-nav-btn:focus {
  outline: none !important;
}

.category-nav-btn:first-child {
  position: absolute;
  left: 0;
}

.category-nav-btn:last-child {
  position: absolute;
  right: 0;
}

.category-nav-btn:disabled {
  cursor: not-allowed;
}

.category-nav-btn:disabled svg circle {
  stroke-opacity: 0.3;
}

.category-nav-btn:disabled svg path {
  stroke-opacity: 0.3;
}

.category-nav-btn svg {
  width: 50px;
  height: 50px;
  display: block;
}

/* Grid row alignment - ensure sections fill equal heights */
.f32-row {
  align-items: stretch !important;
}

.f32-section {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}

.f32-article-grid {
  flex: 1;
  display: grid;
  align-content: start; /* Prevent overextension of cards */
}

/* Ensure all cards have consistent minimum height for alignment */
.f32-card {
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Force consistent title and summary heights for card alignment */
.f32-card-title {
  min-height: 72px !important; /* 3 lines: 20px * 1.2 * 3 = 72px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.f32-card-summary {
  min-height: 72px !important; /* 4 lines: 15px * 1.2 * 4 = 72px */
  display: block;
}

.f32-card-meta {
  min-height: 65px !important; /* Ensures meta info takes same space */
}

/* Reduce spacing between pagination and ad banner */
.f32-row {
  margin-bottom: 0px !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .category-page-title {
    font-size: 48px;
    line-height: 60px;
  }
}

@media (max-width: 720px) {
  .category-page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px;
    height: auto;
    margin-bottom: 40px;
  }
  
  .category-page-title {
    font-size: 36px;
    line-height: 44px;
  }
}
