/* theme.css */
@font-face {
  font-family: "Open-Sans";
  src: url("../fonts/OpenSans-VariableFont_wdth\,wght.ttf");
  font-weight: 100 900;
  /* supports all weights from 100 to 900 */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open-Sans-Italic";
  src: url("../fonts/OpenSans-Italic-VariableFont_wdth\,wght.ttf");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

.ad-728 {
  width: 728px;
  height: 90px;
}

.ad-468 {
  width: 468px;
  height: 60px;
}

.ad-468-120 {
  width: 468px;
  height: 120px;
}

.ad-300 {
  width: 300px;
  height: 250px;
}

.ad-728 img,
.ad-468 img,
.ad-300 img,
.ad-300_100 img {
  width: 100%;
  height: 100%;
}

.ad-300_100 {
  display: none;
}

.desktop-only {
  display: block;
}

html {
  scroll-behavior: smooth;
}

.homepage-border {
  border-bottom: 0.8px #EBEBEB solid;
}

/* Global click feedback on links/buttons */
a,
button {
  transition: transform 0.1s ease, opacity 0.1s ease;
}
a:active,
button:active {
  transform: translateY(1px);
  opacity: 0.9;
  color: #00253f;
  text-shadow: 0 0 1px rgba(0, 37, 63, 0.4);
}

/* ===== Base Theme Variables ===== */
:root {
  --theme-primary: #005587;
  --theme-secondary: #ef3900;
  /* live text color */
  --theme-dark-text: #005586;
  --theme-blue-text: #3389ff;
  --theme-text: #002e44;
  --theme-background: #ffffff;
  --theme-font: "Open Sans", system-ui, sans-serif;
}

/* ===== Global Styles ===== */
body {
  font-family: var(--theme-font);
  background-color: var(--theme-background);
  margin: 0;
}

/* ===== Text Utilities ===== */
h5 {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--theme-text);
  line-height: 16px;
}

.logo-mobile img {
  width: 65px;
  height: 65px;
}

.theme-text-primary {
  color: var(--theme-primary);
}

.theme-text-secondary {
  color: var(--theme-secondary);
}

.theme-text-dark {
  color: var(--theme-dark-text);
}

.theme-text-blue {
  color: var(--theme-blue-text);
}

.theme-text-default {
  color: var(--theme-text);
}

/* ===== Loader Overlay ===== */
.euronews-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9999;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.euronews-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.euronews-loader__dots {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.euronews-loader__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--theme-primary);
  animation: euronews-loader-pulse 0.9s ease-in-out infinite;
}

.euronews-loader__dot:nth-child(2) {
  background: var(--theme-secondary);
  animation-delay: 0.12s;
}

.euronews-loader__dot:nth-child(3) {
  background: var(--theme-blue-text);
  animation-delay: 0.24s;
}

@keyframes euronews-loader-pulse {
  0%,
  80%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.6);
    opacity: 1;
  }
}

/* ===== Background Color Utilities ===== */
.theme-bg-primary {
  background-color: var(--theme-primary);
}

.theme-bg-secondary {
  background-color: var(--theme-secondary);
}

.theme-bg-dark {
  background-color: var(--theme-dark-text);
}

.theme-bg-blue {
  background-color: var(--theme-blue-text);
}

.theme-bg-default {
  background-color: var(--theme-text);
}

.theme-bg-theme {
  background-color: var(--theme-background);
}

.nav-link-theme {
  font-size: 14px;
}

.small-space {
  margin-top: -2px;
}

body.no-scroll {
  overflow: hidden;
}

#searchOverlay {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  z-index: 1050;
}

#mobileMenu {
  width: 100%;
  position: absolute;
}

.dropwdown-mobile-menu {
  margin-top: 30px !important;
}

input:focus {
  box-shadow: none !important;
}

a {
  text-decoration: none;
  color: var(--theme-dark-text);
}

.btn:active {
  border: none !important;
}

.btn {
  border: none !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: white;
}

/* ===== Padding Utility 12px (Responsive) ===== */
.theme-padding-12 {
  padding: 12px;
}

.dropdown-fullwidth {
  width: 100% !important;
  left: -4px !important;
  right: 0 !important;
  transform: none !important;
}

.ivory-color {
  background-color: #F7FBFF;
}

.fs-6 {
  line-height: 21px !important;
}

.fs-7 {
  font-size: 16px;
  line-height: 21px;
}

.fs-5 {
  font-size: 1.25rem !important;
  line-height: 24px !important;
}

.fs-3 {
  font-size: 1.75rem !important;
  line-height: 32px !important;
}

