@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;600;700&display=swap');

body {
    font-family: "Noto Sans Bengali", sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #222;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: #0b0b0b;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    z-index: 100;
}
header .logo {
    font-size: 28px;
    font-weight: 700;
}
header .logo span {
    color: #00bcd4;
}
.home-btn {
    text-decoration: none;
    background: #00bcd4;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}
.home-btn:hover {
    background: #0292a7;
}

/* Category Header */
.category-header {
    text-align: center;
    margin: 30px 0 20px;
}
.category-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0a0a0a;
}
.category-header .underline {
    width: 80px;
    height: 4px;
    background: #00bcd4;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Container */
.container {
margin: 16px;    
}

.main-news-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 40px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}




.main-news img, 
.main-news video {
    width: 100%;
   height: auto;
   display: block;
  object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}
.main-news h2 a {
    font-size: 22px;
    color: #111;
transition: 0.3s;
text-decoration: none;    
}

.main-news h2 a:hover {
text-decoration: underline;
color: #007bff;
}




.main-news p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
transition: 0.3s;
    
}

.main-news p:hover {
text-decoration: underline;
color: #007bff;
}




.read-more {
    background: #00bcd4;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}
.read-more:hover {
    background: #0288a7;
}

/* Side News */
.side-news {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-news-item {
  display: flex;
  gap: 10px;
  align-items: center;

  /* নিচের ৪টা লাইন বক্স, ব্যাকগ্রাউন্ড, শ্যাডো পুরো সরিয়ে দিচ্ছে */
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;

  padding: 0;
  margin: 0;
}

.side-news-item img,
.side-news-item video {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 0; /* কোন কোণ গোল না */
}

/* নিউজ টেক্সট */
.side-news-text h4 {
  font-size: 14px;
  margin: 0;
  color: #111;
  font-weight: bold;
  transition: color 0.3s, text-decoration 0.3s;
}

/* লিংক স্টাইল */
.side-news-text a {
  text-decoration: none;
  color: inherit;
}

/* শুধু টাইটেলে মাউস নিলে হোভার ইফেক্ট */
.side-news-text h4:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* Grid Section */
.grid-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ডেস্কটপে ৪ কলাম */
  gap: 15px;
  margin: 0;


}

/* নিউজ টাইটেল */
.grid-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  margin: 8px 0 5px;
  transition: color 0.3s, text-decoration 0.3s;
}

/* নিউজ ডিসক্রিপশন */
.grid-item p {
  font-size: 15px;
  color: #000;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
  margin: 0;
}

/* শুধু টাইটেলে মাউস নিলে */
.grid-item h3:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* শুধু ডিসক্রিপশনে মাউস নিলে */
.grid-item p:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* লিংকে সবসময় আন্ডারলাইন থাকবে না */
.grid-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}




.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a,
.pagination strong {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 16px;
}

.pagination strong {
    font-weight: bold;
}



/* মোবাইলের জন্য (max-width: 768px মানে ট্যাব/মোবাইল) */
@media (max-width: 768px) {
  .grid-section {
    grid-template-columns: repeat(2, 1fr); /* মোবাইলে ২ কলাম */
    gap: 10px;
  }
}

/* প্রতিটি নিউজ আইটেম */
.grid-item {
  background: none; /* কোনো ব্যাকগ্রাউন্ড বক্স না */
  border-radius: 0;
  box-shadow: none; /* ছায়া বাদ */
  overflow: hidden;
  transition: 0.3s;
}

/* হোভার করলে সামান্য জুম ইফেক্ট */
.grid-item:hover img {
  transform: scale(1.05);
}

/* নিউজ ইমেজ / ভিডিও */
.grid-item img,
.grid-item video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.3s;
}

/* নিউজ টাইটেল */
.grid-item h3 {
  font-size: 16px;
  padding: 8px 0 4px;
  color: #111;
}

/* নিউজ ডিসক্রিপশন */
.grid-item p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* Footer */
footer {
    text-align: center;
    background: #111;
    color: #ccc;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-news-section {
        grid-template-columns: 1fr;
    }
}