@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/*
Theme Name: PropRadar Blog
Theme URI: https://propradar.com
Author: PropRadar Team
Author URI: https://propradar.com
Description: A modern, high-performance, responsive custom WordPress blog theme designed specifically for PropRadar.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, responsive-layout, custom-menu, featured-images, custom-logo, grid-layout, modern
Text Domain: propradar
*/

/* ==========================================================================
   CSS Custom Properties (Theme Design System)
   ========================================================================== */
:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-primary);

  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #6ED828;
  --color-accent-hover: #6ED828;
  --color-accent-subtle: #eff6ff;

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;

  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width-site: 1240px;
  --max-width-reading: 780px;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#primary {
  flex: 1 0 auto;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

.site-title a {
  color: inherit;
}

.site-title span {
  color: var(--color-accent);
}

.site-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: none;
}

@media (min-width: 768px) {
  .site-description {
    display: inline-block;
    border-left: 1px solid var(--color-border);
    padding-left: 0.75rem;
    margin-left: 0.25rem;
  }
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 1.5rem;
  }

  .main-navigation.is-active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Hero & Header Banner Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  margin-bottom: 3rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-content {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Search Bar in Hero */
.search-form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  background-color: #ffffff;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.search-form input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
}

.search-form button[type="submit"] {
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-form button[type="submit"]:hover {
  background-color: var(--color-accent-hover);
}

/* ==========================================================================
   Blog Posts Grid & Card Component
   ========================================================================== */
.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.post-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.post-card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-surface-hover);
  overflow: hidden;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--color-primary);
}

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

.post-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.post-card-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Featured / Hero Post Styling */
.post-featured-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .post-featured-hero {
    grid-template-columns: 1fr;
  }
}

.post-featured-hero .post-card-thumbnail {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.post-featured-hero .post-card-content {
  padding: 2.5rem;
  justify-content: center;
}

.post-featured-hero .post-card-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-nav {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.pagination-nav .nav-links {
  display: flex;
  gap: 0.5rem;
}

.pagination-nav a,
.pagination-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.pagination-nav a:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.pagination-nav .current {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ==========================================================================
   Single Post — ZONE 1: Hero Section
   ========================================================================== */

/* Breadcrumb */
.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.single-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}

.single-breadcrumb-link,
.single-breadcrumb-current {
  color: rgba(0, 0, 0, 1) !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  height: 28px;
  background: #6ED828;
  border-radius: 6px;
}

/* Category + Read Time Pills */
.single-hero-pills {
  display: inline-flex;
  margin-bottom: 1.75rem;
  box-sizing: border-box;
  flex-direction: row;
  align-items: center;
  padding: 4px 12px 4px 4px;
  gap: 8px;
  background: #EFFAEB;
  border: 1px solid #C0EAAE;
  border-radius: 99px;
  max-width: max-content;
}

.single-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.single-pill--category {
  color: rgba(59, 121, 32, 1);
  padding: 2px 8px;
  mix-blend-mode: normal;
  border: 1px solid #C0EAAE;
  border-radius: 99px;
}

.single-pill--readtime {
  color: rgba(59, 121, 32, 1);
  padding: 0;
}

/* Title */
.single-hero-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 768px;
}

@media (min-width: 640px) {
  .single-hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .single-hero-title {
    font-size: 3rem;
  }
}

/* Excerpt */
.single-hero-excerpt {
  color: rgba(183, 182, 183, 1);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 768px;
}

/* Featured Image */
.single-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background-color: #1a1a1a;
}

.single-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

/* Meta Bar */
.single-hero-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .single-hero-meta-bar {
    flex-direction: row;
    align-items: center;
  }
}

.single-hero-meta-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.single-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.single-meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6ED828;
}

.single-meta-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Share icons in meta bar */
.single-hero-meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.single-meta-share-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #D5D7DA;
  box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05), inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18), inset 0px -2px 0px rgba(10, 13, 18, 0.05);
  border-radius: 8px;
  color: rgba(65, 70, 81, 1);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.single-meta-share-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.single-meta-share-btn svg {
  color: rgba(164, 167, 174, 1);
}

.single-meta-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid #D5D7DA;
  box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05), inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18), inset 0px -2px 0px rgba(10, 13, 18, 0.05);
  border-radius: 8px;
  color: rgba(164, 167, 174, 1);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.single-meta-share-icon:hover {
  background-color: #6ED828;
  border-color: #6ED828;
  color: #000000;
}


/* ==========================================================================
   Single Post — ZONE 2: Native Dark Content Body (2-Col Grid + Sidebar)
   ========================================================================== */
.single-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .single-content-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
  }
}

@media (min-width: 1280px) {
  .single-content-grid {
    grid-template-columns: minmax(0, 780px) 340px;
    gap: 5rem;
  }
}

.single-content-main {
  width: 100%;
}

/* --- Sticky Sidebar Discount Widget --- */
.single-content-sidebar {
  width: 100%;
  position: -webkit-sticky;
  position: sticky;
  top: 6.5rem;
  align-self: start;
  z-index: 20;
}

.single-sidebar-sticky {
  width: 100%;
}

.single-discount-card {
  background-color: rgba(14, 14, 14, 1);
  border: 1px solid rgba(62, 62, 62, 1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.single-discount-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.single-discount-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

.single-discount-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.single-discount-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  margin: 0 0 1.25rem;
}

.single-discount-btn {
  display: block;
  width: 100%;
  background-color: #6ED828;
  color: #000000;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.single-discount-btn:hover {
  background-color: #5bc41f;
  color: #000000;
  transform: translateY(-1px);
}

/* --- Prose / Content Typography (Dark Scheme) --- */
.single-content-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.7);
}

