/*
Theme Name: DMP TEAM
Theme URI: https://www.tppower.com
Description: DMP TEAM corporate showcase theme with fullscreen carousel, brand intro, products, news, and more.
Author: DMP Team
Version: 1.2.8
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tppower
Tags: custom-menu, custom-logo, featured-images, full-width-template, translation-ready
*/

/* Design tokens — industrial precision */
:root {
  --tp-yellow: #fccd12;
  --tp-yellow-bright: #f5cb15;
  --tp-green: #8eb617;
  --tp-carbon: #0e0c0e;
  --tp-carbon-soft: #1d1b15;
  --tp-ash: #666561;
  --tp-surface: #f4f4f2;
  --tp-white: #ffffff;
  --tp-text: #3d3d3d;
  --tp-text-muted: #676767;
  --tp-gradient: linear-gradient(135deg, var(--tp-green) 0%, var(--tp-yellow-bright) 100%);
  --tp-gradient-soft: linear-gradient(180deg, rgba(142, 182, 23, 0.12) 0%, rgba(252, 205, 18, 0.08) 100%);
  --tp-shadow-sm: 0 8px 24px rgba(14, 12, 14, 0.08);
  --tp-shadow-md: 0 18px 48px rgba(14, 12, 14, 0.14);
  --tp-radius-pill: 26px;
  --tp-font-display: "Rajdhani", "PingFang SC", "Microsoft YaHei", sans-serif;
  --tp-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --tp-container: 1200px;
  --tp-header-h: 116px;
  --tp-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

body {
  font-family: var(--tp-font-body);
  background: var(--tp-white, #fff);
  color: var(--tp-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--tp-yellow);
  outline-offset: 3px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  width: 100%;
  height: 116px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header.inner,
.header.scrolled,
.header:hover {
  background: rgba(14, 12, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.header-container {
  width: 1200px;
  max-width: 100%;
  height: 116px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 56px;
  width: auto;
}

.header-logo-text {
  font-family: var(--tp-font-display);
  color: var(--tp-yellow);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.header-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-nav ul li a {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--tp-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s var(--tp-ease);
  display: block;
  padding: 8px 0;
  position: relative;
  z-index: 2;
}

.header-nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--tp-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--tp-ease);
}

.header-nav ul li a:hover,
.header-nav ul li.current-menu-item a,
.header-nav ul li.current_page_item a {
  color: var(--tp-yellow);
}

.header-nav ul li a:hover::after,
.header-nav ul li.current-menu-item a::after,
.header-nav ul li.current_page_item a::after {
  transform: scaleX(1);
}

.search-box {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

.search-box svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  display: block;
}

body.nav-open {
  overflow: hidden;
}

/* Inner pages offset for fixed header */
body:not(.home) .page-header,
body:not(.home) .page-intro,
body:not(.home) .post-list,
body:not(.home) .page-content {
  margin-top: var(--tp-header-h);
}

/* Section utilities */
.section-eyebrow {
  display: inline-block;
  font-family: var(--tp-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tp-green);
  margin-bottom: 12px;
}

.section-eyebrow.light {
  color: rgba(255, 255, 255, 0.75);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--tp-ease), transform 0.7s var(--tp-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-intro {
  text-align: center;
  margin-bottom: 40px;
}

.section-intro .big-title {
  margin-bottom: 0;
  min-height: auto;
  padding-bottom: 24px;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: #fff;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-form-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form-wrap input[type="search"] {
  height: 52px;
  width: 585px;
  max-width: 80vw;
  text-indent: 30px;
  background: transparent;
  outline: none;
  border: 1px solid #d2d2d2;
  border-radius: 25px;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.08) inset;
  padding: 0 60px 0 24px;
  color: #3d3d3d;
  font-size: 16px;
}

.search-form-wrap button {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.search-close {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #666;
}

/* Hero Slider */
.slide-list {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 969px;
  position: relative;
  overflow: hidden;
}

.slide-list .slide-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide-list .slide-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide-list .slide-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 12, 14, 0.15) 0%,
    rgba(14, 12, 14, 0.05) 40%,
    rgba(14, 12, 14, 0.55) 100%
  );
  pointer-events: none;
}

.slide-list .slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-list .slide-dots {
  position: absolute;
  bottom: 67px;
  right: 70px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slide-list .slide-dots button {
  width: 70px;
  height: 5px;
  background: #595956;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.slide-list .slide-dots button span {
  position: absolute;
  top: -30px;
  left: 0;
  color: #595956;
  font-size: 20px;
}

.slide-list .slide-dots button.active {
  background: #fff;
}

.slide-list .slide-dots button.active span {
  color: #fff;
}

/* Big Title */
.big-title {
  font-family: var(--tp-font-display);
  font-size: clamp(36px, 5vw, 67px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tp-carbon);
  text-align: center;
  position: relative;
  height: auto;
  min-height: 120px;
  line-height: 1.15;
  margin-bottom: 70px;
  padding-bottom: 30px;
}

.big-title::after {
  content: "";
  display: block;
  width: 125px;
  height: 5px;
  background: var(--tp-gradient);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  border-radius: 6px;
}

.big-title.white {
  color: #fff;
}

.big-title.white::after {
  background-color: #fff;
}

/* Gradient Button */
.tp-button {
  width: 192px;
  height: 45px;
  line-height: 41px;
  cursor: pointer;
  border-radius: 26px;
  background: linear-gradient(to right, #8eb617, #f5cb15);
  text-align: center;
  color: #3d3d3d;
  padding: 2px;
  display: inline-block;
}

.tp-button .tp-button-bg {
  width: 188px;
  height: 41px;
  border-radius: 26px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
}

.tp-button:hover .tp-button-bg {
  background: linear-gradient(to right, #8eb617, #f5cb15);
  color: #fff;
}

/* Box1 - About */
.box1 {
  min-height: 590px;
}

.box1 .title {
  min-height: 276px;
  background: var(--tp-yellow);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(14, 12, 14, 0.03) 12px,
      rgba(14, 12, 14, 0.03) 24px
    );
  text-align: center;
  padding: 45px 20px 90px;
}

.box1 .title .brand-mark {
  font-family: var(--tp-font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tp-carbon);
  margin: 0 auto 16px;
}

.box1 .title .sub-title {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(14, 12, 14, 0.82);
}

.box1 .content {
  background-color: var(--tp-white);
  width: var(--tp-container);
  max-width: calc(100% - 40px);
  min-height: 363px;
  margin: -90px auto 0;
  display: flex;
  position: relative;
  box-shadow: var(--tp-shadow-md);
  border-top: 4px solid transparent;
  border-image: var(--tp-gradient) 1;
  overflow: hidden;
}

.box1 .content .about-image {
  width: 47%;
  flex-shrink: 0;
}

.box1 .content .about-image img {
  width: 100%;
  height: 100%;
  min-height: 363px;
  object-fit: cover;
}

.box1 .content .about-text {
  flex: 1;
  line-height: 40px;
  padding: 27px 30px;
  color: #3d3d3d;
  font-size: 18px;
  position: relative;
}

.box1 .content .about-text .tp-button {
  position: absolute;
  right: 30px;
  bottom: 27px;
}

/* Box2 - Innovation */
.box2 {
  width: 100%;
  min-height: 735px;
  overflow: hidden;
  position: relative;
  margin-top: 50px;
}

.box2 .innovation-bg {
  width: 100%;
  height: 735px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.box2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 12, 14, 0.35) 0%, rgba(14, 12, 14, 0.65) 100%);
  z-index: 5;
  pointer-events: none;
}

.box2 .innovation-content {
  color: #fff;
  position: absolute;
  z-index: 10;
  top: 130px;
  width: 953px;
  max-width: calc(100% - 40px);
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
}

.box2 .innovation-subtitle {
  font-size: 25px;
  word-wrap: break-word;
  margin-top: 20px;
  line-height: 1.5;
}

.box2 .slide-nav {
  position: absolute;
  top: 45%;
  z-index: 99;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.box2 .slide-nav:hover {
  background: rgba(255, 255, 255, 0.6);
}

.box2 .slide-nav.prev {
  left: 4.5%;
}

.box2 .slide-nav.next {
  right: 4.5%;
}

.box2 .slide-nav svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* Box3 - Products */
.box3 {
  margin-top: 50px;
  padding: 0 10px;
}

.box3 .imgs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.box3 .img-item {
  flex: 1;
  min-width: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.box3 .img-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 12, 14, 0.1) 20%, rgba(14, 12, 14, 0.72) 100%);
  opacity: 0.55;
  transition: opacity 0.45s var(--tp-ease);
  z-index: 5;
  pointer-events: none;
}

.box3 .img-item:hover::after {
  opacity: 0.82;
}

.box3 .img-item img {
  width: 100%;
  height: 690px;
  object-fit: cover;
  transition: transform 0.6s var(--tp-ease);
}

.box3 .img-item:hover img {
  transform: scale(1.06);
}

.box3 .img-item .content {
  left: 40px;
  top: 52px;
  color: var(--tp-white);
  position: absolute;
  z-index: 10;
  transition: transform 0.45s var(--tp-ease);
}

.box3 .img-item:hover .content {
  transform: translateY(-6px);
}

.box3 .img-item .img-title {
  font-family: var(--tp-font-display);
  font-size: clamp(32px, 4vw, 62px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.box3 .img-item .img-time {
  font-size: clamp(16px, 2vw, 24px);
  margin-top: 16px;
  opacity: 0.88;
  letter-spacing: 0.04em;
}

.box3 .img-item .tp-button {
  margin-top: 26px;
  background: linear-gradient(to right, #8eb617, #f5cb15);
}

.box3 .img-item .tp-button .tp-button-bg {
  background: rgba(255, 255, 255, 0.9);
}

.box3 .img-item .tp-button:hover .tp-button-bg {
  background: linear-gradient(to right, #f5cb15, #8eb617);
  color: #fff;
}

.box3 .imgs-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.box3 .imgs-line {
  flex: 1;
  min-width: 280px;
}

.box3 .imgs-line .img-item {
  margin-bottom: 10px;
}

.box3 .imgs-line .img-item img {
  height: 550px;
}

/* Box4 - News */
.box4 {
  background-color: var(--tp-surface);
  background-image:
    linear-gradient(var(--tp-surface), var(--tp-surface)),
    repeating-linear-gradient(
      90deg,
      rgba(14, 12, 14, 0.03) 0,
      rgba(14, 12, 14, 0.03) 1px,
      transparent 1px,
      transparent 48px
    );
  padding: 80px 0 60px;
  margin-top: 50px;
}

.box4 .content {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.box4 .news-item {
  width: calc(50% - 14px);
  min-height: 500px;
  background-color: var(--tp-white);
  position: relative;
  transition: transform 0.35s var(--tp-ease), box-shadow 0.35s var(--tp-ease);
  overflow: hidden;
}

.box4 .news-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--tp-shadow-md);
}

.box4 .news-item .news-img {
  width: 100%;
  height: 342px;
  object-fit: cover;
}

.box4 .news-item .news-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #8eb617, #f5cb15);
}

.box4 .news-item .news-title {
  font-family: var(--tp-font-display);
  color: var(--tp-carbon);
  font-size: 26px;
  font-weight: 600;
  padding: 0 20px;
  margin-top: 28px;
  line-height: 1.35;
  transition: color 0.25s var(--tp-ease);
}

.box4 .news-item:hover .news-title {
  color: var(--tp-green);
}

.box4 .news-item .news-date {
  background: var(--tp-gradient);
  width: 120px;
  height: 120px;
  color: #262626;
  position: absolute;
  bottom: 36px;
  right: 20px;
  font-size: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.box4 .news-item .news-date .day {
  font-size: 60px;
  font-weight: bold;
  line-height: 1;
}

/* Footer */
.footer {
  background: var(--tp-carbon-soft);
  min-width: 0;
  border-top: 4px solid transparent;
  border-image: var(--tp-gradient) 1;
}

.footer-main {
  width: 1200px;
  max-width: calc(100% - 40px);
  padding: 50px 0;
  margin: 0 auto;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-main .big-text {
  font-family: var(--tp-font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.footer-main ul li {
  display: flex;
  align-items: center;
  line-height: 50px;
  font-size: 15px;
}

.footer-main ul li .icon {
  width: 24px;
  margin-right: 20px;
  flex-shrink: 0;
  text-align: center;
}

.footer-main .footer-logo img {
  width: 168px;
  height: auto;
}

.footer-bottom {
  background: #666561;
  color: #fff;
  text-align: center;
  line-height: 1.5;
  padding: 10px 0;
  font-size: 14px;
}

.footer-bottom span {
  border-right: 2px solid #fff;
  padding: 0 25px;
  display: inline-block;
}

.footer-bottom span:last-child {
  border: none;
}

/* Inner Pages */
.page-header {
  background: var(--tp-carbon-soft);
  padding: 72px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tp-gradient-soft);
  opacity: 0.35;
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  font-family: var(--tp-font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--tp-gradient);
  margin: 20px auto 0;
  border-radius: 4px;
}

.page-subtitle {
  position: relative;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-intro {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto 40px;
  padding-top: 20px;
}

.page-intro__content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.page-content {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 60px auto;
  min-height: 400px;
  font-size: 18px;
  line-height: 1.8;
}

.page-content--full {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.page-featured-image {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--tp-shadow-sm);
}

.page-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.front-page-extra {
  background: var(--tp-white);
  padding: 72px 20px;
}

.front-page-extra__inner {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h2,
.page-content h3 {
  margin: 1.5em 0 0.5em;
  color: #0e0c0e;
}

.entry-content p {
  margin: 0 0 1.25em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25em 1.5em;
  padding: 0;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content .alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content .wp-block-image figcaption,
.entry-content figcaption {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

.entry-content .wp-block-quote {
  border-left: 4px solid var(--tp-green);
  padding: 12px 24px;
  margin: 1.5em 0;
  background: rgba(142, 182, 23, 0.08);
}

.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
}

.entry-content .wp-block-button__link {
  background: var(--tp-gradient);
  color: #fff;
  border-radius: 2px;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: 600;
}

.entry-content .wp-block-columns {
  gap: 32px;
}

.page-links {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
  font-size: 16px;
}

/* Archive / Blog list */
.post-list {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 60px auto;
}

.post-list .post-card {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  background: var(--tp-white);
  box-shadow: var(--tp-shadow-sm);
  overflow: hidden;
  border-left: 4px solid transparent;
  transition: border-color 0.3s var(--tp-ease), box-shadow 0.3s var(--tp-ease);
}

.post-list .post-card:hover {
  border-left-color: var(--tp-green);
  box-shadow: var(--tp-shadow-md);
}

.post-list .post-card .thumb {
  width: 300px;
  flex-shrink: 0;
}

.post-list .post-card .thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-list .post-card .info {
  padding: 20px 20px 20px 0;
  flex: 1;
}

.post-list .post-card .info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.post-list .post-card .info h2 a:hover {
  color: #8eb617;
}

.post-list .post-card .meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  .box1 .content {
    flex-direction: column;
  }

  .box1 .content .about-image {
    width: 100%;
  }

  .box1 .content .about-text .tp-button {
    position: static;
    margin-top: 20px;
  }

  .box4 .news-item {
    width: 100%;
  }

  .box3 .img-item img {
    height: 450px;
  }
}

/* Tablet / narrow desktop: collapse nav before items get clipped */
@media (max-width: 1200px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(14, 12, 14, 0.98);
    padding: 8px 20px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    z-index: 5;
  }

  .header-nav.active {
    display: block;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start;
  }

  .header-nav ul li a {
    padding: 12px 0;
    font-size: 16px;
  }

  .header-nav ul li a::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .slide-list {
    min-height: 400px;
  }

  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-main ul li {
    justify-content: center;
  }

  .post-list .post-card {
    flex-direction: column;
  }

  .post-list .post-card .thumb {
    width: 100%;
  }
}

/* Offset fixed header when WordPress admin bar is visible */
body.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

/* SiteLeads floating widgets — keep outside theme layout flow */
.siteleads-root {
  z-index: 10000;
  pointer-events: none;
}

.siteleads-root .siteleads-fc-widgets,
.siteleads-root .siteleads-widget,
.siteleads-root .siteleads-widget * {
  pointer-events: auto;
}

.siteleads-root a {
  color: inherit;
}

.index-container {
  isolation: isolate;
}