.title-16 {
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

.subtitle-14 {
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
}

.title-21 {
  font-size: 21px;
  line-height: 26px;
}

.title-20 {
  font-size: 20px;
  line-height: 26px;
}

.title-18 {
  font-size: 18px;
  line-height: 22px;
}

.title-30 {
  font-size: 30px;
  line-height: 35px;
}

.title-32 {
  font-size: 32px;
  line-height: 38px;
}

.title-22 {
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

.subtitle-17 {
  font-size: 17px;
  line-height: 21px;
  text-transform: uppercase;
}

.title-16-thin {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.article-14 {
  font-size: 14px;
  line-height: 18px;
}

.border-theme-blue {
  border-left: 2px solid #3389FF;
}

.offcanvas-toggle.open img {
  content: url("../images/x-mobile.png");
}

.homepage-nav {
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.homepage-nav::-webkit-scrollbar {
  display: none;
}

.homepage-nav a {
  white-space: nowrap;
}

.shadow-desktop {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075) !important;
}

.mirror {
  transform: scaleX(-1);
}

.nav-arrow-left,
.nav-arrow-right {
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  height: 30px;
  width: 30px;
  border: none !important;
  flex-shrink: 0;
}

.nav-arrow-left:active,
.nav-arrow-right:active {
  background: rgba(255, 255, 255, 1) !important;
  cursor: pointer;
  height: 30px;
  width: 30px;
  border: none !important;
  flex-shrink: 0
}

.homepage-nav-wrapper {
  display: flex;
  align-items: center;
}

.homepage-nav {
  overflow-x: auto;
  /* scroll only the news */
  flex: 1;
  /* take remaining space */
}

.homepage-nav::-webkit-scrollbar {
  display: none;
  /* hide scrollbar in Chrome/Safari */
}

.flex-shrink-0 {
  flex-shrink: 0;
  /* prevent shrinking inside scroll */
}

.mirror:hover {
  background-color: white !important;
}

.mirror:active {
  background-color: white !important;
}

.mirror:focus {
  background-color: white !important;
}

.homepage-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  /* center on desktop */
  flex-wrap: nowrap;
}

.homepage-nav {
  overflow-x: auto;
  /* scrollable horizontally */
  white-space: nowrap;
  flex: 1;
  /* take remaining space */
  min-width: 0;
  /* prevent overflow issues */
}

/* Inner news items */
.news-items>div {
  flex-shrink: 0;
  /* prevent shrinking */
}

.line-header {
  width: 100%;
  height: 0.8px;
  background-color: #EBEBEB;
}

@media (max-width: 756px) {
  .hide-mobile {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .ad-728 {
    display: none;
  }

  .ad-468 {
    display: none;
  }

  .ad-300 {
    display: none;
  }

  .ad-300_100 {
    width: 300px;
    height: 100px;
    display: block;
  }

}


@media (min-width: 576px) {
  .theme-padding-12 {
    padding: 14px;
  }
}


@media (min-width: 768px) {
  .theme-padding-12 {
    padding: 16px;
  }

  .bg-md-theme-primary {
    background-color: var(--theme-primary) !important;
  }

  .text-md-white {
    color: white !important;
  }
}

@media (min-width: 992px) {
  .theme-padding-12 {
    padding: 20px;
  }
}

@media (min-width: 1200px) {
  .theme-padding-12 {
    padding: 24px;
  }
}


@media (min-width: 900px) {
  .homepage-nav-wrapper {
    justify-content: flex-start;
    padding-left: 10px;
    /* optional spacing */
  }

  .homepage-nav-wrapper {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 992px) {
  nav #program-dropdown-desktop {
    width: 100vw !important;
    left: 60% !important;
    transform: translateX(-50%) !important;
    border: none !important;
    top: 46px !important;
  }

.dropdown-menu_conatiner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* Ensure program dropdown sits above homepage hero */
#program-dropdown-desktop {
  z-index: 1051 !important;
}

  .dropdown-item:hover {
    background-color: transparent !important;
    color: transparent !important;
  }
  .border-bottom-blue{
    border-bottom: 2px solid rgba(0, 85, 134, 1);
    width: 24%;
  }
}

.emision_name:hover {
  color: var(--theme-dark-text) !important;
}

.emision_present:hover {
  color: grey !important;
}

/* Search results */
.search-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 575.98px) {
  .search-thumb {
    height: 140px;
  }
}
.active>.page-link, .page-link.active {
    z-index: 3;
    color: #000000;
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}
.page-link {
    color: #005587;
}
.dropdown-item.active, .dropdown-item:active, .dropdown-item:hover
{
  color: unset !important;
}
.footer-border {
  border-top: 1px solid #e6e6e6;
}
