/*
Theme Name: Empowerment Update
Theme URI: https://empowermentupdate.com/
Author: Empowerment Update
Description: Editorial WordPress theme for Empowerment Update, built to reproduce the existing site's green-and-amber news design.
Version: 0.5.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: empowerment-update
Tags: news, blog, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --eu-green: #176b45;
  --eu-green-dark: #104b32;
  --eu-green-soft: #eaf4ed;
  --eu-amber: #d99a2b;
  --eu-ink: #202923;
  --eu-muted: #68736c;
  --eu-border: #e2e7e2;
  --eu-surface: #f7f8f4;
  --eu-white: #fff;
  --eu-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --eu-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --eu-radius: 8px;
  --eu-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--eu-ink); background: var(--eu-white); font-family: var(--eu-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--eu-green); }
button, input, textarea, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--eu-green); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--eu-serif); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.site-container { width: min(calc(100% - 32px), var(--eu-container)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; padding: 10px 14px; color: #fff; background: var(--eu-green-dark); }
.skip-link:focus { top: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--eu-border); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo { width: auto; max-width: 210px; max-height: 58px; }
.site-title { color: var(--eu-green-dark); font: 700 1.65rem/1.1 var(--eu-serif); letter-spacing: -.03em; }
.site-description { margin: 5px 0 0; color: var(--eu-muted); font-size: .78rem; }
.primary-navigation { display: flex; align-items: center; gap: 10px; }
.navigation-label { color: var(--eu-muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.primary-navigation ul { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { display: block; padding: 10px 12px; border-radius: 6px; color: #35443a; font-size: .9rem; font-weight: 600; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--eu-green); background: var(--eu-green-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search-link, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border: 1px solid var(--eu-border); border-radius: 7px; background: #fff; color: var(--eu-green-dark); cursor: pointer; }
.menu-toggle { display: none; }
.header-strip { min-height: 36px; background: var(--eu-green-dark); color: #fff; font-size: .78rem; }
.header-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.header-tagline { margin: 0; opacity: .92; }
.header-strip a { color: #fff; }

.home-intro { padding-top: 24px; }
.hero-carousel { position: relative; overflow: hidden; min-height: clamp(340px, 43vw, 570px); border-radius: var(--eu-radius); background: #193c2a; color: #fff; isolation: isolate; }
.hero-carousel-slides { position: relative; min-height: inherit; }
.hero-carousel-slide { position: absolute; inset: 0; min-height: inherit; overflow: hidden; color: #fff; }
.hero-carousel-slide[hidden] { display: none; }
.hero-carousel-slide.is-active { position: relative; display: block; animation: eu-hero-fade-in .45s ease both; }
.hero-carousel-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-carousel-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.48) 48%, rgba(0,0,0,.08) 100%), linear-gradient(0deg, rgba(0,0,0,.32), transparent 55%); }
.hero-carousel-content { position: absolute; right: 0; bottom: 0; left: 0; max-width: 900px; padding: clamp(24px, 5vw, 64px); }
.hero-carousel-content .category-label { color: #ffdc91; }
.hero-carousel-content h2 { max-width: 820px; margin-bottom: 8px; font-size: clamp(2rem, 4.4vw, 3.7rem); line-height: 1.08; text-wrap: balance; }
.hero-carousel-content h2 a:hover { color: #ffdc91; }
.hero-carousel-content .article-meta { color: rgba(255,255,255,.86); }
.hero-carousel-read-more { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 5px; color: #fff; font-size: .9rem; font-weight: 700; }
.hero-carousel-read-more:hover { border-color: #ffdc91; background: rgba(255,255,255,.12); color: #ffdc91; }
.hero-carousel-controls { position: absolute; z-index: 3; top: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); display: flex; align-items: center; justify-content: flex-end; gap: 10px; pointer-events: none; }
.hero-carousel-dots, .hero-carousel-actions { display: flex; align-items: center; gap: 9px; pointer-events: auto; }
.hero-carousel-dot { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero-carousel-dot.is-active { width: 27px; border-radius: 99px; background: #fff; }
.hero-carousel-actions { gap: 8px; }
.hero-carousel-pause { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; cursor: pointer; }
.hero-carousel-pause:hover { background: #fff; color: var(--eu-green-dark); }
@keyframes eu-hero-fade-in { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-carousel-slide.is-active { animation: none; } }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 40px; padding-top: 38px; padding-bottom: 64px; }
.main-content { min-width: 0; }
.content-section { margin-bottom: 42px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--eu-border); }
.section-heading h2 { font-size: 1.55rem; }
.section-heading a { color: var(--eu-green); font-size: .85rem; font-weight: 650; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.article-card { min-width: 0; }
.article-card-image { display: block; overflow: hidden; border-radius: 7px; background: var(--eu-surface); aspect-ratio: 16 / 9; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.article-card:hover .article-card-image img { transform: scale(1.035); }
.article-card h3 { font-size: 1.14rem; line-height: 1.3; }
.article-card .category-label { margin: 12px 0 5px; }
.article-card .article-excerpt { margin: 8px 0 0; color: #505d54; font-size: .87rem; line-height: 1.55; }
.article-card .article-meta { margin-top: 9px; }
.article-card-horizontal { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; }
.article-card-horizontal .article-card-image { grid-row: 1 / span 4; }
.article-card-horizontal .category-label { margin-top: 0; }
.article-card-horizontal h3 { font-size: 1rem; }
.sidebar { display: grid; gap: 18px; }
.author-profile { text-align: left; }
.author-profile-photo { width: 104px; height: 104px; margin: 0 0 14px; overflow: hidden; border-radius: 50%; background: #fff; }
.author-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-widget .author-profile-role { margin: -6px 0 12px; color: var(--eu-green); font-size: .8rem; font-weight: 700; }
.sidebar-widget .author-profile-bio { margin-bottom: 0; color: #505d54; line-height: 1.65; }

.sidebar-widget { padding: 20px; border: 1px solid var(--eu-border); border-radius: var(--eu-radius); background: var(--eu-surface); }
.sidebar-widget h2 { margin-bottom: 14px; font-size: 1.2rem; }
.sidebar-widget p { color: var(--eu-muted); font-size: .9rem; }
.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trending-tags a { padding: 6px 10px; border: 1px solid var(--eu-border); border-radius: 999px; background: #fff; font-size: .76rem; font-weight: 600; }
.trending-tags a:hover { border-color: var(--eu-green); }
.social-menu, .social-menu ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-menu a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--eu-border); border-radius: 999px; background: #fff; color: var(--eu-green-dark); font-size: .78rem; font-weight: 600; }
.social-menu a:hover { border-color: var(--eu-green); background: var(--eu-green-soft); }
.site-footer .social-menu a { border-color: rgba(255,255,255,.22); background: transparent; color: rgba(255,255,255,.86); }
.site-footer .social-menu a:hover { border-color: #ffdc91; color: #ffdc91; }
.sidebar-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sidebar-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.sidebar-list .rank { color: #9aa59d; font: 700 1.35rem/1 var(--eu-serif); }
.sidebar-list a { font-size: .9rem; font-weight: 650; line-height: 1.35; }
.newsletter-form { display: grid; gap: 10px; }
.newsletter-form input[type="email"] { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--eu-border); border-radius: 6px; background: #fff; }
.button-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 15px; border: 0; border-radius: 6px; background: var(--eu-green); color: #fff; font-weight: 650; cursor: pointer; }
.button-primary:hover { background: var(--eu-green-dark); color: #fff; }

.archive-header { margin: 34px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--eu-border); }
.archive-header h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.archive-header p { margin: 10px 0 0; color: var(--eu-muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--eu-border); border-radius: 6px; }
.pagination .current, .pagination a:hover { border-color: var(--eu-green); background: var(--eu-green); color: #fff; }
.single-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 38px; padding-top: 34px; padding-bottom: 60px; }
.entry-header { margin-bottom: 24px; }
.entry-title { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.15rem); overflow-wrap: anywhere; }
.entry-excerpt { color: #59665d; font-size: 1.12rem; line-height: 1.7; }
.entry-featured-image { width: 100%; max-height: 520px; margin: 24px 0; border-radius: 8px; object-fit: cover; }
.entry-content { font-size: 1.06rem; line-height: 1.85; overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 1.15em 0; }
.entry-content h2, .entry-content h3 { margin: 1.5em 0 .6em; }
.entry-content a { color: var(--eu-green); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--eu-amber); background: var(--eu-surface); }
.entry-content figure { margin: 1.5em 0; }
.entry-content .wp-block-image img { border-radius: 7px; }
.entry-footer { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--eu-border); color: var(--eu-muted); font-size: .9rem; }
.comments-area { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--eu-border); }
.comments-area input:not([type="submit"]), .comments-area textarea { width: 100%; padding: 10px; border: 1px solid var(--eu-border); border-radius: 6px; }
.comments-area textarea { min-height: 140px; }
.comments-area label { display: block; margin: 10px 0 5px; font-weight: 600; }

.site-footer { padding: 38px 0 20px; background: #102f21; color: rgba(255,255,255,.86); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h2, .site-footer h3 { margin-bottom: 12px; color: #fff; font-size: 1.15rem; }
.site-footer p { max-width: 420px; color: rgba(255,255,255,.72); font-size: .9rem; }
.footer-menu, .footer-menu ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: rgba(255,255,255,.82); font-size: .88rem; }
.footer-menu a:hover { color: #ffdc91; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.65); font-size: .78rem; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--eu-border); border-radius: 6px; }
.not-found { padding: 70px 0; text-align: center; }
.not-found h1 { font-size: 3rem; }
.not-found p { margin-top: 12px; color: var(--eu-muted); }

@media (max-width: 980px) {
  .header-main { min-height: 72px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 12px 16px 18px; border-bottom: 1px solid var(--eu-border); background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.07); }
  .primary-navigation.is-open { display: block; }
  .navigation-label { display: block; margin: 2px 12px 8px; }
  .primary-navigation ul { display: grid; gap: 3px; }
  .primary-navigation a { padding: 11px 12px; }
  .content-layout, .single-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-container { width: min(calc(100% - 24px), var(--eu-container)); }
  .header-main { gap: 10px; min-height: 68px; }
  .site-title { font-size: 1.35rem; }
  .site-description { max-width: 210px; font-size: .7rem; }
  .custom-logo { max-width: 155px; max-height: 46px; }
  .header-search-link { display: none; }
  .header-strip-inner { justify-content: center; text-align: center; }
  .header-strip-inner > :last-child { display: none; }
  .home-intro { padding-top: 12px; }
  .hero-carousel { min-height: 430px; }
  .hero-carousel-content {
    right: 0;
    bottom: 64px;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: calc(100% - 76px);
    overflow: hidden;
    padding: 16px;
  }
  .hero-carousel-content h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    line-height: 1.12;
  }
  .hero-carousel-read-more {
    max-width: 100%;
    margin-top: 12px;
    padding: 8px 12px;
    font-size: .82rem;
  }
  .hero-carousel-controls {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  .hero-carousel-dots, .hero-carousel-actions { gap: 6px; }
  .hero-carousel-dot { width: 8px; height: 8px; }
  .hero-carousel-dot.is-active { width: 22px; }
  .hero-carousel-pause {
    width: 32px;
    height: 32px;
  }
  .content-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 28px; padding-bottom: 42px; }
  .single-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 25px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 13px; }
  .article-card h3 { font-size: .98rem; line-height: 1.3; }
  .article-card .article-excerpt { font-size: .8rem; }
  .article-card .article-meta { font-size: .72rem; }
  .article-card-horizontal { grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
  .article-card-horizontal h3 { font-size: .9rem; }
  .article-card-horizontal .article-excerpt { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 18px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .entry-title { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}