:root {
  --ce-dark: #0f172a;
  --ce-text: #0b1220;
  --ce-accent: #16a34a;
  --ce-gold: #969202;
  --ce-red: #ad0c0f;
  --ce-green: #34925b;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ce-text);
  background: #fff;
  font-size: 1.05rem;
  line-height: 1.8;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-link {
  transition: color 0.2s ease;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--ce-green);
}

.hero {
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(22, 163, 74, 0.12), transparent 60%),
    radial-gradient(1000px 500px at 90% 20%, rgba(15, 23, 42, 0.10), transparent 60%);
}

.hero-title {
  font-weight: 800;
  line-height: 1.15;
}

.coming-soon {
  color: var(--ce-red);
  display: block;
}

.hero-platforms {
  font-size: 1.5rem;
  color: var(--ce-green);
  display: block;
  margin-top: 0.5rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--ce-gold);
}

.card {
  border: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,0.08) !important;
}

.card-body,
.highlight-box .p-4 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-body p:last-child,
.highlight-box p:last-child {
  margin-top: auto;
}

/* Fix blog excerpt alignment (top-down instead of bottom-pushed) */
.blog-card .card-body {
  justify-content: flex-start;
}

.blog-card .card-body p:last-child {
  margin-top: 0;
}

.blog-card img,
.video-card img,
.card-clean img,
.reach-card img,
.card img {
  object-fit: cover;
  height: 220px;
  width: 100%;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.highlight-box {
  border: 0;
  border-radius: 1rem;
  height: 100%;
  background: #fff;
  box-shadow: 0 .5rem 1.25rem rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,0.08);
}

.social-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.video-embed {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08);
  background: #000;
}

/* Featured section polish */
#letters {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

#letters .section-title {
  margin-bottom: 0.5rem;
}

#letters .text-muted {
  max-width: 900px;
}

#letters .video-embed {
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.12);
}

#letters .video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
}

#letters .row.mt-4 {
  align-items: flex-start;
}

#letters > .container > div,
#letters > .container > p,
#letters > .container > .row,
#letters > .container > .alert {
  animation: featuredFadeUp 0.6s ease both;
}

#letters > .container > p {
  animation-delay: 0.08s;
}

#letters > .container > .row {
  animation-delay: 0.16s;
}

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

.video-card .card-body,
.blog-card .card-body {
  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.25rem;
}

.ad-section {
  padding: 1rem 0;
}

.ad-wrap {
  overflow: hidden;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .hero {
    text-align: center;
  }

  .social-buttons {
    justify-content: center;
  }

  #letters {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #letters .video-embed {
    border-radius: 1rem;
  }
}

@media (max-width: 767.98px) {
  #letters {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  #letters .section-title {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  #letters p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  #letters .col-lg-8,
  #letters .col-lg-10 {
    width: 100%;
    max-width: 100%;
  }

  #letters .video-embed {
    box-shadow: 0 0.75rem 1.75rem rgba(0,0,0,0.1);
  }
}


/* Shared public-page styles */
.hero-section {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  padding: 5rem 0 4rem;
}

.hero-section h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-section p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.85);
}

.card-clean {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  background: #fff;
}

.card-clean:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.meta {
  font-size: 0.92rem;
  color: #6c757d;
}

.badge-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #e9ecef;
  color: #343a40;
}

.section-padding {
  padding: 4rem 0;
}

.btn-linkish {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.reach-card {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  background: #fff;
}

.reach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.reach-meta {
  font-size: 0.92rem;
  color: #6c757d;
}

.reach-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a5b00;
}

.post-hero {
  max-height: 460px;
  object-fit: cover;
  width: 100%;
  border-radius: 1rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.post-content iframe {
  max-width: 100%;
}

.share-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.04);
}

.share-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-actions .btn {
  border-radius: 999px;
}

.share-field-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.share-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  min-height: 96px;
}
