/*
Theme Name: Neve Beautified Child
Theme URI: https://themeisle.com/themes/neve/
Description: A visual polish child theme for Neve. Adds modern cards, navigation, buttons, forms, footer, and WooCommerce styling without editing Neve templates.
Author: Customized with ChatGPT
Template: neve
Version: 1.8.1
Requires at least: 5.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neve-beautified-child
*/

/**
 * Neve Beautify Layer
 * Added by ChatGPT: modern visual polish without changing Neve templates.
 */
:root {
  --nvb-bg: #f4f2ec;
  --nvb-surface: rgba(255, 255, 255, 0.88);
  --nvb-surface-solid: #ffffff;
  --nvb-text: #2f3d35;
  --nvb-muted: #748078;
  --nvb-line: rgba(70, 87, 76, 0.12);
  --nvb-accent: var(--nv-primary-accent, #5f7f68);
  --nvb-accent-2: var(--nv-secondary-accent, #93ab86);
  --nvb-radius-sm: 12px;
  --nvb-radius: 20px;
  --nvb-radius-lg: 30px;
  --nvb-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --nvb-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --nvb-transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--nv-text-color, var(--nvb-text));
  background:
    radial-gradient(circle at top left, rgba(147, 171, 134, 0.18), transparent 28vw),
    radial-gradient(circle at top right, rgba(95, 127, 104, 0.12), transparent 32vw),
    linear-gradient(180deg, #f7f5ef 0%, #f3f0e8 42%, #eef2ed 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > .wrapper:not(.et-fb-iframe-ancestor) {
  overflow-x: clip;
}

::selection {
  color: #fff;
  background: var(--nvb-accent);
}

/* Header */
.hfg_header.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(95, 127, 104, 0.12);
  box-shadow: 0 12px 32px rgba(58, 74, 62, 0.08);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

body.admin-bar .hfg_header.site-header {
  top: 32px;
}

.hfg_header.site-header [class*=row-inner] {
  background-color: rgba(250, 249, 245, 0.90);
}

.site-logo img,
.builder-item--logo img {
  transition: transform var(--nvb-transition), filter var(--nvb-transition);
}

.site-logo a:hover img,
.builder-item--logo a:hover img {
  transform: translateY(-1px) scale(1.02);
}

.nav-menu-primary .nav-ul > li > .wrap > a,
.nav-menu-primary .nav-ul > li > a,
.header-menu-sidebar .nav-ul li a {
  border-radius: 999px;
  padding: 0.72em 1em;
  transition: color var(--nvb-transition), background-color var(--nvb-transition), transform var(--nvb-transition);
}

.nav-menu-primary .nav-ul > li:hover > .wrap > a,
.nav-menu-primary .nav-ul > li.current-menu-item > .wrap > a,
.nav-menu-primary .nav-ul > li.current_page_item > .wrap > a,
.nav-menu-primary .nav-ul > li:hover > a,
.nav-menu-primary .nav-ul > li.current-menu-item > a,
.nav-menu-primary .nav-ul > li.current_page_item > a {
  color: var(--nvb-accent);
  background: color-mix(in srgb, var(--nvb-accent) 10%, transparent);
  transform: translateY(-1px);
}

.sub-menu,
.nav-menu-primary .sub-menu {
  border: 1px solid var(--nvb-line);
  border-radius: 18px;
  box-shadow: var(--nvb-shadow-sm);
  overflow: hidden;
}

.navbar-toggle {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* Typography and links */
h1, h2, h3, h4, h5, h6,
.entry-title,
.blog-entry-title {
  letter-spacing: -0.025em;
}

.entry-title a,
.blog-entry-title a,
.nv-post-navigation a {
  transition: color var(--nvb-transition);
}

.entry-title a:hover,
.blog-entry-title a:hover,
.nv-post-navigation a:hover {
  color: var(--nvb-accent);
}

.neve-main a:not(.button):not(.wp-block-button__link) {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

/* Page title / hero area */
.nv-page-title-wrap,
.entry-header {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--nvb-radius-lg);
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.14), transparent 34%);
  box-shadow: var(--nvb-shadow-sm);
}

.nv-page-title-wrap .nv-page-title,
.entry-header {
  text-align: center;
}

.nv-page-title h1,
.entry-header .title,
.entry-title.title {
  max-width: 980px;
  margin-inline: auto;
}

.nv-meta-list,
.nv-meta-list a,
.nv-page-title-wrap .neve-breadcrumbs-wrapper,
.entry-header .nv-meta-list {
  color: var(--nvb-muted);
}

.nv-meta-list li:not(:last-child)::after,
.nv-meta-list span:not(:last-child)::after {
  color: rgba(100, 116, 139, 0.55);
}

/* Cards: blog, archives, pages */
.layout-grid .article-content-col,
.posts-wrapper > article:not(.layout-covers) .article-content-col,
.nv-non-grid-article .article-content-col,
.nv-post-navigation > div,
.nv-related-posts .article-content-col {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--nvb-radius);
  background: var(--nvb-surface);
  box-shadow: var(--nvb-shadow-sm);
  transition: transform var(--nvb-transition), box-shadow var(--nvb-transition), border-color var(--nvb-transition);
}

