/*
 * KEESUN site palette v2.11
 * Approved direction: signal lime + bench white + steel teal.
 * Dark color is framework-only: navigation, footer, dropdowns and image overlays.
 */
:root {
  --primary: #C3E92D !important;
  --theme-bg: #F5F8F4 !important;
  --theme-second-bg: #E9EFE8 !important;
  --light: #16211D !important;
  --dark: #FFFFFF !important;
  --secondary: #1A1A1A !important;
  --white: #FFFFFF;
  --black: #111A18;
  --surface: #E9EFE8;
  --line: #AEBDB3;
  --secondary-one: #1A1A1A;
  --grey: #1B2623;
  --line2: #2B3A35;
  --success: #A9CB24;
  --critical: #AD463A;
  --keesun-lime: #C3E92D;
  --keesun-lime-hover: #BFF21A;
  --keesun-lime-border: #A9CB24;
  --keesun-lime-text: #4F6E10;
  --keesun-bench: #F5F8F4;
  --keesun-bench-alt: #E9EFE8;
  --keesun-card: #FFFFFF;
  --keesun-control: #EDF1ED;
  --keesun-divider: #D9E1DA;
  --keesun-frame: #111A18;
  --keesun-frame-raised: #1B2623;
  --keesun-frame-border: #2B3A35;
  --keesun-title: #16211D;
  --keesun-copy: #1A1A1A;
  --keesun-muted: #83938A;
  --keesun-dark-title: #F2F6F1;
  --keesun-dark-copy: #AEBDB3;
  --keesun-teal: #4E8F8C;
  --keesun-teal-link: #3B7370;
  --keesun-teal-link-dark: #7CBDB6;
  --keesun-teal-pressed: #2C625F;
  --keesun-warning: #D9A441;
  --keesun-error: #AD463A;
  --keesun-deep-green: #0B5D3B;
}

html,
body {
  background: var(--keesun-bench) !important;
  color: var(--keesun-copy);
}

body,
body p,
body li,
body td,
body label,
body input,
body textarea,
body select {
  color: var(--keesun-copy) !important;
}

/* Main content surfaces */
.home-product,
.home-service,
.home-case,
.home-solution,
.tf-widget-about-us,
.tf-wiget-counter,
.home-news,
.product-main,
.service-main,
.case-main,
.blog-posts,
.blog-content-single,
.tf-contact-page,
.contact-page,
.prodeta-main,
.prodeta-info-main,
.about-factory,
.about-certificates,
.mod-faq,
.service-content {
  background-color: var(--keesun-bench) !important;
}

.second-bg,
.home-product.second-bg,
.home-case.second-bg,
.tf-wiget-counter.second-bg,
.faq-widget.second-bg,
.about-history {
  background-color: var(--keesun-bench-alt) !important;
}

/* Light-surface typography */
.title-box-v2 .title-section,
.title-box .title-section,
.product-mod-title .tits,
.product-mod-title .title,
.product-content .product-title,
.product-content .title-product,
.tf-product-info-heading .tf-product-info-name .name,
.service-contents .tits,
.service-contents .titles,
.home-service-links .tits,
.home-solution-link .tits,
.home-solution-hlink .tits,
.course-item-wrap .content-course .title-course,
.course-item-wrap .content-course .title-course a,
.news-main .main-post h2.entry-title a,
.entry-title-single,
.main-post .entry-content h1,
.main-post .entry-content h2,
.main-post .entry-content h3,
.main-post .entry-content h4,
.main-post .entry-content h5,
.main-post .entry-content h6,
.content-post-single h1,
.content-post-single h2,
.content-post-single h3,
.content-post-single h4,
.content-post-single h5,
.content-post-single h6,
.product-details-sitem h1,
.product-details-sitem h2,
.product-details-sitem h3,
.product-details-sitem h4,
.product-details-sitem h5,
.product-details-sitem h6,
.solution-detail-content h1,
.solution-detail-content h2,
.solution-detail-content h3,
.solution-detail-content h4,
.solution-detail-content h5,
.solution-detail-content h6,
.about-history .title-box-v2 .title-section,
.about-history .about-title,
.category-tits,
.sidebar-filter.my_sticky h4,
.sidebar-filter.my_sticky p {
  color: var(--keesun-title) !important;
}

