/* ============================================
   GHOST WORKFORCE — Blog Styles
   Premium dark/gold theme for Dubai RE content
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #050508;
  color: #e8e2d6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #dbb85c;
}

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

/* --- Navigation --- */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.blog-nav__logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f0e8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-nav__logo span {
  color: #c9a84c;
}

.blog-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blog-nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #b0b0b0;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.blog-nav__links a:hover {
  color: #f5f0e8;
}

.blog-nav__cta {
  padding: 0.55rem 1.4rem;
  background: linear-gradient(135deg, #c9a84c, #dbb85c);
  color: #0a0a0a !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.blog-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
  color: #0a0a0a !important;
}

/* --- Blog Index Hero --- */
.blog-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #f5f0e8;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.blog-hero h1 span {
  color: #c9a84c;
}

.blog-hero p {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Category Filter --- */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 2rem 1rem;
  flex-wrap: wrap;
}

.blog-filters button {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b0b0b0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-filters button:hover,
.blog-filters button.active {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.3);
  color: #c9a84c;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Blog Card --- */
.blog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #c9a84c, #dbb85c);
  transition: height 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(201, 168, 76, 0.15);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
}

.blog-card:hover::before {
  height: 100%;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.blog-card__category {
  padding: 0.25rem 0.7rem;
  background: rgba(201, 168, 76, 0.1);
  color: #c9a84c;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card__time {
  color: #777;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.blog-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.blog-card__title a {
  color: inherit;
}

.blog-card__title a:hover {
  color: #c9a84c;
}

.blog-card__excerpt {
  font-size: 0.92rem;
  color: #999;
  line-height: 1.65;
  flex-grow: 1;
}

.blog-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c9a84c;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card__link:hover {
  gap: 0.65rem;
}

/* --- Article Layout --- */
.article-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.article-header__category {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(201, 168, 76, 0.1);
  color: #c9a84c;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #f5f0e8;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #777;
  font-size: 0.85rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.article-header__meta span {
  font-family: 'JetBrains Mono', monospace;
}

/* --- Article Body --- */
.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.article-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #f5f0e8;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.article-body h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8e2d6;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  font-size: 1.05rem;
  color: #b0b0b0;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  font-size: 1.05rem;
  color: #b0b0b0;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: #e8e2d6;
  font-weight: 600;
}

.article-body blockquote {
  border-left: 3px solid #c9a84c;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 0 6px 6px 0;
}

.article-body blockquote p {
  color: #d4c9a8;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* --- Stat Highlight --- */
.stat-highlight {
  text-align: center;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 8px;
}

.stat-highlight .stat-number {
  font-family: 'JetBrains Mono', 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #c9a84c;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-highlight .stat-label {
  font-size: 0.95rem;
  color: #999;
}

/* --- CTA Box --- */
.cta-box {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-box__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 0.75rem;
}

.cta-box p {
  font-size: 1rem;
  color: #b0b0b0;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: linear-gradient(135deg, #c9a84c, #dbb85c);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
  color: #0a0a0a;
}

/* --- FAQ Section --- */
.faq-section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-section h2 {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8e2d6;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #c9a84c;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: #999;
  line-height: 1.75;
}

/* --- Related Articles --- */
.related-articles {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-articles h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.related-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: all 0.25s ease;
}

.related-card:hover {
  border-color: rgba(201, 168, 76, 0.15);
  background: rgba(255, 255, 255, 0.035);
}

.related-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #e8e2d6;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.related-card__title a {
  color: inherit;
}

.related-card__title a:hover {
  color: #c9a84c;
}

.related-card__excerpt {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* --- Table --- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.article-body th {
  text-align: left;
  padding: 1rem;
  background: rgba(201, 168, 76, 0.06);
  color: #c9a84c;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.article-body td {
  padding: 0.85rem 1rem;
  color: #b0b0b0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.article-body tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Footer --- */
.blog-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}

.blog-footer p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

.blog-footer p:first-child {
  color: #777;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-nav {
    padding: 1rem 1.25rem;
  }

  .blog-nav__links {
    gap: 1rem;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-hero {
    padding: 3.5rem 1.5rem 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .article-header {
    padding: 3rem 1.5rem 1.5rem;
  }

  .article-header h1 {
    font-size: 1.85rem;
  }

  .article-body {
    padding: 2rem 1.5rem 3rem;
  }

  .article-body h2 {
    font-size: 1.4rem;
  }

  .stat-highlight .stat-number {
    font-size: 2.5rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-filters {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-nav__logo {
    font-size: 1.05rem;
  }

  .blog-nav__links a:not(.blog-nav__cta) {
    display: none;
  }

  .blog-hero h1 {
    font-size: 1.65rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-header__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
