/* ====== Base Layout ====== */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, "Noto Sans Tamil", sans-serif;
  background: #f9f9f9;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 15px;
  background: #fff;
}

/* ====== Title ====== */

h1 {
  color: #b30000;
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* ====== Meta ====== */

.meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

/* ====== News Image ====== */

.news-image {
  text-align: center;
  margin: 15px 0;
}

.main-news-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ====== Content ====== */

p {
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  text-align: justify;
}

/* ====== Mobile Fix ====== */

@media (max-width: 600px) {

  h1 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  .container {
    padding: 10px;
  }
}
/* News Page Mobile Friendly */

.news-page img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
}
.news-page p {
  font-size: 16px;
  line-height: 1.6;
  padding: 5px 10px;
}
/* Category Page */
.site-header {
  background: #b71c1c;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 36px;   /* Laptop size */
  font-weight: bold;
  text-shadow: 1px 1px 2px black;
}
/* Mobile view */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 26px;
  }
}
.news-item {
  background: #fff;
  margin: 12px;
  padding: 12px;
  border-radius: 8px;
}

.news-item h2 {
  font-size: 18px;
  margin: 8px 0;
}

.news-item a {
  color: #000;
  text-decoration: none;
}

.news-item a:hover {
  color: #b71c1c;
}

.news-item p {
  font-size: 15px;
  color: #444;
}

.thumb {
  width: 100%;
  border-radius: 6px;
}
/* Force header text color fix */

.site-header,
.site-header h1,
.site-header h2,
.site-header a {
  color: #ffffff !important;
}
/* Header title shadow */

.site-header h1 {
  text-shadow: 1px 1px 2px black;
}
/* Breaking News Ticker */
.breaking-bar {
  background: #b71c1c;
  color: white;
  padding: 8px;
  overflow: hidden;
  white-space: nowrap;
  font-weight: bold;
}

.breaking-text {
  display: inline-block;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
/* Category Page Design */

.news-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.news-title {
  font-size: 20px;
  margin: 10px 0 6px;
}

.news-summary {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  color: #b71c1c;
  font-weight: bold;
}
.news-item img {
  width: 100%;
  height: auto;       /* Important */
  object-fit: cover;
  border-radius: 8px;
}
.news-item h2 {
  font-size: 18px;
}

.news-item p {
  font-size: 14px;
}
/* Breaking News Scroll */
.breaking-bar {
  background: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}

.breaking-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 18s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}
/* ===== GLOBAL TEXT FIX (DO NOT REMOVE) ===== */

/* Main content */
.news-item p,
.news-page p,
.news-summary,
.container p {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #222 !important;
}

/* Titles */
.news-item h2,
.news-title,
.news-page h1,
.container h1 {
  font-size: 22px !important;
  line-height: 1.4 !important;
}

/* Mobile optimization */
@media (max-width: 768px) {

  .news-item p,
  .news-page p,
  .news-summary,
  .container p {
    font-size: 18px !important;
  }

  .news-item h2,
  .news-title,
  .news-page h1,
  .container h1 {
    font-size: 24px !important;
  }
}
.site-subtitle {
  display: block;
  width: 100%;
  text-align: center;
  color: #ffcc00; /* Gold */
  font-weight: bold;
  font-size: 18px;
}
}
/* Share Buttons */
.share-box {
  margin-top: 25px;
  padding: 15px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.share-box p {
  font-weight: bold;
  margin-bottom: 10px;
}

.share-btn {
  display: inline-block;
  padding: 8px 15px;
  margin: 5px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.facebook {
  background: #1877F2;
}
.main-header{
    background:#c40000;
    padding:20px 10px;
    text-align:center;
}
.site-logo{
    width:100%;
    max-width:450px;   /* Desktop limit */
    height:auto;
    display:block;
    margin:0 auto;
}
.site-subtitle{
    color:#ffd700;
    font-size:18px;
    margin-top:15px;
}
/* ===== NEWS GALLERY ===== */

.news-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-item img {
    height: 180px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}
body{
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
.homepage-news{
display:grid;
grid-template-columns:2fr 1fr;
gap:20px;
margin:20px;
}

.big-news img{
width:100%;
height:320px;
object-fit:cover;
border-radius:6px;
}

.big-news h2{
font-size:28px;
margin-top:10px;
}

.side-news{
display:flex;
flex-direction:column;
gap:15px;
}

.side-item{
display:flex;
gap:10px;
align-items:center;
}

.side-item img{
width:110px;
height:70px;
object-fit:cover;
border-radius:5px;
}

.side-item h4{
font-size:15px;
margin:0;
}

.news-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin:20px;
}

.grid-item img{
width:100%;
height:160px;
object-fit:cover;
border-radius:6px;
}

.grid-item h3{
font-size:18px;
margin-top:8px;
}

.section-title{
margin-left:20px;
font-size:22px;
}

/* Mobile */

@media(max-width:768px){

.homepage-news{
grid-template-columns:1fr;
}

.big-news img{
height:220px;
}

}
