/*
 * Publications Hub — compiled from assets/scss/publications-hub.scss (LTR).
 * Self-contained: base .post_card / global filter-bar / flatpickr rules come
 * from main.css; this file only adds Publications-Hub-specific styling.
 * To regenerate: sass assets/scss/publications-hub.scss assets/css/publications-hub.css
 */

/* ---------- Hero ---------- */
.publications_hub_hero {
  position: relative;
  padding: 96px 0 40px;
  overflow-x: clip;
}
.publications_hub_hero .publications_hub_hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 91px;
}
.publications_hub_hero .publications_hub_hero-info {
  margin-top: 32px;
  width: 520px;
}
.publications_hub_hero .publications_hub_hero-title {
  color: #fff4d9;
}
.publications_hub_hero .publications_hub_hero-description {
  margin-top: 16px;
  color: #ffc740;
}
.publications_hub_hero .publications_hub_hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  height: 353px;
  width: 100%;
  z-index: -1;
}
.publications_hub_hero .publications_hub_hero-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (max-width: 650px) {
  .publications_hub_hero {
    height: auto;
    padding: 45px 0 !important;
  }
  .publications_hub_hero .publications_hub_hero-info {
    margin-top: 32px;
    width: 100%;
  }
}

/* ---------- Listing content ---------- */
.publications_hub_content {
  margin-top: 24px;
  padding-bottom: 51px;
}
.publications_hub_content .post-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 33px;
}
@media (max-width: 1040px) {
  .publications_hub_content .post-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (max-width: 650px) {
  .publications_hub_content .post-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.publications_hub_content .load-more-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.publications_hub_content #pubhub-load-more {
  margin-top: 84px;
  border: 3px solid #fff4d9;
  color: #fff4d9;
  padding: 20px 50.5px;
  background-color: transparent;
  cursor: pointer;
}
.publications_hub_content .filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 4rem;
  background-color: #424140;
  padding: 2.5rem;
}
.publications_hub_content .filter-bar .filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.publications_hub_content .filter-bar .filters .category-filters {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.publications_hub_content .filter-bar .filters .category-filters button.category-filter {
  padding: 1.25rem;
  border: 3px solid rgba(255, 244, 217, 0.3);
  background-color: transparent;
  color: #fff4d9;
  font-size: 16px;
  line-height: 128%;
  font-weight: 500;
  font-family: "Asaan";
  transition: all 0.3s ease;
  cursor: pointer;
}
.publications_hub_content .filter-bar .filters .category-filters button.category-filter:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.publications_hub_content .filter-bar .filters .category-filters button.category-filter.active {
  background-color: #fff4d9;
  color: #383838;
  border-color: transparent;
}
.publications_hub_content .filter-bar .filters .date-filter {
  display: flex;
  position: relative;
  width: 209px;
}
.publications_hub_content .filter-bar .filters .date-filter .selected-date {
  width: 209px;
  background-color: rgba(255, 244, 217, 0.1);
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 13px;
}
.publications_hub_content .filter-bar .filters .date-filter .selected-date .icon {
  color: #fff4d9;
  font-size: 1.2rem;
}
.publications_hub_content .filter-bar .filters .date-filter .selected-date .date-text {
  color: #fff4d9;
  font-weight: 400;
  line-height: unset;
}
.publications_hub_content .filter-bar .filters .date-filter .flatpickr-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.publications_hub_content .filter-bar .prefix-data .prefix-text {
  color: #fff4d9;
  padding-right: 8px;
  border-right: 1px solid #fff4d9;
}
.publications_hub_content .filter-bar .prefix-data .date-text {
  color: #ff6b63;
  padding-left: 8px;
}
.publications_hub_content .no-results-message {
  text-align: center;
  color: #fff4d9;
  background-color: rgba(255, 244, 217, 0.05);
  padding: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 2rem;
  font-family: "Asaan";
}
.publications_hub_content .flatpickr-calendar {
  top: 80px !important;
}
html[dir=rtl] .publications_hub_content .flatpickr-calendar {
  right: 0px !important;
  left: auto !important;
}

/* ---------- Card additions (base .post_card is global; badge colour is inline from ACF) ---------- */
.publications_hub_card .post_card__read_more {
  display: inline-block;
  margin-top: 16px;
  color: #ffc740;
  position: relative;
}
.publications_hub_card .post_card__read_more::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.publications_hub_card:hover .post_card__read_more::after {
  transform: scaleX(1);
}

/* ---------- Single publication (reuses .custom-single-post from main.css) ---------- */
/* Full-width background pattern — identical to the listing hero's */
.single-publication-page {
  position: relative;
  overflow-x: clip;
}
.single-publication-page > .publications_hub_hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  height: 353px;
  width: 100%;
  z-index: -1;
}
.single-publication-page > .publications_hub_hero-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-publication {
  position: relative;
}

