/* =========================================================
   Mtandao Academy — layout and brand fixes (Quedecato theme)
   ========================================================= */
:root {
  --mta-blue: #1A53A1;
  --mta-navy: #0E3478;
  --mta-gold: #F5C518;
  --mta-maroon: #7A2A32;
  --mta-white: #FFFFFF;
}

/* Logo: keep the circular mark inside the header only */
.header-area .logo,
.menu-area .logo {
  width: auto !important;
  max-width: 72px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.header-area .logo img,
.menu-area .logo img {
  width: auto !important;
  max-width: 64px !important;
  height: auto !important;
  max-height: 64px !important;
  object-fit: contain !important;
}

.footer-logo img,
.footer .logo img {
  max-height: 64px !important;
  width: auto !important;
}

/* Main nav row alignment */
.header-three .second-menu .row,
.header-three .menu-area .row,
.header-top .row {
  align-items: center !important;
}

.header-three .menu-area {
  background: #fff;
  min-height: 84px;
}

.header-three .main-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.header-three .main-menu ul li > a {
  color: #0E3478 !important;
  font-weight: 600;
  padding: 10px 12px !important;
  line-height: 1.2;
  white-space: nowrap;
}

.header-three .main-menu {
  overflow: visible;
}

.header-three .main-menu ul li a:hover {
  color: #1A53A1 !important;
}

/* Register button */
.second-header-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.second-header-btn .btn,
.header-three .btn.ss-btn,
.btn.ss-btn {
  padding: 12px 22px !important;
  border-radius: 4px !important;
  background: #1A53A1 !important;
  border-color: #1A53A1 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  float: none !important;
}

.second-header-btn .btn:hover,
.btn.ss-btn:hover {
  background: #0E3478 !important;
  border-color: #0E3478 !important;
  color: #fff !important;
}

/* Top contact bar */
.second-header {
  padding: 10px 0 !important;
  overflow: hidden;
  background: #0E3478 !important;
}

.second-header::before {
  background: #F5C518 !important;
}

.header-cta ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-cta .call-box {
  align-items: center !important;
  gap: 8px;
}

.header-cta .call-box .icon img {
  width: 28px !important;
  height: auto;
}

.call-box .text {
  margin-left: 0 !important;
}

.call-box span {
  margin-bottom: 0 !important;
  line-height: 1.2;
}

.header-social {
  display: flex;
  align-items: center;
}

/* Gold accent on slider kicker line */
.slider-content h5::after,
.slider-content > span::before,
.slider-bg2 .slider-content > span::before {
  background: #F5C518 !important;
}

/* Promo bar (if enabled) */
#promo-outer,
#promo-tab {
  display: none !important;
}

/* WhatsApp floating button — stay fixed above the page, not in the header */
#myButton,
#myButton.venom-button,
.venom-button {
  position: fixed !important;
  top: auto !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  z-index: 9999 !important;
  width: 60px;
  height: 60px;
}

.venom-button .venom-button-button {
  width: 60px !important;
  height: 60px !important;
}

/* Cookie bar */
#cookieWrapper,
.js-cookie-consent {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040 !important;
  padding: 12px 20px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
}

.cookie-consent__agree,
#cookieWrapper .btn {
  white-space: nowrap;
  padding: 8px 16px !important;
  background: #F5C518 !important;
  border-color: #F5C518 !important;
  color: #0E3478 !important;
  font-weight: 600;
}

/* Preloader logo */
.preloader .status-message img {
  max-width: 120px;
  height: auto;
}

.preloader.is-hidden {
  display: none !important;
}

/* =========================================================
   Course / thumbnail grid — stop carousel overlap
   ========================================================= */
.courses,
.instructor-main-block,
.categories-main-block,
.about-area,
.learning-courses-main-block {
  overflow: hidden;
}

