/* Google Font: Merriweather */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');


#header .header-nav-top .nav > li > a, #header .header-nav-top .nav > li > span {
    font-size: 13px;
}
@media (min-width: 992px) {
    #header .header-nav-main nav > ul > li > a {
        font-size: 16px;
    }
}

.card-custom .card-body-custom {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-box-custom {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-box-content {
    flex: 1;
    text-align: center;
}

.featured-box-buttons {
    margin-top: auto;
    text-align: center;
}


.blue-border .border-bottom, .blue-border .border-top{
  border-color:#1a3a5b !important;
}

@media (max-width: 991px) {
  .px-remove-mobile{
    padding: 0px;
  }
  .blue-border .border-bottom, .blue-border .border-top{
  border:none !important;
  }
  #header .header-nav-main nav > ul li.dropdown .dropdown-menu li.dropdown-submenu > a .fa-chevron-down {
    display: none;
  }
}
.dropdown-menu {
background-color: var(--primary);
}
.dropdown-menu .dropdown-mega-sub-title {
color: #ffffff !important;
}
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li > a {
color: var(--secondary);
font-weight: 500;
font-size: 1em !important;
}
@media (max-width: 991px) {
    #header .header-nav-main nav > ul li.dropdown-mega .dropdown-mega-sub-nav {
        margin: 0;
    }
}
.dropdown-menu p{
color: var(--grey-800) !important;
}

section.bg-primary strong{
  color:#ffffff;
}
html body .tabs.tabs-bottom.tab-border-secondary .nav-tabs .nav-link.active, html body .tabs.tabs-simple.tab-border-secondary .nav-tabs > li .nav-link.active{
  border-bottom-color: var(--secondary);
}

.card-border-secondary .card-border:after {
    background-color: var(--secondary);
}

/* Apply Merriweather to all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Merriweather", serif;
}

.featured-boxes .card{
  height: 100%;
}

.bg-amaatra-light {
    background: #f5f7fa;
}
.min-vh-70 {
    min-height: 70vh !important;
}

.custom-border-top-grey-1{
    border-top: 1px solid rgba(22, 168, 187, 0.05);
}


/* Background rotator (no layout change, just two cross-fading layers) */
.bg-rotator {
  --fade: 900ms;   /* default fade duration; overridden by data-fade */
  --bg1: none;
  --bg2: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #000; /* optional fallback */
}

.bg-rotator::before,
.bg-rotator::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: opacity var(--fade) ease-in-out;
}

.bg-rotator::before { background-image: var(--bg1); opacity: 1; }
.bg-rotator::after  { background-image: var(--bg2); opacity: 0; }

/* cross-fade toggle class */
.bg-rotator.is-swap::before { opacity: 0; }
.bg-rotator.is-swap::after  { opacity: 1; }

.bg-rotator.overlay-show::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--bs-primary, #007bff); /* fallback if --bs-primary missing */
  opacity: 0.7; /* match overlay-op-8 */
  z-index: 0;
}
.bg-rotator > * {
  position: relative;
  z-index: 1;
}