.layout-grid .article-content-col:hover,
.posts-wrapper > article:not(.layout-covers) .article-content-col:hover,
.nv-non-grid-article .article-content-col:hover,
.nv-post-navigation > div:hover,
.nv-related-posts .article-content-col:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--nvb-accent) 24%, rgba(15, 23, 42, 0.08));
  box-shadow: var(--nvb-shadow);
}

.layout-grid .article-content-col,
.posts-wrapper > article:not(.layout-covers) .article-content-col {
  overflow: hidden;
}

.layout-grid .content,
.posts-wrapper > article:not(.layout-covers) .content,
.nv-non-grid-article .content {
  gap: 0.35rem;
}

.nv-post-thumbnail-wrap {
  overflow: hidden;
  border-radius: var(--nvb-radius) var(--nvb-radius) 0 0;
}

.nv-non-grid-article .nv-post-thumbnail-wrap {
  border-radius: var(--nvb-radius);
}

.nv-post-thumbnail-wrap img:not(.photo),
.wp-block-post-featured-image img,
.woocommerce ul.products li.product img {
  transition: transform 320ms ease, filter 320ms ease;
}

.article-content-col:hover .nv-post-thumbnail-wrap img:not(.photo),
.wp-block-post-featured-image:hover img,
.woocommerce ul.products li.product:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

.layout-covers .article-content-col,
.cover-post {
  border-radius: var(--nvb-radius-lg);
}

.cover-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
}

/* Content area */
.nv-single-post-wrap,
.nv-index-posts {
  margin-top: clamp(36px, 5vw, 64px);
}

.nv-single-post-wrap > div:not(.nv-thumb-wrap):not(.nv-content-wrap),
.nv-single-post-wrap .nv-content-wrap,
.nv-single-post-wrap .entry-content {
  line-height: 1.78;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol {
  color: color-mix(in srgb, var(--nv-text-color, #172033) 86%, #64748b);
}

.wp-block-quote,
blockquote {
  border-left: 4px solid var(--nvb-accent);
  border-radius: 0 var(--nvb-radius-sm) var(--nvb-radius-sm) 0;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 1.25rem 1.5rem;
}

.wp-block-image img,
.entry-content img {
  border-radius: var(--nvb-radius-sm);
}

/* Buttons */
button,
input[type=button],
input[type=submit],
input[type=reset],
.btn,
.button,
.wp-block-button__link,
.wp-element-button,
.add_to_cart_button,
.checkout-button {
  border-radius: 999px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--nvb-transition), box-shadow var(--nvb-transition), filter var(--nvb-transition), background var(--nvb-transition);
}

button:hover,
input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
.btn:hover,
.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.add_to_cart_button:hover,
.checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  filter: saturate(1.06);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.button.button-primary,
input[type=submit],
button[type=submit],
.checkout-button {
  background: linear-gradient(135deg, var(--nvb-accent), var(--nvb-accent-2));
  color: #fff;
  border-color: transparent;
}

/* Forms and search */
input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=date],
input[type=month],
input[type=time],
input[type=datetime],
input[type=datetime-local],
input[type=week],
input[type=number],
input[type=search],
input[type=tel],
input[type=color],
select,
textarea {
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
  transition: border-color var(--nvb-transition), box-shadow var(--nvb-transition), background-color var(--nvb-transition);
}

input:read-write:focus,
select:focus,
textarea:focus {
  border-color: var(--nvb-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--nvb-accent) 16%, transparent);
  background-color: #fff;
}

