:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5f5;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-600: #4f46e5;
  --purple-600: #7c3aed;
  --orange-500: #f97316;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --pink-600: #db2777;
  --red-500: #ef4444;
}

body {
  scroll-padding-top: 5.5rem;
}

@media (max-width: 768px) {
  body {
    scroll-padding-top: 4.5rem;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.single .article-header,
.archive .archive-header,
.page .page-header {
  margin-top: 5.5rem;
}

@media (max-width: 768px) {
  .single .article-header,
  .archive .archive-header,
  .page .page-header {
    margin-top: 4.5rem;
  }
}

/* Layout helpers */
.main-content {
  background-color: var(--slate-50);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.45s ease forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 30px -12px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -18px rgba(37, 99, 235, 0.55);
}

.btn-primary:focus {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 4px;
}

/* Single article layout */
.single-article {
  background-color: #fff;
}

.article-header {
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  color: #fff;
  padding: 2.75rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.article-header::after {
  content: "";
  position: absolute;
  inset: 10% -20% auto 40%;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  filter: blur(0.5px);
  pointer-events: none;
}

.article-header .container {
  max-width: 56rem;
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "/";
  opacity: 0.55;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #fff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.lesson-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.lesson-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lesson-quarter {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
}

.lesson-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.lesson-highlights > div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  color: #fff;
  box-shadow: 0 16px 36px -22px rgba(15, 23, 42, 0.55);
}

.lesson-highlights h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.lesson-highlights blockquote,
.lesson-highlights p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.sermon-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.sermon-meta > div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  color: #fff;
  box-shadow: 0 16px 36px -22px rgba(15, 23, 42, 0.55);
}

.sermon-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.article-featured-image {
  margin: -3.5rem auto 0;
  max-width: 72rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.article-featured-image img {
  width: 100%;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.55);
  object-fit: cover;
}

.article-content {
  margin: 3.5rem 0 4rem;
}

.article-content .container {
  max-width: 72rem;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .content-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}

.main-content-area {
  flex: 1 1 0%;
  min-width: 0;
}

.article-body {
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid var(--slate-100);
  padding: 2.75rem;
  box-shadow: 0 22px 60px -32px rgba(15, 23, 42, 0.4);
}

.article-body .entry-content {
  color: var(--slate-700);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body .entry-content > * + * {
  margin-top: 1.5rem;
}

.article-body .entry-content h2,
.article-body .entry-content h3,
.article-body .entry-content h4 {
  color: var(--slate-900);
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.article-body .entry-content h2 {
  font-size: 1.875rem;
}

.article-body .entry-content h3 {
  font-size: 1.5rem;
}

.article-body .entry-content blockquote {
  padding: 1.5rem;
  border-left: 4px solid var(--blue-600);
  background: var(--blue-50);
  border-radius: 1.5rem;
  font-style: italic;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  background: var(--slate-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.download-btn svg {
  display: inline-block;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px -25px rgba(15, 23, 42, 0.5);
  background: #fff;
}

.download-btn.pdf-btn {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 32px -18px rgba(37, 99, 235, 0.6);
}

.download-btn.ppt-btn {
  background: linear-gradient(135deg, var(--orange-500), #fb923c);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 32px -18px rgba(249, 115, 22, 0.55);
}

.download-btn.audio-btn {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 32px -18px rgba(16, 185, 129, 0.55);
}

.share-buttons {
  margin-top: 2.5rem;
}

.share-buttons h4 {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
}

.share-links {
  display: flex;
  gap: 0.8rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-600);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -22px rgba(37, 99, 235, 0.5);
}

.share-btn.facebook {
  background: var(--blue-600);
  color: #fff;
}

.share-btn.whatsapp {
  background: var(--emerald-500);
  color: #fff;
}

.share-btn.telegram {
  background: #0ea5e9;
  color: #fff;
}

.post-tags {
  margin-top: 2.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-list a:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.article-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .article-sidebar {
    max-width: 320px;
    position: sticky;
    top: 120px;
  }
}

.related-posts,
.sidebar-newsletter,
.sidebar-widget {
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid var(--slate-100);
  padding: 1.75rem;
  box-shadow: 0 22px 52px -30px rgba(15, 23, 42, 0.4);
}

.related-posts h3,
.sidebar-widget .widget-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.related-posts-list {
  display: grid;
  gap: 1rem;
}

.related-post {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.related-thumbnail {
  flex: 0 0 64px;
}

.related-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 1rem;
}

.related-content h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
}

.related-content a {
  color: inherit;
  text-decoration: none;
}

.related-content a:hover {
  color: var(--blue-600);
}

.related-content time {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.sidebar-newsletter {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  border: none;
  color: #fff;
  box-shadow: 0 30px 60px -32px rgba(37, 99, 235, 0.7);
}

.sidebar-newsletter h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.sidebar-newsletter p {
  font-size: 0.9rem;
  opacity: 0.82;
}

.sidebar-newsletter .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sidebar-newsletter input[type="email"] {
  width: 100%;
  border-radius: 9999px;
  border: none;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.sidebar-newsletter input::placeholder {
  color: rgba(15, 23, 42, 0.6);
}

.sidebar-newsletter .btn-primary {
  background: #fff;
  color: var(--blue-600);
  box-shadow: none;
}

.post-navigation {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 3rem 0;
}

.post-navigation .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .post-navigation .nav-links {
    flex-direction: row;
    justify-content: space-between;
  }
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--slate-100);
  text-decoration: none;
  box-shadow: 0 24px 45px -30px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 60px -28px rgba(15, 23, 42, 0.55);
}

.nav-direction {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  font-weight: 600;
}

.nav-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-900);
}

/* Archive & search listings */
.archive-header {
  background: linear-gradient(135deg, var(--slate-900), var(--blue-700));
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.archive-header::after {
  content: "";
  position: absolute;
  inset: auto 10% -40% 35%;
  height: 240px;
  width: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 65%);
  filter: blur(1px);
}

.archive-header .container {
  max-width: 68rem;
  position: relative;
  z-index: 1;
}

.archive-title {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.archive-description {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.archive-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.archive-content {
  margin: 3.5rem 0 4rem;
}

.archive-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .archive-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.archive-main {
  flex: 1 1 0%;
  min-width: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
}

.posts-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid var(--slate-100);
  box-shadow: 0 20px 45px -30px rgba(15, 23, 42, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -38px rgba(15, 23, 42, 0.5);
}

.post-card .card-image {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.post-card .card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 0%;
}

.post-card .card-meta {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.post-card .card-meta .lesson-badge {
  background: var(--blue-100);
  color: var(--blue-700);
}

.post-card .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0;
}

.post-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card .card-title a:hover {
  color: var(--blue-600);
}

.post-card .card-content {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1 1 0%;
}

.card-actions {
  margin-top: 1rem;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.card-button {
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-button:hover {
  color: var(--blue-700);
}

.lesson-golden-text,
.sermon-bible-text {
  margin-top: 0.75rem;
  border-radius: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.sermon-bible-text {
  background: var(--slate-100);
  color: var(--slate-600);
  border-color: rgba(148, 163, 184, 0.2);
}

.card-meta .post-category a {
  color: inherit;
  text-decoration: none;
}

.card-meta .post-category a:hover {
  color: var(--blue-600);
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
}

.filter-group select {
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.pagination-wrapper {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--slate-200);
  margin: 0 0.35rem;
  color: var(--slate-600);
  font-weight: 600;
  text-decoration: none;
}

.pagination-wrapper .page-numbers:hover {
  color: var(--blue-600);
  border-color: var(--blue-200);
}

.pagination-wrapper .current {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: #fff;
  border-color: transparent;
}

.no-posts {
  background: #fff;
  border-radius: 1.75rem;
  padding: 2.5rem;
  border: 2px dashed var(--slate-200);
  text-align: center;
  box-shadow: 0 22px 55px -35px rgba(15, 23, 42, 0.35);
}

.no-posts-content {
  margin-top: 1rem;
  color: var(--slate-600);
}

.archive-sidebar {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 1023px) {
  .archive-sidebar {
    max-width: none;
  }
}

.sidebar-widget .widget-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.search-form {
  position: relative;
}

.search-field {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-size: 0.95rem;
  color: var(--slate-700);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: #fff;
}

.search-submit {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0.4rem;
  color: var(--slate-500);
  cursor: pointer;
  display: inline-flex;
}

.category-list,
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.category-list a,
.recent-title {
  color: var(--slate-600);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-list a:hover,
.recent-title:hover {
  color: var(--blue-600);
}

.recent-date {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.newsletter-widget {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: #fff;
  border: none;
  box-shadow: 0 30px 60px -32px rgba(37, 99, 235, 0.6);
}

.newsletter-widget .widget-title {
  color: #fff;
}

.newsletter-widget p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.newsletter-widget .newsletter-form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.newsletter-widget input[type="email"] {
  border-radius: 9999px;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--slate-900);
}

.newsletter-widget .btn-primary {
  background: #fff;
  color: var(--blue-600);
  box-shadow: none;
}

/* Search results */
.search-header {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.search-header::after {
  content: "";
  position: absolute;
  inset: auto 20% -40% 40%;
  width: 380px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
}

.search-header .container {
  position: relative;
  z-index: 1;
}

.search-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0;
  font-weight: 700;
}

.search-query {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.search-meta {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.search-content {
  margin: 3rem 0 4rem;
}

.search-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .search-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.search-main {
  flex: 1 1 0%;
  min-width: 0;
}

.search-form-container {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 1.75rem;
  padding: 1.75rem;
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.45);
  margin-bottom: 2rem;
}

.enhanced-search-form {
  display: grid;
  gap: 1rem;
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-input-group .search-field {
  flex: 1 1 240px;
}

.search-button {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 32px -18px rgba(37, 99, 235, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -22px rgba(37, 99, 235, 0.7);
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-results {
  display: grid;
  gap: 1.5rem;
}

.search-result-item {
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid var(--slate-100);
  padding: 1.75rem;
  box-shadow: 0 24px 55px -36px rgba(15, 23, 42, 0.45);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .search-result-item {
    grid-template-columns: 112px 1fr;
    align-items: center;
  }
}

.result-thumbnail img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 1.25rem;
}

.result-content {
  display: grid;
  gap: 0.75rem;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.post-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-type-badge.sermoes {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-600);
}

.post-type-badge.licoes_ebd {
  background: rgba(37, 99, 235, 0.15);
  color: var(--blue-700);
}

.post-type-badge.estudos_biblicos {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-600);
}

.result-date {
  font-size: 0.8rem;
}

.result-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
}

.result-title a {
  color: inherit;
  text-decoration: none;
}

.result-title a:hover {
  color: var(--blue-600);
}

.lesson-info {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-600);
}

.golden-text-excerpt,
.bible-text-excerpt {
  background: var(--slate-100);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  line-height: 1.6;
}

.result-excerpt {
  color: var(--slate-600);
  line-height: 1.7;
}

.result-url {
  font-size: 0.8rem;
  color: var(--blue-600);
  word-break: break-all;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.result-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: #fff;
  box-shadow: 0 18px 35px -22px rgba(37, 99, 235, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-button.secondary {
  background: var(--slate-100);
  color: var(--slate-600);
  box-shadow: none;
  border: 1px solid var(--slate-200);
}

.result-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -22px rgba(37, 99, 235, 0.7);
}

.no-results {
  background: #fff;
  border-radius: 1.75rem;
  padding: 2.5rem;
  border: 2px dashed var(--slate-200);
  text-align: center;
  box-shadow: 0 24px 55px -35px rgba(15, 23, 42, 0.4);
}

.no-results-content {
  margin-top: 1rem;
  color: var(--slate-600);
}

.search-suggestions {
  margin-top: 2rem;
}

.popular-searches {
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.75rem;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-tag:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.search-sidebar {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.popular-posts-list,
.categories-list,
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.popular-title {
  color: var(--slate-700);
  font-weight: 600;
  text-decoration: none;
}

.popular-title:hover {
  color: var(--blue-600);
}

.popular-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(226, 232, 240, 0.72) 100%);
  box-shadow: 0 25px 45px -30px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 35px 60px -28px rgba(37, 99, 235, 0.35);
}

.home-card-image {
  position: relative;
  overflow: hidden;
  max-height: 210px;
}

.home-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.home-card:hover .home-card-image img {
  transform: scale(1.05);
}

.home-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.75rem;
  flex: 1 1 auto;
}

.home-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-900);
}

.home-card-title a {
  color: var(--slate-900);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-card-title a:hover {
  color: var(--blue-600);
}

.home-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.home-card-meta .post-category {
  font-weight: 600;
  color: var(--blue-600);
}

.home-card-date {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-card-excerpt {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-card-footer {
  margin-top: auto;
}

.home-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(96, 165, 250, 0.95));
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  box-shadow: 0 18px 30px -22px rgba(59, 130, 246, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -22px rgba(37, 99, 235, 0.6);
}

.home-card .btn-primary,
.home-card .btn-secondary {
  border-radius: 9999px;
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
}

.home-card .btn-secondary {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--blue-600);
  background: rgba(59, 130, 246, 0.08);
}
