/* LVC self-contained shortcode styling — deliberately independent of any
   theme, so [lvc_*] shortcodes look correct no matter which theme is active. */
.lvc-sc { --lvc-olive: #556B2F; --lvc-dark-green: #1F4D2E; --lvc-beige: #D8C7A1; --lvc-text-muted: #5b6355; box-sizing: border-box; }
.lvc-sc *, .lvc-sc *::before, .lvc-sc *::after { box-sizing: border-box; }
.lvc-sc-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lvc-sc-section { padding: 56px 0; }
.lvc-sc-section-dark { background: var(--lvc-dark-green); color: #fff; }
.lvc-sc-section-beige { background: #F3F4F1; }
.lvc-sc-eyebrow { display: block; text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--lvc-olive); margin-bottom: 8px; }
.lvc-sc-heading { text-align: center; font-size: 32px; font-weight: 800; color: var(--lvc-dark-green); margin: 0 0 14px; line-height: 1.25; }
.lvc-sc-section-dark .lvc-sc-heading { color: #fff; }
.lvc-sc-subheading { text-align: center; max-width: 640px; margin: 0 auto 32px; color: var(--lvc-text-muted); font-size: 16px; line-height: 1.6; }

/* Hero */
.lvc-sc-hero { position: relative; min-height: 480px; overflow: hidden; display: flex; align-items: center; color: #fff; }
.lvc-sc-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.lvc-sc-hero-slide.is-active { opacity: 1; z-index: 1; }
.lvc-sc-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lvc-sc-hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(15,36,22,.72); }
.lvc-sc-hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.lvc-sc-hero-content h1 { font-size: 40px; font-weight: 800; margin: 0 0 16px; line-height: 1.2; }
.lvc-sc-hero-content p { font-size: 17px; margin: 0 0 24px; opacity: .95; line-height: 1.6; }
.lvc-sc-hero-dots { position: absolute; bottom: 20px; inset-inline-start: 0; inset-inline-end: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.lvc-sc-hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0; }
.lvc-sc-hero-dot.is-active { background: #fff; width: 26px; border-radius: 6px; }

.lvc-sc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.lvc-sc-btn-primary { background: var(--lvc-olive); color: #fff; }
.lvc-sc-btn-primary:hover { background: #445526; color: #fff; }
.lvc-sc-btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.lvc-sc-btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* About */
.lvc-sc-about { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .lvc-sc-about { grid-template-columns: 1.1fr .9fr; text-align: start; } }
.lvc-sc-about p { color: var(--lvc-text-muted); line-height: 1.7; font-size: 16px; }
.lvc-sc-about img { max-width: 100%; height: auto; margin: 0 auto; display: block; }

/* Stats */
.lvc-sc-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; text-align: center; }
@media (min-width: 700px) { .lvc-sc-stats { grid-template-columns: repeat(4,1fr); } }
.lvc-sc-stat-num { font-size: 38px; font-weight: 800; margin: 0; }
.lvc-sc-stat-label { margin: 6px 0 0; font-size: 14px; opacity: .85; }

/* Card grid (news / publications) */
.lvc-sc-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .lvc-sc-grid { grid-template-columns: repeat(3,1fr); } }
.lvc-sc-card { background: #fff; border: 1px solid #e6e4dc; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.lvc-sc-card-img { aspect-ratio: 16/10; background: #e3ead4; overflow: hidden; }
.lvc-sc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvc-sc-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.lvc-sc-card-date { font-size: 12px; color: #9aa08e; margin-bottom: 6px; }
.lvc-sc-card-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.35; color: var(--lvc-dark-green); }
.lvc-sc-card-title a { color: inherit; text-decoration: none; }
.lvc-sc-card-title a:hover { color: var(--lvc-olive); }
.lvc-sc-card-excerpt { font-size: 14px; color: var(--lvc-text-muted); line-height: 1.6; flex: 1; }
.lvc-sc-card-link { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--lvc-olive); text-decoration: none; }
.lvc-sc-more-link { display: block; text-align: center; margin-top: 32px; }

/* Partners */
.lvc-sc-partners { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: center; }
@media (min-width: 700px) { .lvc-sc-partners { grid-template-columns: repeat(6,1fr); } }
.lvc-sc-partners img { max-width: 100%; max-height: 60px; margin: 0 auto; display: block; filter: grayscale(1); opacity: .7; transition: .2s; }
.lvc-sc-partners img:hover { filter: grayscale(0); opacity: 1; }

/* Newsletter */
.lvc-sc-newsletter { max-width: 520px; margin: 0 auto; text-align: center; }
.lvc-sc-newsletter-form { display: flex; gap: 10px; margin-top: 22px; }
.lvc-sc-newsletter-form input[type=email] { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 8px; border: 0; font-size: 15px; }
.lvc-sc-newsletter-msg { margin-top: 14px; font-size: 14px; }

/* Map */
.lvc-sc-map iframe { width: 100%; height: 400px; border: 0; border-radius: 12px; }

.lvc-sc-empty { text-align: center; color: var(--lvc-text-muted); font-size: 14px; padding: 20px; }

/* Auto-collapse Elementor sections whose only content is a [lvc_*] shortcode
   that rendered nothing (no data yet — e.g. no Publications/Partners added,
   or Statistics/Map not filled in via Theme Options) so the homepage doesn't
   show tall empty gaps between sections. */
.elementor-widget-shortcode:has(.elementor-widget-container:empty) { display: none; }
.elementor-column:has(> .elementor-widget-wrap > .elementor-widget-shortcode:has(.elementor-widget-container:empty)) { display: none; }
.elementor-section:has(.elementor-widget-shortcode:has(.elementor-widget-container:empty)) { display: none; }