.search-form {
  border-radius: 999px;
  box-shadow: var(--nvb-shadow-sm);
}

.search-form .search-field {
  border-radius: 999px 0 0 999px;
}

.search-form .search-submit {
  border-radius: 0 999px 999px 0;
}

/* Sidebar and widgets */
.nv-sidebar-wrap .widget,
aside.widget,
.widget-area .widget,
.wp-block-latest-posts,
.wp-block-categories-list {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--nvb-radius);
  background: var(--nvb-surface);
  box-shadow: var(--nvb-shadow-sm);
  padding: clamp(18px, 2vw, 28px);
}

.widget-title,
.wp-block-heading {
  position: relative;
  padding-bottom: 0.55rem;
}

.widget-title::after,
.sidebar .wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--nvb-accent), var(--nvb-accent-2));
}

/* Tables */
table,
.wp-block-table table {
  overflow: hidden;
  border-radius: var(--nvb-radius-sm);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

thead,
.wp-block-table thead {
  background: rgba(15, 23, 42, 0.04);
}

/* WooCommerce */
.woocommerce ul.products li.product,
.wc-block-grid__product {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--nvb-radius);
  background: var(--nvb-surface-solid);
  box-shadow: var(--nvb-shadow-sm);
  overflow: hidden;
  transition: transform var(--nvb-transition), box-shadow var(--nvb-transition), border-color var(--nvb-transition);
}

.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--nvb-accent) 22%, rgba(15, 23, 42, 0.08));
  box-shadow: var(--nvb-shadow);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
  padding-inline: 1rem;
}

.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
  color: var(--nvb-accent);
  font-weight: 800;
  padding-inline: 1rem;
}

.woocommerce ul.products li.product .button,
.wc-block-grid__product-add-to-cart {
  margin: 0 1rem 1rem;
}

/* Footer */
.site-footer,
.footer--row-inner {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer [class*=row-inner],
.footer--row-inner {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
    linear-gradient(135deg, #0f172a, #111827 48%, #17133a);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* Accessibility and polish */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nvb-accent) 42%, transparent);
  outline-offset: 3px;
}

hr {
  border-color: rgba(15, 23, 42, 0.10);
}

@media (max-width: 960px) {
  body.admin-bar .hfg_header.site-header {
    top: 46px;
  }

  .nv-page-title-wrap,
  .entry-header {
    border-radius: 22px;
    padding: 28px 20px;
  }

  .header-menu-sidebar-bg,
  .header-menu-sidebar .navbar-nav-wrapper {
    background: #fff;
  }

  .header-menu-sidebar .nav-ul li a {
    margin: 4px 0;
  }
}

@media (max-width: 600px) {
  body.admin-bar .hfg_header.site-header {
    top: 0;
  }

  .nv-single-post-wrap,
  .nv-index-posts {
    margin-top: 30px;
  }
}

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

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


/* =========================
   V1.1 refinement for Sino-UniFit
   - put welcome/title content visually inside a refined box
   - elegant footer cards
   - more coordinated sage/beige site background
   ========================= */

/* More coordinated container background */
.nv-site-wrap,
.neve-main,
.site-content,
.content {
  background: transparent;
}

/* Softer overall cards */
.nv-single-post-wrap > .container,
.nv-index-posts > .container,
.container.single-page-container {
  position: relative;
}

/* Page header / welcome section optimization */
.page .nv-page-title-wrap {
  max-width: min(1180px, calc(100% - 40px));
  margin: 36px auto 0;
  min-height: 0;
  padding: 24px clamp(24px, 4vw, 40px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.90), rgba(248,245,238,0.88)),
    radial-gradient(circle at 12% 22%, rgba(147,171,134,0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(95,127,104,0.12), transparent 24%);
  border: 1px solid rgba(95,127,104,0.14);
  box-shadow: 0 18px 48px rgba(75, 90, 79, 0.09);
}

.page .nv-page-title-wrap .neve-breadcrumbs-wrapper {
  text-align: left;
  margin-bottom: 0;
}

.page .entry-header {
  max-width: min(1180px, calc(100% - 40px));
  margin: -18px auto 30px;
  padding: 0 clamp(24px, 4vw, 40px) 26px;
  border: 0;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.88));
  box-shadow: 0 18px 48px rgba(75, 90, 79, 0.09);
  text-align: left;
}