.title-box-v2 .sub-title,
.title-box .sub-title,
.product-mod-title .sub-title,
.home-product .sub-title,
.home-news .sub-title {
  color: var(--keesun-lime-text) !important;
}

.home-product-des,
.tf-product-info-heading .tf-product-info-desc,
.tf-product-info-heading .tf-product-info-desc p,
.service-contents p,
.home-service-links .texts,
.home-solution-link .texts,
.home-solution-hlink .texts,
.course-item-wrap .description-course,
.news-main .entry-content,
.news-main .main-post p,
.entry-content,
.entry-content p,
.content-post-single,
.content-post-single p,
.product-details-sitem,
.product-details-sitem p,
.about-history p,
.faq-body,
.contact-page-content {
  color: var(--keesun-copy) !important;
}

/* Alternating light cards */
.home-service-links .infos,
.home-solution-link,
.home-solution-link .texts,
.home-solution-hlink .contents,
.benefit-item-v2,
.course-item-wrap,
.course-item-wrap .content-course,
.product-details-sitem,
.prodeta-type2 .lists .links,
.contact-page-form,
.faq-li,
.news-main .news-lists .entry,
.mod-comment,
.solution-category-filter__btn {
  background: var(--keesun-card) !important;
  border-color: var(--keesun-divider) !important;
  color: var(--keesun-copy) !important;
  box-shadow: none !important;
}

.home-service.second-bg .home-service-links .infos,
.faq-widget.second-bg .faq-li {
  background: var(--keesun-card) !important;
}

/* Product/category tabs */
.home-product-nav .items,
.case-nav-content .case-nav-item a,
.solution-category-filter__btn {
  background: var(--keesun-card) !important;
  border: 1px solid var(--keesun-divider) !important;
  color: var(--keesun-title) !important;
}

.home-product-nav .items:hover,
.home-product-nav .items.active,
.case-nav-content .case-nav-item a:hover,
.case-nav-content .case-nav-item.active a,
.solution-category-filter__btn:hover,
.solution-category-filter__btn:focus,
.solution-category-filter__btn.is-active {
  background: var(--keesun-lime) !important;
  border-color: var(--keesun-lime-border) !important;
  color: var(--keesun-frame) !important;
}

/* Buttons and primary actions */
.flat-button,
.btn-contact,
.btn-form,
.product-search button,
.blog-pagination .flat-pagination li.active,
.blog-pagination .flat-pagination li:hover a,
.input-new-letter .btn-submit,
.contact-page-form input[type="submit"],
.contact-page-form button[type="submit"],
.wpcf7-submit,
button#comment-reply,
.product-class-link .infos .more {
  background: var(--keesun-lime) !important;
  border-color: var(--keesun-lime-border) !important;
  color: var(--keesun-frame) !important;
}

.flat-button:hover,
.btn-contact:hover,
.btn-form:hover,
.product-search button:hover,
.input-new-letter .btn-submit:hover,
.contact-page-form input[type="submit"]:hover,
.contact-page-form button[type="submit"]:hover,
.wpcf7-submit:hover,
button#comment-reply:hover,
.product-class-link .infos .more:hover {
  background: var(--keesun-control) !important;
  border-color: var(--keesun-divider) !important;
  color: var(--keesun-lime-text) !important;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select,
.product-search input,
.contact-page-form input,
.contact-page-form textarea,
.input-new-letter input[type="email"] {
  background: var(--keesun-card) !important;
  border: 1px solid var(--keesun-divider) !important;
  color: var(--keesun-title) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--keesun-muted) !important;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--keesun-teal) !important;
  box-shadow: 0 0 0 2px rgba(78, 143, 140, .18) !important;
}

/* Links and focus */
.entry-content a,
.content-post-single a,
.service-content a,
.contact-page-content a,
.news-main .main-post a,
.footer-widgets a:focus-visible,
body a:focus-visible {
  color: var(--keesun-teal-link) !important;
}

.entry-content a:hover,
.content-post-single a:hover,
.service-content a:hover,
.contact-page-content a:hover,
.news-main .main-post a:hover {
  color: var(--keesun-teal-pressed) !important;
}

body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body textarea:focus-visible,
body select:focus-visible {
  outline: 2px solid var(--keesun-teal) !important;
  outline-offset: 2px;
}

