/* Media page — UAT layout + support-style hero wrapper */

section {
  padding: 40px 0;
}

:root {
  --media-font-primary: "MilligramText-Regular", sans-serif;
  --media-font-heading: "CooperBTLight", sans-serif;
  --media-hero-green: #17a34c;
  --media-hero-text: #2a3442;
}

body.media-page {
  overflow-x: hidden;
}

/* Hero wrapper — header + hero share background */
body.media-page .hero-wrapper {
  position: relative;
  color: #fff;
  background-image: url("/assets/img/request-demo-banner-bg.png");
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #14553e;
  overflow: hidden;
}

body.media-page .hero-wrapper > section {
  position: relative;
  z-index: 1;
}

body.media-page .hero-wrapper > header#header {
  position: relative;
  z-index: 1030 !important;
}

body.media-page .hero-wrapper > header#header.header-scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030 !important;
}

body.media-page .nav_style {
  display: none;
}

body.media-page .hero-wrapper .fixed-top.topnav_bg {
  background: transparent !important;
  z-index: 1031;
}

body.media-page .top_bavbar a {
  color: #000 !important;
  font-weight: 400 !important;
}

body.media-page .top_bavbar a:after {
  border-color: #000 !important;
}

body.media-page .top_bavbar ul li {
  font-size: 16px !important;
  color: #000 !important;
}

body.media-page .hero-wrapper ul.nav_style li a {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #000 !important;
}

body.media-page .hero-wrapper .header_area.fixed-top {
  background: transparent !important;
  padding: 0 !important;
  overflow: visible;
}

body.media-page .hero-wrapper #header.header-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 12px rgba(15, 27, 45, 0.08);
}

body.media-page .hero-wrapper #header.header-scrolled img.img_show {
  display: block !important;
  width: 240px !important;
}

body.media-page .hero-wrapper .navigation {
  display: flex !important;
  justify-content: space-between;
}

body.media-page .hero-wrapper .megamenu-panel,
body.media-page .hero-wrapper .nav-dropdown {
  z-index: 1040 !important;
}

body.media-page .nav-toggle:before {
  background-color: #000 !important;
  box-shadow:
    0 0.5em 0 0 #000,
    0 1em 0 0 #000 !important;
}

@media (min-width: 992px) {
  body.media-page .hero-wrapper header.fixed-top .nav-menu > li > a {
    padding: 40px 10px !important;
  }

  body.media-page .hero-wrapper #header.header-scrolled img.img_show {
    width: 200px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  body.media-page .hero-wrapper #header.header-scrolled {
    height: 120px !important;
  }
}

@media (min-width: 320px) and (max-width: 576px) {
  body.media-page .hero-wrapper header#header.header-scrolled {
    height: 120px !important;
  }
}

@media (min-width: 1200px) {
  body.media-page .hero-wrapper header.fixed-top img.img_show {
    width: 240px !important;
  }

  body.media-page
    .hero-wrapper
    #header.header_area.fixed-top.sticky.header-scrolled
    .nav-header
    .nav-brand
    img {
    width: 240px !important;
  }
}

body.media-page .simple-hero {
  padding: 80px 0;
  color: var(--media-hero-text) !important;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

body.media-page .hero-title {
  font-family: var(--media-font-heading) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  line-height: 1.2 !important;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--media-hero-green) !important;
}

@media (min-width: 300px) and (max-width: 991px) {
  body.media-page h1.hero-title {
    font-size: 50px !important;
    line-height: 65px !important;
  }
}

@media (max-width: 576px) {
  body.media-page .simple-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Category pills */
.btn-category {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid #101828;
  color: #71bf44;
  transition: all 0.25s ease;
}

.btn-category:hover {
  background: #71bf44;
  border-color: #71bf44;
  color: #101828;
}

.btn-category.active {
  background: #101828;
  color: #71bf44;
  border-color: #101828;
  box-shadow: 0 4px 10px rgba(17, 177, 75, 0.3);
}

/* Media grid cards */
.media-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0px 0px 15.9px 2px #00000040;
  transition: 0.3s;
}

.media-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.media-card:hover {
  transform: translateY(-5px);
}

.media-image {
  position: relative;
}

.media-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: red;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.media-category {
  font-size: 13px;
  color: #11b14b;
  margin-bottom: 6px;
}

.media-title {
  color: rgb(66, 154, 195);
  text-decoration: none;
  font-weight: 600;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* Main content typography */
#main,
#main p,
#main a,
#main div,
#main li {
  font-family: var(--media-font-primary);
}

#main .pagination .page-link {
  color: #101828;
  border-color: #dee2e6;
}

#main .pagination .active .page-link {
  background-color: #101828;
  border-color: #101828;
  color: #71bf44;
}

#main .pagination .page-link:hover {
  background-color: #71bf44;
  border-color: #71bf44;
  color: #101828;
}

/* Header nav typography — after style.css */
@media (min-width: 700px) and (max-width: 1920px) {
  body.media-page .hero-wrapper #header.header-scrolled img.img_show {
    display: block !important;
  }
}

body.media-page .hero-wrapper #header a.request_demobtn,
body.media-page .hero-wrapper #header a.free-trial,
body.media-page .hero-wrapper #header a.custom_primary {
  font-size: 16px !important;
  font-weight: 400 !important;
}

body.media-page .hero-wrapper #header.fixed-top .nav-menu > li > a,
body.media-page .hero-wrapper #header.header_area .nav-menu > li > a,
body.media-page .hero-wrapper .fixed-top .nav-menu > li > a {
  padding: 40px 10px !important;
}

@media (min-width: 1199px) {
  body.media-page .hero-wrapper #header .nav-menu {
    min-height: 60px;
    display: flex;
    align-items: center;
  }
}

body.media-page .hero-wrapper #header .navigation {
  display: flex !important;
  justify-content: space-between;
}

body.media-page .top_bavbar {
  justify-content: end !important;
}

body.media-page .hero-wrapper #header.header-scrolled img.img_show {
  display: block !important;
  width: 240px !important;
}

@media (min-width: 992px) {
  body.media-page .hero-wrapper #header.header-scrolled img.img_show {
    width: 200px !important;
  }
}

@media (min-width: 1200px) {
  body.media-page .hero-wrapper #header.fixed-top img.img_show {
    width: 240px !important;
  }
}

body.media-page .hero-wrapper #header .megamenu-panel .megamenu-list > li > a:hover,
body.media-page
  .hero-wrapper
  #header
  .megamenu-lists
  .megamenu-list
  > li.megamenu-list-title
  > a:hover,
body.media-page .hero-wrapper #header li ul.nav-submenu li a:hover {
  color: #fff !important;
}
