/* Falisa Editorial Blog Theme (Rever-inspired light editorial aesthetic) */
:root {
  --blog-bg: #f5f5f5;
  --blog-surface: #ffffff;
  --blog-purple: #6d2caa;
  --blog-purple-hover: #56208a;
  --blog-ink: #151515;
  --blog-body: #444444;
  --blog-muted: #777777;
  --blog-border: #e8e8e8;
  --blog-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --blog-font-body: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--blog-bg);
  color: var(--blog-body);
  font-family: var(--blog-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blog-purple);
  color: #ffffff;
}

a {
  color: var(--blog-purple);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}
a:hover { color: var(--blog-purple-hover); }

img { max-width: 100%; height: auto; display: block; }

/* Header / Top Navbar */
.header-area {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--blog-purple);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .06);
}

.tw-menu-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tw-header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tw-logo {
  display: inline-flex;
  align-items: center;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, .14);
  height: 70px;
  flex-shrink: 0;
}

.tw-logo img {
  height: 30px;
  width: auto;
}

.tw-menu {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.sf-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sf-menu > li > a {
  display: block;
  padding: 0 14px;
  line-height: 70px;
  font-family: var(--blog-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}

.sf-menu > li > a:hover,
.sf-menu > li.current > a {
  color: #ffffff;
}

.tw-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  height: 38px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-family: var(--blog-font-body);
  font-size: 13px;
  outline: none;
  transition: width .22s ease, opacity .2s ease, padding .2s ease;
}

.header-search-input::placeholder { color: rgba(255, 255, 255, .72); }

.header-search-wrap.open .header-search-input {
  width: 210px;
  opacity: 1;
  padding: 0 12px;
}

.header-icon-btn {
  width: 44px;
  height: 70px;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  background: #5b2291;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 12px 15px 18px;
}

.mobile-nav-drawer.open { display: block; }

.mobile-nav-drawer a {
  display: block;
  padding: 10px 4px;
  font-family: var(--blog-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Main Container */
.rever-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 30px 15px 60px;
}

/* Hero Featured Card */
.blog-hero {
  position: relative;
  width: 100%;
  height: 460px;
  background: #1a0c2e;
  overflow: hidden;
  margin-bottom: 30px;
}

.blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.blog-hero:hover .blog-hero-img {
  transform: scale(1.02);
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 6, 32, .12) 0%, rgba(16, 6, 32, .55) 55%, rgba(14, 5, 28, .92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
}

.blog-hero-kicker {
  display: inline-block;
  align-self: flex-start;
  background: var(--blog-purple);
  color: #ffffff;
  font-family: var(--blog-font-heading);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.blog-hero-title {
  margin: 0 0 10px;
  font-family: var(--blog-font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 780px;
}

.blog-hero-title a { color: #ffffff; }
.blog-hero-title a:hover { color: #e2ccf7; }

.blog-hero-excerpt {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  max-width: 680px;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--blog-font-heading);
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
}

.blog-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blog-purple);
  color: #ffffff;
  padding: 9px 18px;
  font-family: var(--blog-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.blog-hero-btn:hover { background: var(--blog-purple-hover); color: #ffffff; }

/* 2-Column Editorial Split */
.blog-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.blog-main-col {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-sidebar-col {
  width: 370px;
  flex: 0 0 370px;
}

/* Active Filter Bar */
.blog-filter-status {
  background: var(--blog-surface);
  border-left: 4px solid var(--blog-purple);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--blog-ink);
}

.blog-filter-reset {
  background: var(--blog-bg);
  border: 1px solid var(--blog-border);
  padding: 5px 12px;
  font-family: var(--blog-font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--blog-ink);
  cursor: pointer;
}
.blog-filter-reset:hover { background: var(--blog-purple); color: #ffffff; border-color: var(--blog-purple); }

/* Article Card Grid */
.tw-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.entry-post-card {
  background: var(--blog-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
  border-bottom: 2px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.entry-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
  border-bottom-color: var(--blog-purple);
}

.entry-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 400 / 280;
  overflow: hidden;
  background: #ece7f3;
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.entry-post-card:hover .entry-media img {
  transform: scale(1.04);
}

.entry-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(109, 44, 170, .28);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease;
}

.entry-post-card:hover .entry-media-overlay { opacity: 1; }

.entry-content-container {
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.entry-cats {
  margin-bottom: 8px;
  font-family: var(--blog-font-heading);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blog-purple);
}

.entry-title {
  margin: 0 0 12px;
  font-family: var(--blog-font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--blog-ink);
}

.entry-title a { color: var(--blog-ink); }
.entry-title a:hover { color: var(--blog-purple); }

.entry-excerpt {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  flex: 1 1 auto;
}

.entry-readmore {
  font-family: var(--blog-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blog-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pagination */
.tw-pagination {
  margin-top: 30px;
  background: var(--blog-surface);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tw-page-btn {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-family: var(--blog-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #888888;
  cursor: pointer;
}
.tw-page-btn:hover:not(:disabled) { color: var(--blog-purple); }
.tw-page-btn:disabled { opacity: .35; cursor: default; }

.tw-page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tw-page-num {
  width: 34px;
  height: 34px;
  border: 1px solid var(--blog-border);
  background: var(--blog-surface);
  font-family: var(--blog-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--blog-ink);
  cursor: pointer;
}

.tw-page-num.active {
  background: var(--blog-purple);
  border-color: var(--blog-purple);
  color: #ffffff;
}

/* Sidebar Widgets */
.widget-item {
  background: var(--blog-surface);
  padding: 30px;
  margin-bottom: 30px;
}

.widget-title {
  margin: 0 0 22px;
  font-family: var(--blog-font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blog-ink);
}

.widget-title::after {
  content: ' >';
  color: var(--blog-purple);
}

.sidebar-search-form {
  display: flex;
  width: 100%;
}

.sidebar-search-input {
  flex: 1 1 auto;
  height: 42px;
  border: 1px solid rgba(230, 230, 230, .9);
  background: var(--blog-bg);
  padding: 0 14px;
  font-family: var(--blog-font-body);
  font-size: 14px;
  color: var(--blog-ink);
  outline: none;
}

.sidebar-search-input:focus { border-color: var(--blog-purple); }

.sidebar-search-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--blog-purple);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-search-btn:hover { background: var(--blog-purple-hover); }

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-list li {
  border-bottom: 1px solid #eeeeee;
}
.widget-list li:last-child { border-bottom: 0; }

.recent-post-link {
  display: block;
  padding: 12px 0;
  font-family: var(--blog-font-heading);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--blog-ink);
}
.recent-post-link:hover { color: var(--blog-purple); }

.cat-filter-btn {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--blog-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blog-ink);
  cursor: pointer;
}
.cat-filter-btn:hover,
.cat-filter-btn.active { color: var(--blog-purple); }

.cat-count {
  font-size: 11px;
  color: var(--blog-muted);
  font-weight: 600;
}

/* Single Article Page */
.article-single-card {
  background: var(--blog-surface);
  overflow: hidden;
}

.article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.article-inner {
  padding: 36px 40px 42px;
}

.article-breadcrumb {
  font-family: var(--blog-font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blog-muted);
  margin-bottom: 14px;
}
.article-breadcrumb a { color: var(--blog-purple); }

.article-h1 {
  margin: 0 0 14px;
  font-family: var(--blog-font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--blog-ink);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid #eeeeee;
  font-family: var(--blog-font-heading);
  font-size: 12px;
  color: var(--blog-muted);
}

.article-prose {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  font-family: var(--blog-font-heading);
  font-weight: 700;
  color: var(--blog-ink);
  margin: 28px 0 12px;
  line-height: 1.3;
}
.article-prose h2 { font-size: 23px; }
.article-prose h3 { font-size: 19px; }

.article-prose p { margin: 0 0 18px; }
.article-prose ul, .article-prose ol { margin: 0 0 20px; padding-left: 22px; }
.article-prose li { margin-bottom: 8px; }
.article-prose img { margin: 22px auto; }
.article-prose strong { color: var(--blog-ink); }

.article-cta-box {
  margin-top: 32px;
  background: linear-gradient(135deg, #5d2396 0%, #39125e 100%);
  color: #ffffff;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-cta-title {
  margin: 0 0 4px;
  font-family: var(--blog-font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}

.article-cta-sub {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .86);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-btn-light {
  background: #ffffff;
  color: var(--blog-purple);
  font-family: var(--blog-font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cta-btn-light:hover { background: #f2e8fc; color: var(--blog-purple-hover); }

.cta-btn-outline {
  border: 1px solid rgba(255, 255, 255, .55);
  color: #ffffff;
  font-family: var(--blog-font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cta-btn-outline:hover { background: rgba(255, 255, 255, .14); color: #ffffff; }

.related-posts-wrap {
  margin-top: 30px;
}
.related-heading {
  font-family: var(--blog-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--blog-ink);
  margin: 0 0 18px;
}
.related-heading::after { content: ' >'; color: var(--blog-purple); }

/* Footer */
.footer-area {
  background: var(--blog-surface);
  border-top: 1px solid var(--blog-border);
  padding: 34px 15px;
  text-align: center;
  font-family: var(--blog-font-heading);
  font-size: 13px;
  color: #888888;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
}
.footer-links a { color: #777777; }
.footer-links a:hover { color: var(--blog-purple); }

/* Scroll Up Button */
.scrollUp-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--blog-purple);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.scrollUp-btn.show { display: inline-flex; }
.scrollUp-btn:hover { background: var(--blog-purple-hover); }

/* Empty search state */
.blog-empty {
  grid-column: 1 / -1;
  background: var(--blog-surface);
  padding: 40px 30px;
  text-align: center;
  color: var(--blog-muted);
}

/* Responsive */
@media (max-width: 991px) {
  .blog-layout { flex-direction: column; }
  .blog-sidebar-col { width: 100%; flex: 1 1 auto; }
  .tw-menu { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .tw-logo { border-right: 0; }
}

@media (max-width: 767px) {
  .tw-blog-grid { grid-template-columns: 1fr; }
  .blog-hero { height: 340px; }
  .blog-hero-overlay { padding: 22px 20px; }
  .blog-hero-title { font-size: 24px; }
  .blog-hero-excerpt { display: none; }
  .article-inner { padding: 24px 20px 30px; }
  .article-h1 { font-size: 24px; }
  .header-search-wrap.open .header-search-input { width: 150px; }
}
