@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f7f3ec;
  --bg-deep: #ebe4d7;
  --ink: #14110f;
  --ink-soft: #3f3832;
  --muted: #6b6258;
  --line: #d9d0c2;
  --gold: #9a6b1f;
  --gold-bright: #c4922e;
  --emerald: #0f4d3c;
  --emerald-soft: #1a6b54;
  --sand: #f0e7d8;
  --cream: #fffaf2;
  --shadow: 0 18px 50px rgba(20, 17, 15, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-fa: 'Vazirmatn', sans-serif;
  --font-display: 'Cormorant Garamond', 'Vazirmatn', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-fa);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(154, 107, 31, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(15, 77, 60, 0.14), transparent 50%),
    linear-gradient(180deg, #f8f4ed 0%, #f3eee4 45%, #efe7da 100%);
  line-height: 1.9;
  direction: rtl;
  text-align: right;
}

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

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 236, 0.82);
  border-bottom: 1px solid rgba(217, 208, 194, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}

.brand-fa {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffaf2;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 16, 0.25) 0%, rgba(10, 18, 16, 0.55) 45%, rgba(10, 18, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 77, 60, 0.35), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.25;
  font-weight: 700;
}

.brand-hero {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.06em;
  color: #f6e7c2;
  margin-bottom: 0.35rem;
  animation: riseIn 0.9s ease both;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: rgba(255, 250, 242, 0.9);
  max-width: 36rem;
  animation: riseIn 1s ease 0.12s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 1.05s ease 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: 0 10px 28px rgba(154, 107, 31, 0.35);
}

.btn-primary:hover {
  color: #1a1408;
}

.btn-secondary {
  background: rgba(255, 250, 242, 0.12);
  border-color: rgba(255, 250, 242, 0.45);
  color: #fffaf2;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: #fffaf2;
  background: rgba(255, 250, 242, 0.2);
}

.btn-solid {
  background: var(--emerald);
  color: #fff;
}

.btn-solid:hover {
  background: var(--emerald-soft);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.35;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.prose h2,
.prose h3 {
  color: var(--ink);
  margin-top: 2.4rem;
  scroll-margin-top: 96px;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose ul,
.prose ol {
  padding-right: 1.2rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.35rem 1.25rem;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-banner {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 77, 60, 0.95), rgba(20, 40, 34, 0.92)),
    url('../images/casino-beach-mix.png') center/cover;
  color: #fffaf2;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 250, 242, 0.88);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.55rem;
}

.post-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.post-card h3 a {
  color: var(--ink);
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  background: #171411;
  color: rgba(255, 250, 242, 0.82);
}

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

.site-footer a {
  color: rgba(255, 250, 242, 0.82);
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.socials {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 242, 0.2);
  background: rgba(255, 250, 242, 0.05);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 250, 242, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 250, 242, 0.55);
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.75);
}

.toc h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.toc a {
  display: block;
  padding: 0.25rem 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 960px) {
  .feature-strip,
  .posts-grid,
  .footer-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 1rem;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal,
  .brand-hero,
  .hero p,
  .cta-row {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