.animations-01,
.animations-02 {
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.animations-01 img,
.animations-02 img {
  max-width: 160px;
  height: auto;
}

.row.class-active {
  margin-right: 0 !important;
  margin-left: -12px !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.row.class-active .slick-list,
.row.class-active .slick-track {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  transform: none !important;
  margin: 0 !important;
}

.row.class-active .slick-slide {
  float: none !important;
  height: auto !important;
}

.row.class-active .slick-cloned,
.row.class-active .slick-arrow,
.row.class-active .slick-dots {
  display: none !important;
}

.row.class-active > [class*="col-"],
.row.class-active .slick-slide {
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  width: 33.333% !important;
  padding: 0 12px;
  margin-bottom: 24px;
  float: none !important;
}

.row.class-active .slick-slide > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0;
  margin: 0;
}

@media (max-width: 991px) {
  .row.class-active > [class*="col-"],
  .row.class-active .slick-slide {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 767px) {
  .row.class-active > [class*="col-"],
  .row.class-active .slick-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

.courses-item,
.class-item.courses-item {
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  overflow: hidden;
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(14, 52, 120, 0.08);
}

.courses-item .thumb,
.courses-item .thumb.fix,
.class-img,
.class-img-outer,
.blog-thumb2 {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.courses-item .thumb img,
.class-img img,
.class-img-outer img,
.blog-thumb2 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.s-about-img {
  overflow: hidden;
  border-radius: 8px;
}

.s-about-img img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hover-zoomin {
  overflow: hidden;
}

.hover-zoomin img {
  transition: transform 0.4s ease;
}

.hover-zoomin:hover img {
  transform: scale(1.05);
}

.view-user-img {
  z-index: 2;
}

.view-user-img img {
  object-fit: cover;
  border: 2px solid #fff;
}

.badges.offer-badge,
.offer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

.courses-content {
  overflow: hidden;
}

.truncate {
  width: 100% !important;
  max-width: 100%;
}

.cat-container {
  overflow: hidden;
  padding: 12px 8px;
}

.cat-container .cat-img {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.cat-container .cat-img img {
  max-height: 56px !important;
  max-width: 56px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.facts-block-img {
  overflow: hidden;
}

.facts-block-img img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
}

.single-slider.slider-bg {
  min-height: 640px;
  padding: 80px 0 80px;
  background-size: cover !important;
  background-position: center center !important;
  position: relative;
  z-index: 1;
}

.single-slider.slider-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 28, 64, 0.88) 0%,
    rgba(14, 52, 120, 0.72) 42%,
    rgba(14, 52, 120, 0.42) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.single-slider.slider-bg .container {
  position: relative;
  z-index: 2;
}

.slider-content h5,
.slider-content h2,
.slider-content p {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.slider-content.s-slider-content {
  margin-top: 80px;
  padding-bottom: 20px;
}

.home-search {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  margin-bottom: 10px;
}

.home-search .search {
  height: auto !important;
  float: none !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: stretch;
  max-width: 520px;
  margin-top: 16px;
}

.home-search .searchTerm {
  flex: 1;
  width: auto !important;
  border: 2px solid #1A53A1 !important;
  border-right: none !important;
  border-radius: 30px 0 0 30px !important;
  height: 48px !important;
  color: #1A2332;
  background: #fff;
}

.home-search .searchButton {
  position: static !important;
  left: auto !important;
  width: auto !important;
  min-width: 110px;
  height: 48px !important;
  padding: 0 22px;
  border-radius: 0 30px 30px 0 !important;
  background: #1A53A1;
  border: 1px solid #1A53A1;
}

.service-details-two {
  margin-top: 24px !important;
  padding-top: 10px;
  padding-bottom: 30px;
  position: relative;
  z-index: 2;
}

.service-details-two .row {
  align-items: stretch;
}

.service-details-two .col-lg-4,
.service-details-two .col-md-12,
.service-details-two .col-sm-12 {
  display: flex;
}

.services-box07 {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  box-sizing: border-box;
}

.services-box07 .sr-contner {
  width: 100%;
  align-items: flex-start;
}

.services-box07 .sr-contner .text {
  flex: 1;
}

.services-box07 .sr-contner .text h5 {
  min-height: 2.4em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.services-box07 .sr-contner .text p {
  min-height: 2.6em;
  margin-bottom: 0 !important;
}

/* Kill page-wide horizontal scroll from decorative offsets */
html,
body {
  overflow-x: hidden;
}

.s-about-img img,
.step-img2 img,
.step-img3 img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 20px;
}

.step-img2,
.step-img3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.about-content2 ul.green2 {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.about-content2 li {
  width: 50%;
  float: none !important;
  box-sizing: border-box;
  padding-right: 16px;
  margin-top: 16px;
}

.about-content2 .abcontent {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.about-content2 li .text {
  min-width: 0;
  flex: 1;
  overflow: visible;
}

.about-content2 li .text h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 4px;
  white-space: nowrap;
  display: block !important;
}

.about-content2 li .text p {
  margin: 0;
  white-space: normal;
}

.testi-author img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}