.page .entry-header .entry-title,
.page .entry-header .title.entry-title,
.page .entry-header .title {
  margin: 0;
  padding-top: 0.2rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: #2f3d35;
}

.page .entry-header .nv-meta-list,
.page .entry-header .neve-breadcrumbs-wrapper {
  display: none;
}

/* If a page title area appears visually empty, keep it compact instead of leaving a big blank block */
.page .nv-page-title-wrap:empty {
  display: none;
}

/* Body content cards become visually cleaner and better coordinated */
.page .entry-content > *:not(.alignfull):not(.alignwide) {
  position: relative;
}

.page .entry-content > p,
.page .entry-content > ul,
.page .entry-content > ol {
  color: #3f4b44;
}

/* Neutral content wrapper on regular pages */
.page .nv-single-page-wrap,
.page .nv-content-wrap,
.page .entry-content {
  background: transparent;
}

/* Images inside content */
.page .entry-content img {
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(58, 74, 62, 0.10);
}

/* Elegant footer */
.site-footer {
  margin-top: 80px;
}

.site-footer [class*=row-inner],
.footer--row-inner {
  background:
    radial-gradient(circle at 15% 10%, rgba(147,171,134,0.16), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.06), transparent 24%),
    linear-gradient(135deg, #16231f 0%, #20302a 56%, #2c4137 100%);
}

.site-footer .builder-item,
.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  border-radius: 26px;
}

.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(7, 14, 12, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(32,48,42,0.08);
}

.site-footer .builder-item--footer_copyright .component-wrap,
.site-footer .builder-item--footer_copyright {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer .builder-item--footer_copyright .component-wrap,
.site-footer .nv-footer-content,
.site-footer .footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(7, 14, 12, 0.14);
}

.site-footer a:hover {
  color: #f7f4ea;
  text-decoration-color: rgba(255,255,255,0.9);
}

/* Footer spacing on mobile */
@media (max-width: 960px) {
  .page .nv-page-title-wrap,
  .page .entry-header {
    max-width: calc(100% - 24px);
    border-radius: 24px;
  }

  .page .entry-header {
    margin-top: -10px;
    padding: 0 20px 22px;
  }

  .site-footer .widget,
  .site-footer .wp-block-group,
  .site-footer .wp-block-image,
  .site-footer .widget_media_image {
    padding: 14px;
  }
}


/* =========================
   V1.2 Global refinement
   - cleaner international layout
   - fix current menu vertical alignment
   - smoother page spacing
   - simpler footer visuals
   - extend polish to other pages
   ========================= */

:root {
  --nvb-bg-clean: #f7f7f3;
  --nvb-bg-soft: #f2f4ef;
  --nvb-surface-clean: rgba(255,255,255,0.94);
  --nvb-accent-deep: #456454;
}