/* Product and solution specification tables */
.prodeta-type3 table,
.solution-detail-content table {
  background: var(--keesun-card) !important;
  border-color: var(--keesun-divider) !important;
}

.prodeta-type3 tr,
.prodeta-type3 tr:nth-child(odd),
.solution-detail-content tbody tr,
.solution-detail-content tbody tr:nth-child(odd),
.solution-detail-content tbody tr:nth-child(even) {
  background: var(--keesun-card) !important;
}

.prodeta-type3 tr:nth-child(even),
.solution-detail-content tbody tr:nth-child(even) {
  background: var(--keesun-bench-alt) !important;
}

.prodeta-type3 th,
.solution-detail-content th {
  background: var(--keesun-lime) !important;
  color: var(--keesun-frame) !important;
  border-color: var(--keesun-divider) !important;
}

.prodeta-type3 td,
.solution-detail-content td {
  color: var(--keesun-title) !important;
  border-color: var(--keesun-divider) !important;
}

.prodeta-tab {
  border-bottom-color: var(--keesun-divider) !important;
}

.prodeta-tab-item {
  color: var(--keesun-title) !important;
}

.prodeta-tab-item:hover,
.prodeta-tab-item.active {
  color: var(--keesun-lime-text) !important;
}

/* Header and dark navigation framework */
.header-top {
  background: var(--keesun-lime) !important;
  color: var(--keesun-frame) !important;
}

.header-top a,
.header-top address,
.header-top .flag-txt,
.header-top i,
.header-top svg path {
  color: var(--keesun-frame) !important;
  fill: var(--keesun-frame);
  stroke: var(--keesun-frame);
}

#header,
.header,
#mainnav-mobi,
.overlay-menu-mobie {
  background: var(--keesun-frame) !important;
}

#header .header-inner .logo img {
  filter: none !important;
}

#mainnav > ul.menu > li > a,
#mainnav-mobi > ul.menu > li > a,
.header-right .search svg path {
  color: var(--keesun-dark-title) !important;
  stroke: var(--keesun-dark-title) !important;
}

#mainnav > ul.menu > li > a:hover,
#mainnav > ul.menu > li.active > a,
#mainnav-mobi > ul.menu > li > a:hover,
#mainnav-mobi > ul.menu > li.active > a {
  color: var(--keesun-lime-hover) !important;
}

#mainnav ul.submenu,
#mainnav ul.submenu ul,
#mainnav-mobi ul.submenu,
#mainnav > ul.menu > li.menu-solutions > ul.solution-mega-menu,
#mainnav > ul.menu > li.menu-products > ul.submenu {
  background: var(--keesun-frame-raised) !important;
  border-color: var(--keesun-frame-border) !important;
}

#mainnav ul.submenu a,
#mainnav-mobi ul.submenu a,
#mainnav .solution-menu-group > a.solution-menu-title {
  color: var(--keesun-dark-title) !important;
}

#mainnav ul.submenu ul a,
#mainnav .solution-menu-group > ul.solution-menu-posts > li > a,
#mainnav-mobi ul.submenu ul a {
  color: var(--keesun-dark-copy) !important;
}

#mainnav ul.submenu a:hover,
#mainnav .solution-menu-group > ul.solution-menu-posts > li > a:hover,
#mainnav .solution-menu-group > a.solution-menu-title:hover,
#mainnav-mobi ul.submenu a:hover {
  color: var(--keesun-lime-hover) !important;
}

/* Footer remains the dark frame */
footer,
footer.background-black,
.footer-widgets,
.footer-bottom {
  background: var(--keesun-frame) !important;
}

footer .widget-title,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer .new-letter .address a {
  color: var(--keesun-dark-title) !important;
}

footer p,
footer li,
footer .link-footer a,
footer .footer-contact-list .items .vals p,
footer .footer-contact-list .items .vals a,
footer .footer-bottom a,
footer .copyright p,
footer .logo-footer p {
  color: var(--keesun-dark-copy) !important;
}

footer a:hover,
footer .link-footer a:hover,
footer .footer-bottom a:hover {
  color: var(--keesun-teal-link-dark) !important;
}

footer .footer-bottom,
footer .social-icon-footer a {
  border-color: var(--keesun-frame-border) !important;
}

