.template-news-and-press {
  padding-top: var(--padding-section-top-mobile, 20px) !important;
  padding-bottom: var(--padding-section-bottom-mobile, 40px) !important;
}
@media screen and (min-width: 768px) {
  .template-news-and-press {
    padding-top: var(--padding-section-top-desktop, 40px) !important;
    padding-bottom: var(--padding-section-bottom-desktop, 60px) !important;
  }
}
.template-news-and-press__header {
  text-align: left;
  margin-bottom: 25px;
}
@media screen and (max-width: 767px) {
  .template-news-and-press__header {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  .template-news-and-press__header {
    margin-bottom: 35px;
  }
}
.template-news-and-press__title {
  font-size: var(--news-title-font-size-mobile, 32px);
  margin: 0 0 10px 0;
  line-height: 1.2;
  color: var(--color-primary-text, #242424);
}
@media screen and (min-width: 768px) {
  .template-news-and-press__title {
    font-size: var(--news-title-font-size-desktop, 44px);
  }
}
.template-news-and-press__description {
  font-size: 16px;
  color: var(--text-color-transparent7, #666);
  max-width: 700px;
  margin: 0 0 20px 0;
}

/* Category Navigation Wrapper */
.news-press-category-nav-wrapper {
  margin: 0 0 25px 0;
  padding: 0;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .news-press-category-nav-wrapper {
    margin-bottom: 35px;
  }
}

/* 1. Mobile Top Banner (Currently Selected Category) */
.news-press-mobile-banner {
  display: block;
  background-color: #a88849;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 14px 20px;
  margin-bottom: 0;
}
@media screen and (min-width: 768px) {
  .news-press-mobile-banner {
    display: none !important;
  }
}
.news-press-mobile-banner__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.news-press-mobile-banner__text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  display: block;
  letter-spacing: 0.01em;
}

/* 2. Mobile Dropdown Trigger */
.news-press-mobile-dropdown {
  display: block;
  position: relative;
  margin-top: 15px;
  margin-bottom: 25px;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .news-press-mobile-dropdown {
    display: none !important;
  }
}

.news-press-mobile-dropdown__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #dcdcdc;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.news-press-mobile-dropdown__trigger:hover,
.news-press-mobile-dropdown__trigger:focus {
  border-bottom-color: #242424;
}
.news-press-mobile-dropdown__trigger-text {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-primary-text, #242424);
  line-height: 1.2;
}
.news-press-mobile-dropdown__trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-text, #242424);
  transition: transform 0.25s ease;
  margin-left: 10px;
}
.news-press-mobile-dropdown.is-open .news-press-mobile-dropdown__trigger-icon {
  transform: rotate(180deg);
}

/* 3. Mobile Bottom Sheet / Modal Drawer */
.news-press-mobile-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: auto;
}
.news-press-mobile-modal[hidden] {
  display: none !important;
}

.news-press-mobile-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  cursor: pointer;
  animation: fadeInBackdrop 0.2s ease forwards;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-press-mobile-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideUpModal 0.25s ease forwards;
}

@keyframes slideUpModal {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.news-press-mobile-modal__options-box {
  width: 100%;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.news-press-mobile-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-press-mobile-modal__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-press-mobile-modal__link {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 400;
  color: #242424;
  text-decoration: none;
  background-color: #ffffff;
  box-sizing: border-box;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  line-height: 1.3;
}
.news-press-mobile-modal__link:hover,
.news-press-mobile-modal__link:focus {
  background-color: #f2f2f2;
}

.news-press-mobile-modal__link.is-active {
  background-color: #e5e5e5 !important;
  color: #000000;
  font-weight: 500;
}

.news-press-mobile-modal__button-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.news-press-mobile-modal__close {
  display: inline-flex;
  width: 100%;
  align-items: left;
  justify-content: left;
  gap: 10px;
  padding: 12px 24px;
  background-color: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 16px;
  font-weight: 400;
  color: #242424;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.news-press-mobile-modal__close:hover,
.news-press-mobile-modal__close:focus {
  background-color: #f5f5f5;
  border-color: #999;
}
.news-press-mobile-modal__close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #242424;
}
.news-press-mobile-modal__close-text {
  font-size: 16px;
  color: #242424;
  line-height: 1;
}

body.news-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* 4. Desktop Category Navigation */
.news-press-desktop-nav {
  display: none;
}
@media screen and (min-width: 768px) {
  .news-press-desktop-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: var(--news-nav-alignment, flex-start);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
}

.news-press-category-nav__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-press-category-nav__link {
  display: inline-block;
  padding: 0;
  font-size: var(--news-nav-font-size-desktop, 16px);
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  background: none;
  border: none;
  color: var(--color-primary-text, #242424);
  transition: color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.news-press-category-nav__link:hover {
  color: var(--primary-btn-bg-color, #C41C2B);
}

.news-press-category-nav__link.is-active {
  color: var(--primary-btn-bg-color, #C41C2B) !important;
  font-weight: 600;
}

.template-news-and-press .template-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2em;
}
@media screen and (max-width: 767px) {
  .template-news-and-press[style*="--news-columns-mobile: 2"] .template-blog__grid,
  .template-news-and-press[style*="--news-columns-mobile:2"] .template-blog__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    row-gap: 20px;
  }
  .template-news-and-press[style*="--news-columns-mobile: 2"] .blog-post-card__title,
  .template-news-and-press[style*="--news-columns-mobile:2"] .blog-post-card__title {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
  .template-news-and-press[style*="--news-columns-mobile: 2"] .blog-post-card__meta,
  .template-news-and-press[style*="--news-columns-mobile:2"] .blog-post-card__meta {
    font-size: 11px !important;
    gap: 4px;
  }
  .template-news-and-press[style*="--news-columns-mobile: 2"] .blog-post-card__excerpt,
  .template-news-and-press[style*="--news-columns-mobile:2"] .blog-post-card__excerpt {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
}
@media screen and (min-width: 768px) {
  .template-news-and-press .template-blog__grid {
    grid-template-columns: repeat(var(--blog-posts-per-row, 3), 1fr);
    column-gap: var(--grid-spacing-loose, 30px);
  }
}

[data-news-item].is-hidden,
.template-blog__grid > [data-news-item].is-hidden {
  display: none !important;
}

.news-press-empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--text-color-transparent7, #666);
}