/* ---------- Extra Information card sliders (same look as the event Speakers cards) ---------- */
.single-publication__extra-info {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 64px;
}

.publication-extra-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.publication-extra-info__title {
  color: #ffc740;
  font-family: "Asaan Display";
  font-weight: 700;
  font-size: 32px;
  line-height: 130%;
}
.publication-extra-info__slider {
  position: relative;
  width: 100%;
}
.publication-extra-info__swiper {
  width: 100%;
  overflow: hidden;
}
.publication-extra-info__swiper .swiper-slide {
  width: auto;
}
.publication-extra-info .card {
  display: flex;
  flex-direction: column;
  width: 280px;
  max-width: 100%;
  height: 100%;
}
@media screen and (max-width: 520px) {
  .publication-extra-info .card {
    width: 260px;
  }
}
.publication-extra-info .card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.publication-extra-info .card > .card-content {
  flex: 1;
  background-color: rgba(255, 107, 99, 0.05);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}
.publication-extra-info .card > .card-content > h3 {
  color: #ff6b63;
  font-family: "Asaan Display";
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
}
.publication-extra-info .card > .card-content > p {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Asaan";
  font-weight: 400;
  font-size: 14px;
  line-height: 180%;
}
.publication-extra-info:nth-of-type(even) .card > .card-content {
  background-color: rgba(196, 214, 0, 0.05);
}
.publication-extra-info:nth-of-type(even) .card > .card-content > h3 {
  color: #c4d600;
}
@media screen and (max-width: 698px) {
  .publication-extra-info .swiper-guests-button-prev,
  .publication-extra-info .swiper-guests-button-next {
    display: flex;
  }
}
.publication-extra-info .swiper-button-lock {
  display: none !important;
}

.single-publication__download {
  margin-top: 48px;
}
.single-publication__download-btn {
  display: inline-block;
  border: 3px solid #fff4d9;
  color: #fff4d9;
  padding: 20px 50px;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.single-publication__download-btn:hover {
  background-color: #fff4d9;
  color: #383838;
}
@media screen and (max-width: 650px) {
  .single-publication__download-btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }
}

/* ---------- Shared FAQ contact form (Elementor) — restyle generically so the
   Arabic form (a different Elementor ID) gets styled too ---------- */
.publications-hub-page-template .home_contact_form .elementor-element {
  background-color: inherit !important;
}
.publications-hub-page-template .home_contact_form .elementor-field-group {
  margin-bottom: 1.875rem !important;
  padding: 0 !important;
}
.publications-hub-page-template .home_contact_form .elementor-field-group:nth-last-of-type(2) {
  margin-bottom: 3rem !important;
}
.publications-hub-page-template .home_contact_form .elementor-field-group:last-of-type {
  margin-bottom: 0 !important;
}
.publications-hub-page-template .home_contact_form .elementor-field-group textarea {
  height: 5.0625rem;
  resize: none;
}
.publications-hub-page-template .home_contact_form .elementor-field-label {
  font-family: "Asaan" !important;
  font-weight: 700;
  line-height: 1.125rem;
  color: #fff4d9 !important;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}
.publications-hub-page-template .home_contact_form .elementor-field {
  font-family: "Asaan" !important;
  font-weight: 400;
  background-color: #fff4d91a !important;
  color: #fff4d980 !important;
  border: none;
  border-radius: 0 !important;
  padding: 0.75rem 0.75rem;
  font-size: 0.6563rem;
  line-height: 1.1812rem;
}
.publications-hub-page-template .home_contact_form .elementor-field::placeholder {
  color: #fff4d980 !important;
  font-weight: 400;
}
.publications-hub-page-template .home_contact_form .elementor-button {
  background-color: #fff4d9 !important;
  font-family: "Asaan Display" !important;
  color: #383838 !important;
  flex-basis: auto !important;
  border-radius: 0;
  padding: 0.75rem 1.125rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5rem;
}
.publications-hub-page-template .home_contact_form .elementor-button span {
  white-space: nowrap;
}
.publications-hub-page-template .home_contact_form .elementor-button .elementor-button-icon {
  line-height: 1px;
}
.publications-hub-page-template .home_contact_form .elementor-button svg {
  width: 1.125rem;
  height: 1.125rem;
}
.publications-hub-page-template .home_contact_form .elementor-button svg * {
  fill: #000 !important;
}
