
:root{
  --bg:#0f0f23;
  --bg-elev:#1a1a2e;
  --bg-card:#16213e;
  --text:#ffffff;
  --text-muted:#a8b2d1;
  --primary:#ff6b6b;
  --secondary:#4ecdc4;
  --accent:#45b7d1;
  --border:#2d3748;
  --shadow:0 20px 40px rgba(0,0,0,.3);
  --shadow-light:0 10px 30px rgba(0,0,0,.2);
  --gradient-primary:linear-gradient(135deg,#ff6b6b,#fd79a8);
  --gradient-secondary:linear-gradient(135deg,#4ecdc4,#45b7d1);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{max-width:100%;display:block}
a{color:inherit}
.container{width:min(1100px,92%);margin:0 auto}

/* Small utilities */
.muted{color:var(--text-muted)}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

/* Buttons */
.btn{
  border:0;
  border-radius:12px;
  padding:12px 18px;
  font-weight:600;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--gradient-primary);color:#fff;box-shadow:var(--shadow-light)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.btn-ad{background:var(--gradient-secondary);color:#0b1020;box-shadow:var(--shadow-light)}
.btn-ad:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.btn-secondary{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}
.btn-secondary:hover{background:rgba(255,255,255,.04)}

/* ---------------------------------------------------------
   MAIN LAYOUT
   --------------------------------------------------------- */
main{padding:28px 0 60px}

/* ---------------------------------------------------------
   AD STYLES
   --------------------------------------------------------- */
.ad-section{margin:18px 0}
.ad-container{position:relative}
.ad-label{
  position:absolute;
  top:-10px;left:16px;
  font-size:11px;
  letter-spacing:.4px;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,107,107,.18);
  border:1px solid rgba(255,107,107,.25);
  color:var(--text);
  z-index:2;
}
.ad-content{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  box-shadow:var(--shadow-light);
}
.ad-placeholder{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.ad-icon{
  width:54px;height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(78,205,196,.14);
  border:1px solid rgba(78,205,196,.2);
  font-size:26px;
}
.ad-placeholder h3{
  margin:0;
  font-size:18px;
  letter-spacing:-.2px;
}
.ad-placeholder p{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
}
.ad-text{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:min(420px, 100%);
}
.ad-cta{margin-left:auto}

/* ---------------------------------------------------------
   ARTICLE (MAIN)
   --------------------------------------------------------- */
.main-article{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-light);
}

.article-header{
  padding:26px 26px 10px;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.category{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(78,205,196,.12);
  border:1px solid rgba(78,205,196,.18);
  color:#d9fffb;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.article-title{
  margin:14px 0 10px;
  font-size:clamp(26px, 3.5vw, 42px);
  line-height:1.15;
  letter-spacing:-.6px;
}

.article-meta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--text-muted);
  font-size:14px;
}
.article-meta .author{font-weight:600;color:rgba(255,255,255,.86)}

.article-hero{
  margin:0;
  background:var(--bg-card);
}
.article-hero img{
  width:100%;
  height:clamp(220px, 34vw, 420px);
  object-fit:cover;
}
.caption{
  padding:12px 18px;
  color:var(--text-muted);
  font-size:13px;
  border-top:1px solid rgba(255,255,255,.05);
}

.article-body{
  padding:22px 26px 6px;
  font-size:16px;
}
.article-body p{
  margin:0 0 16px;
  color:rgba(255,255,255,.92);
}
.article-body p:last-child{margin-bottom:0}

/* Mid-article ad spacing if you keep it inside article */
.main-article .ad-section{padding:0;margin:22px 26px 26px}
.main-article .ad-content{border-radius:18px}

/* ---------------------------------------------------------
   RELATED NEWS
   --------------------------------------------------------- */
.related-section{
  margin-top:26px;
  padding:0;
}
.section-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  margin:18px 0 14px;
}
.section-header h2{
  margin:0;
  font-size:22px;
  letter-spacing:-.3px;
}
.view-all{
  text-decoration:none;
  color:var(--text-muted);
  font-weight:600;
  font-size:14px;
  transition:color .2s ease;
}
.view-all:hover{color:#fff}

.related-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.related-card{
  text-decoration:none;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow:var(--shadow-light);
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.related-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:rgba(255,107,107,.35);
}
.related-card img{
  width:100%;
  height:160px;
  object-fit:cover;
}
.related-content{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.related-content h3{
  margin:0;
  font-size:15px;
  line-height:1.35;
  letter-spacing:-.2px;
}
.related-content time{
  color:var(--text-muted);
  font-size:12px;
}

/* ---------------------------------------------------------
   COMMENTS
   --------------------------------------------------------- */
.comments-section{
  margin-top:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow-light);
}
.comments-section .section-header{
  margin:0 0 14px;
  align-items:flex-start;
  flex-direction:column;
}
.comments-section .section-header h2{font-size:22px;margin:0}
.comments-section .section-header p{margin:6px 0 0;color:var(--text-muted)}

.comment-form{
  display:grid;
  gap:12px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.06);
}

.form-row input,
.form-row textarea{
  width:100%;
  background:rgba(10,14,30,.35);
  border:1px solid rgba(255,255,255,.08);
  color:var(--text);
  border-radius:14px;
  padding:12px 14px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder{color:rgba(168,178,209,.8)}
.form-row input:focus,
.form-row textarea:focus{
  border-color:rgba(255,107,107,.45);
  box-shadow:0 0 0 4px rgba(255,107,107,.12);
}
.form-row textarea{resize:vertical;min-height:110px}

.form-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:4px;
}

