/* EIT Food Grow — site redesign overlay */

/* --- Hero area under header (same width as main content) --- */
#sliders-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 1.5rem;
  padding: 0 30px;
  box-sizing: border-box;
}

#sliders-container:empty {
  display: none;
}

/* --- Home hero carousel (replaces Revolution Slider rs-module) --- */
.r-home-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: var(--r-radius);
  overflow: hidden;
  box-shadow: var(--r-shadow);
  min-height: 280px;
}

.r-home-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.r-home-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.r-home-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  min-height: 280px;
}

.r-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 78, 162, 0.82) 0%,
    rgba(3, 78, 162, 0.35) 55%,
    transparent 100%
  );
}

.r-home-hero__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  max-width: 36rem;
  color: #fff;
}

.r-home-hero__tag {
  margin: 0 0 0.5rem;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.r-home-hero__text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.45;
  opacity: 0.95;
}

.r-home-hero__dots {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.r-home-hero__dot {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.r-home-hero__dot.is-active {
  background: var(--r-green);
  border-color: var(--r-green);
}

/* Hide legacy single-page hero if any remain in content */
.r-page-hero {
  display: none !important;
}

/* Hide broken empty Revolution Slider shells */
.fusion-slider-revolution:empty,
rs-module-wrap:empty {
  display: none !important;
}

:root {
  --r-green: #65bc7b;
  --r-green-dark: #4a9d62;
  --r-blue: #034ea2;
  --r-text: #1a2b3c;
  --r-muted: #5a6b7d;
  --r-bg: #f4f7f5;
  --r-card: #ffffff;
  --r-radius: 12px;
  --r-shadow: 0 8px 32px rgba(3, 78, 162, 0.08);
}

body {
  color: var(--r-text);
}

/* Hero / home sections */
.r-hero-band {
  background: linear-gradient(
    135deg,
    var(--r-blue) 0%,
    #0568c8 55%,
    var(--r-green) 100%
  );
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: var(--r-radius);
  margin-bottom: 2rem;
}

.r-hero-band h1,
.r-hero-band h2 {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.r-hero-band p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 52rem;
}

/* Topic cards on homepage */
.fusion-layout-column .fusion-column-wrapper {
  border-radius: var(--r-radius);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fusion-layout-column:hover .fusion-column-wrapper {
  transform: translateY(-2px);
  box-shadow: var(--r-shadow);
}

/* Blog grid (/pages) */
.r-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

.r-blog-card {
  background: var(--r-card);
  border: 1px solid #e8ecef;
  border-radius: var(--r-radius);
  overflow: hidden;
  box-shadow: var(--r-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.r-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(3, 78, 162, 0.12);
}

.r-blog-card__img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--r-bg);
}

.r-blog-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.r-blog-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.r-blog-card__title a {
  color: var(--r-blue);
  text-decoration: none;
}

.r-blog-card__title a:hover {
  color: var(--r-green-dark);
}

.r-blog-card__excerpt {
  margin: 0;
  color: var(--r-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.r-page-intro {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.r-page-intro h1 {
  color: var(--r-blue);
  font-weight: 700;
}

/* Footer component */
.r-footer {
  margin-top: 2rem;
}

.r-footer-main {
  background: linear-gradient(
    180deg,
    #0d3d6e 0%,
    var(--r-blue) 100%
  ) !important;
  padding: 2.5rem 0 2rem !important;
}

.r-footer-grid {
  display: flex;
  flex-wrap: wrap;
}

.r-footer-col {
  margin-bottom: 1.5rem;
}

.r-footer-heading {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.r-footer-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.r-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.r-footer-menu li {
  margin: 0 0 0.4rem;
}

.r-footer-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
}

.r-footer-menu a:hover {
  color: var(--r-green);
}

.r-footer-bar {
  background: #082d52 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.r-footer-bar .fusion-copyright-notice {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

/* Buttons & links accent */
/* a.fusion-background-highlight:hover,
.fusion-main-menu > ul > li > a:hover {
	color: var(--r-green-dark) !important;
} */

.fusion-button,
.button-default,
.fusion-button-default {
  border-radius: 8px !important;
}

/* Secondary header flags */
.fusion-secondary-header {
  background: var(--r-bg) !important;
}

/* Content readability */
#main .post-content,
#main #content {
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .r-footer-grid .fusion-column {
    width: 100% !important;
  }
}
