@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
  --ep-green: #006633;
  --ep-green-dark: #004d26;
  --ep-green-bright: #008844;
  --ep-green-light: #e6f4ec;
  --ep-gold: #d4a017;
  --ep-text: #222;
  --ep-muted: #777;
  --ep-border: #ddd;
  --ep-bg: #f4f4f4;
  --ep-section-space: 24px;
}

body.ep-portal { font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; color: var(--ep-text); background: #fff; }
body.ep-portal a { text-decoration: none; color: inherit; }
body.ep-portal a:hover { color: var(--ep-green); }

/* Green badges & buttons — always white text */
body.ep-portal .ep-post-cat,
body.ep-portal .ep-badge,
body.ep-portal .ep-btn-read,
body.ep-portal .ep-pl-search-btn,
body.ep-portal .ep-pl-btn-search,
body.ep-portal .ep-pd-btn-primary,
body.ep-portal .ep-bd-btn-search,
body.ep-portal .ep-bd-btn-primary,
body.ep-portal a.ep-bd-btn-search,
body.ep-portal a.ep-bd-btn-primary,
body.ep-portal button.ep-bd-btn-search,
body.ep-portal button.ep-bd-btn-primary,
body.ep-portal .ep-pd-block-head,
body.ep-portal .ep-search button,
body.ep-portal .ep-newsletter button,
body.ep-portal .btn-custom,
body.ep-portal .btn-post-comment,
body.ep-portal .comments-module .btn-custom,
body.ep-portal .comments-module .btn-post-comment {
  color: #fff !important;
}
body.ep-portal a.ep-bd-btn-search,
body.ep-portal a.ep-bd-btn-primary,
body.ep-portal .btn.ep-bd-btn-primary,
body.ep-portal .btn.ep-bd-btn-search {
  color: #fff !important;
}
body.ep-portal a.ep-bd-btn-search:hover,
body.ep-portal a.ep-bd-btn-primary:hover,
body.ep-portal .btn.ep-bd-btn-primary:hover,
body.ep-portal .btn.ep-bd-btn-search:hover {
  color: #fff !important;
}
body.ep-portal a.ep-post-cat:hover,
body.ep-portal a.ep-btn-read,
body.ep-portal a.ep-btn-read:hover,
body.ep-portal .ep-pl-search-btn:hover,
body.ep-portal .ep-pl-btn-search:hover,
body.ep-portal .ep-pd-btn-primary:hover,
body.ep-portal .ep-bd-btn-search:hover,
body.ep-portal .ep-bd-btn-primary:hover,
body.ep-portal a.ep-bd-btn-search:hover,
body.ep-portal a.ep-bd-btn-primary:hover,
body.ep-portal button.ep-bd-btn-search:hover,
body.ep-portal button.ep-bd-btn-primary:hover,
body.ep-portal .btn-custom:hover,
body.ep-portal .btn-post-comment:hover {
  color: #fff !important;
}
body.ep-portal .ep-pl-tab.active {
  background: var(--ep-green);
  color: #fff !important;
  border-bottom-color: var(--ep-green);
}
.ep-container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* Top bar */
.ep-topbar { background: var(--ep-green-dark); color: rgba(255,255,255,.92); font-size: 12px; padding: 6px 0; }
.ep-topbar a { color: #fff; opacity: .9; }
.ep-topbar a:hover { opacity: 1; color: #fff; }
.ep-topbar .ep-social { display: inline-flex; gap: 8px; margin-left: 12px; }
.ep-topbar .btn-login { color: #fff; font-size: 12px; margin-right: 8px; }
.ep-topbar .btn-register-sm { background: #fff; color: var(--ep-green-dark); border-radius: 4px; padding: 4px 12px; font-size: 11px; font-weight: 600; }

/* Header */
.ep-header { background: #fff; border-bottom: 1px solid var(--ep-border); padding: 14px 0; }
.ep-logo { display: flex; align-items: center; gap: 10px; }
.ep-logo-img { display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; }
.ep-logo .ep-logo-img { max-height: 56px; }
.ep-logo-footer .ep-logo-img-footer { max-height: 48px; filter: none; }
.ep-logo-img-mobile { max-height: 40px; flex-shrink: 0; }
.ep-logo-img-mobile-drawer { max-height: 42px; flex-shrink: 0; background: transparent; }
.ep-logo-tagline { display: block; font-size: 10px; line-height: 1.3; opacity: .85; min-width: 0; }
.ep-logo-icon { width: 42px; height: 42px; background: var(--ep-green); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; }
.ep-logo-text { font-family: Georgia, serif; font-size: 26px; font-weight: 700; color: var(--ep-green); line-height: 1; }
.ep-logo-tag { font-size: 11px; color: var(--ep-muted); }
.ep-search { display: flex; }
.ep-search input { border: 1px solid var(--ep-border); border-radius: 24px 0 0 24px; padding: 10px 18px; flex: 1; font-size: 13px; }
.ep-search input:focus { outline: none; border-color: var(--ep-green); }
.ep-search button { background: var(--ep-green); color: #fff; border: none; border-radius: 0 24px 24px 0; padding: 0 22px; }
.ep-header-widgets { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ep-hwidget { background: var(--ep-bg); border: 1px solid var(--ep-border); border-radius: 8px; padding: 8px 12px; min-width: 110px; font-size: 11px; }
.ep-hwidget strong { display: block; font-size: 13px; color: #111; }
.ep-hwidget .up { color: var(--ep-green-bright); font-size: 10px; }

/* Nav */
.ep-nav { background: var(--ep-green-dark); }
.ep-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; overflow-x: auto; }
.ep-nav li a { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 12.5px; font-weight: 500; padding: 11px 14px; white-space: nowrap; opacity: .95; }
.ep-nav li a:hover, .ep-nav li a.active { background: rgba(255,255,255,.12); color: #fff; opacity: 1; }
.ep-nav li a i { font-size: 14px; }

/* Mobile slide-in menu */
.ep-header-brand-row { display: flex; align-items: center; gap: 10px; }
.ep-mobile-menu-btn {
  width: 42px; height: 42px; border: 1px solid var(--ep-border); border-radius: 10px;
  background: #fff; color: var(--ep-green-dark); font-size: 24px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ep-mobile-menu-btn:active { transform: scale(.96); }

.ep-mobile-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1080;
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.ep-mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 320px); max-width: 100%;
  background: #fff; z-index: 1090; transform: translateX(-105%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 8px 0 32px rgba(0,0,0,.18); display: flex; flex-direction: column;
  overflow: hidden;
}
body.ep-mobile-menu-open .ep-mobile-drawer { transform: translateX(0); }
body.ep-mobile-menu-open .ep-mobile-drawer-overlay { opacity: 1; visibility: visible; }

.ep-mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 14px; background: var(--ep-green-dark); color: #fff;
}
.ep-mobile-drawer-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; min-width: 0; flex-wrap: wrap; }
.ep-mobile-drawer-brand .ep-logo-tagline { color: rgba(255,255,255,.85); max-width: 180px; }
.ep-mobile-drawer-close {
  width: 36px; height: 36px; border: none; border-radius: 8px; background: rgba(255,255,255,.14);
  color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
}

.ep-mobile-drawer-nav {
  flex: 1; overflow-y: auto; padding: 10px 0; -webkit-overflow-scrolling: touch;
}
.ep-mobile-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  font-size: 15px; font-weight: 600; color: #222; border-bottom: 1px solid #f2f2f2;
}
.ep-mobile-nav-link i { width: 22px; font-size: 18px; color: var(--ep-green); }
.ep-mobile-nav-link.active,
.ep-mobile-nav-link:hover { background: var(--ep-green-light); color: var(--ep-green-dark); }

.ep-mobile-drawer-widgets {
  display: grid; gap: 8px; padding: 12px 14px; border-top: 1px solid #eee; background: #fafafa;
}
.ep-mobile-widget { font-size: 12px; color: #444; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 8px 10px; }
.ep-mobile-widget strong { color: #111; }

.ep-mobile-drawer-actions {
  display: flex; gap: 8px; padding: 12px 14px 18px; border-top: 1px solid #eee; background: #fff;
}
.ep-mobile-action-btn {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--ep-border); color: var(--ep-green-dark); background: #fff;
}
.ep-mobile-action-btn.ep-mobile-action-primary {
  background: var(--ep-green); border-color: var(--ep-green); color: #fff !important;
}

.ep-mobile-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1070;
  background: #fff; border-top: 1px solid #e5e5e5; box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.ep-mobile-bottom-nav a,
.ep-mobile-bottom-nav button {
  border: none; background: transparent; color: #666; font-size: 10px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px;
}
.ep-mobile-bottom-nav i { font-size: 18px; }
.ep-mobile-bottom-nav a.active,
.ep-mobile-bottom-nav button.active { color: var(--ep-green); }

@media (max-width: 767px) {
  body.ep-portal { padding-bottom: 64px; }
  .ep-topbar { font-size: 11px; }
  .ep-topbar > .ep-container > span:first-child { display: none; }
  .ep-header { padding: 10px 0; }
  .ep-header-brand-row { justify-content: space-between; width: 100%; }
  .ep-header-brand-row .ep-logo { margin-right: auto; }
  .ep-header-brand-row .ep-mobile-menu-btn { margin-left: auto; }
  .ep-logo-text { font-size: 22px; }
  .ep-search input { font-size: 12px; padding: 9px 14px; }
}

@media (min-width: 768px) {
  .ep-mobile-drawer,
  .ep-mobile-drawer-overlay,
  .ep-mobile-bottom-nav { display: none !important; }
}

/* Hero 3-col */
.ep-hero { background: var(--ep-bg); padding: 14px 0; }
.ep-hero-grid { display: grid; grid-template-columns: 1.4fr .8fr .7fr; gap: 12px; }
.ep-slider { position: relative; border-radius: 8px; overflow: hidden; min-height: 340px; background: #222; }
.ep-slider img { width: 100%; height: 340px; object-fit: cover; display: block; }
.ep-slider-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: center; padding: 28px; max-width: 70%; }
.ep-badge { background: var(--ep-green-bright); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .6px; padding: 4px 10px; border-radius: 3px; width: fit-content; margin-bottom: 10px; }
.ep-slider-title { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.ep-slider-title a { color: #fff; }
.ep-slider-desc { color: rgba(255,255,255,.88); font-size: 12px; margin-bottom: 14px; }
.ep-btn-read { background: var(--ep-green-bright); color: #fff; padding: 8px 18px; border-radius: 4px; font-size: 12px; font-weight: 600; display: inline-block; }
.ep-btn-read:hover { background: var(--ep-green); color: #fff; }

.ep-panel { background: #fff; border: 1px solid var(--ep-border); border-radius: 8px; overflow: hidden; height: 100%; }
.ep-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 2px solid var(--ep-green); }
.ep-panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ep-green); }
.ep-panel-head a { font-size: 11px; color: var(--ep-green); font-weight: 600; }
.ep-latest-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.ep-latest-item:last-child { border-bottom: none; }
.ep-latest-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ep-latest-item h4 { font-size: 12px; font-weight: 600; margin: 0 0 4px; line-height: 1.35; }
.ep-latest-meta { font-size: 10px; color: var(--ep-muted); }

.ep-live-grid { padding: 10px; display: grid; gap: 8px; }
.ep-live-row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 8px; background: var(--ep-bg); border-radius: 4px; }
.ep-prayer { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 10px 10px; }
.ep-prayer span { text-align: center; font-size: 10px; background: var(--ep-green-light); border-radius: 4px; padding: 6px 2px; }
.ep-prayer span b { display: block; font-size: 11px; color: var(--ep-green-dark); }

/* Category cards */
.ep-categories { padding: 16px 0; border-bottom: 1px solid var(--ep-border); }
.ep-cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.ep-cat-card { border-radius: 10px; padding: 16px 8px; text-align: center; border: 1px solid transparent; transition: transform .15s; }
.ep-cat-card:hover { transform: translateY(-2px); color: inherit; }
.ep-cat-card i { font-size: 26px; display: block; margin-bottom: 6px; }
.ep-cat-card strong { display: block; font-size: 12px; margin-bottom: 2px; }
.ep-cat-card small { font-size: 10px; color: var(--ep-muted); }
.ep-cat-news { background: #e8f5e9; color: #2e7d32; }
.ep-cat-property { background: #fff3e0; color: #e65100; }
.ep-cat-directory { background: #e3f2fd; color: #1565c0; }
.ep-cat-jobs { background: #ede7f6; color: #4527a0; }
.ep-cat-education { background: #e8eaf6; color: #283593; }
.ep-cat-tourism { background: #e0f7fa; color: #00838f; }
.ep-cat-auto { background: #eceff1; color: #37474f; }
.ep-cat-health { background: #fce4ec; color: #c2185b; }
.ep-cat-study-abroad { background: #e1f5fe; color: #01579b; }

/* Main grid */
.ep-main { padding: 24px 0 0; }
.ep-main-grid { display: grid; grid-template-columns: 220px 1fr 280px; gap: 16px; align-items: start; }
.ep-trending { grid-column: 1; grid-row: 1; }
.ep-main-stories { grid-column: 2; grid-row: 1; }
.ep-home-ad { grid-column: 1 / 3; grid-row: 2; margin-top: 4px; }
.ep-main-sidebar { grid-column: 3; grid-row: 1 / span 2; }
.ep-home-ad .ep-ad-box { width: 100%; max-width: none; margin: 0; }
.ep-home-ad .ep-ad-placeholder img { aspect-ratio: 728 / 90; object-fit: cover; }
.ep-trending ol { list-style: none; padding: 0; margin: 0; counter-reset: trend; }
.ep-trending li { counter-increment: trend; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.ep-trending li::before { content: counter(trend); background: var(--ep-green); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.ep-section-title { font-size: 15px; font-weight: 700; color: var(--ep-green); border-bottom: 2px solid var(--ep-green); padding-bottom: 8px; margin-bottom: 14px; }
.ep-top-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-bottom: 14px; }
.ep-top-big { border-radius: 8px; overflow: hidden; border: 1px solid var(--ep-border); }
.ep-top-big img { width: 100%; height: 200px; object-fit: cover; }
.ep-top-big-body { padding: 12px; }
.ep-top-big-body h3 { font-size: 16px; margin: 6px 0; }
.ep-top-list .ep-latest-item { padding-left: 0; padding-right: 0; }

.ep-property-card { border: 1px solid var(--ep-border); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.ep-property-card img { width: 100%; height: 110px; object-fit: cover; }
.ep-property-body { padding: 10px; }
.ep-property-price { color: var(--ep-green); font-weight: 700; font-size: 14px; }
.ep-for-sale { display: inline-block; border: 1px solid var(--ep-green); color: var(--ep-green); font-size: 10px; padding: 2px 8px; border-radius: 3px; margin-top: 4px; }
.ep-for-rent { display: inline-block; border: 1px solid #1976d2; color: #1976d2; font-size: 10px; padding: 2px 8px; border-radius: 3px; margin-top: 4px; }
.ep-for-lease { display: inline-block; border: 1px solid #7b1fa2; color: #7b1fa2; font-size: 10px; padding: 2px 8px; border-radius: 3px; margin-top: 4px; }
.ep-property-id { margin-top: 4px; }

/* Property module pages */
.ep-property-home {
  margin-top: var(--ep-section-space);
  padding: var(--ep-section-space) 0;
  background: #f8faf8;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  scroll-margin-top: 80px;
}
.ep-property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ep-property-home .ep-property-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ep-property-card { display: block; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e8e8e8; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.ep-property-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); color: inherit; }
.ep-property-card img { width: 100%; height: 160px; object-fit: cover; }
.ep-property-search-form { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; }
.ep-search-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ep-search-tabs .ep-tab { padding: 6px 16px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; }
.ep-search-tabs .ep-tab.active { background: var(--ep-green); color: #fff; border-color: var(--ep-green); }
.ep-search-tabs input[type=radio] { display: none; }

/* ── Properties Listing Hero ── */
body.ep-property-list-page .ep-main { padding: 0; }

.ep-pl-hero {
  position: relative; min-height: 480px; display: flex; align-items: center;
  padding: 48px 0 56px; overflow: hidden;
}
.ep-pl-hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80') center/cover no-repeat;
}
.ep-pl-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,50,25,.88) 0%, rgba(0,77,38,.75) 45%, rgba(0,0,0,.55) 100%);
}
.ep-pl-hero-inner { position: relative; z-index: 1; width: 100%; }

.ep-pl-hero-text { text-align: center; color: #fff; margin-bottom: 28px; }
.ep-pl-hero-badge {
  display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.ep-pl-hero-text h1 {
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 5vw, 44px);
  font-weight: 700; margin: 0 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.ep-pl-hero-text p { font-size: 16px; opacity: .9; margin: 0; max-width: 560px; margin-inline: auto; }

.ep-pl-search-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); max-width: 980px; margin: 0 auto;
}
.ep-pl-purpose-tabs {
  display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0;
}
.ep-pl-tab {
  flex: 1; text-align: center; padding: 12px 16px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #666; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ep-pl-tab input { display: none; }
.ep-pl-tab:hover { color: var(--ep-green); }
.ep-pl-tab.active { color: var(--ep-green); border-bottom-color: var(--ep-green); background: var(--ep-green-light); border-radius: 6px 6px 0 0; }

.ep-pl-search-fields {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end;
}
.ep-pl-search-fields-advanced { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; margin-top: 12px; }
.ep-pl-field label {
  display: block; font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 5px;
}
.ep-pl-field label i { color: var(--ep-green); margin-right: 3px; }
.ep-pl-field .form-control, .ep-pl-field .form-select {
  border: 1px solid #ddd; border-radius: 6px; font-size: 13px; padding: 10px 12px; height: 42px;
}
.ep-pl-field .form-control:focus, .ep-pl-field .form-select:focus {
  border-color: var(--ep-green); box-shadow: 0 0 0 3px rgba(0,102,51,.12);
}
.ep-pl-search-btn {
  width: 100%; height: 42px; background: var(--ep-green); color: #fff; border: none;
  border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s;
  white-space: nowrap; padding: 0 24px;
}
.ep-pl-search-btn:hover { background: var(--ep-green-dark); color: #fff; }
.ep-pl-search-btn-inline { display: inline-flex; width: auto; padding: 0 28px; text-decoration: none; }

.ep-pl-search-advanced { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ep-pl-search-advanced.open { max-height: 120px; }
.ep-pl-toggle-advanced {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; background: none; border: none; color: #888; font-size: 12px;
  font-weight: 600; padding: 14px 0 0; cursor: pointer; margin-top: 4px;
}
.ep-pl-toggle-advanced:hover { color: var(--ep-green); }
.ep-pl-toggle-advanced .ep-pl-chevron { transition: transform .2s; font-size: 10px; }
.ep-pl-toggle-advanced.open .ep-pl-chevron { transform: rotate(180deg); }

.ep-pl-popular {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; color: rgba(255,255,255,.75); font-size: 13px;
}
.ep-pl-popular span { font-weight: 600; }
.ep-pl-popular a {
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
  backdrop-filter: blur(4px); transition: all .15s;
}
.ep-pl-popular a:hover { background: #fff; color: var(--ep-green); }

/* Results section */
.ep-pl-results { padding: 36px 0 48px; background: #f8faf8; }
.ep-pl-results-bar {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e0e0e0;
}
.ep-pl-results-title { font-size: 20px; font-weight: 700; margin: 0 0 2px; color: #1a1a1a; }
.ep-pl-results-sub { font-size: 13px; color: #888; margin: 0; }
.ep-pl-sort-form { display: flex; align-items: center; gap: 8px; }
.ep-pl-sort-label { font-size: 12px; color: #888; white-space: nowrap; }
.ep-pl-sort-form .form-select { min-width: 170px; border-radius: 6px; font-size: 13px; }

.ep-pl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.ep-pl-grid .ep-property-card {
  margin-bottom: 0; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.ep-pl-grid .ep-property-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.ep-pl-grid .ep-property-card img { height: 190px; }
.ep-pl-grid .ep-property-body { padding: 14px; }
.ep-pl-grid .ep-property-body strong { font-size: 14px; display: block; margin-bottom: 4px; line-height: 1.35; }
.ep-pl-grid .ep-property-price { font-size: 16px; margin-top: 6px; }

.ep-pl-pagination { margin-top: 32px; display: flex; justify-content: center; }
.ep-pl-empty {
  text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px;
  border: 1px solid #e8e8e8;
}
.ep-pl-empty i { font-size: 48px; color: #ccc; display: block; margin-bottom: 12px; }
.ep-pl-empty h3 { font-size: 20px; margin-bottom: 6px; }
.ep-pl-empty p { color: #888; margin-bottom: 20px; }

@media (max-width: 991px) {
  .ep-pl-search-fields, .ep-pl-search-fields-advanced { grid-template-columns: 1fr 1fr; }
  .ep-pl-field-search { grid-column: 1 / -1; }
  .ep-pl-search-btn { width: 100%; }
  .ep-pl-hero { min-height: auto; padding: 36px 0 40px; }
}
@media (max-width: 575px) {
  .ep-pl-search-fields, .ep-pl-search-fields-advanced { grid-template-columns: 1fr; }
  .ep-pl-search-card { padding: 16px; }
  .ep-pl-purpose-tabs { flex-direction: column; border-bottom: none; gap: 4px; }
  .ep-pl-tab { border-bottom: none; border-radius: 6px; margin-bottom: 0; }
  .ep-pl-tab.active { border-bottom: none; }
  .ep-pl-grid { grid-template-columns: 1fr; }
}
.ep-popular-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-city-chip { display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid var(--ep-green); color: var(--ep-green); border-radius: 20px; font-size: 13px; text-decoration: none; }
.ep-city-chip:hover { background: var(--ep-green); color: #fff; }
.ep-detail-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; }
.ep-detail-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.ep-detail-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.ep-detail-price { font-size: 24px; font-weight: 700; color: var(--ep-green); }
.ep-detail-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; }
.ep-detail-section h3 { font-size: 18px; margin-bottom: 12px; }
.ep-amenity-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-contact-card { background: #f8faf8; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; }
.ep-map-iframe { width: 100%; height: 300px; border: 0; border-radius: 8px; }
.ep-society-cover { width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; }

/* ── Property Detail Page (Real Homes style) ── */
body.ep-property-detail-page .ep-main { padding: 0; }

.ep-pd-hero {
  position: relative; min-height: 280px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.ep-pd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.72) 100%);
}
.ep-pd-hero-inner { position: relative; z-index: 1; padding: 40px 12px 32px; width: 100%; }
.ep-pd-breadcrumb { font-size: 12px; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.ep-pd-breadcrumb a { color: rgba(255,255,255,.9); }
.ep-pd-breadcrumb a:hover { color: #fff; }
.ep-pd-breadcrumb span { margin: 0 6px; opacity: .6; }
.ep-pd-hero-title {
  color: #fff; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 4vw, 36px); font-weight: 700; margin: 0; line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.ep-pd-header-bar { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 20px 0; }
.ep-pd-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.ep-pd-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }
.ep-pd-address { margin: 0; color: #888; font-size: 14px; }
.ep-pd-address i { color: var(--ep-green); margin-right: 4px; }
.ep-pd-header-right { text-align: right; flex-shrink: 0; }
.ep-pd-purpose-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .3px;
  padding: 3px 12px; border-radius: 3px; margin-bottom: 6px;
}
.ep-pd-purpose-sale { background: #e8f5e9; color: var(--ep-green); }
.ep-pd-purpose-rent { background: #e3f2fd; color: #1565c0; }
.ep-pd-purpose-lease { background: #ede7f6; color: #4527a0; }
.ep-pd-price { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--ep-green); line-height: 1.1; }

.ep-pd-gallery-section { background: #f5f5f5; padding: 0 0 24px; }
.ep-pd-gallery {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 4px;
}
.ep-pd-gallery-single { grid-template-columns: 1fr; grid-template-rows: 400px; }
.ep-pd-gallery-main { grid-row: 1 / 3; }
.ep-pd-gallery-item {
  position: relative; overflow: hidden; display: block; background: #ddd;
}
.ep-pd-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ep-pd-gallery-item:hover img { transform: scale(1.04); }
.ep-pd-gallery-more {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600;
}

.ep-pd-main { padding: 28px 0 40px; background: #fff; }
.ep-pd-meta-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #eee; margin-bottom: 20px;
}
.ep-pd-id { font-size: 13px; color: #666; }
.ep-pd-id strong { color: #333; }
.ep-pd-share { display: flex; gap: 6px; align-items: center; }
.ep-pd-share a, .ep-pd-share button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd; background: #fff;
  display: flex; align-items: center; justify-content: center; color: #555; font-size: 14px;
  cursor: pointer; transition: all .15s;
}
.ep-pd-share a:hover, .ep-pd-share button:hover { background: var(--ep-green); color: #fff; border-color: var(--ep-green); }

.ep-pd-features {
  display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #eee; border-radius: 6px;
  margin-bottom: 28px; overflow: hidden;
}
.ep-pd-feature {
  flex: 1 1 120px; text-align: center; padding: 18px 10px; border-right: 1px solid #eee;
  background: #fafafa;
}
.ep-pd-feature:last-child { border-right: none; }
.ep-pd-feature i { font-size: 22px; color: var(--ep-green); display: block; margin-bottom: 6px; }
.ep-pd-feature-val { display: block; font-size: 18px; font-weight: 700; color: #222; line-height: 1.2; }
.ep-pd-feature-val.ep-pd-feature-text { font-size: 13px; font-weight: 600; }
.ep-pd-feature-label { display: block; font-size: 11px; color: #999; margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }

.ep-pd-block { margin-bottom: 28px; }
.ep-pd-block-head {
  background: var(--ep-green); color: #fff; font-size: 15px; font-weight: 600;
  padding: 10px 16px; border-radius: 4px 4px 0 0;
}
.ep-pd-block-body {
  border: 1px solid #eee; border-top: none; padding: 20px; border-radius: 0 0 4px 4px;
  background: #fff;
}
.ep-pd-desc { font-size: 14px; line-height: 1.75; color: #444; }
.ep-pd-desc p { margin-bottom: 12px; }

.ep-pd-details-grid .col-sm-6 { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.ep-pd-detail-label { color: #888; font-size: 13px; }
.ep-pd-detail-val { font-weight: 600; font-size: 13px; color: #222; }

.ep-pd-amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ep-pd-amenities li { font-size: 13px; color: #444; }
.ep-pd-amenities li i { color: var(--ep-green); margin-right: 6px; }

.ep-pd-map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: 4px; }
.ep-pd-floorplan { max-width: 100%; border-radius: 4px; border: 1px solid #eee; }
.ep-pd-video iframe { border-radius: 4px; }

.ep-pd-btn-primary {
  display: inline-block; background: var(--ep-green); color: #fff; border: none;
  padding: 11px 20px; border-radius: 4px; font-size: 13px; font-weight: 600;
  text-align: center; cursor: pointer; transition: background .15s;
}
.ep-pd-btn-primary:hover { background: var(--ep-green-dark); color: #fff; }
.ep-pd-btn-outline {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: 1px solid var(--ep-green); color: var(--ep-green); border-radius: 4px;
  font-size: 13px; font-weight: 600;
}
.ep-pd-btn-outline:hover { background: var(--ep-green); color: #fff; }

.ep-pd-sidebar { position: sticky; top: 16px; }
.ep-pd-agent-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 24px 20px;
  text-align: center; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ep-pd-agent-photo {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--ep-green-light); margin-bottom: 12px;
}
.ep-pd-agent-name { font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.ep-pd-agent-role { font-size: 12px; color: #999; margin-bottom: 16px; }
.ep-pd-agent-contacts { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; }
.ep-pd-agent-contacts li {
  display: grid; grid-template-columns: 20px 70px 1fr; gap: 4px; align-items: center;
  font-size: 12px; padding: 6px 0; border-bottom: 1px solid #f5f5f5;
}
.ep-pd-agent-contacts li i { color: var(--ep-green); }
.ep-pd-agent-contacts li span { color: #999; }
.ep-pd-agent-contacts li a { color: #333; font-weight: 500; word-break: break-all; }
.ep-pd-agent-contacts li a:hover { color: var(--ep-green); }

.ep-pd-inquiry-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ep-pd-inquiry-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.ep-pd-stats { font-size: 12px; color: #999; display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.ep-pd-stats i { color: var(--ep-green); margin-right: 4px; }

/* Lightbox */
.ep-pd-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.ep-pd-lightbox[hidden] { display: none !important; }
.ep-pd-lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.ep-pd-lightbox-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #fff; font-size: 36px; cursor: pointer; line-height: 1; opacity: .8;
}
.ep-pd-lightbox-prev, .ep-pd-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15);
  border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 22px; cursor: pointer;
}
.ep-pd-lightbox-prev { left: 16px; }
.ep-pd-lightbox-next { right: 16px; }
.ep-pd-lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 14px;
}

@media (max-width: 991px) {
  .ep-pd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .ep-pd-gallery-main { grid-row: 1 / 2; grid-column: 1 / 3; }
  .ep-pd-sidebar { position: static; }
}
@media (max-width: 575px) {
  .ep-pd-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .ep-pd-gallery-main { grid-row: auto; grid-column: auto; }
  .ep-pd-gallery-item { height: 200px; }
  .ep-pd-gallery-single .ep-pd-gallery-item { height: 260px; }
  .ep-pd-features { flex-direction: column; }
  .ep-pd-feature { border-right: none; border-bottom: 1px solid #eee; }
  .ep-pd-header-right { text-align: left; }
}
@media print {
  .ep-pd-share, .ep-pd-sidebar, .ep-pd-lightbox, .ep-topbar, .ep-nav, .ep-footer { display: none !important; }
}

/* ── Single Post Page ── */
.ep-post-page { padding: 24px 0 40px; background: #f8faf8; }
.ep-post-article { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 24px; }
.ep-post-breadcrumb { font-size: 12px; color: #888; margin-bottom: 16px; }
.ep-post-breadcrumb a { color: var(--ep-green); }
.ep-post-cat { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
.ep-post-title { font-family: Georgia, serif; font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; line-height: 1.3; margin: 12px 0; color: #1a1a1a; }
.ep-post-summary { font-size: 17px; color: #555; line-height: 1.5; margin-bottom: 16px; }
.ep-post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #888; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #eee; }
.ep-post-meta i { color: var(--ep-green); margin-right: 3px; }
.ep-post-content { font-size: 15px; line-height: 1.75; color: #333; margin-top: 20px; }
.ep-post-content p { margin-bottom: 16px; }
.ep-post-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 12px 0; }
.ep-post-content h2, .ep-post-content h3, .ep-post-content h4 { margin-top: 24px; margin-bottom: 10px; color: #1a1a1a; }
.ep-post-content h2 { font-size: 1.45rem; font-weight: 700; margin-top: 28px; }
.ep-post-content h3 { font-size: 1.2rem; font-weight: 600; }
.ep-post-content h4 { font-size: 1.05rem; font-weight: 600; }
.ep-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; }
.ep-post-tags a { font-size: 12px; color: var(--ep-green); background: var(--ep-green-light); padding: 4px 10px; border-radius: 4px; }
.ep-post-tags a:hover { background: var(--ep-green); color: #fff; }
.ep-post-share { margin-top: 20px; }
.ep-post-related { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ep-green); }
.ep-post-related-card { display: block; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; color: inherit; height: 100%; }
.ep-post-related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); color: inherit; }
.ep-post-related-card img { width: 100%; height: 120px; object-fit: cover; }
.ep-post-related-body { padding: 10px; }
.ep-post-related-body strong { display: block; font-size: 13px; line-height: 1.35; margin-bottom: 4px; }
.ep-post-related-body small { color: #999; font-size: 11px; }
.ep-post-sidebar .ep-panel { margin-bottom: 16px; }
.ep-post-article .post-image img, .ep-post-article .img-fluid { width: 100%; border-radius: 8px; margin-bottom: 16px; }
.ep-no-copy .ep-post-title,
.ep-no-copy .ep-post-summary,
.ep-no-copy .ep-post-content,
.ep-no-copy .post-image,
.ep-no-copy .post-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ep-post-comments .comments-module { padding: 0; }
.ep-post-comments .comments-module .section-title .title { font-size: 16px; font-weight: 700; color: var(--ep-green); }
.ep-post-comments .btn-custom,
.ep-post-comments .btn-post-comment { background: var(--ep-green) !important; border-color: var(--ep-green) !important; color: #fff !important; }
@media (max-width: 991px) {
  .ep-post-article { padding: 16px; }
}

/* ── Posts Listing Page ── */
.ep-posts-hero {
  background: linear-gradient(135deg, var(--ep-green-dark) 0%, var(--ep-green) 100%);
  color: #fff; padding: 36px 0 40px;
}
.ep-posts-breadcrumb { color: rgba(255,255,255,.75); margin-bottom: 10px; }
.ep-posts-breadcrumb a { color: rgba(255,255,255,.9); }
.ep-posts-breadcrumb a:hover { color: #fff; }
.ep-posts-hero-title {
  font-family: Georgia, serif; font-size: clamp(26px, 4vw, 38px);
  font-weight: 700; margin: 0 0 6px;
}
.ep-posts-hero-sub { margin: 0; opacity: .85; font-size: 14px; }

.ep-posts-page { padding: 28px 0 40px; background: #f8faf8; }
.ep-subcats { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-subcat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--ep-green); color: var(--ep-green); background: #fff;
}
.ep-subcat-pill:hover, .ep-subcat-pill.active { background: var(--ep-green); color: #fff !important; border-color: var(--ep-green); }

.ep-news-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 10px;
  overflow: hidden; height: 100%; transition: box-shadow .2s, transform .2s;
}
.ep-news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.ep-news-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.ep-news-card-link:hover { color: inherit; }
.ep-news-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ep-news-card-body { padding: 14px; }
.ep-news-card-cat {
  display: inline-block; color: #fff !important; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; text-transform: uppercase;
}
.ep-news-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: #1a1a1a; }
.ep-news-card-desc { font-size: 13px; color: #666; line-height: 1.5; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-news-card-meta { font-size: 11px; color: #999; display: flex; gap: 12px; }
.ep-news-card-meta i { color: var(--ep-green); }

.ep-posts-empty { text-align: center; padding: 48px 20px; background: #fff; border-radius: 10px; border: 1px solid #e8e8e8; color: #888; }
.ep-posts-empty i { font-size: 40px; display: block; margin-bottom: 10px; color: #ccc; }
.ep-posts-pagination { display: flex; justify-content: center; }
.ep-posts-load-more { display: inline-flex; width: auto; padding: 0 28px; border: none; cursor: pointer; }

/* Sidebar panels */
.ep-posts-sidebar { position: sticky; top: 16px; }

.ep-ad-box {
  position: relative;
  width: 100%;
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ep-ad-box img,
.ep-ad-box iframe,
.ep-ad-inner > * { display: block; width: 100%; max-width: 100%; height: auto; }
.ep-category-sidebar-ads { display: flex; flex-direction: column; gap: 12px; }
.ep-category-ad a { display: block; line-height: 0; }
.ep-category-ad-img { width: 100%; height: auto; border-radius: 8px; }
.ep-ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}
.ep-ad-placeholder img { width: 100%; height: auto; aspect-ratio: 728 / 90; object-fit: cover; }
.ep-ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a96a3;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 6px;
  border-radius: 4px;
}
.ep-ad-mobile { display: none; }

.ep-sidebar-panel { background: #fff; border: 1px solid var(--ep-border); border-radius: 8px; overflow: hidden; }
.ep-sidebar-panel .ep-latest-item:last-child { border-bottom: none; }
.ep-sidebar-social { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-sidebar-social a {
  display: inline-block; padding: 6px 14px; border-radius: 6px;
  color: #fff !important; font-size: 12px; font-weight: 600;
}
.ep-sidebar-tags { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ep-sidebar-tags a {
  font-size: 12px; color: var(--ep-green); background: var(--ep-green-light);
  padding: 4px 10px; border-radius: 4px; font-weight: 500;
}
.ep-sidebar-tags a:hover { background: var(--ep-green); color: #fff !important; }
.ep-sidebar-custom { padding: 14px; font-size: 13px; line-height: 1.6; }
.ep-sidebar-poll { padding: 14px; }

.ep-hero-card { background: var(--ep-green-light); border-radius: 8px; padding: 14px; text-align: center; border: 1px solid #c8e6c9; }
.ep-hero-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ep-green); margin-bottom: 8px; }
.ep-hero-card blockquote { font-size: 11px; font-style: italic; color: #444; margin: 8px 0 0; }

/* Explore */
.ep-explore {
  margin-top: var(--ep-section-space);
  padding-top: var(--ep-section-space);
  padding-bottom: 24px;
}
.ep-explore-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.ep-explore-item { position: relative; border-radius: 8px; overflow: hidden; height: 140px; }
.ep-explore-item img { width: 100%; height: 100%; object-fit: cover; }
.ep-explore-item span { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 11px; font-weight: 600; padding: 20px 8px 8px; text-align: center; }

.ep-newsletter { background: var(--ep-green-dark); color: #fff; border-radius: 8px; padding: 20px; margin-top: 16px; }
.ep-newsletter h4 { margin: 0 0 8px; font-size: 16px; }
.ep-newsletter p { font-size: 12px; opacity: .85; margin-bottom: 12px; }
.ep-newsletter .newsletter-inputs { display: flex; gap: 0; }
.ep-newsletter input.newsletter-input { flex: 1; border: none; border-radius: 4px 0 0 4px; padding: 10px 12px; font-size: 12px; }
.ep-newsletter button { background: var(--ep-green-bright); color: #fff !important; border: none; border-radius: 0 4px 4px 0; padding: 0 16px; font-weight: 600; font-size: 12px; }

.ep-footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-footer-social a {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center; color: #fff !important; font-size: 14px;
}
.ep-footer-social a:hover { background: var(--ep-green-bright); }

.ep-important-links { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.ep-important-links a { font-size: 13px; color: #333; display: flex; align-items: center; gap: 8px; }
.ep-important-links a i { color: var(--ep-green); width: 16px; }

.ep-sidebar-newsletter { padding: 12px 14px 14px; }
.ep-sidebar-newsletter p { font-size: 12px; color: #777; margin-bottom: 10px; }
.ep-sidebar-newsletter .newsletter-inputs { display: flex; gap: 0; }
.ep-sidebar-newsletter input.newsletter-input {
  flex: 1; border: 1px solid var(--ep-border); border-right: none; border-radius: 4px 0 0 4px;
  padding: 8px 10px; font-size: 12px;
}
.ep-sidebar-newsletter button {
  background: var(--ep-green); color: #fff !important; border: none; border-radius: 0 4px 4px 0;
  padding: 0 14px; font-size: 12px; font-weight: 600;
}

.ep-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 14px; }
.ep-stat-item { background: var(--ep-green-light); border: 1px solid #c8e6c9; border-radius: 6px; padding: 10px; text-align: center; }
.ep-stat-num { font-size: 16px; font-weight: 800; color: var(--ep-green); }
.ep-stat-label { font-size: 10px; color: #666; }

.ep-explore-banner {
  background: var(--ep-green-dark); color: #fff; padding: 28px 0; position: relative; overflow: hidden;
}
.ep-explore-banner::before {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath fill='rgba(255,255,255,0.15)' d='M0 40 L60 20 L120 35 L180 15 L240 30 L300 10 L360 25 L420 18 L480 32 L540 12 L600 28 L660 8 L720 22 L780 30 L840 14 L900 26 L960 16 L1020 30 L1080 10 L1140 24 L1200 18 L1200 40 Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 1200px 40px;
}
.ep-explore-stat { text-align: center; position: relative; z-index: 1; }
.ep-explore-stat i { font-size: 22px; margin-bottom: 4px; display: block; opacity: .85; }
.ep-explore-stat .num { font-size: 18px; font-weight: 800; }
.ep-explore-stat .label { font-size: 11px; opacity: .8; }

/* Heroes of Pakistan */
.ep-heroes-wrap {
  margin-top: var(--ep-section-space);
  padding: var(--ep-section-space) 0;
  background: #f4f6f4;
}
.ep-heroes-banner {
  background: linear-gradient(135deg, #004d26 0%, #006633 55%, #008844 100%);
  border-radius: 12px; padding: 22px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  box-shadow: 0 8px 24px rgba(0,77,38,.25);
}
.ep-heroes-intro { flex: 0 0 150px; min-width: 140px; }
.ep-heroes-intro h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.ep-heroes-intro p { color: rgba(255,255,255,.82); font-size: 12px; margin: 0; }
.ep-heroes-track {
  flex: 1 1 520px; display: flex; align-items: stretch; gap: 10px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: thin;
}
.ep-hero-card-new {
  flex: 0 0 118px; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s;
}
.ep-hero-card-new:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.18); color: inherit; }
.ep-hero-card-new img { width: 100%; height: 96px; object-fit: cover; object-position: top; display: block; }
.ep-hero-card-new-body { padding: 8px 8px 10px; text-align: center; }
.ep-hero-card-new-body strong { display: block; font-size: 11px; font-weight: 800; color: #1a1a1a; line-height: 1.25; margin-bottom: 2px; }
.ep-hero-card-new-body span { display: block; font-size: 9px; color: #777; line-height: 1.3; }
.ep-heroes-viewall {
  flex: 0 0 auto; align-self: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff !important; font-size: 11px; font-weight: 700; padding: 10px 14px; border-radius: 8px; white-space: nowrap;
}
.ep-heroes-viewall:hover { background: rgba(255,255,255,.24); color: #fff !important; }

.ep-stay-updated {
  margin-top: var(--ep-section-space); background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
  padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.ep-stay-updated-copy { flex: 1 1 220px; min-width: 200px; }
.ep-stay-updated-copy h3 { font-size: 15px; font-weight: 800; margin: 0 0 4px; color: #1a1a1a; }
.ep-stay-updated-copy p { font-size: 12px; color: #666; margin: 0; line-height: 1.45; }
.ep-stay-updated-form { flex: 1 1 280px; min-width: 240px; }
.ep-stay-updated-form .newsletter-inputs { display: flex; width: 100%; }
.ep-stay-updated-form input.newsletter-input {
  flex: 1; border: 1px solid #ddd; border-right: none; border-radius: 6px 0 0 6px; padding: 10px 12px; font-size: 13px;
}
.ep-stay-updated-form button {
  background: var(--ep-green); color: #fff !important; border: none; border-radius: 0 6px 6px 0;
  padding: 0 18px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.ep-stay-updated-social { flex: 0 0 auto; text-align: center; min-width: 160px; }
.ep-stay-updated-social > strong { display: block; font-size: 13px; margin-bottom: 8px; color: #1a1a1a; }
.ep-follow-icons { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ep-follow-icons a {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; font-size: 15px;
}
.ep-follow-facebook, .ep-follow-icons .ep-follow-facebook { background: #1877f2; }
.ep-follow-x, .ep-follow-twitter, .ep-follow-icons .ep-follow-x, .ep-follow-icons .ep-follow-twitter { background: #111; }
.ep-follow-instagram, .ep-follow-icons .ep-follow-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ep-follow-youtube, .ep-follow-icons .ep-follow-youtube { background: #ff0000; }
.ep-follow-icons a:not([class*="ep-follow-facebook"]):not([class*="ep-follow-x"]):not([class*="ep-follow-twitter"]):not([class*="ep-follow-instagram"]):not([class*="ep-follow-youtube"]) { background: var(--ep-green); }

@media (max-width: 767px) {
  .ep-heroes-banner { padding: 16px; }
  .ep-heroes-intro { flex: 1 1 100%; }
  .ep-heroes-viewall { width: 100%; text-align: center; }
  .ep-stay-updated { flex-direction: column; align-items: stretch; }
  .ep-stay-updated-social { text-align: left; }
  .ep-follow-icons { justify-content: flex-start; }
}

/* Footer */
.ep-footer { background: var(--ep-green-dark); color: rgba(255,255,255,.85); padding: 32px 0 0; margin-top: 20px; }
.ep-footer h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.ep-footer a { color: rgba(255,255,255,.75); font-size: 12px; }
.ep-footer a:hover { color: #fff; }
.ep-footer-bottom { background: #e8e8e8; color: #666; padding: 12px 0; margin-top: 24px; font-size: 12px; }

@media (max-width: 991px) {
  .ep-hero-grid { grid-template-columns: 1fr; }
  .ep-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .ep-main-grid { grid-template-columns: 1fr; }
  .ep-trending,
  .ep-main-stories,
  .ep-home-ad,
  .ep-main-sidebar { grid-column: 1; grid-row: auto; }
  .ep-explore-grid { grid-template-columns: repeat(3, 1fr); }
  .ep-ad-desktop { display: none; }
  .ep-ad-mobile { display: block; }
  .ep-property-home .ep-property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .ep-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ep-top-featured { grid-template-columns: 1fr; }
  .ep-header-widgets { display: none; }
  .ep-property-home .ep-property-grid { grid-template-columns: 1fr; }
}

/* Login modal — portal theme (common.css not loaded on homepage layout) */
body.ep-portal #loginModal { z-index: 1115 !important; }
body.ep-portal .modal-backdrop { z-index: 1110 !important; }

body.ep-portal #loginModal .modal-dialog {
  max-width: 420px;
  margin: 1rem auto;
}

body.ep-portal #loginModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.ep-portal #loginModal .auth-card {
  --auth-bg: #fff;
  --auth-input-bg: #f8faf9;
  --auth-input-border: #dfe7e2;
  --auth-border-color: #e8eee9;
  background: var(--auth-bg);
  border: 1px solid var(--auth-border-color);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
}

body.ep-portal #loginModal .auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ep-green-dark), var(--ep-green-bright));
}

body.ep-portal #loginModal .btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  opacity: 0.55;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 8px;
}

body.ep-portal #loginModal .btn-close:hover {
  opacity: 1;
}

body.ep-portal #loginModal .auth-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ep-green-dark);
  margin-bottom: 6px;
}

body.ep-portal #loginModal .auth-subtitle {
  color: #667085;
  font-size: 14px;
  margin-bottom: 20px;
}

body.ep-portal #loginModal .btn-auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #d0d5dd !important;
  background: #fff !important;
  color: #1a1a1a !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

body.ep-portal #loginModal .btn-auth-social:hover {
  background: #f9fafb !important;
  color: #111 !important;
}

body.ep-portal #loginModal .auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #98a2b3;
  font-size: 11px;
  margin: 18px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

body.ep-portal #loginModal .auth-divider::before,
body.ep-portal #loginModal .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eaecf0;
}

body.ep-portal #loginModal .auth-divider::before { margin-right: 12px; }
body.ep-portal #loginModal .auth-divider::after { margin-left: 12px; }

body.ep-portal #loginModal .form-floating > .form-control {
  height: 52px;
  min-height: 52px;
  border: 1px solid var(--auth-input-border);
  background: var(--auth-input-bg);
  border-radius: 10px;
  font-size: 14px;
  padding-top: 1.4rem;
}

body.ep-portal #loginModal .form-floating > label {
  color: #667085;
  font-size: 13px;
  padding: 0.95rem 0.95rem;
}

body.ep-portal #loginModal .form-floating > .form-control:focus {
  border-color: var(--ep-green);
  box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.12);
  background: #fff;
}

body.ep-portal #loginModal .password-wrapper .form-control {
  padding-right: 44px;
}

body.ep-portal #loginModal .auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #98a2b3;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
}

body.ep-portal #loginModal .auth-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.ep-portal #loginModal .auth-password-toggle .icon-eye { display: block; }
body.ep-portal #loginModal .auth-password-toggle .icon-eye-slash { display: none; }
body.ep-portal #loginModal .auth-password-toggle.show-pass .icon-eye { display: none; }
body.ep-portal #loginModal .auth-password-toggle.show-pass .icon-eye-slash { display: block; }

body.ep-portal #loginModal .auth-link {
  color: var(--ep-green);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

body.ep-portal #loginModal .auth-link:hover {
  color: var(--ep-green-dark);
  text-decoration: underline;
}

body.ep-portal #loginModal .btn-custom.btn-block {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--ep-green) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
}

body.ep-portal #loginModal .btn-custom.btn-block:hover {
  background: var(--ep-green-dark) !important;
  color: #fff !important;
}

body.ep-portal #loginModal .alert-custom {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

body.ep-portal #loginModal .alert-custom .alert-content {
  flex: 1;
  line-height: 1.45;
}

@media (max-width: 575px) {
  body.ep-portal #loginModal .modal-dialog {
    max-width: calc(100% - 20px);
    margin: 10px auto;
  }

  body.ep-portal #loginModal .auth-card {
    padding: 24px 18px 18px;
  }

  body.ep-portal #loginModal .auth-title {
    font-size: 22px;
  }
}

/* Auth pages (sign-up, forgot password, reset) */
.ep-auth-page {
  background: var(--ep-bg);
  padding: 28px 0 48px;
  min-height: calc(100vh - 220px);
}

.ep-auth-page .ep-auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8eee9;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
}

.ep-auth-page .ep-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ep-green-dark), var(--ep-green-bright));
}

.ep-auth-page .ep-auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ep-green-dark);
  margin-bottom: 6px;
}

.ep-auth-page .ep-auth-subtitle {
  color: #667085;
  font-size: 14px;
  margin-bottom: 20px;
}

.ep-auth-page .btn-auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #d0d5dd !important;
  background: #fff !important;
  color: #1a1a1a !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.ep-auth-page .btn-auth-social:hover {
  background: #f9fafb !important;
  color: #111 !important;
}

.ep-auth-page .auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #98a2b3;
  font-size: 11px;
  margin: 18px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ep-auth-page .auth-divider::before,
.ep-auth-page .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eaecf0;
}

.ep-auth-page .auth-divider::before { margin-right: 12px; }
.ep-auth-page .auth-divider::after { margin-left: 12px; }

.ep-auth-page .form-floating > .form-control {
  height: 52px;
  min-height: 52px;
  border: 1px solid #dfe7e2;
  background: #f8faf9;
  border-radius: 10px;
  font-size: 14px;
  padding-top: 1.4rem;
}

.ep-auth-page .form-floating > label {
  color: #667085;
  font-size: 13px;
}

.ep-auth-page .form-floating > .form-control:focus {
  border-color: var(--ep-green);
  box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.12);
  background: #fff;
}

.ep-auth-page .password-wrapper .form-control { padding-right: 44px; }

.ep-auth-page .auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #98a2b3;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
}

.ep-auth-page .auth-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ep-auth-page .auth-password-toggle .icon-eye { display: block; }
.ep-auth-page .auth-password-toggle .icon-eye-slash { display: none; }
.ep-auth-page .auth-password-toggle.show-pass .icon-eye { display: none; }
.ep-auth-page .auth-password-toggle.show-pass .icon-eye-slash { display: block; }

.ep-auth-page .ep-auth-link,
.ep-auth-page .form-check-label a {
  color: var(--ep-green);
  font-weight: 600;
  text-decoration: none;
}

.ep-auth-page .ep-auth-link:hover,
.ep-auth-page .form-check-label a:hover {
  color: var(--ep-green-dark);
  text-decoration: underline;
}

.ep-auth-page .btn-custom.btn-block {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--ep-green) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
}

.ep-auth-page .btn-custom.btn-block:hover {
  background: var(--ep-green-dark) !important;
  color: #fff !important;
}

.ep-auth-page .alert-custom {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

.ep-auth-page .form-check-label {
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

/* Static pages (terms, privacy, etc.) */
.ep-static-page {
  background: var(--ep-bg);
  padding: 24px 0 40px;
  min-height: calc(100vh - 220px);
}

.ep-static-page .ep-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #667085;
  margin-bottom: 14px;
}

.ep-static-page .ep-breadcrumb a {
  color: var(--ep-green);
  font-weight: 600;
}

.ep-static-page .ep-breadcrumb a:hover {
  color: var(--ep-green-dark);
}

.ep-static-page .ep-page-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 28px 24px;
}

.ep-static-page .ep-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ep-green-dark);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ep-green-light);
}

.ep-static-page .ep-page-content {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
}

.ep-static-page .ep-page-content h2,
.ep-static-page .ep-page-content h3,
.ep-static-page .ep-page-content h4 {
  color: var(--ep-green-dark);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 700;
}

.ep-static-page .ep-page-content p {
  margin-bottom: 1em;
}

.ep-static-page .ep-page-content ul,
.ep-static-page .ep-page-content ol {
  margin-bottom: 1em;
  padding-left: 1.4em;
}

.ep-static-page .ep-page-content a {
  color: var(--ep-green);
  font-weight: 600;
}

.ep-static-page .ep-page-content a:hover {
  color: var(--ep-green-dark);
  text-decoration: underline;
}

@media (max-width: 575px) {
  .ep-auth-page,
  .ep-static-page {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .ep-auth-page .ep-auth-card,
  .ep-static-page .ep-page-card {
    padding: 22px 16px;
    border-radius: 12px;
  }

  .ep-auth-page .ep-auth-title,
  .ep-static-page .ep-page-title {
    font-size: 22px;
  }
}
