/*
Theme Name: Loving Cotswolds Responsive
Theme URI: https://lovingthecotswolds.com/
Author: Chris Clayton / OpenAI
Description: A responsive classic WordPress theme inspired by the original Loving the Cotswolds homepage design, with mobile-first navigation, flexible cards, legacy-content support and editor-friendly templates.
Version: 1.0.10
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loving-cotswolds-responsive
Tags: blog, custom-logo, custom-menu, featured-images, responsive-layout, one-column, two-columns
*/

:root {
  --ltc-blue: #1f80bd;
  --ltc-blue-dark: #145f8e;
  --ltc-blue-soft: #eaf5fb;
  --ltc-green: #7db348;
  --ltc-green-dark: #5d8e2d;
  --ltc-gold: #d7a84a;
  --ltc-charcoal: #333333;
  --ltc-text: #4b4b4b;
  --ltc-muted: #717171;
  --ltc-border: #d8d8d8;
  --ltc-bg: #f6f4ef;
  --ltc-white: #ffffff;
  --ltc-shadow: 0 7px 20px rgba(0,0,0,.08);
  --ltc-radius: 8px;
  --ltc-max: 1184px;
  --ltc-font-heading: 'Oswald', Arial, sans-serif;
  --ltc-font-body: 'Lato', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ltc-font-body);
  color: var(--ltc-text);
  background: var(--ltc-bg);
  font-size: 16px;
  line-height: 1.58;
}

a { color: var(--ltc-blue-dark); text-decoration: none; }
a:hover, a:focus { color: var(--ltc-green-dark); text-decoration: underline; }
img, video, iframe, object { max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; display: block; height: auto; left: 1rem;
  padding: .75rem 1rem; top: 1rem; width: auto; z-index: 100000; background: #fff;
}
.ltc-container, .container { width: min(var(--ltc-max), calc(100% - 32px)); margin: 0 auto; }

