/* === Navigation Bar === */
.navbar.bg-danger {
  background-color: #c82333 !important;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover {
  text-decoration: underline;
  color: #ffd700 !important;
}

/* === News Title Link === */
.title-link,
.card-title .title-link {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.title-link:hover,
.card-title .title-link:hover {
  color: skyblue;
  text-decoration: none;
}

/* === Bottom Info Bar === */
.small-text {
  font-size: 14px;
}

.bg-light.border-bottom {
  border-top: 1px solid #ddd;
}

/* === Social Icons === */
.social-icons a {
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.2s ease-in-out, opacity 0.2s;
}

.social-icons a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* === Search Button === */
form.d-flex button {
  padding: 2px 10px;
  font-size: 14px;
}

/* === Breaking News Ticker === */
.breaking-news-wrapper {
  background: #fff;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
}

.breaking-label {
  flex-shrink: 0;
  font-weight: bold;
  white-space: nowrap;
}

.breaking-track-outer {
  overflow: hidden;
  position: relative;
}

.breaking-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scrollTicker 25s linear infinite;
}

.breaking-track-outer:hover .breaking-track {
  animation-play-state: paused;
}

.breaking-title {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.breaking-title:hover {
  color: #000;
  text-decoration: none;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* === Tab Navigation (Sidebar) === */
.nav-tabs .nav-link {
  border: none;
  font-weight: bold;
  color: #555;
}
.nav-tabs .nav-link.active {
  background: #e9ecef;
  color: #000;
  border-bottom: 2px solid green;
}

/* === Load More Button === */
#loadMoreBtn {
  padding: 8px 25px;
  font-weight: bold;
  font-size: 16px;
}

/* === Sidebar/Section Category Headers === */
.section-header {
  background: #dc3545;
  color: white;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* === Featured Section (সাহিত্য, প্রযুক্তি etc) === */
.featured-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  height: 100%;
}
.featured-box img {
  max-width: 100%;
  height: auto;
}
.featured-box .news-snippet {
  font-size: 14px;
}
.featured-box .small {
  font-size: 13px;
  display: block;
  line-height: 1.4;
}

/* === Sidebar Mini List with Image === */
.sidebar-mini {
  display: flex;
  margin-bottom: 10px;
}
.sidebar-mini img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  margin-right: 8px;
}
.sidebar-mini a {
  color: #000;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
}
.sidebar-mini a:hover {
  color: #007bff;
}

/* === More News Link === */
.more-link {
  text-align: right;
  font-size: 13px;
  margin-top: 8px;
}
.more-link a {
  color: red;
  font-weight: bold;
  text-decoration: none;
}
.more-link a:hover {
  text-decoration: underline;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .navbar .navbar-brand span {
    font-size: 18px;
  }
  .breaking-news-wrapper {
    font-size: 12px;
    padding: 5px 0;
  }
  .featured-box .small {
    font-size: 12px;
  }
  .card-title .title-link {
    font-size: 15px;
  }
}

/* === Boxed Layout for Desktop === */
@media (min-width: 992px) {
  .boxed-layout {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
  }

  body {
    background-color: #f5f5f5;
  }
}