body {
  background:
    radial-gradient(circle at top left, rgba(147,171,134,0.10), transparent 26vw),
    linear-gradient(180deg, var(--nvb-bg-clean) 0%, var(--nvb-bg-soft) 100%);
}

/* Cleaner containers across site */
.nv-page-title-wrap,
.entry-header,
.layout-grid .article-content-col,
.posts-wrapper > article:not(.layout-covers) .article-content-col,
.nv-non-grid-article .article-content-col,
.nv-sidebar-wrap .widget,
aside.widget,
.widget-area .widget,
.woocommerce ul.products li.product,
.wc-block-grid__product {
  box-shadow: 0 10px 24px rgba(51, 70, 57, 0.06);
  border-color: rgba(69, 100, 84, 0.08);
}

/* Header / navigation - vertically center active pill */
.nav-menu-primary .nav-ul,
.nav-menu-primary .nav-ul > li,
.nav-menu-primary .nav-ul > li > .wrap {
  display: flex;
  align-items: center;
}

.nav-menu-primary .nav-ul > li > .wrap > a,
.nav-menu-primary .nav-ul > li > a,
.header-menu-sidebar .nav-ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  line-height: 1.2;
  padding: 0.7rem 1.3rem;
}

.nav-menu-primary .nav-ul > li.current-menu-item > .wrap > a,
.nav-menu-primary .nav-ul > li.current_page_item > .wrap > a,
.nav-menu-primary .nav-ul > li.current-menu-item > a,
.nav-menu-primary .nav-ul > li.current_page_item > a {
  background: rgba(95, 127, 104, 0.10);
  color: var(--nvb-accent-deep);
}

.nav-menu-primary .caret-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Page spacing: smoother transition from heading to content */
.page .nv-content-wrap,
.page .nv-single-page-wrap,
.single .nv-content-wrap,
.archive .nv-content-wrap,
.blog .nv-content-wrap,
.search .nv-content-wrap {
  padding-top: 10px;
}