/* Header */
.ltc-site-header, #header {
  background: #fff;
  border-top: 5px solid var(--ltc-blue);
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
.ltc-header-inner, #header .container {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}
.ltc-logo, #logo { display: flex; align-items: center; min-width: 0; }
.ltc-logo a { display: inline-flex; align-items: center; text-decoration: none; }
.ltc-logo img, #logo img { max-height: 88px; width: auto; display: block; }
.ltc-site-title {
  font-family: var(--ltc-font-heading);
  font-size: clamp(2rem, 6vw, 3.45rem);
  line-height: .98;
  letter-spacing: .02em;
  color: var(--ltc-blue);
  text-transform: uppercase;
}
.ltc-site-title span { color: var(--ltc-green); }
.ltc-header-actions, .headerright { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.ltc-utility-menu ul, .links ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; margin: 0; padding: 0; }
.ltc-utility-menu a, .links a {
  color: var(--ltc-muted); font-size: .9rem; font-weight: 700; text-decoration: none;
}
.ltc-utility-menu a:hover, .links a:hover { color: var(--ltc-blue-dark); }
.ltc-charity-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
  background: var(--ltc-blue-soft); color: var(--ltc-blue-dark); font-weight: 700; font-size: .85rem;
}
.ltc-social-search { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; }
.ltc-social-links { display: flex; gap: 8px; align-items: center; }
.ltc-social-links a {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ltc-blue); color: #fff; font-weight: 700; text-decoration: none; font-size: .85rem;
}
.ltc-social-links a:hover { background: var(--ltc-green-dark); color: #fff; text-decoration: none; }
.ltc-search { position: relative; min-width: min(320px, 100%); }
.ltc-search input[type="search"] {
  width: 100%; border: 1px solid var(--ltc-border); border-radius: 999px; padding: 9px 44px 9px 16px; background: #fff;
}
.ltc-search button {
  position: absolute; right: 4px; top: 4px; bottom: 4px; border: 0; border-radius: 999px; background: var(--ltc-blue);
  color: #fff; padding: 0 13px; cursor: pointer;
}

/* Navigation */
.ltc-nav-wrap, #topmenu {
  background: var(--ltc-blue);
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 4px solid var(--ltc-green);
}
.ltc-nav-bar { display: flex; align-items: stretch; justify-content: space-between; }
.ltc-menu-toggle {
  display: none; width: 100%; padding: 14px 0; border: 0; background: transparent; color: #fff;
  font-family: var(--ltc-font-heading); font-size: 1.25rem; text-transform: uppercase; text-align: left; cursor: pointer;
}
.ltc-menu-toggle span { float: right; font-size: 1.4rem; line-height: 1; }
.ltc-primary-menu, #topmenu ul, #topmenu table { width: 100%; }
.ltc-primary-menu ul { list-style: none; margin: 0; padding: 0; }
.ltc-primary-menu > ul, #topmenu tr { display: flex; align-items: stretch; justify-content: space-between; }
.ltc-primary-menu li { position: relative; }
.ltc-primary-menu > ul > li { flex: 1 1 auto; }
.ltc-primary-menu > ul > li > a, #topmenu td > .wrapper > a {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--ltc-font-heading);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.18);
}
.ltc-primary-menu > ul > li:last-child > a { border-right: 1px solid rgba(255,255,255,.18); }
.ltc-primary-menu > ul > li:hover > a,
.ltc-primary-menu > ul > li:focus-within > a,
.ltc-primary-menu .current-menu-item > a,
#topmenu td.current > .wrapper > a {
  background: var(--ltc-blue-dark);
}
.ltc-menu-description, #topmenu .subtext {
  display: block;
  margin-top: 4px;
  font-family: var(--ltc-font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: .72rem;
  line-height: 1.15;
  opacity: .92;
}
.ltc-primary-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 30;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--ltc-border);
  box-shadow: var(--ltc-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.ltc-primary-menu li:hover > .sub-menu,
.ltc-primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ltc-primary-menu .sub-menu a { display: block; padding: 11px 14px; border-bottom: 1px solid #eee; color: var(--ltc-charcoal); font-weight: 700; }
.ltc-primary-menu .sub-menu a:hover { background: var(--ltc-blue-soft); text-decoration: none; }

/* Layout */
.ltc-main, .pagecontent { padding: 24px 0 34px; }
.ltc-content-shell, .pagecontent .container {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--ltc-shadow);
  padding: 20px;
}
.home .ltc-content-shell { background: transparent; border: 0; box-shadow: none; padding: 0; }
.ltc-page-title, .entry-title, .archive-title, .box-heading h2 {
  font-family: var(--ltc-font-heading);
  color: var(--ltc-blue-dark);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.entry-content h2, .ltc-section-title {
  font-family: var(--ltc-font-heading);
  color: var(--ltc-blue-dark);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin: 0 0 14px;
}
.entry-content h3 { color: var(--ltc-green-dark); font-family: var(--ltc-font-heading); font-size: 1.35rem; font-weight: 400; }
.entry-content p { margin: 0 0 1.1rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2rem 1.2rem; }
.wp-caption, .wp-caption img { max-width: 100%; }
.alignleft { float: left; margin: .35rem 1.2rem 1rem 0; }
.alignright { float: right; margin: .35rem 0 1rem 1.2rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* Homepage */
.ltc-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: var(--ltc-shadow);
  background: #fff;
  margin-bottom: 20px;
}
.ltc-hero-media { min-height: clamp(220px, 38vw, 430px); background: linear-gradient(120deg, #dfe9d0, #a3c5d7); display: flex; align-items: stretch; }
.ltc-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ltc-hero-content {
  position: absolute; left: 24px; bottom: 24px; max-width: min(560px, calc(100% - 48px));
  background: rgba(255,255,255,.94); border-left: 8px solid var(--ltc-green); padding: 18px 22px;
}
.ltc-hero-content h1 { margin: 0 0 8px; color: var(--ltc-blue-dark); font-family: var(--ltc-font-heading); text-transform: uppercase; font-weight: 400; font-size: clamp(2rem, 5vw, 4rem); line-height: .98; }
.ltc-hero-content p { margin: 0; font-size: 1.05rem; }
.ltc-promo-strip, .banner {
  display: block;
  margin: 0 0 20px;
  background: var(--ltc-blue);
  color: #fff;
  text-align: center;
  font-weight: 700;
  border-radius: 4px;
  overflow: hidden;
}
.ltc-promo-strip a { display: block; padding: 8px 14px; color: #fff; text-decoration: none; }
.ltc-promo-strip a:hover { background: var(--ltc-blue-dark); }
.banner img { width: 100%; display: block; }
.ltc-home-grid, .ltc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ltc-home-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ltc-card, .ac_column, .box, .ltc-post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.ltc-card { display: flex; flex-direction: column; min-height: 100%; }
.ltc-card-image { aspect-ratio: 16 / 9; background: #d8e6ef; overflow: hidden; }
.ltc-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ltc-card:hover .ltc-card-image img { transform: scale(1.035); }
.ltc-card-body { padding: 16px 18px 18px; }
.ltc-card h2, .ltc-card h3, .ltc-post-card h2, .ac_title {
  font-family: var(--ltc-font-heading);
  color: var(--ltc-blue-dark);
  font-weight: 400;
  margin: 0 0 9px;
  line-height: 1.16;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}
.ltc-card p { margin: 0 0 14px; }
.ltc-button, .ac_readmore a, .more-link {
  display: inline-block;
  padding: 8px 13px;
  background: var(--ltc-green);
  color: #fff !important;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}
.ltc-button:hover, .ac_readmore a:hover, .more-link:hover { background: var(--ltc-blue-dark); text-decoration: none; }
.ltc-news-panel { margin-bottom: 20px; }
.ltc-news-list { display: grid; gap: 12px; }
.ltc-news-item { background: #fff; border-left: 5px solid var(--ltc-blue); padding: 14px 16px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.ltc-news-item h3 { font-size: 1.25rem; margin: 0 0 5px; }
.ltc-news-item p { margin: 0 0 8px; }

/* Archive cards */
.ltc-post-list { display: grid; gap: 20px; }
.ltc-post-card { display: grid; grid-template-columns: 270px 1fr; gap: 18px; padding: 14px; }
.ltc-post-card .post-thumbnail { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ltc-blue-soft); }
.ltc-post-card .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ltc-entry-meta, .posted-on, .byline { color: var(--ltc-muted); font-size: .9rem; margin-bottom: .65rem; }
.navigation.pagination, .post-navigation { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links a, .nav-links span { padding: 8px 11px; background: #fff; border: 1px solid var(--ltc-border); }
.nav-links .current { background: var(--ltc-blue); color: #fff; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
  border: 1px solid var(--ltc-border);
  border-radius: 4px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ltc-charcoal);
  max-width: 100%;
}
button, input[type="submit"] {
  background: var(--ltc-blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}
button:hover, input[type="submit"]:hover { background: var(--ltc-green-dark); }

/* Footer */
.ltc-site-footer, #footer { background: #fff; border-top: 4px solid var(--ltc-blue); }
.ltc-footer-inner, #footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.ltc-footer-menu ul, .infopages ul { display: flex; flex-wrap: wrap; gap: 12px 18px; list-style: none; margin: 0; padding: 0; }
.ltc-footer-menu a, .infopages a { font-weight: 700; color: var(--ltc-muted); }
.ltc-branding, #branding { background: var(--ltc-charcoal); color: #fff; font-size: .9rem; }
.ltc-branding-inner, #branding .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }

/* Legacy imported content support */
#content, #content-top, #content-bottom, .box-content, .ac_container, .wrapper, .wp-block-image { max-width: 100%; }
#content { width: 100%; }
#content-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#content-top > .banner, #content-top > .box:first-of-type { grid-column: 1 / -1; }
.ac_container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac_column { padding: 14px; width: auto !important; min-height: 0 !important; }
.ac_title a { color: var(--ltc-blue-dark); }
.ac_text { font-size: .98rem; }
.entry-content [style*="width"], .entry-content [style*="height"], .ltc-home-legacy-content [style*="width"], .ltc-home-legacy-content [style*="height"] { max-width: 100% !important; }
.ltc-home-legacy-content table { width: 100%; max-width: 100%; }
.ltc-home-legacy-content img { height: auto !important; }

/* WordPress block niceties */
.wp-block-image img { height: auto; }
.wp-block-gallery { gap: 16px; }
.wp-block-quote { border-left: 5px solid var(--ltc-green); margin-left: 0; padding-left: 18px; color: var(--ltc-charcoal); }

/* Tablet */
@media (max-width: 980px) {
  .ltc-header-inner, #header .container { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .ltc-logo, #logo { justify-content: center; }
  .ltc-header-actions, .headerright { align-items: center; }
  .ltc-utility-menu ul, .links ul { justify-content: center; }
  .ltc-social-search { justify-content: center; flex-wrap: wrap; }
  .ltc-primary-menu > ul { flex-wrap: wrap; }
  .ltc-primary-menu > ul > li { flex: 1 1 25%; }
  .ltc-home-grid--three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ac_container { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .ltc-container, .container { width: min(100% - 24px, var(--ltc-max)); }
  .ltc-header-inner, #header .container { min-height: unset; padding: 14px 0; }
  .ltc-logo img, #logo img { max-height: 70px; }
  .ltc-utility-menu { display: none; }
  .ltc-charity-pill { font-size: .8rem; }
  .ltc-social-search { flex-direction: column; align-items: stretch; }
  .ltc-social-links { justify-content: center; }
  .ltc-search { min-width: 0; width: 100%; }
  .ltc-menu-toggle { display: block; }
  .ltc-primary-menu { display: none; width: 100%; padding: 0 0 12px; }
  body.ltc-menu-open .ltc-primary-menu { display: block; }
  .ltc-primary-menu > ul { display: block; }
  .ltc-primary-menu > ul > li > a {
    min-height: auto;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 13px 0;
  }
  .ltc-primary-menu .sub-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 0 0 8px 12px;
    background: rgba(255,255,255,.12);
  }
  .ltc-primary-menu li.is-open > .sub-menu,
  .ltc-primary-menu li:focus-within > .sub-menu { display: block; }
  .ltc-primary-menu .sub-menu a { color: #fff; border-color: rgba(255,255,255,.15); }
  .ltc-primary-menu .sub-menu a:hover { background: rgba(255,255,255,.12); }
  .ltc-main, .pagecontent { padding-top: 16px; }
  .ltc-content-shell, .pagecontent .container { padding: 16px; }
  .ltc-hero { margin-left: -12px; margin-right: -12px; border-left: 0; border-right: 0; }
  .ltc-hero-media { min-height: 290px; }
  .ltc-hero-content {
    position: static;
    max-width: none;
    border-left: 0;
    border-top: 6px solid var(--ltc-green);
    padding: 16px;
  }
  .ltc-home-grid, .ltc-card-grid, .ltc-home-grid--three, #content-top, .ac_container { grid-template-columns: 1fr; }
  .ltc-post-card { grid-template-columns: 1fr; }
  .ltc-post-card .post-thumbnail { aspect-ratio: 16 / 9; }
  .alignleft, .alignright { float: none; display: block; margin: 0 auto 1rem; }
  .ltc-footer-inner, #footer .container, .ltc-branding-inner, #branding .container { flex-direction: column; text-align: center; }
  .ltc-footer-menu ul, .infopages ul { justify-content: center; }
}

@media (max-width: 420px) {
  .ltc-site-title { font-size: 2rem; }
  .ltc-card-body { padding: 14px; }
  .ltc-page-title, .entry-title, .archive-title { font-size: 1.75rem; }
}


/* -------------------------------------------------------------------------
   Original Loving the Cotswolds visual skin
   -------------------------------------------------------------------------
   This section pulls the responsive theme back toward the legacy site look:
   lighter page chrome, squarer panels, Oswald/Lato typography, blue social/nav
   accents and the original card/button treatment. It sits at the end of the
   stylesheet intentionally so it overrides the first-pass modern palette.
*/
:root {
  --ltc-blue: #168fc3;
  --ltc-blue-dark: #0c6f99;
  --ltc-blue-soft: #e7f5fa;
  --ltc-green: #8abd3f;
  --ltc-green-dark: #6d9e31;
  --ltc-gold: #d6b16a;
  --ltc-charcoal: #333333;
  --ltc-text: #333333;
  --ltc-muted: #666666;
  --ltc-border: #dddddd;
  --ltc-bg: #ffffff;
  --ltc-panel-bg: #ffffff;
  --ltc-faint-bg: #f4f4f4;
  --ltc-shadow: none;
  --ltc-radius: 0;
  --ltc-max: 1184px;
  --ltc-font-heading: 'Oswald', Arial, Helvetica, sans-serif;
  --ltc-font-body: 'Lato', Arial, Helvetica, sans-serif;
}

html,
body {
  background: #ffffff;
}

body {
  color: #333333;
  font-family: var(--ltc-font-body);
  font-size: 14px;
  line-height: 1.55;
}

a { color: #168fc3; }
a:hover,
a:focus { color: #0c6f99; }

.ltc-container,
.container {
  max-width: 1184px;
}

/* Header: closer to the original white, compact, logo-led masthead */
.ltc-site-header,
#header {
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.ltc-header-inner,
#header .container {
  min-height: 108px;
  padding: 17px 0 12px;
  grid-template-columns: minmax(260px, 415px) 1fr;
}

.ltc-logo img,
#logo img,
.custom-logo {
  max-height: 96px;
  width: auto;
}

.ltc-site-title {
  color: #168fc3;
  font-family: var(--ltc-font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ltc-header-actions,
.headerright {
  gap: 18px;
}

.ltc-utility-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
}

.ltc-utility-menu a,
.links a {
  color: #333333;
  font-size: 13px;
  font-weight: 400;
}

.ltc-utility-menu a:hover,
.links a:hover {
  color: #168fc3;
}

.ltc-charity-pill {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #6d9e31;
  font-size: 13px;
  font-weight: 700;
}

.ltc-social-links a {
  background: #168fc3;
  border-radius: 0;
  width: 33px;
  height: 33px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.ltc-social-links a:hover {
  background: #0c6f99;
}

.ltc-search input[type="search"] {
  border-radius: 0;
  border-color: #dddddd;
  background: #ffffff;
  min-height: 34px;
}

.ltc-search button {
  border-radius: 0;
  background: #168fc3;
}

/* Original-style horizontal menu: blue blocks with smaller Lato subtitles */
.ltc-nav-wrap,
#topmenu {
  background: #168fc3;
  border: 0;
}

.ltc-primary-menu > ul,
#topmenu tr {
  align-items: stretch;
}

.ltc-primary-menu > ul > li > a,
#topmenu td > .wrapper > a {
  min-height: 64px;
  color: #ffffff;
  background: #168fc3;
  border-left: 1px solid rgba(255,255,255,.28);
  border-right: 1px solid rgba(0,0,0,.08);
  font-family: var(--ltc-font-heading);
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  align-items: center;
}

.ltc-primary-menu > ul > li:hover > a,
.ltc-primary-menu > ul > li:focus-within > a,
.ltc-primary-menu .current-menu-item > a,
#topmenu td.current > .wrapper > a {
  background: #0c6f99;
}

.ltc-menu-description,
#topmenu .subtext {
  color: rgba(255,255,255,.92);
  font-family: var(--ltc-font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.15;
}

.ltc-primary-menu .sub-menu {
  background: #ffffff;
  border: 1px solid #dddddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.16);
}

.ltc-primary-menu .sub-menu a {
  color: #333333;
  font-weight: 400;
}

.ltc-primary-menu .sub-menu a:hover {
  background: #e7f5fa;
  color: #168fc3;
}

/* Main panels, cards and WordPress content */
.ltc-main,
.pagecontent {
  background: #ffffff;
  padding-top: 18px;
}

.ltc-content-shell,
.pagecontent .container {
  background: #ffffff;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.ltc-page-title,
.entry-title,
.archive-title,
.box-heading h2,
.entry-content h1,
.entry-content h2,
.ltc-section-title,
.ltc-card h2,
.ltc-card h3,
.ltc-post-card h2,
.ac_title {
  color: #168fc3;
  font-family: var(--ltc-font-heading);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.entry-content h3 {
  color: #333333;
  font-family: var(--ltc-font-heading);
  font-weight: 400;
}

.ltc-hero,
.ltc-card,
.ac_column,
.box,
.ltc-post-card,
.ltc-news-item {
  background: #ffffff;
  border: 1px solid #dddddd;
  box-shadow: none;
  border-radius: 0;
}

.ltc-hero-content {
  background: rgba(255,255,255,.95);
  border-left-color: #168fc3;
}

.ltc-hero-content h1 {
  color: #168fc3;
  text-transform: none;
}

.ltc-card-body,
.ac_column {
  padding: 12px;
}

.ltc-news-item {
  border-left: 0;
  border-top: 4px solid #168fc3;
}

.ltc-button,
.ac_readmore a,
.more-link,
.entry-content .button,
a.button {
  background: #168fc3;
  border-radius: 0;
  color: #ffffff !important;
  font-family: var(--ltc-font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
}

.ltc-button:hover,
.ac_readmore a:hover,
.more-link:hover,
.entry-content .button:hover,
a.button:hover {
  background: #0c6f99;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  border-radius: 0;
  border-color: #dddddd;
}

button,
input[type="submit"] {
  border-radius: 0;
  background: #168fc3;
}

button:hover,
input[type="submit"]:hover {
  background: #0c6f99;
}

/* Legacy homepage content often contains fixed image/table dimensions */
.entry-content table,
.ltc-home-legacy-content table,
#content-top table,
#content-bottom table {
  border-collapse: collapse;
}

.entry-content img,
.ltc-home-legacy-content img,
.ac_column img,
.box img {
  max-width: 100% !important;
  height: auto !important;
}

/* Footer */
.ltc-site-footer,
#footer {
  background: #ffffff;
  border-top: 1px solid #dddddd;
}

.ltc-footer-menu a,
.infopages a {
  color: #333333;
  font-weight: 400;
}

.ltc-footer-menu a:hover,
.infopages a:hover {
  color: #168fc3;
}

.ltc-branding,
#branding {
  background: #f4f4f4;
  color: #666666;
  border-top: 1px solid #dddddd;
}

/* Mobile: keep the original palette while making the old design behave */
@media (max-width: 980px) {
  .ltc-header-inner,
  #header .container {
    grid-template-columns: 1fr;
  }
  .ltc-utility-menu {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .ltc-header-inner,
  #header .container {
    padding: 12px 0;
  }

  .ltc-logo img,
  #logo img,
  .custom-logo {
    max-height: 82px;
  }

  .ltc-menu-toggle {
    color: #ffffff;
    font-family: var(--ltc-font-heading);
    font-weight: 400;
    text-transform: none;
  }

  .ltc-primary-menu > ul > li > a {
    min-height: auto;
    text-align: left;
    align-items: flex-start;
    padding: 13px 0;
    border-left: 0;
    border-right: 0;
  }

  .ltc-primary-menu .sub-menu {
    background: rgba(255,255,255,.12);
    border: 0;
    box-shadow: none;
  }

  .ltc-primary-menu .sub-menu a {
    color: #ffffff;
  }

  .ltc-hero-content {
    border-left: 0;
    border-top: 4px solid #168fc3;
  }

  .ltc-card,
  .ac_column,
  .box,
  .ltc-post-card,
  .ltc-news-item {
    border-left: 0;
    border-right: 0;
  }
}

/* -------------------------------------------------------------------------
   Chris colour tweaks - v1.0.2
   -------------------------------------------------------------------------
   Requested palette:
   - Header/menu green: #64B137
   - Main page background: #E9D99F
   - Copy/article panels: #ffffff
   - Buttons/CTAs: #CC3434
*/
:root {
  --ltc-blue: #64B137;
  --ltc-blue-dark: #4f902b;
  --ltc-blue-soft: #eef7e9;
  --ltc-green: #64B137;
  --ltc-green-dark: #4f902b;
  --ltc-gold: #E9D99F;
  --ltc-bg: #E9D99F;
  --ltc-panel-bg: #ffffff;
  --ltc-button-bg: #CC3434;
  --ltc-button-bg-hover: #a92727;
}

html,
body {
  background: #E9D99F;
}

/* Header and menu */
.ltc-site-header,
#header {
  background: #64B137;
}

.ltc-site-title,
.ltc-site-title span,
.ltc-utility-menu a,
.links a,
.ltc-charity-pill {
  color: #ffffff;
}

.ltc-utility-menu a:hover,
.links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ltc-social-links a,
.ltc-search button,
.ltc-nav-wrap,
#topmenu,
.ltc-primary-menu > ul > li > a,
#topmenu td > .wrapper > a {
  background: #64B137;
}

.ltc-social-links a:hover,
.ltc-search button:hover,
.ltc-primary-menu > ul > li:hover > a,
.ltc-primary-menu > ul > li:focus-within > a,
.ltc-primary-menu .current-menu-item > a,
#topmenu td.current > .wrapper > a {
  background: #4f902b;
}

.ltc-nav-wrap,
#topmenu {
  border-bottom: 0;
}

/* General page area */
.ltc-main,
.pagecontent,
.home .ltc-content-shell,
.archive .ltc-content-shell,
.search .ltc-content-shell,
.blog .ltc-content-shell {
  background: #E9D99F;
}

/* Keep actual written copy on white for readability */
.ltc-content-shell,
.pagecontent .container,
.single .ltc-content-shell,
.page .ltc-content-shell,
.error404 .ltc-content-shell,
.entry-content,
.ltc-card,
.ac_column,
.box,
.ltc-post-card,
.ltc-news-item,
.ltc-hero,
.comments-area {
  background: #ffffff;
}

.home .ltc-content-shell,
.archive .ltc-content-shell,
.search .ltc-content-shell,
.blog .ltc-content-shell {
  border: 0;
  box-shadow: none;
}

.single .entry-content,
.page .entry-content {
  padding: 18px;
}

.home .entry-content {
  padding: 0;
}

/* Buttons and calls-to-action */
.ltc-button,
.ac_readmore a,
.more-link,
.entry-content .button,
a.button,
button,
input[type="submit"],
.wp-block-button__link {
  background: #CC3434 !important;
  color: #ffffff !important;
  border-color: #CC3434 !important;
}

.ltc-button:hover,
.ac_readmore a:hover,
.more-link:hover,
.entry-content .button:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: #a92727 !important;
  border-color: #a92727 !important;
  color: #ffffff !important;
}

/* Headings and accents should now sit with the green brand colour */
a,
.ltc-page-title,
.entry-title,
.archive-title,
.box-heading h2,
.entry-content h1,
.entry-content h2,
.ltc-section-title,
.ltc-card h2,
.ltc-card h3,
.ltc-post-card h2,
.ac_title,
.ltc-hero-content h1,
.ltc-footer-menu a:hover,
.infopages a:hover {
  color: #4f902b;
}

.ltc-hero-content,
.ltc-news-item {
  border-color: #64B137;
}

@media (max-width: 720px) {
  .ltc-menu-toggle {
    background: #64B137;
    color: #ffffff;
  }
  .ltc-primary-menu .sub-menu {
    background: rgba(255,255,255,.14);
  }
  .ltc-hero-content {
    border-top-color: #64B137;
  }
  .single .entry-content,
  .page .entry-content {
    padding: 14px;
  }
}

/* Sidebar layout - added in v1.0.4 */
.ltc-layout {
  display: block;
}

.ltc-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.ltc-layout.no-sidebar .ltc-layout-main {
  width: 100%;
}

.ltc-sidebar {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--ltc-shadow);
  padding: 18px;
}

.ltc-sidebar-widget {
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e1d19a;
}

.ltc-sidebar-widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ltc-sidebar .widget-title {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 3px solid #64B137;
  font-family: var(--ltc-font-heading);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 400;
  color: #4f902b;
  text-transform: uppercase;
}

.ltc-sidebar ul,
.ltc-sidebar ol {
  margin: 0;
  padding-left: 18px;
}

.ltc-sidebar li {
  margin-bottom: 8px;
}

.ltc-sidebar img,
.ltc-sidebar iframe,
.ltc-sidebar table {
  max-width: 100%;
}

.ltc-sidebar input[type="search"],
.ltc-sidebar input[type="text"],
.ltc-sidebar input[type="email"],
.ltc-sidebar select,
.ltc-sidebar textarea {
  width: 100%;
}

@media (max-width: 900px) {
  .ltc-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .ltc-sidebar {
    margin-top: 22px;
  }
}


/* v1.0.5: original footer links and social icon images */
.ltc-footer-required-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ltc-footer-required-links a {
  color: #333333;
  font-weight: 400;
}

.ltc-footer-required-links a:hover,
.ltc-footer-required-links a:focus {
  color: #168fc3;
}

.ltc-site-footer .ltc-social-links a,
#footer .sociallinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.ltc-site-footer .ltc-social-links img,
#footer .sociallinks img {
  display: block;
  width: 33px;
  height: 33px;
}

@media (max-width: 768px) {
  .ltc-footer-required-links ul {
    justify-content: center;
  }
}


/* v1.0.6: restore original header utility links */
.ltc-original-header-links ul {
  align-items: center;
}

.ltc-header-charity-banner a {
  display: inline-flex;
  align-items: center;
}

.ltc-header-charity-banner img {
  display: block;
  max-height: 40px;
  width: auto;
}

.ltc-utility-menu.headerright {
  gap: 8px;
}

.ltc-utility-menu.headerright .upper {
  width: 100%;
}

.ltc-utility-menu.headerright > .menu {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .ltc-original-header-links ul {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .ltc-original-header-links ul {
    gap: 7px 12px;
  }

  .ltc-header-charity-banner {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }

  .ltc-header-charity-banner img {
    max-height: 36px;
  }
}


/* v1.0.8: original-style mega dropdown navigation with fixed desktop positioning */

/* v1.0.8 dropdown positioning fix: make the menu, not the page, the absolute-positioning context. */
.ltc-site-header {
  position: relative;
  z-index: 1000;
}

.ltc-nav-wrap,
.ltc-nav-bar,
.ltc-primary-menu,
.ltc-primary-menu > ul {
  position: relative;
  overflow: visible;
}

.ltc-primary-menu {
  z-index: 1001;
}

.ltc-primary-menu .ltc-mega-panel {
  top: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ltc-primary-menu li:hover > .ltc-mega-panel,
.ltc-primary-menu li:focus-within > .ltc-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ltc-primary-menu > ul > li.menu-item-has-children > a,
.ltc-primary-menu > ul > li.ltc-mega-menu > a {
  padding-right: 34px;
}

.ltc-primary-menu > ul > li.menu-item-has-children > a::after,
.ltc-primary-menu > ul > li.ltc-mega-menu > a::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1;
  opacity: .9;
}

.ltc-submenu-toggle {
  display: none;
}

.ltc-primary-menu > ul > li.ltc-mega-menu {
  position: static;
}

.ltc-primary-menu .ltc-mega-panel {
  left: 50%;
  right: auto;
  transform: translate(-50%, 8px);
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 18px;
  background: #ffffff;
  color: #333333;
  border: 1px solid #cfcfcf;
  border-top: 4px solid #64B137;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.ltc-primary-menu li:hover > .ltc-mega-panel,
.ltc-primary-menu li:focus-within > .ltc-mega-panel {
  transform: translate(-50%, 0);
}

.ltc-mega-panel h5 {
  margin: 0 0 12px;
  color: #333333;
  font-family: var(--ltc-font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.ltc-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 22px;
  align-items: start;
}

.ltc-mega-kids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

.ltc-primary-menu .ltc-mega-kids ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ltc-primary-menu .ltc-mega-kids li {
  margin: 0;
}

.ltc-primary-menu .ltc-mega-kids a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 6px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
  font-family: var(--ltc-font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.ltc-primary-menu .ltc-mega-kids a:hover,
.ltc-primary-menu .ltc-mega-kids a:focus {
  background: #f4fbe9;
  color: #2f7418;
}

.ltc-primary-menu .ltc-mega-kids img {
  width: 54px;
  height: 40px;
  object-fit: cover;
  display: block;
}

.ltc-mega-feature {
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  padding: 10px;
  text-align: center;
}

.ltc-mega-feature img {
  width: 100%;
  max-width: 246px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.ltc-mega-feature h3 {
  margin: 0;
  color: #333333;
  font-family: var(--ltc-font-heading);
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 980px) {
  .ltc-mega-inner {
    grid-template-columns: 1fr;
  }

  .ltc-mega-feature {
    display: none;
  }

  .ltc-mega-kids {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ltc-primary-menu li.menu-item-has-children,
  .ltc-primary-menu li.ltc-mega-menu {
    position: relative;
  }

  .ltc-primary-menu > ul > li.menu-item-has-children > a,
  .ltc-primary-menu > ul > li.ltc-mega-menu > a {
    padding-right: 56px;
  }

  .ltc-primary-menu > ul > li.menu-item-has-children > a::after,
  .ltc-primary-menu > ul > li.ltc-mega-menu > a::after {
    display: none;
  }

  .ltc-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.08);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .ltc-primary-menu .ltc-mega-panel,
  .ltc-primary-menu li:hover > .ltc-mega-panel,
  .ltc-primary-menu li:focus-within > .ltc-mega-panel {
    position: static;
    display: none;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 12px;
    margin: 0 0 8px;
    transform: none;
    background: rgba(255,255,255,.96);
    border: 0;
    border-top: 2px solid rgba(255,255,255,.35);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .ltc-primary-menu li.is-open > .ltc-mega-panel {
    display: block;
  }

  .ltc-primary-menu li.is-open > .ltc-submenu-toggle span[aria-hidden="true"] {
    transform: rotate(45deg);
  }

  .ltc-mega-panel h5 {
    color: #333333;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .ltc-mega-kids {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ltc-primary-menu .ltc-mega-kids a {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 48px;
    padding: 7px 4px;
    color: #333333;
    border-bottom-color: #e7e7e7;
  }

  .ltc-primary-menu .ltc-mega-kids img {
    width: 44px;
    height: 34px;
  }
}


/* v1.0.9: make legacy OpenCart-style breadcrumbs visible in the WordPress theme. */
body #breadcrumb,
body .ltc-visible-breadcrumb {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clear: both;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 16px;
  padding: 8px 10px;
  background: #fff7dc;
  border: 1px solid #d7c47f;
  color: #444444;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

body #breadcrumb a,
body .ltc-visible-breadcrumb a {
  color: #2f7f22;
  text-decoration: none;
}

body #breadcrumb a:hover,
body .ltc-visible-breadcrumb a:hover {
  color: #CC3434;
  text-decoration: underline;
}

body #breadcrumb .intro,
body .ltc-visible-breadcrumb .intro {
  font-weight: 700;
  margin-right: 4px;
}

body #breadcrumb .separator,
body .ltc-visible-breadcrumb .separator {
  color: #777777;
  padding: 0 4px;
}

body .ltc-visible-breadcrumb br {
  display: none;
}

@media (max-width: 720px) {
  body #breadcrumb,
  body .ltc-visible-breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
  }
}


/* v1.0.10: tighter legacy page spacing and centred titles */
.single .entry-title,
.page .entry-title,
.ltc-entry-title,
h1.entry-title {
    text-align: center;
}

/* Reduce the space under the main H1 */
.single .entry-header,
.page .entry-header {
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
}

/* Centre and tighten the H1 */
.single h1.entry-title,
.page h1.entry-title {
    text-align: center;
    margin: 0 0 18px 0 !important;
    line-height: 1.15;
}

/* Bring breadcrumb closer to the H1 */
#breadcrumb,
.breadcrumb {
    margin-top: 10px !important;
    margin-bottom: 5px !important;
}

/* Remove excess space around old content top areas */
#content .content-top,
.content-top {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Reduce gap around the green product/content divider */
.product-info {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* If the green horizontal bar is inside product-info/content top */
.product-info::before,
.content-top::before {
    margin-top: 0 !important;
}

/* Reduce huge blank space before the first image/content block */
.entry-content,
.page-content,
.post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Legacy imported content often has empty paragraphs/divs causing gaps */
.entry-content > p:empty,
.entry-content > div:empty {
    display: none !important;
}

/* Tighten first visible element after breadcrumb/product area */
.entry-content > *:first-child,
#content > *:first-child {
    margin-top: 0 !important;
}
