/* blog-nav.css — homepage header/footer chrome for article pages */

body {
  --theme-color: #3E66F3;
  --theme-color2: #00E3DB;
  --title-color: #141D38;
  --white-color: #ffffff;
  --black-color: #000000;
  --title-font: "Barlow", sans-serif;
  --body-font: "Roboto", "Barlow", sans-serif;
  --icon-font: "Font Awesome 5 Free";
  --container-gutters: 24px;
}

/* ---------- Header ---------- */
.th-header {
  position: relative;
  z-index: 41;
}

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

.header-layout17 .menu-area {
  padding: 16px 0;
  border-bottom: none;
}

.sticky-wrapper {
  transition: 0.4s ease-in-out;
}

.sticky-wrapper.sticky {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--theme-color);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  animation: stickyAni 0.4s ease-in-out;
}

@keyframes stickyAni {
  0% {
    transform: translate3d(0, -40px, 0) scaleY(0.8);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(0, 0, 0) scaleY(1);
    opacity: 1;
  }
}

.th-container4 {
  --main-container: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media only screen and (min-width: 1300px) {
  .th-header .container.th-container4,
  .footer-layout19 .container.th-container4 {
    max-width: calc(var(--main-container) + var(--container-gutters));
    padding-left: calc(var(--container-gutters) / 2);
    padding-right: calc(var(--container-gutters) / 2);
  }
}

@media (min-width: 1400px) {
  .footer-layout19 .col-xxl-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.header-logo {
  padding-top: 15px;
  padding-bottom: 15px;
}

@media (max-width: 575px) {
  .header-logo {
    max-width: 150px;
  }
}

.header-logo img,
.th-widget-about .about-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.main-menu a {
  display: block;
  position: relative;
  font-weight: 600;
  font-size: 16px;
  color: #333333;
  font-family: var(--body-font);
  text-decoration: none;
}

.main-menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu ul li {
  list-style-type: none;
  display: inline-block;
  position: relative;
}

.main-menu ul li:last-child {
  margin-right: 0 !important;
}

.main-menu ul li:first-child {
  margin-left: 0 !important;
}

/* Matches assets/css/style.css — style2 tightens base 14px → 6px */
.main-menu.style2 > ul > li {
  margin: 0 6px;
}

.main-menu.style2 > ul > li > a {
  padding: 2px 16px;
  border-radius: 100px;
  font-size: 18px;
  text-transform: capitalize;
  transition: all 0.4s ease-in-out;
  color: #ffffff;
}

.main-menu.style2 > ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.main-menu.style2 > ul > li.menu-item-has-children > a::after {
  content: "\f078";
  position: relative;
  font-family: var(--icon-font);
  margin-left: 4px;
  font-weight: 600;
  font-size: 1em;
}

.product-mega-wrap {
  position: relative;
}

/* Products mega menu */
.product-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  list-style: none;
  padding: 30px !important;
  margin: 0;
  width: 800px;
  max-width: 92vw;
}

.product-mega-wrap:hover > .product-mega-menu,
.product-mega-wrap > .product-mega-menu:hover,
.product-mega-wrap:focus-within > .product-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(15px);
}

.product-mega-menu li {
  flex: 1 1 45%;
  list-style: none;
}

.product-mega-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
  color: #212529;
}

.product-mega-menu li a:hover {
  background: #f5f6ff;
  color: #212529;
}

.product-mega-menu img {
  width: 36px;
  height: 36px;
}

.product-mega-menu .info {
  display: flex;
  flex-direction: column;
}

.product-mega-menu .desc {
  font-size: 15px;
  color: #666;
  line-height: 1.2;
  padding-top: 10px;
  font-weight: 400;
}

.product-mega-menu .title {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
}

.product-mega-menu .title::after {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  color: #fff;
  line-height: 1.2;
  vertical-align: middle;
}

.product-mega-menu .title.new::after {
  content: "NEW";
  background: #4066f2;
}

.product-mega-menu .title.hot::after {
  content: "HOT";
  background: #ff3b3b;
}

.product-mega-menu .view-all {
  flex-basis: 100%;
  text-align: center;
  margin-top: 20px;
}

