/* Hide featured image ONLY on the Home page */
body.home .post-thumbnail,
body.home .wp-post-image {
  display: none !important;
}

.hero-image {   position: relative; } .hero-image::after {   content: "";   position: absolute;   inset: 0;   background: linear-gradient(to left, #f5fbee 10%, transparent 60%); }
.menu a {
  position: relative;
  text-decoration: none;
  color: #4a452a; /* menu text color */
  transition: color 0.3s ease;
}

/* === Refined Typography + Alignment for Media Grid === */

/* Fix card height and equal spacing */
.media-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px !important;
}

/* Title styling - better alignment & size */
.media-title {
  font-weight: 700;
  color: #213a24;
  font-size: 17px !important;
  line-height: 1.4;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Badge alignment fix */
.media-badge {
  font-size: 13px !important;
  padding: 6px 10px;
  border-radius: 999px;
  margin-left: auto;
}

/* Description - slightly bigger + consistent spacing */
.media-desc {
  font-size: 15px !important;
  color: #3e473b;
  margin-top: 6px;
  line-height: 1.6;
  min-height: 60px; /* Keeps cards visually even */
}

/* Improve grid gap slightly */
.media-links {
  gap: 22px !important;
}

/* Hover animation smoothing */
.media-card:hover {
  transform: translateY(-5px) scale(1.01);
  transition: all 0.3s ease-in-out;
}

/* Responsive adjustment for mobile */
@media (max-width: 740px) {
  .media-card {
    padding: 16px;
    min-height: auto;
  }
  .media-title {
    font-size: 18px !important;
  }
  .media-desc {
    font-size: 15px !important;
  }
}
/* === Add Highlight Border on Hover for Media Cards === */

.media-card {
  position: relative;
  border: 2px solid transparent;  /* Invisible by default */
  border-radius: 14px;
  transition: all 0.3s ease;
  background-color: rgba(44,78,37,0.04);
}

/* Hover: subtle border + glow */
.media-card:hover {
  border-color: rgba(44, 78, 37, 0.4); /* Natural green highlight */
  box-shadow: 0 8px 22px rgba(44, 78, 37, 0.15);
  background-color: rgba(44, 78, 37, 0.08);
  transform: translateY(-6px);
}

/* Optional: inner glow for more emphasis */
.media-card:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(44, 78, 37, 0.25);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Focus accessibility */
.media-card:focus,
.media-card:focus-visible {
  outline: none;
  border-color: rgba(44, 78, 37, 0.6);
  box-shadow: 0 0 0 3px rgba(44,78,37,0.25);
  transform: translateY(-4px);
}
/* === Reduce vertical space between media cards === */

/* Tighten grid spacing */
.media-links {
  gap: 12px !important;  /* Default was around 20-24px */
}

/* Reduce internal spacing (title/desc/badge margins) */
.media-meta {
  margin-bottom: 4px !important;  /* tighter spacing under the title */
}

.media-desc {
  margin-top: 2px !important;  /* less gap before description */
  line-height: 1.5 !important;
}

/* Optional – slightly reduce card padding */
.media-card {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
/* ===== Fix: 2-col desktop grid (3-col on wide screens), center the grid ===== */
.media-links {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);   /* default on desktop = 2 columns */
  gap: 12px !important;                    /* tighter gap we already applied */
  max-width: 1200px;                       /* lets grid form columns instead of a narrow single column */
  margin: 0 auto;                          /* center grid on page */
  padding-left: 24px;
  padding-right: 24px;
}

/* wider screens: 3 columns */
@media (min-width: 1200px) {
  .media-links {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
  }
}

/* tablet / small desktop: keep 2 columns */
@media (min-width: 900px) and (max-width: 1199px) {
  .media-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile: 1 column */
@media (max-width: 899px) {
  .media-links {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Let each card size to its content (remove forced tall min-height) */
.media-card {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* Make sure title wrapping works inside grid columns */
.media-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Small tweak: ensure cards use full column width */
.media-card { width: 100%; box-sizing: border-box; }

/* === Blog list: featured image left, text right (6 per page + load more) === */

.ef-blogs-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
}

.ef-blogs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Post card (link) */
.ef-postcard {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: rgba(44,78,37,0.04);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.26s ease, box-shadow 0.26s ease, background-color 0.26s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* thumbnail column */
.ef-thumb {
  width: 36%;
  min-width: 200px;
  max-width: 360px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f9f4;
}

/* image */
.ef-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* when no thumb, hide the column and expand text */
.ef-no-thumb {
  display: none;
}

/* body/right column */
.ef-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* title full - wrap allowed */
.ef-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e4a25;
  line-height: 1.22;
}

/* meta (author + read time) */
.ef-meta {
  font-size: 13px;
  color: #3e4a3d;
  margin-bottom: 10px;
}

/* excerpt */
.ef-excerpt {
  color: #4b5346;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* small read more pill on right bottom of card */
.ef-readmore {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  color: #2c4e25;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(44,78,37,0.08);
}

/* hover/focus */
.ef-postcard:hover,
.ef-postcard:focus {
  transform: translateY(-6px);
  background-color: rgba(44,78,37,0.12);
  box-shadow: 0 10px 28px rgba(44,78,37,0.14);
  text-decoration: none;
}

/* Load More button wrapper and style (similar to hero button style) */
.ef-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.ef-loadmore {
  background: #1f4a24; /* hero dark green */
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 3px 10px rgba(31,74,36,0.12);
}

.ef-loadmore:hover { transform: translateY(-2px); opacity: 0.95; }
.ef-loadmore:disabled { opacity: 0.6; cursor: default; background: #17411a; }

/* loading state */
.ef-loadmore.loading { pointer-events: none; opacity: 0.8; }

/* Responsive: on wider screens show two-column list */
@media (min-width: 980px) {
  .ef-blogs {
    grid-template-columns: repeat(2, 1fr);
  }
  .ef-postcard { align-items: stretch; }
  .ef-thumb { min-height: 180px; }
}

/* Large screens: 3 columns */
@media (min-width: 1280px) {
  .ef-blogs {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .ef-postcard {
    flex-direction: column; /* make card vertical in grid columns */
  }
  .ef-thumb { width: 100%; min-width: auto; height: 180px; border-radius: 10px; }
}

/* Mobile: stack, thumbnail above text */
@media (max-width: 979px) {
  .ef-postcard {
    flex-direction: column;
  }
  .ef-thumb {
    width: 100%;
    min-width: auto;
    height: 220px;
    border-radius: 10px;
  }
}

/* accessibility focus style */
.ef-postcard:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(44,78,37,0.12);
}

/* === Full Featured Image with Rounded Corners === */

/* Remove any masking or circular clipping */
.entry-featured-image,
.post-thumbnail,
.wp-post-image,
.featured-image,
img.wp-post-image {
  clip-path: none !important;
  -webkit-clip-path: none !important;
  overflow: hidden !important; /* keeps corners clean */
  border-radius: 12px !important; /* soft rounded edges */
}

/* Control the image sizing */
.entry-featured-image img,
.post-thumbnail img,
.wp-post-image,
.featured-image img {
  width: 100% !important;      /* span full content width */
  height: auto !important;     /* maintain aspect ratio */
  object-fit: contain !important; /* show full image, no cropping */
  object-position: center center !important;
  border-radius: 12px !important; /* same radius for inner image */
  display: block;
}

/* Remove any fixed heights from containers */
.post-thumbnail,
.entry-featured-image {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* =============================
   EasyForest — VIP Carousel Only
   Paste into Appearance → Customize → Additional CSS
   ============================= */

.ef-vips-section {
  width: min(1200px, 94%);
  margin: 40px auto 60px;
  padding: 0 8px;
  box-sizing: border-box;
}

.ef-section-title {
  font-size: 44px;
  color: #1f4a24;
  text-align: center;
  margin: 10px 0 26px;
  font-weight: 600;
}

/* carousel wrapper */
.ef-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* scrolling area */
.ef-carousel {
  flex: 1 1 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

/* scrollbar style (optional) */
.ef-carousel::-webkit-scrollbar { height: 10px; }
.ef-carousel::-webkit-scrollbar-thumb { background: rgba(31,74,36,0.12); border-radius:10px; }

/* vip card */
.ef-vip-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  background: #f5f8f2;
  border-radius: 14px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 14px rgba(31,74,36,0.06);
}

.ef-vip-card:hover,
.ef-vip-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(31,74,36,0.14);
}

/* image */
.ef-vip-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* text */
.ef-vip-name { font-weight:700; color:#1e4824; text-align:center; font-size:1rem; }
.ef-vip-title { color:#556444; text-align:center; font-size:0.95rem; opacity:0.95; }
.ef-vip-desc { color:#556444; font-size:0.92rem; text-align:center; }

/* arrows — modern glass buttons */
.ef-carousel-prev,
.ef-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  background: rgba(31, 74, 36, 0.7);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(31,74,36,0.25);
  transition: all 0.25s ease;
  z-index: 10;
}

.ef-carousel-prev { left: -70px; }
.ef-carousel-next { right: -70px; }

.ef-carousel-prev::before,
.ef-carousel-next::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  mask-size: cover;
  background-color: #fff;
}

.ef-carousel-prev::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19l-7-7 7-7' /%3E%3C/svg%3E");
}
.ef-carousel-next::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7' /%3E%3C/svg%3E");
}

.ef-carousel-prev:hover,
.ef-carousel-next:hover {
  background: rgba(31,74,36,0.9);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 25px rgba(31,74,36,0.4);
}

/* responsive arrows */
@media (max-width: 1024px) {
  .ef-carousel-prev { left: -50px; }
  .ef-carousel-next { right: -50px; }
}
@media (max-width: 768px) {
  .ef-carousel-prev, .ef-carousel-next {
    width: 44px; height: 44px; backdrop-filter: blur(4px);
  }
  .ef-carousel-prev::before, .ef-carousel-next::before { width:14px; height:14px; }
  .ef-carousel-prev { left: -36px; }
  .ef-carousel-next { right: -36px; }
}

/* mobile scale */
@media (max-width: 640px) {
  .ef-vip-card { flex: 0 0 78%; }
}

/* small body background nudge to match theme */
body { background-color: #f6fbf6; }
/* Arrow: place inside carousel so they are always clickable */
.ef-carousel-prev { left: 8px !important; }
.ef-carousel-next { right: 8px !important; }

/* Slightly reduce size on mobile */
@media (max-width: 768px) {
  .ef-carousel-prev, .ef-carousel-next { width:44px; height:44px; }
  .ef-carousel-prev::before, .ef-carousel-next::before { width:14px; height:14px; }
}
