:root {
  --brand-navy: #071a2f;
  --brand-blue: #0b2d4f;
  --brand-cyan: #00c7e8;
  --brand-cyan-dark: #00a7c7;
  --brand-orange: #ff8a4c;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --text-main: #102033;
  --text-muted: #6c7a89;
  --line: #e5edf3;
  --radius-sm: 10px;
  --radius: 16px;
  --shadow-sm: 0 8px 24px rgba(7, 26, 47, 0.07);
  --shadow: 0 16px 44px rgba(7, 26, 47, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 199, 232, 0.08), transparent 30%),
    var(--surface-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
body a,
body p,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: "Kanit", sans-serif !important;
}

a,
a:hover,
a:focus {
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

img {
  color: transparent;
}

/* Header */
.header-area {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-area .mag-main-menu {
  height: 86px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 3px solid var(--brand-cyan);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(7, 26, 47, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-area .mag-main-menu .classy-navbar,
.header-area .mag-main-menu .classynav,
.header-area .mag-main-menu .classynav > ul > li > a,
.header-area .mag-main-menu .classynav ul.dropdown,
.header-area .mag-main-menu .classynav ul.dropdown li a {
  background: transparent !important;
}

.header-area .mag-main-menu .classy-navbar {
  width: min(calc(100% - 40px), 1800px);
  height: 83px;
  margin: 0 auto;
  padding: 0;
}

.header-area .mag-main-menu .classy-navbar .nav-brand {
  display: flex;
  width: 230px;
  max-width: 230px;
  align-items: center;
  margin-right: 42px;
}

.header-area .mag-main-menu .classy-navbar .nav-brand img {
  display: block;
  width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.header-area .mag-main-menu .classynav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-area .mag-main-menu .classynav > ul > li > a {
  position: relative;
  height: 42px;
  padding: 0 13px;
  color: #405066 !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 42px;
}

.header-area .mag-main-menu .classynav > ul > li > a:hover,
.header-area .mag-main-menu .classynav > ul > li > a:focus {
  color: var(--brand-navy) !important;
  background: #edf9fc !important;
}

.header-area .mag-main-menu .classynav > ul > li.active > a {
  color: #ffffff !important;
  background: var(--brand-navy) !important;
  box-shadow: 0 8px 20px rgba(7, 26, 47, 0.18);
}

.header-area .mag-main-menu .classynav ul.dropdown {
  min-width: 210px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff !important;
  box-shadow: var(--shadow);
}

.header-area .mag-main-menu .classynav ul.dropdown li a {
  height: 40px;
  color: #405066 !important;
  border-radius: 9px;
  line-height: 40px;
}

.header-area .mag-main-menu .classynav ul.dropdown li a:hover,
.header-area .mag-main-menu .classynav ul.dropdown li.active a {
  color: var(--brand-navy) !important;
  background: #edf9fc !important;
}

.header-area .navbarToggler span {
  background-color: var(--brand-navy) !important;
}

.header-area .nav-content,
.header-area .classy-menu {
  margin-left: auto;
}

/* Layout and cards */
.mag-posts-area {
  width: min(100%, 1560px);
  margin-right: auto;
  margin-left: auto;
}

.home-feature-grid {
  gap: 24px;
  padding: 8px 20px 0;
}

.mag-posts-area.home-content-grid {
  margin-top: 32px;
}

.home-content-grid > .post-sidebar-area,
.home-content-grid > .mag-posts-content {
  margin-top: 0 !important;
}

.home-feature-grid .mag-posts-content1 {
  margin-right: 0;
  margin-left: 0;
}

.home-feature-grid .hero-card {
  height: 100%;
}

.box-shadow,
.post-sidebar-area,
.mag-posts-content,
.mag-posts-content1 {
  overflow: hidden;
  border: 1px solid rgba(229, 237, 243, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm) !important;
}

.mag-posts-content,
.mag-posts-content1,
.post-sidebar-area {
  background: rgba(255, 255, 255, 0.98);
}

.home-feature-grid .mag-posts-content1 {
  padding: 22px !important;
}

.home-feature-grid .img-bgaiew,
.home-feature-grid .post-thumbnail img {
  overflow: hidden;
  border-radius: 12px;
}

.home-feature-grid .img-bgaiew {
  height: 390px !important;
}

.home-feature-grid .hero-primary-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.home-feature-grid .hero-primary-inner > div:first-child,
.home-feature-grid .hero-primary .single-featured-post {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.home-feature-grid .hero-primary .img-bgaiew {
  min-height: 390px;
  flex: 1 1 390px !important;
}

.home-feature-grid .hero-primary-ad {
  flex: 0 0 auto;
  margin-top: 18px;
}

.home-feature-grid .hero-primary-ad img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.home-feature-grid .hero-hot-news .feature-video-posts,
.home-feature-grid .hero-hot-news .featured-video-posts,
.home-feature-grid .hero-hot-news .featured-video-posts > .row {
  height: 100%;
}

.home-feature-grid .hero-hot-news .feature-video-posts {
  margin-bottom: 0 !important;
}

.home-feature-grid .hero-hot-news .featured-video-posts > .row {
  align-content: start;
}

.home-feature-grid .hero-hot-news .single-featured-post .post-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-feature-grid .hero-hot-news .single-blog-post.style-3 {
  align-items: flex-start;
  padding: 7px;
  margin-bottom: 5px;
}

.home-feature-grid .hero-hot-news .single-blog-post.style-3 .post-thumbnail {
  flex: 0 0 76px;
  width: 76px;
  max-width: 76px;
}

.home-feature-grid .hero-hot-news .single-blog-post.style-3 .post-thumbnail img {
  width: 76px;
  height: 58px;
  aspect-ratio: auto;
  object-fit: cover;
}

.home-feature-grid .hero-hot-news .single-blog-post.style-3 .post-content {
  padding-left: 11px;
}

.home-feature-grid .hero-hot-news .single-blog-post.style-3 .post-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 5px !important;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-feature-grid .hero-hot-ads {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.home-feature-grid .hero-hot-ads > div {
  overflow: hidden;
  border-radius: 10px;
}

.home-feature-grid .hero-hot-ads img {
  display: block;
  width: 100%;
}

.home-feature-grid .single-featured-post .post-content {
  padding-top: 4px;
}

.single-featured-post .post-content .post-title {
  color: var(--text-main);
  font-size: clamp(19px, 1.45vw, 28px);
  font-weight: 600;
  line-height: 1.45;
}

.single-blog-post .post-content .post-title {
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.5;
}

.home-content-grid > .post-sidebar-area .single-blog-post {
  min-height: 94px;
  align-items: flex-start;
}

.home-content-grid > .post-sidebar-area .single-blog-post .post-thumbnail {
  flex: 0 0 78px;
  width: 78px;
  max-width: 78px;
}

.home-content-grid > .post-sidebar-area .single-blog-post .post-thumbnail img {
  width: 78px;
  height: 68px;
  object-fit: cover;
}

.home-content-grid > .post-sidebar-area .single-blog-post .post-content {
  min-width: 0;
  padding-left: 12px;
}

.home-content-grid > .post-sidebar-area .single-blog-post .post-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 7px !important;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.single-featured-post .post-content .post-title:hover,
.single-blog-post .post-content .post-title:hover,
.single-featured-post .post-content .post-title:focus,
.single-blog-post .post-content .post-title:focus {
  color: var(--brand-cyan-dark);
}

.single-featured-post .post-content .post-meta,
.single-blog-post .post-content .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}

.single-featured-post .post-content .post-meta a,
.single-blog-post .post-content .post-meta a {
  margin: 0 !important;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.single-featured-post .post-content .post-meta a::after {
  display: none;
}

.single-blog-post {
  padding: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
}

.single-blog-post:hover {
  background: var(--surface-soft);
}

.single-blog-post .post-thumbnail,
.single-blog-post.style-3 .post-thumbnail {
  overflow: hidden;
  border-radius: 9px;
}

.single-blog-post .post-thumbnail img,
.single-featured-post .post-thumbnail img {
  transition: transform 350ms ease;
}

.single-blog-post:hover .post-thumbnail img,
.single-featured-post:hover .post-thumbnail img {
  transform: scale(1.025);
}

.single-blog-post .post-content {
  margin-top: 0;
}

.section-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 199, 232, 0.13), rgba(0, 199, 232, 0.02));
}

.section-heading::before {
  width: 4px;
  height: 22px;
  margin-right: 11px;
  border-radius: 99px;
  background: var(--brand-cyan);
  content: "";
}

.section-heading h5 {
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-content-grid .single-sidebar-widget {
  border-bottom-color: var(--line);
}

.home-content-grid .single-sidebar-widget > img,
.home-content-grid .single-sidebar-widget .add-img img,
.home-content-grid .single-sidebar-widget > div > img,
.ads-aiewbg img {
  border-radius: 10px;
}

.ads-aiewbg img {
  cursor: pointer;
}

.owl-prev,
.owl-next {
  border-radius: 8px !important;
}

/* Footer */
.footer-area {
  margin-top: 44px;
  padding-top: 0 !important;
  color: rgba(255, 255, 255, 0.7);
  background: var(--brand-navy) !important;
}

.footer-area .bg-jj {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)) !important;
}

.footer-area .container {
  width: min(calc(100% - 40px), 1440px);
  max-width: 1440px !important;
  padding-top: 48px !important;
  padding-bottom: 38px;
}

.footer-area .bg-jj > .container > .row {
  align-items: flex-start;
}

.footer-area .footer-widget {
  margin-bottom: 0 !important;
}

.footer-area .footer-widget,
.footer-area .footer-widget div,
.footer-area .footer-widget p {
  color: rgba(255, 255, 255, 0.68) !important;
}

.footer-area .foo-logo {
  display: block;
  width: 245px;
  max-width: 100%;
  margin-bottom: 16px;
}

.footer-area .foo-logo img {
  display: block;
  width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-area .widget-title {
  margin-bottom: 18px;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600;
}

.footer-area .footer-widget-nav ul li a,
.footer-area .single-blog-post.style-2 .post-content .post-title {
  color: rgba(255, 255, 255, 0.68) !important;
}

.footer-area .footer-widget-nav ul li a:hover,
.footer-area .single-blog-post.style-2 .post-content .post-title:hover {
  color: var(--brand-cyan) !important;
}

.footer-area .single-blog-post.style-2 {
  min-height: 0;
  padding: 8px 0;
  background: transparent;
}

.footer-area .single-blog-post.style-2 .post-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.footer-area .footer-social-info a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.footer-area .copywrite-area {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #051426 !important;
}

.footer-area .copywrite-area .container {
  width: min(calc(100% - 40px), 1440px);
  padding-top: 18px !important;
  padding-bottom: 18px;
}

.footer-area .copywrite-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.58) !important;
}

.cc-window {
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 40px rgba(7, 26, 47, 0.12);
}

.cc-btn {
  border-radius: 8px;
}

@media only screen and (min-width: 1200px) {
  .mag-posts-area.home-feature-grid {
    display: grid !important;
    width: calc(100% - 32px);
    max-width: 1800px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    padding-right: 0;
    padding-left: 0;
  }

  .home-feature-grid .mag-posts-content1 {
    width: auto;
    max-width: none;
    flex: none;
  }

  .mag-posts-area.home-content-grid {
    width: calc(100% - 32px);
    max-width: 1800px;
    gap: 28px;
    padding: 0;
  }

  .home-content-grid > .mag-posts-content {
    padding: 26px !important;
  }
}

@media only screen and (max-width: 1199px) {
  .home-feature-grid {
    gap: 20px;
  }

  .mag-posts-area.home-content-grid {
    margin-top: 26px;
  }

  .home-feature-grid .mag-posts-content1 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .home-feature-grid .hero-primary .img-bgaiew {
    min-height: 440px;
  }
}

@media only screen and (max-width: 991px) {
  .header-area .mag-main-menu,
  .header-area .mag-main-menu .classy-navbar {
    height: 70px;
  }

  .header-area .mag-main-menu .classynav {
    background: #ffffff !important;
  }

  .header-area .mag-main-menu .classynav > ul {
    display: block;
    padding: 12px;
  }

  .header-area .mag-main-menu .classynav > ul > li > a {
    height: 42px;
    line-height: 42px;
  }

  .header-area .mag-main-menu .classynav ul.dropdown {
    border: 0;
    box-shadow: none;
  }

  .header-area .breakpoint-on .classy-navbar .classy-menu {
    border-left: 1px solid var(--line);
    background: #ffffff;
    box-shadow: -16px 0 40px rgba(7, 26, 47, 0.12);
  }

  .header-area .classycloseIcon .cross-wrap span {
    background: var(--brand-navy);
  }
}

@media only screen and (max-width: 767px) {
  body {
    background: var(--surface-soft);
  }

  .header-area .mag-main-menu,
  .header-area .mag-main-menu .classy-navbar {
    height: 66px;
  }

  .header-area .mag-main-menu .classy-navbar {
    width: calc(100% - 28px);
    padding: 0;
  }

  .header-area .mag-main-menu .classy-navbar .nav-brand {
    width: 180px;
    max-width: 180px;
  }

  .home-feature-grid,
  .mag-posts-area.home-content-grid {
    padding-right: 10px;
    padding-left: 10px;
  }

  .mag-posts-area.home-content-grid {
    margin-top: 20px;
    row-gap: 20px;
  }

  .home-feature-grid .mag-posts-content1,
  .home-content-grid > .mag-posts-content,
  .home-content-grid > .post-sidebar-area {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .home-feature-grid .mag-posts-content1,
  .mag-posts-content.p-30,
  .mag-posts-content1.p-30 {
    padding: 16px !important;
  }

  .home-feature-grid .img-bgaiew {
    height: 240px !important;
  }

  .home-feature-grid .hero-primary .img-bgaiew {
    min-height: 240px;
    flex-basis: 240px !important;
  }

  .home-feature-grid .hero-primary-ad {
    margin-top: 14px;
  }

  .home-feature-grid .hero-hot-news .single-blog-post.style-3 .post-thumbnail {
    flex-basis: 82px;
    width: 82px;
    max-width: 82px;
  }

  .home-feature-grid .hero-hot-news .single-blog-post.style-3 .post-thumbnail img {
    width: 82px;
    height: 64px;
  }

  .box-shadow,
  .post-sidebar-area,
  .mag-posts-content,
  .mag-posts-content1 {
    border-radius: 13px;
  }

  .single-featured-post .post-content .post-title {
    font-size: 18px;
  }

  .single-blog-post {
    padding: 8px 4px;
  }

  .footer-area {
    margin-top: 28px;
  }

  .footer-area .container {
    width: calc(100% - 28px);
    padding-top: 36px !important;
    padding-bottom: 14px;
  }

  .footer-area .footer-widget {
    margin-bottom: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
