/* ============================================================
   topcasinosouthsudan.com — South Sudan / Nile Heritage
   Travel-magazine theme · South Sudan flag palette
   ============================================================ */

/* ── Custom properties ───────────────────────────────────── */
:root {
  --color-bg:        #050a03;
  --color-bg-card:   #0d1f0a;
  --color-bg-alt:    #081505;
  --color-primary:   #078930;
  --color-secondary: #FCDD09;
  --color-accent:    #D21034;
  --color-sky:       #00BFFF;  /* Nile water accent */
  --color-text:      #ddeedd;
  --color-text-muted:#8aaa88;
  --color-border:    rgba(7,137,48,0.28);

  --radius-card:   20px;
  --radius-btn:    50px;
  --max-width:     1160px;
  --transition:    0.25s ease;

  --font-heading:  'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body:     'Nunito Sans', system-ui, -apple-system, sans-serif;

  --shadow-card:   0 6px 28px rgba(0,0,0,0.45);
  --shadow-green:  0 0 32px rgba(7,137,48,0.20);
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ffe74d; }
p   { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: #f0f8ee;
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

.text-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--color-text-muted); font-size: 0.9rem; }

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(7,137,48,0.09) 0%,
    rgba(252,221,9,0.05) 100%
  );
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p  { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

.divider {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0aad3d 50%, var(--color-secondary) 100%);
  color: #050a03;
  box-shadow: 0 4px 20px rgba(7,137,48,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(7,137,48,0.55);
  color: #050a03;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(5,10,3,0.96);
  padding: 0.6rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-secondary);
  text-decoration: none;
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo:hover { color: #ffe74d; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: rgba(221,238,221,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-secondary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5,10,3,0.98);
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 0.75rem 1.5rem; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/01_rlzCjxm9DuU.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(10,32,16,0.72), rgba(5,10,3,0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7,137,48,0.2);
  border: 1px solid rgba(7,137,48,0.4);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(221,238,221,0.88);
  margin-bottom: 2.5rem;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(221,238,221,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll span { font-size: 1.25rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Float prose (Section 1) ─────────────────────────────── */
.prose-float { width: 100%; }
.prose-float .float-img {
  float: right;
  width: 42%;
  margin: 0 0 1.5rem 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(7,137,48,0.2);
  overflow: hidden;
}
.prose-float .float-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prose-float::after { content: ''; display: table; clear: both; }
.prose-float .prose-text { font-size: 1.05rem; }
.prose-float .prose-text h2 { margin-bottom: 1rem; }

@media (max-width: 640px) {
  .prose-float .float-img {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}

/* ── Pull quote ──────────────────────────────────────────── */
.pull-quote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(7,137,48,0.08);
  border-radius: 0 12px 12px 0;
}
.pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ── Cards grid (Section 2) ──────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-green);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p  { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }

.card-tag {
  display: inline-block;
  background: rgba(7,137,48,0.18);
  color: var(--color-primary);
  border: 1px solid rgba(7,137,48,0.35);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── Wide banner (Section 3 — Sudd) ─────────────────────── */
.banner-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/06_2suSwe3m2Ig.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,10,3,0.88) 0%,
    rgba(7,137,48,0.18) 60%,
    rgba(5,10,3,0.70) 100%
  );
}
.banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.banner-content h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: 1rem; }

/* ── Section 4 — Wildlife (two-col) ─────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col .col-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.two-col .col-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.two-col .col-text h2 { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-col .col-img { order: -1; }
  .two-col .col-img img { height: 280px; }
}

/* ── Tags / wildlife list ────────────────────────────────── */
.species-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.species-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0,191,255,0.1);
  border: 1px solid rgba(0,191,255,0.25);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7dd9ff;
}

/* ── Timeline (Section 5) ────────────────────────────────── */
.timeline-section {
  position: relative;
}
.timeline-section .section-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/08_AXaYQSiRqA8.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -2.35rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(252,221,9,0.3);
}
.tl-item:nth-child(3n+1) .tl-dot { background: var(--color-primary); box-shadow: 0 0 0 3px rgba(7,137,48,0.3); }
.tl-item:nth-child(3n+2) .tl-dot { background: var(--color-secondary); }
.tl-item:nth-child(3n+0) .tl-dot { background: var(--color-accent); box-shadow: 0 0 0 3px rgba(210,16,52,0.3); }

.tl-year {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.3rem;
}
.tl-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.tl-item p  { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, var(--color-bg-card), #030803);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand { }
.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-brand .brand-logo img { width: 32px; height: 32px; }
.footer-brand .brand-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-secondary);
}
.footer-brand p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: var(--color-text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--color-secondary); }

.footer-bottom {
  border-top: 1px solid rgba(7,137,48,0.15);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }

.flag-strip {
  display: flex;
  height: 4px;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  margin-top: 2rem;
}
.flag-strip span { flex: 1; }
.flag-strip .fs-black  { background: #000000; }
.flag-strip .fs-red    { background: var(--color-accent); }
.flag-strip .fs-green  { background: var(--color-primary); }
.flag-strip .fs-yellow { background: var(--color-secondary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-bar {
  background: rgba(13,31,10,0.8);
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  list-style: none;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-secondary); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 0.5rem; }

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #0a2010, var(--color-bg));
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px; right: -60px; bottom: -60px;
  background: url('../img/02_b5jsTOGTVw4.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .page-hero-sub { color: var(--color-text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── Article prose ───────────────────────────────────────── */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.article-body h2 { margin: 2.5rem 0 1rem; }
.article-body h3 { margin: 2rem 0 0.75rem; color: var(--color-secondary); }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }

.article-lead {
  font-size: 1.2rem;
  color: var(--color-text);
  font-style: italic;
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.article-img {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.article-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.article-img figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  background: var(--color-bg-card);
}

/* ── Info box ────────────────────────────────────────────── */
.info-box {
  background: rgba(7,137,48,0.10);
  border: 1px solid rgba(7,137,48,0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.info-box h4 { color: var(--color-secondary); margin-bottom: 0.5rem; }
.info-box p  { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* ── Stat highlights ─────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}
.stat-box .stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-box .stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Sitemap page ────────────────────────────────────────── */
.sitemap-list { list-style: none; }
.sitemap-list li { margin-bottom: 0.5rem; }
.sitemap-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.sitemap-list a:hover { color: var(--color-secondary); }
.sitemap-list a::before { content: '→'; color: var(--color-primary); }

/* ── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.text-center { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }

/* ── Organic inline link style ───────────────────────────── */
.organic-link {
  color: var(--color-secondary);
  border-bottom: 1px dotted var(--color-secondary);
  transition: color var(--transition), border-color var(--transition);
}
.organic-link:hover {
  color: #ffe74d;
  border-color: #ffe74d;
}