.comment-list{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.comment{
  padding:14px 14px 12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:16px;
}
.comment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}
.comment-head strong{
  font-size:14px;
  letter-spacing:-.1px;
}
.comment-time{
  color:var(--text-muted);
  font-size:12px;
}
.comment p{
  margin:0;
  color:rgba(255,255,255,.9);
  font-size:14px;
  line-height:1.65;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 980px){
  .related-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .article-header{padding:22px 18px 10px}
  .article-body{padding:18px}
  .main-article .ad-section{margin:18px; padding:0}
}

@media (max-width: 640px){
  main{padding:18px 0 40px}

  .ad-placeholder{flex-direction:column;align-items:flex-start}
  .ad-cta{margin-left:0;width:100%}
  .ad-cta .btn{width:100%}

  .article-title{letter-spacing:-.4px}
  .article-meta{font-size:13px}

  .related-grid{grid-template-columns:1fr}
  .related-card img{height:170px}

  .comments-section{padding:14px}
  .form-actions{justify-content:stretch}
  .form-actions .btn{width:100%}
}
/* Add this to your CSS (keeps ads as pure banners, no button needed) */
.ad-banner-only { padding: 16px; }

.ad-banner-box{
  width: 100%;
  min-height: 110px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  display: grid;
  place-items: center;
  text-align: center;
}

.ad-banner-box--inline{
  min-height: 250px;
}

.ad-banner-text{
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .4px;
  font-size: 12px;
  text-transform: uppercase;
}
/* =========================================
   BIGGER ARTICLE LAYOUT ON DESKTOP / WEB
   ========================================= */
@media (min-width: 1024px) {

  /* Make the main container wider */
  .container {
    width: min(1320px, 92%);
  }

  /* Give more space to the content column */
  main .container {
    grid-template-columns: minmax(0, 1fr) 380px; /* article + wider sidebar */
    gap: 36px;
  }

  /* MAIN ARTICLE CARD */
  .main-article {
    border-radius: 28px;
  }

  /* Article header spacing */
  .article-header {
    padding: 36px 40px 20px;
  }

  /* Bigger headline (very important) */
  .article-title {
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.9px;
  }

  /* Meta info slightly bigger */
  .article-meta {
    font-size: 15px;
  }

  /* Bigger hero image */
  .article-hero img {
    height: clamp(360px, 38vw, 520px);
  }

  /* Wider + more readable article text */
  .article-body {
    padding: 28px 40px 16px;
    font-size: 18px;
    line-height: 1.8;
    max-width: 860px; /* optimal reading width */
  }

  .article-body p {
    margin-bottom: 20px;
  }

  /* Mid-article ad spacing */
  .main-article .ad-section {
    margin: 32px 40px 40px;
  }

  /* COMMENTS: match article scale */
  .comments-section {
    padding: 28px 32px;
    border-radius: 26px;
  }

  .comments-section h2 {
    font-size: 24px;
  }

  /* RELATED NEWS card spacing */
  .related-section {
    padding: 22px;
    border-radius: 26px;
  }

  .related-content h3 {
    font-size: 16px;
    line-height: 1.4;
  }
}

/* =========================================
   EXTRA LARGE DESKTOP (1440px+)
   ========================================= */
@media (min-width: 1440px) {

  .article-title {
    font-size: 56px;
  }

  .article-body {
    font-size: 19px;
    max-width: 900px;
  }

  .article-hero img {
    height: 560px;
  }
}
/* Header bar */
.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

/* Brand block */
.site-brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 0;
}

/* Logo */
.site-logo{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  flex: 0 0 auto;
}

/* Title + tagline */
.site-title-wrap{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}

.site-title{
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-tagline{
  font-size: 12px;
  color: rgba(168,178,209,.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Optional: subtle accent line under header (professional newsroom feel) */
.site-header::after{
  content:"";
  display:block;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,107,107,.9), rgba(78,205,196,.9));
  opacity: .55;
}

/* Make header feel more premium on desktop */
@media (min-width: 1024px){
  .header-inner{
    padding: 16px 0;
  }
  .site-logo{
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .site-title{
    font-size: 18px;
    letter-spacing: .9px;
  }
  .site-tagline{
    font-size: 13px;
  }
}

/* Mobile: tighten spacing */
@media (max-width: 480px){
  .header-inner{ padding: 12px 0; }
  .site-logo{ width: 42px; height: 42px; border-radius: 14px; }
  .site-title{ font-size: 15px; }
  .site-tagline{ font-size: 11px; }
}
/* =========================================
   RELATED NEWS – CARD STYLE (WEB LOOK)
   ========================================= */

.related-section {
  margin-top: 32px;
}

/* Header row */
.related-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.related-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.related-section .view-all {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.related-section .view-all:hover {
  color: #fff;
}

/* Grid layout */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Card */
.related-card {
  position: relative;
  display: block;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,.6);
}

/* Image */
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark gradient overlay */
.related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,14,30,.92) 0%,
    rgba(10,14,30,.55) 45%,
    rgba(10,14,30,.15) 70%,
    transparent 100%
  );
}

/* Content overlay */
.related-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  z-index: 2;
}

/* Title */
.related-content h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
}

/* Date */
.related-content time {
  font-size: 12px;
  color: rgba(168,178,209,.9);
}

/* =========================================
   RESPONSIVE BEHAVIOR
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    height: 240px;
  }

  .related-content h3 {
    font-size: 16px;
  }
}