.product-mega-menu .view-all a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-mega-menu .view-all a:hover {
  background: rgba(2, 206, 128, 1);
  color: #fff;
  border-color: rgba(2, 206, 128, 1);
}

.th-menu-toggle {
  padding: 0;
  font-size: 20px;
  border: none;
  background-color: var(--theme-color);
  color: var(--white-color);
  display: inline-block;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  vertical-align: middle;
}

.th-header .th-menu-toggle {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.th-header .th-menu-toggle:hover {
  background-color: #ffffff;
  color: var(--theme-color);
}

.th-menu-toggle:hover {
  background-color: var(--title-color);
}

/* Mobile drawer */
.th-menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  width: 100%;
  height: 100%;
  transition: all ease 0.8s;
  opacity: 0;
  visibility: hidden;
}

.th-menu-wrapper.th-body-visible {
  opacity: 1;
  visibility: visible;
}

.th-menu-wrapper .th-menu-area {
  width: 100%;
  max-width: 310px;
  background-color: #fff;
  border-right: 3px solid var(--theme-color);
  height: 100%;
  position: relative;
  left: -110%;
  opacity: 0;
  visibility: hidden;
  transition: all ease 1s;
  z-index: 1;
}

.th-menu-wrapper.th-body-visible .th-menu-area {
  left: 0;
  opacity: 1;
  visibility: visible;
}

.th-menu-wrapper .mobile-logo {
  padding-bottom: 30px;
  padding-top: 40px;
  display: block;
  text-align: center;
  background-color: var(--black-color);
}

.th-menu-wrapper .mobile-logo a {
  display: inline-block;
}

.th-menu-wrapper .mobile-logo img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 48px;
  width: auto;
}

.th-menu-wrapper .th-menu-toggle {
  position: absolute;
  right: -16.5px;
  top: 25px;
  width: 33px;
  height: 33px;
  line-height: 33px;
  font-size: 18px;
  z-index: 1;
  border-radius: 50%;
}

.th-mobile-menu {
  overflow-y: scroll;
  max-height: calc(100vh - 200px);
  padding-bottom: 40px;
  margin-top: 33px;
  text-align: left;
}

.th-mobile-menu ul {
  margin: 0;
  padding: 0;
}

.th-mobile-menu > ul {
  padding: 0 40px;
}

@media (max-width: 400px) {
  .th-menu-wrapper .th-menu-area {
    max-width: 270px;
  }
  .th-mobile-menu > ul {
    padding: 0 20px;
  }
}

.th-mobile-menu ul li {
  border-bottom: 1px solid #fdedf1;
  list-style-type: none;
}

.th-mobile-menu ul li a {
  display: block;
  position: relative;
  padding: 12px 0 12px 18px;
  line-height: 1.4;
  font-size: 16px;
  font-family: var(--body-font);
  text-transform: capitalize;
  color: var(--title-color);
  text-decoration: none;
  font-weight: 600;
}

.th-mobile-menu ul li a:before {
  content: "\f105";
  font-family: var(--icon-font);
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 14px;
}

.th-mobile-menu ul li ul li {
  padding-left: 20px;
}

.th-mobile-menu .mega-menu {
  display: none;
  padding-left: 10px !important;
}

.th-mobile-menu .mega-menu.is-open {
  display: block;
}

.th-mobile-menu .mega-menu a {
  font-size: 14px;
  font-weight: 500;
}

body.bn-menu-open {
  overflow: hidden;
}

/* ---------- Footer background ---------- */
.footer-layout19 {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  color: #fff;
  overflow: hidden;
}

/* Blue/theme tint through footer shape */
.footer-layout19:before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("/images/music-one/footer-bg.webp");
  mask-image: url("/images/music-one/footer-bg.webp");
  background-color: var(--theme-color);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
  -webkit-mask-size: cover;
  mask-size: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark tech graphic — single image, no tile (avoids seams) */
.footer-layout19:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/music-one/footer-bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .footer-layout19:before {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  .footer-layout19:after {
    background-size: 100% 100%;
  }
}

