/* ==========================================================================
   WordPress Gutenberg / Existing Content Compatibility Styles
   ========================================================================== */
.wp-content-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 22px;
  padding: 40px 42px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 680px) {
  .wp-content-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
}

.entry-content {
  font-size: 16.5px;
  line-height: 1.85;
  color: #0f172a;
}
.entry-content > * + * {
  margin-top: 1.15em;
}
.entry-content h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 900;
  color: #0a0f1a;
  background: #ecfdf5;
  border-left: 6px solid var(--nh-green);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin-top: 2em;
}
.entry-content h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 800;
  color: #0a0f1a;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 6px;
  margin-top: 1.7em;
}
.entry-content h4 {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--nh-green-dark);
  margin-top: 1.4em;
}
.entry-content a {
  color: #0369a1;
  text-decoration: underline;
  font-weight: 700;
}
.entry-content a:hover {
  color: var(--nh-green-dark);
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}
.entry-content li {
  margin-bottom: 0.45em;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  border: 1.5px solid #cbd5e1;
}
.entry-content th,
.entry-content td {
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  font-size: 15px;
}
.entry-content th {
  background: #f1f5f9;
  font-weight: 800;
}
.entry-content img {
  border-radius: 12px;
  margin: 1em auto;
}
.entry-content blockquote {
  background: #f8fafc;
  border-left: 4px solid #94a3b8;
  padding: 16px 20px;
  border-radius: 8px;
  color: #1e293b;
}

/* Contact Form 7 / WPForms Styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  font-size: 15.5px;
  margin-top: 6px;
}
.wpcf7 input[type="submit"] {
  background: var(--nh-orange);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

/* Pagination */
.nh-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  font-weight: 800;
  color: #0f172a;
}
.nh-pagination .page-numbers.current {
  background: var(--nh-green);
  border-color: var(--nh-green);
  color: #fff;
}

/* Post Meta */
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}
.post-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
}
.post-nav-links a {
  font-weight: 800;
  color: #0369a1;
  font-size: 14.5px;
}

/* Header wp_nav_menu compatibility */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.1vw, 32px);
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; padding: 0; }
.custom-logo-link img {
  height: clamp(34px, 3.2vw, 46px);
  width: auto;
}

/* WP Admin Bar sticky header offset fix */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Header Freephone Display Box */
.header-phone-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  padding: 4px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  text-decoration: none;
  margin-right: 4px;
}
.header-phone-box .hp-sub {
  font-size: 10.5px;
  font-weight: 800;
  color: #006b38;
}
.header-phone-box .hp-num {
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 900;
  color: #0a0f1a;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-phone-box:hover {
  border-color: var(--nh-green);
  background: #ecfdf5;
}

/* Single-line crisp table formatting (Prevent awkward 2-line wraps) */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
}
.comp-table th,
.comp-table td {
  white-space: nowrap;
  padding: 15px 14px;
  font-size: 14.5px;
}
.comp-table th:first-child,
.comp-table td:first-child {
  width: auto;
}
.comp-table thead th {
  font-size: 15.5px;
}
.comp-table thead th.col-nh {
  font-size: 16.5px;
}
.comp-table td.col-nh {
  font-size: 15px;
}
.entry-content table th,
.entry-content table td:not(:last-child) {
  white-space: nowrap;
}
.entry-content table {
  display: table;
  width: 100%;
}
@media (max-width: 768px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Seamless transparent header logo blend on tinted headers (Theme 08 Soft Peach, etc.) */
.site-header .brand-logo img,
.site-header .custom-logo-link img {
  mix-blend-mode: multiply;
}

/* Large, High-Impact 3D Graphic-Style Submit Button for Contact Form 7 */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.wpcf7 .wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 460px;
  min-height: 68px;
  margin: 24px auto 8px;
  padding: 18px 54px;
  border: none;
  border-bottom: 5px solid #9a3412;
  border-radius: 16px;
  background-color: #ea580c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fb923c 0%, #f97316 45%, #ea580c 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left 22px center, right 20px center, center;
  background-size: 24px 24px, 22px 22px, 100% 100%;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.48), inset 0 2px 0 rgba(255, 255, 255, 0.42);
}
.wpcf7 input[type="submit"]:active,
.wpcf7 button[type="submit"]:active,
.wpcf7 .wpcf7-submit:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
/* Secondary "Back/Edit" button in CF7 Confirm Plus */
.wpcf7 input.wpcf7c-btn-back,
.wpcf7 input[type="button"] {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #94a3b8;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-right: 10px;
}

/* Top News & Holiday Notice Bar (Right below header so holiday notices are never missed) */
.news-ticker-bar {
  background: #ffffff;
  border-bottom: 2px solid #fed7aa;
  padding: 12px 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.news-ticker-label {
  flex-shrink: 0;
  background: var(--nh-navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.news-ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-ticker-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0a0f1a;
  text-decoration: none;
  line-height: 1.4;
}
.news-ticker-list li a:hover .nt-title {
  color: var(--nh-green-dark);
  text-decoration: underline;
}
.nt-badge {
  flex-shrink: 0;
  background: #ecfdf5;
  color: #006b38;
  border: 1px solid #86efac;
  font-size: 11.5px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
}
.nt-badge-alert {
  background: #fff7ed;
  color: #c2410c;
  border: 1.5px solid #fb923c;
}
.news-ticker-list time {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.nt-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-ticker-more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0369a1;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}
.news-ticker-more:hover {
  background: #e0f2fe;
}
@media (max-width: 768px) {
  .news-ticker-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .news-ticker-label {
    align-self: flex-start;
  }
  .news-ticker-list li a {
    flex-wrap: wrap;
    gap: 6px;
  }
  .nt-title {
    white-space: normal;
    width: 100%;
  }
  .news-ticker-more {
    align-self: flex-end;
  }
}

/* High-Contrast Emerald Green Main Navigation Bar with Crisp White Text (v1.7.4) */
.site-header .header-inner {
  padding-bottom: 0;
}
.site-header .main-nav {
  background: linear-gradient(90deg, #007a40 0%, #00944e 50%, #007a40 100%);
  border-top: none;
  border-radius: 12px 12px 0 0;
  margin-top: 6px;
  padding: 10px 18px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 122, 64, 0.22);
}
.site-header .main-nav a {
  color: #ffffff !important;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.16s ease;
}
.site-header .main-nav a:hover,
.site-header .main-nav a.current,
.site-header .main-nav li.current-menu-item > a {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}
.site-header .main-nav a.current::after {
  display: none;
}