/* Keep image-led banners and overlays dark for contrast */
.tf-slider-widget .flat-title-slider,
.tf-slider-widget .flat-description-slider,
.page-banner .page-title-heading .title,
.page-banner .page-title-heading h1,
.page-banner .page-text,
.product-class-link .infos .tits,
.product-class-link .infos .texts,
.home-solution-hlink .imgs + .contents .tits {
  color: var(--keesun-dark-title) !important;
}

.page-banner .overlay,
.tf-slider-widget .overlay,
.product-class-link .infos {
  background-color: rgba(17, 26, 24, .58);
}

.product-class-link .infos {
  background: linear-gradient(to top, rgba(17, 26, 24, .88), rgba(17, 26, 24, .08)) !important;
}

/* Breadcrumb/info bars */
.section-breadcrumbs {
  background: var(--keesun-lime) !important;
}

.section-breadcrumbs a,
.section-breadcrumbs li,
.section-breadcrumbs i,
.section-breadcrumbs .icon-Arrow---Right-2::before {
  color: var(--keesun-frame) !important;
}

/* Floating actions */
.go-top,
.sidebar-icons a,
.mobile-bottom-nav .nav-item {
  background: var(--keesun-lime) !important;
  color: var(--keesun-frame) !important;
}

.go-top:hover,
.sidebar-icons a:hover,
.mobile-bottom-nav .nav-item:hover {
  background: var(--keesun-lime-hover) !important;
}

/* Status colors */
.wpcf7-response-output,
.notice-success,
.success {
  border-color: var(--success) !important;
}

.notice-warning,
.warning {
  border-color: var(--keesun-warning) !important;
}

.wpcf7-not-valid-tip,
.notice-error,
.error {
  color: var(--keesun-error) !important;
}



/* Product detail headings stay readable on white cards despite later inline rules. */
html body .product-details-sitem .prodeta-type3 h2:first-child,
html body .product-details-sitem h1,
html body .product-details-sitem h2,
html body .product-details-sitem h3,
html body .product-details-sitem h4,
html body .product-details-sitem h5,
html body .product-details-sitem h6 {
  color: var(--keesun-title) !important;
}

/* Win against later template-level !important rules on solution detail pages. */
html body .solution-detail-content h1,
html body .solution-detail-content h2,
html body .solution-detail-content h3,
html body .solution-detail-content h4,
html body .solution-detail-content h5,
html body .solution-detail-content h6,
html body .solution-detail-content .entry-title-single {
  color: var(--keesun-title) !important;
}

html body .solution-detail-content table td {
  color: var(--keesun-title) !important;
  background: transparent !important;
  border-color: var(--keesun-divider) !important;
}

html body .solution-detail-content table th {
  color: var(--keesun-frame) !important;
  background: var(--keesun-lime) !important;
  border-color: var(--keesun-divider) !important;
}

html body .solution-detail-content table tbody tr:nth-child(odd) {
  background: var(--keesun-card) !important;
}

html body .solution-detail-content table tbody tr:nth-child(even) {
  background: var(--keesun-bench-alt) !important;
}


/* v2.5 requested refinements */
.home-solution .title-box-v2 .title-section,
.home-solution h2.title-section {
  color: var(--keesun-deep-green) !important;
}

.prodeta-type3,
.product-details-sitem .prodeta-type3 {
  background: var(--keesun-card) !important;
  color: var(--keesun-copy) !important;
}

.tf-wiget-counter .about-counter-img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(37%) saturate(1052%) hue-rotate(111deg) brightness(88%) contrast(98%) !important;
}

.course-item-wrap,
.course-item-wrap .content-course,
.home-news .course-item-wrap,
.home-news .course-item-wrap .content-course {
  background: transparent !important;
  box-shadow: none !important;
}

.product-details-sitem p,
.product-details-sitem li,
.product-content p,
.product-content .desc,
.home-product p,
.home-service p,
.home-solution p,
.home-news p,
.course-item-wrap .description-course,
.news-main .entry-content,
.blog-posts p,
.blog-content-single p,
.solution-detail-content p,
.solution-detail-content li,
.service-content p,
.tf-widget-about-us p,
.about-history p,
.mod-faq p,
.contact-page-content p {
  color: #1A1A1A !important;
}


/* v2.6 cover text containers used by the homepage templates. */
.home-solution .home-solution-hlink .contents .tits,
.home-solution .home-solution-link .contents .tits,
.home-solution .home-solution-hlink .tits,
.home-solution .home-solution-link .tits {
  color: var(--keesun-deep-green) !important;
}