.page .entry-header,
.single .entry-header,
.archive .page-header,
.search .page-header {
  max-width: min(1160px, calc(100% - 40px));
  margin: 18px auto 38px;
  padding: 18px clamp(24px, 3vw, 34px) 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page .entry-header .entry-title,
.page .entry-header .title.entry-title,
.single .entry-header .entry-title,
.archive .page-title,
.search .page-title {
  margin: 0;
  color: #33463a;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page .entry-content,
.single .entry-content {
  margin-top: 8px;
}

.page .entry-content > p:first-of-type,
.single .entry-content > p:first-of-type {
  margin-top: 1.2rem;
}

/* More breathable content rhythm */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.page .entry-content > p,
.page .entry-content > ul,
.page .entry-content > ol {
  max-width: 74ch;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.1em;
  margin-bottom: 0.7em;
}

/* Simplified page image presentation */
.page .entry-content img,
.single .entry-content img {
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(51, 70, 57, 0.08);
}

/* Refine archive/blog cards for all pages */
.blog .posts-wrapper > article:not(.layout-covers) .article-content-col,
.archive .posts-wrapper > article:not(.layout-covers) .article-content-col,
.search .posts-wrapper > article:not(.layout-covers) .article-content-col {
  background: rgba(255,255,255,0.92);
}

.blog .nv-index-posts,
.archive .nv-index-posts,
.search .nv-index-posts {
  margin-top: 22px;
}

/* Buttons more restrained and international */
button,
input[type=button],
input[type=submit],
input[type=reset],
.btn,
.button,
.wp-block-button__link,
.wp-element-button,
.add_to_cart_button,
.checkout-button {
  box-shadow: none;
  font-weight: 600;
}

button:hover,
input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
.btn:hover,
.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.add_to_cart_button:hover,
.checkout-button:hover {
  box-shadow: 0 10px 24px rgba(69, 100, 84, 0.14);
}

/* Footer: compact, cleaner, smaller certificates */
.site-footer {
  margin-top: 72px;
}

.site-footer [class*=row-inner],
.footer--row-inner {
  background:
    linear-gradient(135deg, #173228 0%, #1d3b31 45%, #24473c 100%);
}

.site-footer .builder-item,
.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  border-radius: 0;
}

.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  background: transparent;
  border: 0;
  padding: 8px 10px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-footer img {
  width: auto;
  max-width: 100%;
  max-height: 86px;
  height: auto;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 4px 16px rgba(7, 14, 12, 0.10);
}

.site-footer .builder-item--footer_copyright .component-wrap,
.site-footer .nv-footer-content,
.site-footer .footer-copyright {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
  font-size: 0.98rem;
}

/* Try to keep footer columns visually tidy */
.site-footer .row,
.site-footer .builder-item,
.site-footer .builder-item .component-wrap {
  align-items: center;
}

/* Mobile refinements */
@media (max-width: 960px) {
  .nav-menu-primary .nav-ul,
  .nav-menu-primary .nav-ul > li,
  .nav-menu-primary .nav-ul > li > .wrap {
    display: block;
  }

  .page .entry-header,
  .single .entry-header,
  .archive .page-header,
  .search .page-header {
    max-width: calc(100% - 24px);
    margin: 10px auto 24px;
    padding: 10px 16px 6px;
  }

  .site-footer img {
    max-height: 72px;
  }
}


/* =========================
   V1.3 Footer restyle
   - light, editorial, international-school style footer
   - card-based logo presentation
   ========================= */

/* Footer redesigned to match a clean showcase style */
.site-footer {
  margin-top: 88px;
  color: #33463a;
}

.site-footer [class*=row-inner],
.footer--row-inner {
  background: #f5f4ef;
  border-top: 1px solid rgba(69, 100, 84, 0.08);
}

/* Footer rows */
.site-footer .footer--row {
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-footer .footer--row:first-child {
  padding-top: 54px;
  padding-bottom: 28px;
}

/* Center footer content for a cleaner showcase look */
.site-footer .builder-item,
.site-footer .builder-item .component-wrap,
.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  text-align: center;
}

/* Footer image / logo cards */
.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(69, 100, 84, 0.08);
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(49, 63, 53, 0.05);
}

.site-footer img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 128px;
  height: auto;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Keep footer links understated */
.site-footer,
.site-footer p,
.site-footer span,
.site-footer div,
.site-footer li {
  color: #44584b;
}

.site-footer a {
  color: #44584b;
  text-decoration-color: rgba(68, 88, 75, 0.22);
}

.site-footer a:hover {
  color: #2f4035;
  text-decoration-color: rgba(68, 88, 75, 0.6);
}

/* Copyright area becomes a small clean strip below the logo cards */
.site-footer .builder-item--footer_copyright,
.site-footer .builder-item--footer_copyright .component-wrap {
  justify-content: center;
}

.site-footer .builder-item--footer_copyright .component-wrap,
.site-footer .nv-footer-content,
.site-footer .footer-copyright {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.98rem;
  color: #5c6b61;
}

/* Remove heavy visual treatments inherited from previous versions */
.site-footer .builder-item {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Slight gap between footer blocks */
.site-footer .row,
.site-footer .builder-item {
  gap: 18px;
}

/* Mobile */
@media (max-width: 960px) {
  .site-footer {
    margin-top: 68px;
  }

  .site-footer .footer--row:first-child {
    padding-top: 34px;
    padding-bottom: 18px;
  }

  .site-footer .widget,
  .site-footer .wp-block-group,
  .site-footer .wp-block-image,
  .site-footer .widget_media_image {
    min-height: 132px;
    padding: 16px;
    border-radius: 20px;
  }

  .site-footer img {
    max-height: 88px;
  }
}


/* =========================
   V1.4 Footer cleanup
   - remove green bars
   - unify colors with site background
   - copyright as small plain text at the very bottom
   ========================= */

/* Footer overall: same tone as the whole site */
.site-footer {
  margin-top: 72px;
  color: #4f5d55;
  background: #f7f6f2;
}

.site-footer [class*=row-inner],
.footer--row-inner,
.site-footer .footer--row {
  background: #f7f6f2 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-footer .footer--row:first-child {
  padding-top: 34px;
  padding-bottom: 18px;
}

.site-footer .footer--row:last-child {
  padding-top: 6px;
  padding-bottom: 14px;
}

/* Remove any legacy decorative lines/bars */
.site-footer::before,
.site-footer::after,
.site-footer .footer--row::before,
.site-footer .footer--row::after,
.footer--row-inner::before,
.footer--row-inner::after {
  content: none !important;
  display: none !important;
}

/* Logo/certificate area */
.site-footer .builder-item,
.site-footer .builder-item .component-wrap,
.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  text-align: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  padding: 12px;
}

/* Simple unified white cards */
.site-footer .widget img,
.site-footer .wp-block-image img,
.site-footer .widget_media_image img,
.site-footer img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 112px;
  height: auto;
  margin: 0 auto;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid rgba(79, 93, 85, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(58, 68, 61, 0.05);
}

/* Footer text color */
.site-footer,
.site-footer p,
.site-footer span,
.site-footer div,
.site-footer li,
.site-footer a {
  color: #5e6b64;
}

.site-footer a {
  text-decoration-color: rgba(94, 107, 100, 0.28);
}

.site-footer a:hover {
  color: #3c4b43;
  text-decoration-color: rgba(60, 75, 67, 0.55);
}

/* Copyright: plain small text, no box, sunk to the bottom */
.site-footer .builder-item--footer_copyright,
.site-footer .builder-item--footer_copyright .component-wrap,
.site-footer .nv-footer-content,
.site-footer .footer-copyright {
  display: block !important;
  text-align: center;
  justify-content: center;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  line-height: 1.6;
  color: #8a948e !important;
}

.site-footer .builder-item--footer_copyright {
  width: 100%;
}

/* If there is an extra copyright paragraph/link wrapper */
.site-footer .builder-item--footer_copyright p,
.site-footer .builder-item--footer_copyright span,
.site-footer .builder-item--footer_copyright a {
  font-size: 0.82rem !important;
  color: #8a948e !important;
}

/* Tighter and cleaner on mobile */
@media (max-width: 960px) {
  .site-footer {
    margin-top: 56px;
  }

  .site-footer .footer--row:first-child {
    padding-top: 22px;
    padding-bottom: 10px;
  }

  .site-footer .widget,
  .site-footer .wp-block-group,
  .site-footer .wp-block-image,
  .site-footer .widget_media_image {
    min-height: 118px;
    padding: 8px;
  }

  .site-footer .widget img,
  .site-footer .wp-block-image img,
  .site-footer .widget_media_image img,
  .site-footer img {
    max-height: 82px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .site-footer .builder-item--footer_copyright,
  .site-footer .builder-item--footer_copyright .component-wrap,
  .site-footer .nv-footer-content,
  .site-footer .footer-copyright {
    font-size: 0.78rem !important;
  }
}


/* =========================
   V1.8 Consultation page refinement
   - redesign top consultation entry blocks
   - cleaner, lighter, more international visual style
   ========================= */

/* Generic consultation/landing cards:
   targets the first top-level two-column block on normal pages,
   which matches the current consultation page structure. */
.page .entry-content > .wp-block-columns:first-child {
  max-width: min(1180px, calc(100% - 48px));
  margin: clamp(30px, 5vw, 56px) auto clamp(36px, 5vw, 64px);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column {
  position: relative;
  overflow: hidden;
  min-height: clamp(230px, 24vw, 300px);
  border-radius: 28px;
  border: 1px solid rgba(79, 93, 85, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%) !important;
  box-shadow: 0 16px 34px rgba(58, 68, 61, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(58, 68, 61, 0.08);
  border-color: rgba(79, 93, 85, 0.14);
}

/* Neutralize hard-coded green backgrounds inside those blocks */
.page .entry-content > .wp-block-columns:first-child > .wp-block-column > .wp-block-group,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column > .wp-block-cover,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column > .wp-block-group.has-background,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column > .wp-block-cover.has-background {
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-cover__background {
  opacity: 0 !important;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-group__inner-container,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-cover__inner-container {
  min-height: inherit;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 40px);
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column p,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column h1,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column h2,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column h3,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column h4 {
  margin: 0;
  max-width: 12ch;
  text-align: center;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #355244 !important;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #355244 !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(53, 82, 68, 0.18);
  padding-bottom: 0.04em;
  transition: color 180ms ease, border-color 180ms ease;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column a:hover {
  color: #22362d !important;
  border-color: rgba(53, 82, 68, 0.42);
}

/* If buttons are used instead of plain text links, make them look clean */
.page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-button,
.page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-buttons {
  margin: 0;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  color: #355244 !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(53, 82, 68, 0.18) !important;
}

.page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-button__link:hover {
  color: #22362d !important;
  border-color: rgba(53, 82, 68, 0.42) !important;
  transform: none;
}

/* Mobile */
@media (max-width: 900px) {
  .page .entry-content > .wp-block-columns:first-child {
    max-width: calc(100% - 24px);
    gap: 16px;
    margin: 24px auto 34px;
  }

  .page .entry-content > .wp-block-columns:first-child > .wp-block-column {
    min-height: 168px;
    border-radius: 22px;
  }

  .page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-group__inner-container,
  .page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-cover__inner-container {
    padding: 24px 20px;
  }

  .page .entry-content > .wp-block-columns:first-child > .wp-block-column p,
  .page .entry-content > .wp-block-columns:first-child > .wp-block-column h1,
  .page .entry-content > .wp-block-columns:first-child > .wp-block-column h2,
  .page .entry-content > .wp-block-columns:first-child > .wp-block-column h3,
  .page .entry-content > .wp-block-columns:first-child > .wp-block-column h4,
  .page .entry-content > .wp-block-columns:first-child > .wp-block-column .wp-block-button__link {
    max-width: 100%;
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}


/* =========================
   V1.8.1 Footer spacing refinement
   - reduce visual gap between logo row and copyright text
   ========================= */

.site-footer .footer--row:first-child {
  padding-top: 22px !important;
  padding-bottom: 4px !important;
}

.site-footer .footer--row:last-child {
  padding-top: 0 !important;
  padding-bottom: 10px !important;
}

.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-image,
.site-footer .widget_media_image {
  min-height: 124px !important;
  padding: 8px 10px !important;
}

.site-footer img,
.site-footer .widget img,
.site-footer .wp-block-image img,
.site-footer .widget_media_image img {
  max-height: 92px !important;
  padding: 14px 16px !important;
}

.site-footer .footer--row,
.site-footer [class*=row-inner],
.site-footer .builder-item,
.site-footer .builder-item .component-wrap {
  row-gap: 0 !important;
}

.site-footer .builder-item--footer_copyright,
.site-footer .builder-item--footer_copyright .component-wrap,
.site-footer .nv-footer-content,
.site-footer .footer-copyright {
  margin-top: -2px !important;
  line-height: 1.4 !important;
}

@media (max-width: 960px) {
  .site-footer .footer--row:first-child {
    padding-top: 16px !important;
    padding-bottom: 2px !important;
  }

  .site-footer .footer--row:last-child {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
  }

  .site-footer .widget,
  .site-footer .wp-block-group,
  .site-footer .wp-block-image,
  .site-footer .widget_media_image {
    min-height: 98px !important;
    padding: 6px !important;
  }

  .site-footer img,
  .site-footer .widget img,
  .site-footer .wp-block-image img,
  .site-footer .widget_media_image img {
    max-height: 74px !important;
    padding: 10px 12px !important;
  }
}