.single-content-prose>*:first-child {
  margin-top: 0;
}

.single-content-prose p {
  margin-bottom: 1.75rem;
  color: rgba(183, 182, 183, 1);
  font-weight: 400;
}

.single-content-prose blockquote,
.single-content-prose .wp-block-quote {
  margin: 5% 0;
  border-left: 2px solid #6ED828;
  padding: 8px 0 8px 20px;
}

.single-content-prose h2,
.single-content-prose .wp-block-heading:where(h2) {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2.75rem 0 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.single-content-prose h3,
.single-content-prose .wp-block-heading:where(h3) {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2.25rem 0 1rem;
  line-height: 1.3;
}

.single-content-prose h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2rem 0 0.75rem;
}

.single-content-prose strong,
.single-content-prose b {
  color: #ffffff;
  font-weight: 700;
}

.single-content-prose a {
  color: #6ED828;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-content-prose a:hover {
  color: #5bc41f;
}

/* Lists */
.single-content-prose ul,
.single-content-prose ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.single-content-prose ul {
  list-style-type: disc;
}

.single-content-prose ol {
  list-style-type: decimal;
}

.single-content-prose li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
  font-weight: 300;
}

.single-content-prose ul li::marker {
  color: #6ED828;
}

.single-content-prose ol li::marker {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* Blockquotes */
.single-content-prose blockquote,
.single-content-prose .wp-block-quote {
  border-left: 3px solid #6ED828;
  background-color: transparent;
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.8;
}

.single-content-prose blockquote p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.single-content-prose blockquote p:last-child {
  margin-bottom: 0;
}

.single-content-prose blockquote cite,
.single-content-prose .wp-block-quote cite {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

/* Images & Figures */
.single-content-prose img {
  border-radius: 12px;
  margin: 2rem 0 0.5rem;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.single-content-prose figure {
  margin: 2.25rem 0;
}

.single-content-prose figcaption {
  text-align: left;
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.single-content-prose figcaption a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-content-prose figcaption a:hover {
  color: #6ED828;
}

/* Tables */
.single-content-prose table,
.single-content-prose .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.single-content-prose table th {
  background-color: #121910;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-content-prose table td {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.single-content-prose table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Single Post — ZONE 3: Related Posts Section (3-col grid layout)
   ========================================================================== */
/* 3-Column Grid: Header | Card | Card */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: 0.85fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Column 1: Header Info */
.related-grid-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1rem;
}

.single-related-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.85rem;
  background-color: rgba(110, 216, 40, 0.15);
  color: #6ED828;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.single-related-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .single-related-title {
    font-size: 2.15rem;
  }
}

.single-related-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 280px;
}

.single-related-viewall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.7rem 1.5rem;
  background-color: #6ED828;
  border: none;
  border-radius: var(--radius-full);
  color: #000000;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.single-related-viewall:hover {
  background-color: #5bc41f;
  color: #000000;
  transform: translateY(-1px);
}

/* --- Related Card (transparent on dark bg) --- */
.related-card {
  display: flex;
  flex-direction: column;
}

/* Card Image */
.related-card-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: #1a1a1a;
}

.related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-card-img {
  transform: scale(1.04);
}

.related-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  color: #444;
  font-weight: 700;
  font-size: 1rem;
}

/* Title + Arrow Row */
.related-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.related-card-title {
  font-family: var(--font-heading);
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}

.related-card-title a {
  color: #ffffff;
  transition: color 0.2s ease;
}

.related-card-title a:hover {
  color: #6ED828;
}

.related-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
  margin-top: 2px;
}

.related-card:hover .related-card-arrow {
  color: #6ED828;
}

/* Excerpt */
.related-card-excerpt {
  color: rgba(83, 88, 98, 1);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-excerpt p {
  margin: 0;
}

/* Author + Date */
.related-card-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.related-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #6ED828;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-card-author-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.3;
}

.related-card-date {
  font-size: 0.8rem;
  color: rgba(83, 88, 98, 1);
  line-height: 1.3;
}


/* ==========================================================================
   Post Navigation (Prev/Next) — kept for potential use
   ========================================================================== */
.post-navigation-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .post-navigation-container {
    grid-template-columns: 1fr;
  }
}

.nav-link-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-link-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.nav-link-sub {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.nav-link-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.3;
}

/* ==========================================================================
   404 & Empty States
   ========================================================================== */
.error-404-container,
.no-results-container {
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-404-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  margin-top: 1.5rem;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .site-title {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Blog Posts Pagination
   ========================================================================== */
.propradar-pagination,
.navigation.pagination {
  margin: 3rem 0 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.propradar-pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background-color: #0d140a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
}

.page-numbers:hover:not(.current):not(.dots) {
  background-color: rgba(110, 216, 40, 0.15);
  border-color: #6ED828;
  color: #6ED828;
  transform: translateY(-1px);
}

.page-numbers.current {
  background-color: #6ED828;
  border-color: #6ED828;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(110, 216, 40, 0.35);
  cursor: default;
}

.page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.4);
  min-width: 32px;
  cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
  padding: 0 1.15rem;
  font-weight: 600;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
  background-color: #6ED828;
  border-color: #6ED828;
  color: #000000;
}