.tf-widget-about-us .post,
.tf-widget-about-us .post *,
.home-product .texts,
.home-service .texts,
.home-solution .texts,
.home-news .description-course,
.product-main .product-content .desc,
.product-main .product-content .description,
.product-main .product-content .texts {
  color: #1A1A1A !important;
}

/* Mobile dark navigation */
@media (max-width: 767px) {
  #header .btn-menu path,
  #mainnav-mobi .close-btn path {
    fill: var(--keesun-dark-title) !important;
  }

  .tp_lang_dropdown-ph .flag-txt {
    color: var(--keesun-dark-title) !important;
  }
}


/* v2.7 unified content text, clean product details and blog cards */
:root {
  --secondary: #000000 !important;
  --secondary-one: #000000;
  --keesun-title: #000000;
  --keesun-copy: #000000;
  --keesun-muted: #000000;
}

/* All content typography is black; header/navigation and footer keep their own dark-surface rules. */
html body :is(
  .home-product,
  .home-service,
  .home-case,
  .home-solution,
  .tf-widget-about-us,
  .tf-wiget-counter,
  .home-news,
  .product-main,
  .service-main,
  .case-main,
  .blog-posts,
  .blog-content-single,
  .news-main,
  .widget-blog-content,
  .widget-blog-sidebar,
  .solution-detail-content,
  .service-content,
  .case-content,
  .tf-contact-page,
  .contact-page,
  .prodeta-main,
  .prodeta-info-main,
  .product-details-sitem,
  .about-factory,
  .about-certificates,
  .about-history,
  .mod-faq,
  .faq-widget,
  .section-breadcrumbs
) :is(h1, h2, h3, h4, h5, h6, p, li, span, a, td, th, label, strong, em, small) {
  color: #000000 !important;
}

/* Remove the dark outline/frame around product detail content. */
html body .product-details-sitem,
html body .product-details-sitem .prodeta-type3,
html body .prodeta-type3 {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Blog archive cards sit directly on the page background. */
html body .blog-posts,
html body .news-main,
html body .news-main .post-wrap,
html body .news-main .news-lists,
html body .news-main .news-lists .entry,
html body .news-main .main-post,
html body .news-main .entry-content,
html body .widget-blog-content {
  background: transparent !important;
  box-shadow: none !important;
}

/* Blog archive primary action matches the site's lime buttons. */
html body .news-main .news-lists .more-link,
html body .blog-posts .more-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  margin-top: 18px;
  padding: 12px 24px !important;
  background: var(--keesun-lime) !important;
  border: 1px solid var(--keesun-lime-border) !important;
  border-radius: 0;
  color: #000000 !important;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.2;
  text-decoration: none !important;
}

html body .news-main .news-lists .more-link:hover,
html body .blog-posts .more-link:hover {
  background: var(--keesun-control) !important;
  border-color: var(--keesun-divider) !important;
  color: #000000 !important;
}


/* v2.8 semantic fallback: every content text element is black outside navigation and footer */
html body :is(h1, h2, h3, h4, h5, h6, p, li, span, a, td, th, label, strong, em, small, blockquote, figcaption)
:not(#header *)
:not(.header *)
:not(.header-top *)
:not(#mainnav *)
:not(#mainnav-mobi *)
:not(.overlay-menu-mobie *)
:not(footer *)
:not(.footer-widgets *)
:not(.footer-bottom *) {
  color: #000000 !important;
}


/* v2.9 exact black-text fixes for contact, counters and product summaries */
html body .contact-page-content .list-contact-us p,
html body .tf-wiget-counter .name-count,
html body .product-main .star-review,
html body .product-lists .star-review,
html body .related-product .star-review,
html body .related-products .star-review,
html body .product-details-sitem ~ * .star-review,
html body .star-review {
  color: #000000 !important;
}


/* v2.10 remove only the highlighted submit-row background */
html body .contact-page-form #contactform-page.contact-page.form-submit {
  background: transparent !important;
}


/* v2.11 blog tag and contact alternate-number contrast */
html body .widget.widget-tags .tag a {
  color: #FFFFFF !important;
}

html body .contact-page-content .list-contact-us .inner a::after {
  color: #000000 !important;
}
