    :root {
      --red:       red;
      --red-dark:  #a30000;
      --red-light: #e60000;
      --white:     #ffffff;
      --text:      #1a1a1a;
      --muted:     #777;
      --border:    #ddd;
      --gold:      #f5c518;
      --ad-w:      38%;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Noto Sans Tamil', sans-serif;
      background: var(--red);
      color: var(--text);
    }
       
    a { text-decoration: none; color: inherit; }


    /* ── HEADER single row ── */
    .header {
      background: var(--red);
      display: flex;
      align-items: center;
      gap: 6px;
      padding:8px 8px 4px 8px;
      min-height: 54px;
    }
    .logo {
      flex-shrink: 0;
      width: 46px; height: 46px;
      border-radius: 50%;
      border: 10px solid var(--white) ;
      background: var(--white);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      color: var(--white); text-align: center; line-height: 1.1;
    }

    .logo-image {
      width: 35px; height: 35px;
    }

    .hdr-contact {
      flex: 1;
      color: var(--white);
      font-size: clamp(12px, 13px, 16px);
      font-weight: 600;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hdr-price {
      flex-shrink: 0;
      border-radius: 5px;
      padding: 3px 5px;
      text-align: center;
      display: flex; align-items: center; justify-content: center;
      flex-direction: column;
      gap: 2px;
      
    }
    .hdr-price-logo{
      height: 40px;
      width: 100px;
      background: var(--white);
      

    }
    .hdr-rates{
      display: flex;
      align-items: end;
      gap: 2px;
    }

    .hdr-logo{
      object-fit: cover;
      max-width: 100%;
      max-height: 100%;
    }
 
    .hdr-price .hp-pill  {
      background: var(--white); color: var(--red);
      font-size: clamp(6px,1.7vw,8px); font-weight: 700;
      padding:4px; border-radius: 3px; white-space: nowrap; flex:1;
    }

    /* ── TICKER ── */
    .ticker-bar {
      display: flex; align-items: center;
      background: var(--white);
      height: 20px; overflow: hidden;
      border-radius: 10px;
      padding:2px 4px;
    }
   
    .ticker-scroll { overflow: hidden; flex: 1; }
    .ticker-track {
      display: inline-block; white-space: nowrap;
      animation: scrollticker 30s linear infinite;
      font-size: 11px; font-weight: 600; color: var(--red); padding: 0 10px;
    }

    .ticker-track a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

    @keyframes scrollticker {
      from { transform: translateX(100vw); }
      to   { transform: translateX(-100%); }
    }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }

    /* ── NAVBAR horizontal scroll ── */
    .navbar {
      background: var(--red);
      padding: 4px 8px;
      display: flex; gap: 5px;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }
    .navbar::-webkit-scrollbar { display: none; }
    .nav-btn {
      flex-shrink: 0;
      background: transparent;
      border: 1.5px solid var(--white);
      color: var(--white);
      padding: 2px 6px; border-radius: 20px;
      font-family: 'Noto Sans Tamil', sans-serif;
      font-size: clamp(6px, 8px, 12px);
      font-weight: 600;
      cursor: pointer; white-space: nowrap;
      transition: background .2s, color .2s;
    }
    .nav-btn.active, .nav-btn:active { background: var(--white); color: var(--red); }

    /* ── BODY WRAP: news left, ads right ── */
    .body-wrap {
      display: flex; gap: 12px;
      padding: 5px; background: var(--white);
      align-items: flex-start;
    }

    /* ── NEWS COLUMN ~62% ── */
    .news-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

    .news-card {
      background: var(--white); border-bottom: 1px solid var(--border);
      display: flex; gap: 7px; padding: 3px;
      transition: box-shadow .2s;
    }
    .news-card:active { box-shadow: 0 3px 8px rgba(0,0,0,.15); }

    .thumb {
      flex-shrink: 0;
      width: 68px; height: 54px;
      border-radius: 4px; background: #ececec;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; color: #bbb; overflow: hidden;
    }
    .thumb img { width:100%; height:100%; object-fit:cover; }

    .card-body { flex: 1; min-width: 0; }
    .card-title , .card-title2{
      font-size: clamp(6px, 8px, 13px);
      font-weight: 700; line-height: 1.4; color: var(--text);
      margin-bottom: 2px;
      /* display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; */
    }
    .card-title a:hover { color: var(--red); }
    .card-title2 a:hover { color: var(--red); }
    .card-title2{text-decoration: underline;}
    .card-meta { font-size: 7px; color: var(--muted); margin-bottom: 3px; }
    .card-excerpt {
      font-size: 8px; color: #555; line-height: 1.2;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .read-more { color: var(--red); font-weight: 700; font-size: 8px; }
    .card-stats { display: flex; gap: 8px; margin-top: 4px; }
    .stat { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 2px; }
    .whatsapp{color: #25D366;}
    .facebook{color: #3b5998;}

    /* ── PAGINATION ── */
    .pagination {
      background: var(--white);
      border-radius: 5px;
      /* padding: 7px; */
      display: flex; align-items: center;
      justify-content: space-around; gap: 4px; flex-wrap: wrap;
    }
    .pg-info { font-size: 9px; color: var(--muted); }
    .pg-btns { display: flex; gap: 3px; flex-wrap: wrap; }
    .pg-btn {
      width: 24px; height: 24px; border-radius: 3px;
      border: 1px solid var(--border); background: var(--white);
      color: var(--text); font-size: 10px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Noto Sans Tamil', sans-serif;
      transition: background .2s;
    }
    .pg-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
    .pg-btn:hover:not(.active) { background: #f0f0f0; }

    /* ── RIGHT ADS COLUMN (~38% on mobile) ── */
    .visual-rail {
      width: var(--ad-w);
      flex-shrink: 0;
      display: flex; flex-direction: column; gap: 3px;
    }
    .visual-card {
      border-radius: 5px; overflow: hidden;
      padding: 8px 5px;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      text-align: center; gap: 2px;
      min-height: 90px; color: var(--white);
    }
    

    .ac-badge {
      background: var(--gold); color: #333;
      font-size: 7px; font-weight: 800;
      padding: 2px 5px; border-radius: 8px; margin-bottom: 1px;
    }
    .ac-brand { font-size: clamp(10px,2.8vw,13px); font-weight: 900; line-height: 1.2; }
    .ac-tag   { font-size: clamp(7px,1.9vw,9px); opacity: .85; line-height: 1.3; }
    .ac-phone { font-size: clamp(7px,1.8vw,9px); font-weight: 700; margin-top: 2px; }

    /* ── BOTTOM ADS (horizontal leg of L) ── */
    .visual-row {
      background: var(--white);
      padding: 0 5px 5px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5px;
    }

    

    /* ── FOOTER ── */
    .footer { background: var(--red); color: var(--white); text-align: center; padding: 12px; }
    .footer-socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 6px; }
    .soc-btn {
      width: 30px; height: 30px; border-radius: 50%;
      background: var(--red); display: flex; align-items: center; justify-content: center;
      font-size: 13px; color: var(--white); cursor: pointer;
      transition: background .2s;
    }
    .soc-btn:hover { background: var(--red-light); }
    .footer-time { font-size: 11px; color: #f8f6f6; }

    .visual-card,
    .visual-row-card {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.visual-card img,
.visual-row-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}


/* Detail page */
.detail-card {
  background: var(--white);
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 6px;
  border: 1.5px solid var(--border);
  overflow: auto;
  height: 350px;
  scrollbar-width: thin;
}

.detail-title {
  font-size: clamp(10px, 12px, 20px);
  font-weight: 900;
  line-height: 16px;
  margin-bottom: 8px;
  color: #0d6efd;
}

.detail-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.detail-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 12px;
}

.detail-body p {
  font-size: clamp(10px, 2.5vw, 14px);
  line-height: 14px;
  color: #212529;
  margin-bottom: 10px;
}

.detail-stats {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
}

/* Comment box */
.comment-box {
  background: var(--white);
  border-radius: 5px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.comment-input,
.comment-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 12px;
  outline: none;
}

.comment-textarea { height: 80px; resize: none; }

.comment-input:focus,
.comment-textarea:focus { border-color: var(--red); }

.comment-btn {
  background: #0d6efd;
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

.comment-btn:hover { background: var(--red-dark); }

/* Related section */
.related-section {
  background: var(--white);
  border-radius: 5px;
  padding:0px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.related-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}


    /* ── DESKTOP (≥640px) ── */
    @media (min-width: 640px) {
      :root { --ad-w: 210px; }
      .logo { width: 100px; height: 100px; }
      .logo-image {width: 90px; height: 90px;}
      .hdr-contact { font-size: 15px; }
      .nav-btn { font-size: 16px; }
      .news-card { gap: 10px; padding: 10px; }
      .thumb { width: 88px; height: 68px; font-size: 22px; }
      .card-title { font-size: 14px; }
      .card-meta  { font-size: 11px; }
      .card-excerpt { font-size: 12px; }
      .visual-rail .visual-card { min-height: 140px; padding: 12px 8px; }
      .ac-brand { font-size: 15px; } .ac-tag { font-size: 11px; } .ac-phone { font-size: 10px; }
      .visual-row { padding: 0 8px 8px; gap: 8px; }
      .visual-row-card { min-height: 95px; }
      .ba-name { font-size: 15px; } .ba-phone { font-size: 11px; }
      .ticker-bar{margin: 0 auto;}
      .ticker-track { font-size: 14px; }
      .detail-body p {line-height: 16px;}

      
    }

 @media (min-width: 1024px) {
  body {
    max-width: 1024px;
    margin: 0 auto;
    border-left: 20px solid var(--white);
    border-right: 20px solid var(--white);

  }
}