@media (max-width: 767px) {
  .footer-layout19 {
    margin-top: 30px;
    background-color: #0b0d1a;
  }

  .footer-layout19:before {
    display: none;
  }

  /*
   * footer-bg.webp has a transparent top cutout (desktop shape).
   * cover + top aligns that cutout → solid black above the logo.
   * Shift the image up so the textured body fills from the top.
   */
  .footer-layout19:after {
    background-position: center 35%;
    background-size: cover;
    background-color: #0b0d1a;
  }

  .footer-layout19 .widget-area {
    padding: 28px 0 10px 0;
  }
}

.footer-layout19 .widget-area {
  position: relative;
  z-index: 2;
  padding: 165px 0 10px 0;
}

.footer-widget {
  margin-bottom: 50px;
}

.th-widget-about .about-logo {
  margin-bottom: 35px;
  margin-top: -8px;
}

/* logo.png has a baked-in black plate — blend it out on the dark footer */
.footer-layout19 .about-logo img {
  mix-blend-mode: screen;
}

.footer-layout19 .about-text {
  font-size: 16px;
  line-height: 26px;
  font-family: var(--body-font);
}

.footer-layout19 .widget_title {
  max-width: 270px;
  font-size: 22px;
  font-weight: 600;
  font-family: var(--body-font);
  text-transform: capitalize;
  padding: 0 0 30px 0;
  margin: -0.12em 0 35px 0;
  line-height: 1em;
  position: relative;
}

.footer-layout19 .widget_title:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 89px;
  height: 13px;
  background-image: url("/assets/img/theme-img/title_shape_6.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-widget.widget_nav_menu .menu {
  list-style: none;
  margin: 0 0 -5px 0;
  padding: 0;
}

.footer-layout19 .footer-widget.widget_nav_menu a {
  display: block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--body-font);
  margin-bottom: 18px;
  width: max-content;
  max-width: 100%;
}

.footer-wrapper .footer-widget p,
.footer-wrapper .footer-widget a {
  color: #D0D0D0 !important;
}

.footer-widget.widget_nav_menu li img {
  width: 20px;
  vertical-align: middle;
}


.footer-layout19 .th-social a {
  --icon-size: 40px;
  display: inline-block;
  width: var(--icon-size);
  height: var(--icon-size);
  line-height: var(--icon-size);
  text-align: center;
  text-decoration: none;
  position: relative;
  font-size: 16px;
  background-color: var(--white-color);
  color: var(--white-color);
  margin-right: 10px;
  transition: all 0.4s ease-in-out;
  -webkit-mask-image: url("/assets/img/shape/polygon.png");
  mask-image: url("/assets/img/shape/polygon.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.footer-layout19 .th-social a:last-child {
  margin-right: 0;
}

.footer-layout19 .th-social a:before {
  content: "";
  position: absolute;
  inset: 2px;
  background-color: var(--theme-color);
  z-index: -1;
  transition: all 0.4s ease-in-out;
  -webkit-mask-image: url("/assets/img/shape/polygon.png");
  mask-image: url("/assets/img/shape/polygon.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.footer-layout19 .th-social a:hover {
  background-color: #00E3DB;
  color: var(--title-color);
}


.footer-layout19 .copyright-wrap {
  position: relative;
  z-index: 1;
  background-color: #F2F6FF;
  padding: 18px 0;
}

.copyright-text {
  margin: 0;
  color: var(--title-color);
  font-family: var(--body-font);
}

.footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
  display: inline-block;
  padding-right: 15px;
  margin-right: 10px;
  position: relative;
}

.footer-links li:after {
  content: "";
  height: 20px;
  width: 1px;
  background-color: rgba(20, 29, 56, 0.35);
  position: absolute;
  top: 50%;
  right: 0;
  margin: -10px 0;
}

.footer-links li:last-child {
  margin-right: 0;
  padding-right: 0;
}

.footer-links li:last-child:after {
  display: none;
}

.footer-layout19 .footer-links a {
  color: var(--theme-color);
  text-decoration: none;
  font-family: var(--body-font);
}

.footer-layout19 .footer-links a:hover {
  color: var(--title-color);
}

.text-end {
  text-align: right !important;
}
