body {
  background: #f4f6f9;
  font-family: "Inter", sans-serif;
}
.news-hero {
  position: relative;
  height: 560px;
  min-height: 400px;
  background: url("../images/news.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.news-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.breadcrumb a {
  text-decoration: none;
  color: #00bcd4;
}
.news-hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 15px;
}
.breaking-wrapper {
  width: 100%;
  max-width: 1250px;
  display: flex;
  align-items: center;
  background: #111;
  color: #fff;
  overflow: hidden;
  margin: 0px auto;
  margin-top: 60px;
}
.breaking-label {
  background: #00bcd4;
  padding: 12px 20px;
  font-weight: bold;
  text-transform: uppercase;
}
.breaking-scroll span a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.breaking-scroll span a:hover {
  text-decoration: underline;
  color: red;
}
.cat {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #00bcd4;
  color: #fff;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 4px;
}
.breaking-bar {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.breaking-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 25s linear infinite;
}
.breaking-scroll:hover {
  animation-play-state: paused;
}
.breaking-scroll span {
  margin-right: 50px;
  font-weight: 500;
}
@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.news-section {
  width: 100%;
  padding: 40px 20px;
}
.news-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.news-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.news-top h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
}
.news-top h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #00bcd4;
  position: absolute;
  bottom: -10px;
  left: 0;
}
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 75px;
}
.news-filter button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}
.news-filter button:hover,
.news-filter button.active {
  background: #00bcd4;
  color: #fff;
  border-color: #00bcd4;
}
.news-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 30px;
}
.news-left {
  flex: 3;
}
.news-sidebar {
  flex: 1.2;
}
#news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
}
.news-img {
  position: relative;
}
.news-img img {
  width: 100%;
  height: 300px;
}
.news-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.news-filter a {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  color: #111;
  transition: 0.3s;
}
.news-filter a:hover,
.news-filter a.active {
  background: #00bcd4;
  color: #fff;
  border-color: #00bcd4;
}
.news-content {
  padding: 18px;
}
.news-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #111;
}
.news-content .meta {
  font-size: 13px;
  color: #777;
}
.news-ad-left,
.news-ad-right {
  position: sticky;
  top: 120px;
  height: fit-content;
}
.news-ad-box {
  background: #ffffff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  margin-bottom: 25px;
  border: 1px solid #f1f1f1;
}
.news-ad-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.news-ad-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.news-ad-box a {
  display: block;
  text-decoration: none;
}
.news-ad-box h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #111;
}
.news-ad-box p {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}
.news-ad-box::before {
  content: "Sponsored";
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 1200px) {
  .news-ad-left,
  .news-ad-right {
    display: none;
  }
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  .news-filter {
    margin-left: -0px;
  }
  .news-hero {
    margin-top: -60px;
  }
  .news-ad-left,
  .news-ad-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
  }

  .news-ad-left {
    left: 10px;
  }

  .news-ad-right {
    right: 10px;
  }

  .news-ad-left img,
  .news-ad-right img {
    max-width: 120px;
    height: auto;
  }

  /* close button */
  .ad-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000;
    color: #fff;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-filter {
    text-align: left;
  }
}
.pagination {
  text-align: center;
  padding: 40px 0;
}
.pagination a {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  margin: 3px;
  border-radius: 5px;
  text-decoration: none;
}
.pagination .current {
  width: 8px;
  height: 6px;
  padding: 8px 12px;
  background: #00bcd4;
  color: #fff;
  border-color: #00bcd4;
}
@media (max-width: 992px) {
  .news-layout {
    flex-direction: column;
  }
  .news-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .news-sidebar {
    margin-top: 30px;
  }
}
@media (max-width: 768px) {
  .breaking-label {
    padding: 8px 12px;
    font-size: 12px;
  }

  .news-content h3 {
    font-size: 16px;
  }

  .news-img img {
    height: 180px;
  }
}
.single-news-wrapper {
  background: #f5f7fa;
  padding: 60px 0;
  margin-bottom: 80px;
}
.single-news-container {
  max-width: 1250px;
  margin: auto;
  display: flex;
  gap: 40px;
  padding: 0 20px;
}
.single-news-left {
  flex: 3;
}
.single-news-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.single-news-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
}
.single-news-card h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}
.single-news-card .meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.single-news-content {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}
.single-news-content p {
  margin-bottom: 18px;
  word-break: break-word;
}
.single-news-sidebar {
  flex: 1;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.single-news-sidebar h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e5e5;
}
.sidebar-news-scroll {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}
.sidebar-news-scroll::-webkit-scrollbar {
  width: 6px;
}
.sidebar-news-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.sidebar-news-scroll::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 10px;
}
.sidebar-news-scroll::-webkit-scrollbar-thumb:hover {
  background: #084298;
}
.sidebar-news-item {
  margin-bottom: 15px;
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}
.sidebar-news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.sidebar-news-item a {
  display: inline;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111;
}
.sidebar-news-item img {
  width: 100%;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
}
.sidebar-news-item h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: 0.3s;
}
.sidebar-news-item:hover span {
  color: #0d6efd;
}
@media (max-width: 1200px) {
  .single-news-container {
    gap: 30px;
  }
}
@media (max-width: 992px) {
  .single-news-container {
    flex-direction: column;
  }
  .single-news-sidebar {
    position: relative;
    top: 0;
    margin-top: 40px;
  }
  .sidebar-news-scroll {
    max-height: 400px;
  }
  .single-news-card h1 {
    font-size: 26px;
  }
}
@media (max-width: 576px) {
  .single-news-wrapper {
    padding: 40px 0;
  }
  .single-news-card {
    padding: 20px;
  }
  .single-news-card h1 {
    font-size: 22px;
  }
  .single-news-content {
    font-size: 15px;
  }
  .sidebar-news-item img {
    width: 100%;
    height: 100%;
  }
  .sidebar-news-item span {
    font-size: 13px;
  }
}
