:root{
  --brand:#1a2432;
  --bg:#0b111b;
  --bg-soft:#0f1724;
  --text:#e7edf6;
  --text-dim:#a9b4c2;
  --card:rgba(255,255,255,0.06);
  --border:rgba(255,255,255,0.12);
}


/* Page */
.cs-dark-page{
  background: radial-gradient(1200px 600px at 10% -10%, rgba(26,36,50,0.25), transparent 60%),
              radial-gradient(1000px 500px at 90% 0%, rgba(26,36,50,0.18), transparent 60%),
              var(--bg);
  color: var(--text);
}

/* HERO */
.cs-hero{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
}

.cs-hero-media{
  position: relative;
  height: 360px;
}
.cs-hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.02);
}
.cs-hero-overlay{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg, rgba(11,17,27,0) 20%, rgba(11,17,27,0.65) 70%, rgba(11,17,27,0.9) 100%),
    radial-gradient(600px 240px at 20% 0%, rgba(26,36,50,0.35), transparent 70%);
}

.cs-hero-content{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 28px 32px;
}

.cs-hero-eyebrow{
  display:inline-block;
  font-size:.8rem;
  letter-spacing:.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.cs-hero-title{
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 10px 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.cs-hero-meta .badge{
  margin-right: 8px;
}

.badge-glow{
  background: linear-gradient(90deg, rgba(26,36,50,0.9), rgba(26,36,50,0.7));
  border: 1px solid rgba(255,255,255,0.12);
  color:#fff;
  padding: .45rem .7rem;
  border-radius: 999px;
  box-shadow: 0 0 0 rgba(26,36,50,0);
  transition: box-shadow .3s ease;
}
.badge-glow:hover{ box-shadow: 0 0 20px rgba(26,36,50,0.45); }

.badge-outline{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: .42rem .65rem;
  border-radius: 999px;
}

/* CARDS */
.glass-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.glass-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border-color: rgba(26,36,50,0.6);
}

/* Section headers */
.cs-section-header{
  display:flex; align-items:center; gap:10px; margin-bottom:12px;
}
.cs-section-dot{
  width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, #6ea0ff 0, #1a2432 45%, #0e1726 100%);
  box-shadow: 0 0 14px rgba(26,36,50,0.8);
}
.cs-section-title{
  font-size:1.15rem; font-weight:700; margin:0;
}

/* Rich text from editor */
.cs-richtext{
  color: var(--text);
}
.cs-richtext p{ color: var(--text); line-height:1.7; margin-bottom: .9rem; }
.cs-richtext h1,.cs-richtext h2,.cs-richtext h3,
.cs-richtext h4,.cs-richtext h5,.cs-richtext h6{
  color: #fff; margin: 1.2rem 0 .6rem; font-weight: 700;
}
.cs-richtext ul{ padding-left:1.1rem; }
.cs-richtext li{ margin: .4rem 0; color: var(--text); }

/* Sidebar */
.cs-sidebar .glass-card{ padding: 20px; }
.cs-meta-list{ margin: 0; }
.cs-meta-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0; border-bottom:1px dashed var(--border);
}
.cs-meta-row:last-child{ border-bottom:0; }
.cs-meta-row span{ color: var(--text-dim); font-size:.92rem; }
.cs-meta-row strong{ color:#fff; font-weight:600; }

/* Button */
.btn-brand{
  background: linear-gradient(135deg, #1a2432, #101826);
  border: 1px solid rgba(26,36,50,0.8);
  color: #fff; border-radius: 10px;
  padding: 10px 16px; font-weight:600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; display:inline-block; text-align:center;
}
.btn-brand:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26,36,50,0.5);
}

/* Related links */
/* .cs-list-links{
  list-style:none; padding:0; margin:0;
}
.cs-list-links li{ margin-bottom:10px; }
.cs-list-links a{
  color:#e7edf6; text-decoration:none; display:flex; align-items:center; gap:8px;
}
.cs-list-links a .dot{
  width:6px; height:6px; border-radius:50%; background: #5f7da3;
}
.cs-list-links a:hover{ color:#ffffff; text-decoration:underline; } */

/* Gallery */
.cs-gallery-item{
  display:block; border-radius:12px; overflow:hidden;
  border:1px solid var(--border); background: var(--bg-soft);
}
.cs-gallery-item img{
  width:100%; height:160px; object-fit:cover; display:block;
  transition: transform .25s ease, filter .25s ease;
}
.cs-gallery-item:hover img{
  transform: scale(1.05);
  filter: saturate(1.1);
}



.related-cases {
    margin-top: 50px;
}

.related-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-item {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    color: #fff;
}

.related-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26,36,50,0.1), rgba(26,36,50,0.9));
}

.related-name {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    font-size: 0.95rem;
    font-weight: 600;
}




/* Responsive */
@media (max-width: 991px){
  .cs-hero-media{ height: 300px; }
  .cs-hero-content{ padding: 22px; }
  .glass-card{ padding: 18px; }
}
@media (max-width: 575px){
  .cs-hero-media{ height: 240px; }
  .cs-hero-title{ font-size: 1.6rem; }
}
