@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Noto+Sans+Arabic:wght@300;400;600;700&display=swap');

:root {
  --gold: #F5C518;
  --black: #0a0a0a;
  --dark: #111111;
  --card: #141414;
  --border: #1e1e1e;
  --white: #ffffff;
  --gray: #777777;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Noto Sans Arabic', sans-serif;
  direction: ltr;
  line-height: 1.7;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  direction: ltr;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--black);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.logo-sub {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
}

.header-nav a:hover {
  color: var(--gold);
  border-color: rgba(245,197,24,0.3);
}

/* ===== HERO ===== */
.blog-hero {
  padding: 80px 2rem 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(245,197,24,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: 'Syne', sans-serif;
}

.hero-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50% { opacity:0.2; }
}

.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.blog-hero h1 .gold { color: var(--gold); }

.blog-hero p {
  color: var(--gray);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* ===== DIVIDER ===== */
.section-divider {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-divider span {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.section-divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== POST GRID ===== */
.post-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Featured spans full width */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 55% 45%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}

.post-card.featured:hover {
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-3px);
}

.post-card.featured .card-image {
  height: 420px;
}

.post-card.featured .card-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card.featured .card-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.post-card.featured .card-excerpt {
  -webkit-line-clamp: 4;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Regular card */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.3s, transform 0.3s;
}

.post-card:not(.featured):hover {
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-3px);
}

.card-image {
  height: 210px;
  overflow: hidden;
  background: var(--dark);
}

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

.post-card:hover .card-image img { transform: scale(1.06); }

.card-no-image {
  height: 210px;
  background: linear-gradient(135deg, #141414, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.card-content { padding: 22px; }

.card-tag {
  display: inline-block;
  background: rgba(245,197,24,0.1);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-excerpt {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray);
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.read-more {
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
}

/* ===== SINGLE POST ===== */
.post-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.85) 100%);
}

.post-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.post-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  flex-wrap: wrap;
}

.post-meta .author { color: var(--gold); font-weight: 600; }

/* Content */
.post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 2rem 80px;
}

.gh-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.gh-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 0.7rem;
}

.gh-content p {
  color: #c8c8c8;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.gh-content ul, .gh-content ol {
  color: #c8c8c8;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.gh-content li {
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.gh-content ul li::marker { color: var(--gold); }
.gh-content ol li::marker { color: var(--gold); font-weight: 700; }

.gh-content strong { color: var(--white); font-weight: 700; }

.gh-content a { color: var(--gold); text-decoration-offset: 3px; }

.gh-content blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(245,197,24,0.04);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  color: #ddd;
  font-style: italic;
}

.gh-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 48px 2rem;
  text-align: center;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo .logo-badge {
  width: 36px; height: 36px;
  font-size: 15px;
}

.footer-logo .logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}

.footer-copy {
  color: var(--gray);
  font-size: 13px;
}

.footer-copy a { color: var(--gold); text-decoration: none; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 2rem 60px;
}

.pagination a {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .card-image { height: 260px; }
  .post-card.featured .card-content { padding: 28px; }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-hero { padding: 50px 1rem 40px; }
  .post-hero { height: 320px; }
  .post-content { padding: 36px 1rem 60px; }
}

/* ===== GHOST REQUIRED CLASSES ===== */
.kg-width-wide {
  margin-left: -8vw;
  margin-right: -8vw;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.kg-image { width: 100%; height: auto; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.kg-card { margin: 1.5rem 0; }
.kg-embed-card { display: flex; justify-content: center; }
.kg-bookmark-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
