/* News & Events Page Styles */

/* ========================================
   NAVBAR AND MOBILE MENU STYLES
   ======================================== */

/* Main Navbar */
.kpm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 40px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  z-index: 1000;
}

.kpm-nav__logo {
  flex-shrink: 0;
}

.kpm-nav__logo img {
  height: 40px;
  width: auto;
}

.kpm-nav__tabs {
  display: flex;
  gap: 30px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.kpm-nav__tab {
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-size: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.kpm-nav__tab:hover {
  color: var(--accent-color, #B1974D) !important;
}

.kpm-nav__icons {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.kpm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kpm-icon img {
  width: 20px;
  height: 20px;
}

.kpm-nav__divider {
  width: 100%;
  height: 1px;
  background: rgba(177, 151, 77, 0.3);
  margin: 0 auto;
  max-width: 100%;
}

/* Mobile Menu Toggle (Hidden by default, shown on mobile) */
.kpm-nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.kpm-nav__mobile-toggle span {
  width: 25px;
  height: 3px;
  background: #B1974D !important;
  background-color: #B1974D !important;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  margin: 2px 0;
}

.kpm-nav__mobile-toggle.active span:nth-child(1) {
  background: #B1974D !important;
  background-color: #B1974D !important;
  transform: rotate(-45deg) translate(-5px, 6px);
}

.kpm-nav__mobile-toggle.active span:nth-child(2) {
  background: #B1974D !important;
  background-color: #B1974D !important;
  opacity: 0;
}

.kpm-nav__mobile-toggle.active span:nth-child(3) {
  background: #B1974D !important;
  background-color: #B1974D !important;
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.kpm-nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.kpm-nav__mobile-menu.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

/* Ensure mobile menu is visible on mobile devices */
@media screen and (max-width: 1024px) {
  .kpm-nav__mobile-menu {
    z-index: 9999 !important;
  }
  
  .kpm-nav__mobile-menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Mobile Menu Header */
.kpm-nav__mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(177, 151, 77, 0.3);
}

.kpm-nav__mobile-logo img {
  height: 40px;
  width: auto;
}

.kpm-nav__mobile-close {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.kpm-nav__mobile-close span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 2px 0;
}

.kpm-nav__mobile-close span:first-child {
  transform: rotate(45deg) translate(0px, 0px);
}

.kpm-nav__mobile-close span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Content */
.kpm-nav__mobile-content {
  padding: 40px 20px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Mobile Navigation Tabs */
.kpm-nav__mobile-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kpm-nav__mobile-tab {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: left;
  border-left: 4px solid transparent;
  background-color: rgba(255, 255, 255, 0.05);
}

.kpm-nav__mobile-tab:hover {
  background-color: rgba(177, 151, 77, 0.2);
  border-left-color: #B1974D;
  transform: translateX(10px);
}

/* Mobile Toggle Section */
.kpm-nav__mobile-toggle-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(177, 151, 77, 0.3);
  border-bottom: 1px solid rgba(177, 151, 77, 0.3);
}

.kpm-nav__mobile-toggle-section .ui-switch {
  transform: scale(1.5);
}

/* Mobile Social Icons */
.kpm-nav__mobile-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kpm-nav__mobile-social .kpm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(177, 151, 77, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.kpm-nav__mobile-social .kpm-icon:hover {
  background-color: rgba(177, 151, 77, 0.3);
  transform: scale(1.1);
  border-color: #B1974D;
}

.kpm-nav__mobile-social .kpm-icon img {
  width: 24px;
  height: 24px;
}

/* Keep TikTok icon slightly larger in navbar/mobile navbar */
.kpm-nav__icons .kpm-icon img[src*="twitter.svg"],
.kpm-nav__icons .kpm-icon img[src*="twitter-white.svg"],
.kpm-nav__mobile-social .kpm-icon img[src*="twitter.svg"],
.kpm-nav__mobile-social .kpm-icon img[src*="twitter-white.svg"] {
  width: 34px;
  height: 34px;
}

/* Light Mode Mobile Menu Styles */
.kpm-nav__mobile-menu .kpm-nav__mobile-tab[style*="color: black"] {
  color: black !important;
}

.kpm-nav__mobile-menu .kpm-nav__mobile-tab[style*="color: black"]:hover {
  background-color: rgba(177, 151, 77, 0.2);
  color: #B1974D !important;
}

/* Dark Mode Mobile Toggle Styles */
.t-dark-mode .kpm-nav__mobile-toggle span {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

.t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(1) {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

.t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(2) {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

.t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(3) {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

/* Mobile and Tablet Responsive - Desktop-like Layout */
@media screen and (max-width: 1024px) {

  /* Mobile Navbar - Keep desktop layout but smaller */
  .kpm-nav {
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .kpm-nav__logo {
    margin: 0;
    order: 1;
  }

  .kpm-nav__mobile-toggle {
    display: flex;
    order: 3;
    margin: 0;
  }

  .kpm-nav__tabs {
    display: none;
  }

  .kpm-nav__icons {
    display: none;
  }
}

/* Mobile Menu styles are now handled by this file */

@media screen and (max-width: 992px) {
  /* Drop legacy 320vh canvas from kpm.scss (#wrap.dark-mode) — content uses flex flow */
  #wrap.news-events-page:not(.expo-detail),
  #wrap.dark-mode.news-events-page:not(.expo-detail) {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }

  html:has(#wrap.news-events-page:not(.expo-detail)),
  body:has(#wrap.news-events-page:not(.expo-detail)),
  #wrapwrap:has(#wrap.news-events-page:not(.expo-detail)) {
    min-height: 0 !important;
    height: auto !important;
  }

  #wrap.news-events-page {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-top: clamp(84px, 22vw, 128px);
  }

  #wrap.news-events-page>.kpm-nav {
    order: 0;
  }

  #wrap.news-events-page>.kpm-nav__mobile-menu {
    order: 8;
  }

  #wrap.news-events-page>.kpm-svg-about-us {
    order: 3;
    position: relative !important;
    top: -420px !important;
    height: 335px !important;
    margin: -420px auto -200px;
    display: flex;
    justify-content: center;
  }

  #wrap.news-events-page>.kpm-news-events-text-header {
    order: 4;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 24px auto 36px;
    text-align: center;
    z-index: 2;
  }

  #wrap.news-events-page>.kpm-news-events-rectangle-container {
    order: 1;
  }

  #wrap.news-events-page>.kpm-news-events-header-image {
    order: 2;
  }

  #wrap.news-events-page>.kpm-news-events-container {
    order: 5;
    height: auto !important;
  }

  #wrap.news-events-page>.kpm-news-events-numbers {
    order: 6;
  }

  #wrap.news-events-page>.KPM_WEBSITE_FOOTER_NEWS_EVENTS {
    order: 7;
  }

  #wrap.expo-detail {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-top: clamp(84px, 22vw, 128px);
    min-height: 100vh;
  }

  #wrap.expo-detail > div:first-child {
    order: 0;
    width: 100%;
  }

  #wrap.expo-detail > .kpm-nav__mobile-menu {
    order: 1;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-svg-end {
    order: 5 !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    margin: clamp(12px, 3.6vw, 20px) auto 0 !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-desc {
    order: 1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: calc(100% - 32px) !important;
    margin: 0 auto clamp(10px, 3.6vw, 18px) !important;
    padding: clamp(12px, 4vw, 22px) clamp(14px, 4vw, 22px) clamp(16px, 4.6vw, 24px) !important;
    border-radius: clamp(12px, 3.6vw, 18px) !important;
    display: grid !important;
    grid-template-columns: auto 1fr;
    column-gap: clamp(6px, 1.8vw, 12px) !important;
    row-gap: clamp(6px, 2vw, 12px) !important;
    box-sizing: border-box !important;
    height: fit-content !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-back {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 0 clamp(10px, 3vw, 16px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: clamp(4px, 1.6vw, 10px) !important;
    grid-column: 1 / -1;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-back-text {
    width: auto !important;
    height: auto !important;
    font-size: clamp(15px, 4.4vw, 18px) !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.18 !important;
    grid-column: 1 / -1;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-header-svg-date,
  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-header-svg-location {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-top: clamp(6px, 2.2vw, 12px) !important;
    margin-right: clamp(4px, 1.5vw, 8px) !important;
    grid-column: 1 / 2;
    justify-self: flex-start !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-date-text,
  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-location-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-top: clamp(6px, 2.2vw, 12px) !important;
    margin-right: clamp(6px, 1.8vw, 10px) !important;
    font-size: clamp(14px, 4.2vw, 17px) !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    grid-column: 2 / 3;
    justify-self: flex-start !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-date-text2,
  #wrap.expo-detail .Dubai-Jewelry-Expo-desc-location-text2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    margin: clamp(2px, 1vw, 6px) 0 0 0 !important;
    font-size: clamp(14px, 4.3vw, 17px) !important;
    line-height: 1.45 !important;
    grid-column: 2 / 3;
    justify-self: flex-start !important;
    width: 100% !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-image {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    margin: clamp(12px, 3.6vw, 20px) auto 0 !important;
    display: block !important;
    object-fit: cover !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-descriptions {
    order: 3 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: calc(100% - 32px) !important;
    margin: clamp(10px, 3.5vw, 18px) auto clamp(20px, 6vw, 32px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(10px, 3vw, 16px) !important;
    font-size: clamp(16px, 4.5vw, 18px) !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-image2 {
    order: 4 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    margin: clamp(14px, 116.2vw, 430px) auto 0 !important;
    display: block !important;
    object-fit: cover !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-descriptions span,
  #wrap.expo-detail .Dubai-Jewelry-Expo-descriptions li {
    width: 100% !important;
  }

  #wrap.expo-detail .Dubai-Jewelry-Expo-descriptions li {
    margin-left: clamp(18px, 5vw, 28px) !important;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL {
    order: 6;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    margin-top: clamp(24px, 7vw, 40px) !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    background: #ffffff !important;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-flags-div {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px !important;
    padding: 20px 0 !important;
    justify-items: center !important;
    order: 1;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
    gap: 15px !important;
    float: none !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 auto !important;
    order: 2;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons > div {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #b1974d !important;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons > div a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-desc2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    text-align: center !important;
    margin: 12px auto 0 !important;
    padding: 0 20px 10px 20px !important;
    order: 3;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-line {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: 10px auto !important;
    order: 4;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-desc {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: normal !important;
    text-align: center !important;
    order: 5;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-desc span {
    display: block !important;
    white-space: normal !important;
    margin-left: 0 !important;
  }

  #wrap.dark-mode-events-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL {
    background: #000000 !important;
  }

  #wrap.dark-mode-events-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL,
  #wrap.dark-mode-events-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL * {
    color: #ffffff !important;
  }

  .kpm-news-events-header-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 92% !important;
    max-width: 100%;
    height: auto !important;
    display: block !important;
    margin: clamp(0px, 3px, 0px) auto clamp(420px, 75vw, 580px) !important;
    object-fit: cover !important;
    max-height: clamp(220px, 58vw, 360px) !important;
  }

  .kpm-news-events-container>div[class^="kpm-news-events"] {
    border-radius: 0 !important;
    position: relative !important;
    height: auto !important;
    min-height: clamp(460px, 120vw, 640px) !important;
  }

  .kpm-news-events-container>div[class^="kpm-news-events"] .kpm-news-event-image {
    border-radius: 0 !important;
    width: 100% !important;
  }

  .kpm-news-events-container>div[class^="kpm-news-events"] .kpm-news-event-header {
    position: absolute !important;
    top: clamp(15px, 7vw, 30px) !important;
    left: clamp(16px, 7.5vw, 30px) !important;
    transform: none !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(4px, 1.5vw, 8px) clamp(10px, 3vw, 16px) !important;
  }

  .kpm-news-events-container>div[class^="kpm-news-events"] .kpm-news-event-readme {
    display: inline-flex !important;
    align-items: center !important;
    gap: clamp(6px, 2vw, 12px) !important;
    position: static !important;
    margin-top: clamp(16px, 20vw, 70px) !important;
    margin-right: 0 !important;
    white-space: nowrap !important;
    width: fit-content !important;
    height: auto !important;
    color: inherit !important;
  }

  .kpm-news-events-container>div[class^="kpm-news-events"] .kpm-news-event-readme::after {
    content: "\2192";
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 600;
    line-height: 1;
    color: #B1974D;
    margin-left: clamp(4px, 1.5vw, 12px);
  }

  .kpm-news-events-container>div[class^="kpm-news-events"] .kpm-news-event-svg {
    display: none !important;
  }

  .kpm-news-events-rectangle-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    max-width: 540px !important;
    margin: clamp(0px, 0px, 0px) auto clamp(0px, 0px, 0px) !important;
    padding: clamp(20px, 5.2vw, 28px) clamp(20px, 5vw, 28px) clamp(26px, 6vw, 34px) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: clamp(14px, 3.8vw, 22px) !important;
  }

  .kpm-news-events {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: fit-content !important;
    margin: 0 !important;
    padding: clamp(8px, 2.4vw, 12px) clamp(16px, 4.8vw, 24px) !important;
    background: #f0ead8 !important;
  }

  .kpm-news-events-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    display: inline-block !important;
    font-size: clamp(16px, 4.4vw, 20px) !important;
    letter-spacing: 0.01em !important;
    text-transform: none;
  }

  .kpm-news-events-text2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: clamp(8px, 2.8vw, 16px) 0 clamp(6px, 2vw, 12px) !important;
    font-size: clamp(28px, 7vw, 38px) !important;
    line-height: 1.2 !important;
    text-align: left !important;
    font-family: "Nexa-Bold", "Nexa", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }

  .kpm-event-btn {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 60% !important;
    margin: clamp(14px, 4vw, 20px) 0 0 !important;
  }

  .kpm-news-events-rectangle-container .kpm-event-btn {
    margin: clamp(16px, 4.2vw, 24px) 0 0 !important;
    align-self: stretch !important;
  }

  .kpm-event-btn a {
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(6px, 2vw, 12px) !important;
    border-radius: 12px !important;
  }

  .kpm-news-events-text-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: clamp(0px, 0vw, 0px) 0 clamp(18px, 5vw, 28px) !important;
    text-align: center !important;
  }

  .kpm-news-events-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: clamp(18px, 5vw, 26px) 0 clamp(24px, 6vw, 36px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(24px, 6vw, 34px) !important;
    align-items: center !important;
  }

  .kpm-news-events-container>div[class^="kpm-news-events"] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: clamp(20px, 5.5vw, 32px) clamp(18px, 5vw, 28px) clamp(24px, 6vw, 34px) !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(20px, 4.5vw, 25px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .kpm-news-event-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 clamp(12px, 4vw, 16px) !important;
    border-radius: 14px !important;
    object-fit: cover !important;
  }

  .kpm-news-event-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(6px, 2vw, 10px) clamp(12px, 4vw, 18px) !important;
  }

  .kpm-news-event-date,
  .kpm-news-event-text,
  .kpm-news-event-desc {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .kpm-news-event-text {
    font-size: clamp(18px, 5.5vw, 24px) !important;
    line-height: 1.35 !important;
  }

  .kpm-news-event-desc {
    font-size: clamp(15px, 4.5vw, 18px) !important;
    line-height: 1.6 !important;
  }

  .kpm-news-event-readme {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: clamp(10px, 3vw, 16px) !important;
  }

  .kpm-news-event-svg {
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  .kpm-news-events-numbers {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: clamp(24px, 6vw, 36px) auto 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(12px, 4vw, 18px) !important;
  }

  .kpm-news-events-numbers svg,
  .kpm-news-events-numbers span {
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    margin-top: clamp(24px, 7vw, 40px) !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-flags-div {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px !important;
    padding: 20px 0 !important;
    justify-items: center !important;
    order: 1;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons,
  #wrap.news-events-page .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
    gap: 15px !important;
    float: none !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 auto !important;
    order: 2;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons > div,
  #wrap.news-events-page .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons > div {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #b1974d !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons > div a,
  #wrap.news-events-page .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons > div a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons img,
  #wrap.news-events-page .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    text-align: center !important;
    margin: 12px auto 0 !important;
    padding: 0 20px 10px 20px !important;
    order: 3;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-line {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: 10px auto !important;
    order: 4;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: normal !important;
    text-align: center !important;
    order: 5;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc span {
    display: block !important;
    white-space: normal !important;
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 768px) {

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS {
    padding: 26px 16px !important;
    gap: 18px;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL {
    padding: 26px 16px !important;
    gap: 18px;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-flags-div {
    gap: 16px 18px !important;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-flags-div {
    gap: 16px 18px !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons {
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc2 {
    font-size: 14px;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-desc2 {
    font-size: 14px;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc {
    font-size: 12px;
  }

  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-desc {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL {
    padding: 24px 14px !important;
    gap: 16px;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-flags-div,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-flags-div {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px !important;
    padding: 18px 12px !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons {
    gap: 12px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons > div,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons > div {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-social-media-icons img,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-social-media-icons img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain !important;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc2,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-desc2 {
    font-size: 13px;
  }

  .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc,
  #wrap.expo-detail .KPM_WEBSITE_FOOTER_CAREERS-DETIAL .kpm-footer-desc {
    font-size: 11px;
  }
}

/* ══════════════════════════════════════════════════════
   BANNER INNER ELEMENTS — always flow as a column
   (only overrides elements INSIDE the banner box,
   never touches the page-level hero layout)
   ══════════════════════════════════════════════════════ */

/* Label pill: remove absolute position so it stacks first */
.kpm-news-events {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

/* Title: remove absolute position so it stacks second */
.kpm-news-events-text2 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  font-size: clamp(18px, 2vw, 26px) !important;
  line-height: 1.3 !important;
}

/* Banner intro title + event details (dynamic page config) */
.kpm-news-events-banner-intro-wrap {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

.kpm-news-events-banner-meta {
  width: 100% !important;
  padding-top: 16px !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-sizing: border-box !important;
}

#wrap.news-events-page:not(.dark-mode) .kpm-news-events-banner-meta {
  border-top-color: rgba(0, 0, 0, 0.15) !important;
}

.kpm-news-events-banner-intro {
  margin: 0 !important;
  font-family: "Nexa-Bold", "Nexa", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: clamp(22px, 2.4vw, 36px) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
}

.kpm-news-events-banner-intro p,
.kpm-news-events-banner-intro span,
.kpm-news-events-banner-intro strong,
.kpm-news-events-banner-intro em {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
}

.kpm-news-events-banner-details-wrap {
  width: 100% !important;
  padding-top: 12px !important;
  margin-top: 0 !important;
  box-sizing: border-box !important;
}

.kpm-news-events-banner-details {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #cccccc !important;
}

.kpm-news-events-banner-details p,
.kpm-news-events-banner-details span,
.kpm-news-events-banner-details strong,
.kpm-news-events-banner-details em {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

#wrap.news-events-page:not(.dark-mode) .kpm-news-events-banner-intro,
#wrap.news-events-page:not(.dark-mode) .kpm-news-events-banner-intro p,
#wrap.news-events-page:not(.dark-mode) .kpm-news-events-banner-intro span {
  color: #2d2e2e !important;
}

#wrap.news-events-page:not(.dark-mode) .kpm-news-events-banner-details,
#wrap.news-events-page:not(.dark-mode) .kpm-news-events-banner-details p,
#wrap.news-events-page:not(.dark-mode) .kpm-news-events-banner-details span {
  color: #4a4a4a !important;
}

#wrap.dark-mode.news-events-page .kpm-news-events-banner-intro,
#wrap.dark-mode.news-events-page .kpm-news-events-banner-intro * {
  color: #ffffff !important;
}

#wrap.dark-mode.news-events-page .kpm-news-events-banner-details,
#wrap.dark-mode.news-events-page .kpm-news-events-banner-details * {
  color: #cccccc !important;
}

/* Banner container: keep as flex column for inner content.
   Position (absolute, top, left) intentionally NOT overridden —
   the SCSS values place it correctly over the hero image. */
.kpm-news-events-rectangle-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  height: auto !important;
  box-sizing: border-box !important;
}

/* ══════════════════════════════════════════════════════
   DESKTOP (≥993px) — cards grid only
   Hero section (image + banner) keeps its SCSS absolute
   positioning intact. Only the cards and pagination are
   adjusted here.
   ══════════════════════════════════════════════════════ */
@media screen and (min-width: 993px) {

  /* ══ Cards container: keep absolute position from SCSS,
        switch to flex-wrap so all cards (including 7+) flow correctly ══ */
  .kpm-news-events-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 22px !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* <a> wrapper for clickable cards */
  .kpm-news-events-container > a {
    display: block !important;
    width: 367px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
  }

  /* Individual cards: position: relative so they flow in the flex grid
     (fixes cards 7+ which have no SCSS absolute coordinates) */
  .kpm-news-events-container > div[class*="kpm-news-events"],
  .kpm-news-events-container > a > div[class*="kpm-news-events"] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 367px !important;
    height: auto !important;
    min-height: 546px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
  }

  /* Card image */
  .kpm-news-events-container div[class*="kpm-news-events"] .kpm-news-event-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 265px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  /* Type badge overlays image corner */
  .kpm-news-events-container div[class*="kpm-news-events"] .kpm-news-event-header {
    position: absolute !important;
    top: 11px !important;
    left: 7px !important;
    width: auto !important;
    height: auto !important;
  }

  /* Date */
  .kpm-news-events-container div[class*="kpm-news-events"] .kpm-news-event-date {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 16px 31px 0 !important;
  }

  /* Card title */
  .kpm-news-events-container div[class*="kpm-news-events"] .kpm-news-event-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 31px 0 !important;
  }

  /* Description */
  .kpm-news-events-container div[class*="kpm-news-events"] .kpm-news-event-desc {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 8px 31px 16px !important;
  }

  /* Pagination position — JS sets top dynamically after cards render */
  #wrap.news-events-page > .kpm-pagination {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 3 !important;
  }
}

/* ══════════════════════════════════════════════════════
   PAGINATION — styles for all screen sizes
   ══════════════════════════════════════════════════════ */
.kpm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap !important;
  gap: 6px;
  padding: 20px 0 36px;
  width: 100%;
  box-sizing: border-box;
}

/* Page number buttons must flow horizontally inside their wrapper div */
#kpm-page-numbers {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

.kpm-card-item {
  display: block;
}

.kpm-page-arrow {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 22px;
  font-weight: 300;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  line-height: 1;
}

.kpm-page-arrow:hover:not(:disabled) {
  background: rgba(177, 151, 77, 0.15);
  color: #B1974D;
}

.kpm-page-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.kpm-page-number {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, font-weight 0.1s;
  padding: 0;
  font-family: "Nexa", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.kpm-page-number:hover {
  background: rgba(177, 151, 77, 0.12);
  color: #B1974D;
}

.kpm-page-number.kpm-page-active {
  color: #B1974D;
  font-weight: 700;
}

/* Mobile: pagination in flex order after cards */
@media screen and (max-width: 992px) {
  #wrap.news-events-page > .kpm-pagination {
    order: 5 !important;
  }
}

/* Mobile + Tablet: keep pagination visible under cards (light + dark) */
@media screen and (max-width: 1024px) {
  #wrap.news-events-page > .kpm-pagination,
  #wrap.dark-mode-news-events-page > .kpm-pagination {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    right: auto !important;
    display: flex !important;
    width: 100% !important;
    margin: 14px auto 26px !important;
    z-index: 5 !important;
    order: 6 !important;
  }
}

/* Desktop list page: black canvas, footer tracks content (no 320vh gap) */
@media screen and (min-width: 993px) {
  html:has(#wrap.dark-mode.news-events-page:not(.expo-detail)),
  body:has(#wrap.dark-mode.news-events-page:not(.expo-detail)),
  #wrapwrap:has(#wrap.dark-mode.news-events-page:not(.expo-detail)) {
    background-color: #000000 !important;
  }

  #wrap.dark-mode.news-events-page:not(.expo-detail) {
    background-color: #000000 !important;
    color: #ffffff !important;
    min-height: auto !important;
    height: auto !important;
  }

  #wrap.dark-mode.news-events-page:not(.expo-detail) .kpm-news-events-text-header {
    color: #ffffff !important;
  }

  #wrap.dark-mode.news-events-page:not(.expo-detail) .kpm-news-events-container > div[class*="kpm-news-events"],
  #wrap.dark-mode.news-events-page:not(.expo-detail) .kpm-news-events-container > a > div[class*="kpm-news-events"] {
    background: #303030 !important;
  }

  #wrap.dark-mode.news-events-page:not(.expo-detail) .kpm-news-event-date,
  #wrap.dark-mode.news-events-page:not(.expo-detail) .kpm-news-event-text,
  #wrap.dark-mode.news-events-page:not(.expo-detail) .kpm-news-event-desc {
    color: #ffffff !important;
  }

  #wrap.news-events-page:not(.expo-detail) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS,
  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
  }
}

/* Light mode list page — full white canvas (JS + dark rules must not leak) */
@media screen and (min-width: 993px) {
  html:has(#wrap.news-events-page:not(.dark-mode)),
  body:has(#wrap.news-events-page:not(.dark-mode)),
  #wrapwrap:has(#wrap.news-events-page:not(.dark-mode)) {
    background-color: #ffffff !important;
  }

  #wrap.news-events-page:not(.dark-mode) {
    background-color: #ffffff !important;
    color: #2d2e2e !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* Hero stack (light): pattern 1728×648 → image → text box (anchor top-left like dark) */
  #wrap.news-events-page:not(.dark-mode) .kpm-svg-about-us {
    position: absolute !important;
    top: 130px !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    width: min(1728px, 100vw) !important;
    max-width: 100vw !important;
    height: min(648px, calc(100vw * 648 / 1728)) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-svg-about-us img {
    width: min(1728px, 100vw) !important;
    height: min(648px, calc(100vw * 648 / 1728)) !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: top left !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    display: block !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-header-image {
    z-index: 1 !important;
    position: absolute !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-rectangle-container {
    z-index: 2 !important;
    position: absolute !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-text-header {
    z-index: 1 !important;
    position: absolute !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-text-header {
    color: #2d2e2e !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-rectangle-container {
    background: #ffffff !important;
    color: #2d2e2e !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-text2 {
    color: #2d2e2e !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-container > div[class*="kpm-news-events"],
  #wrap.news-events-page:not(.dark-mode) .kpm-news-events-container > a > div[class*="kpm-news-events"] {
    background: #f6f6f6 !important;
  }

  #wrap.news-events-page:not(.dark-mode) .kpm-news-event-date,
  #wrap.news-events-page:not(.dark-mode) .kpm-news-event-text,
  #wrap.news-events-page:not(.dark-mode) .kpm-news-event-desc {
    color: #2d2e2e !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS {
    background: #ffffff !important;
    color: #2d2e2e !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc,
  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-footer-desc2,
  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-first-flag-number,
  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-second-flag-number,
  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-third-flag-number,
  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS .kpm-fourth-flag-number {
    color: #2d2e2e !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .kpm-pagination {
    color: #2d2e2e !important;
  }
}

@media screen and (max-width: 992px) {
  html:has(#wrap.news-events-page:not(.dark-mode)),
  body:has(#wrap.news-events-page:not(.dark-mode)),
  #wrapwrap:has(#wrap.news-events-page:not(.dark-mode)),
  #wrap.news-events-page:not(.dark-mode) {
    background-color: #ffffff !important;
    color: #2d2e2e !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .kpm-svg-about-us {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: min(648px, calc(100vw * 648 / 1728)) !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    overflow: hidden !important;
    z-index: 0 !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .kpm-svg-about-us img {
    width: 100% !important;
    height: auto !important;
    max-height: min(648px, calc(100vw * 648 / 1728)) !important;
    aspect-ratio: 1728 / 648 !important;
    object-fit: cover !important;
    object-position: top left !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .kpm-news-events-header-image {
    z-index: 1 !important;
    position: relative !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .kpm-news-events-rectangle-container {
    z-index: 2 !important;
    position: relative !important;
  }

  #wrap.news-events-page:not(.dark-mode) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS {
    background: #ffffff !important;
  }
}

@media screen and (min-width: 1729px) {
  #wrap.news-events-page:not(.expo-detail) {
    --news-events-extra-shift: max(0px, calc((100vw - 1728px) * 0.72));
  }

  #wrap.news-events-page:not(.expo-detail) > .kpm-svg-about-us {
    position: absolute !important;
    top: 130px !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 648px !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  #wrap.news-events-page:not(.expo-detail) > .kpm-svg-about-us img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: top left !important;
    display: block !important;
  }

  #wrap.news-events-page:not(.expo-detail) > .kpm-news-events-header-image {
    position: absolute !important;
    top: 117px !important;
    left: auto !important;
    right: 0 !important;
    width: 1200px !important;
    max-width: 1200px !important;
    height: 675px !important;
    object-fit: cover !important;
    z-index: 1 !important;
  }

  #wrap.news-events-page:not(.expo-detail) > .kpm-news-events-rectangle-container {
    position: absolute !important;
    top: 196px !important;
    left: calc(163px + var(--news-events-extra-shift)) !important;
    width: 636px !important;
    max-width: 636px !important;
    min-height: 448px !important;
    height: auto !important;
    z-index: 2 !important;
  }

  #wrap.news-events-page:not(.expo-detail) > .kpm-news-events-text-header {
    position: absolute !important;
    top: 945px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1 !important;
  }

  #wrap.news-events-page:not(.expo-detail) > .KPM_WEBSITE_FOOTER_NEWS_EVENTS {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
  }
}