/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f7f7f7;
  color: #222;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 5%;
  font-size: 14px;
}

.top-left span {
  margin-right: 20px;
}

.top-right a {
  color: #fff;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.top-left{
    margin-left: 100px;
    
}
.top-right{
    margin-right: 100px;
}


/* Hover effect for top bar icons */
.top-right a:hover {
  color: #ff3b3f;
  transform: scale(1.2);
}

/* ========== AD SLIDER ========== */
.ad-slider {
  overflow: hidden;
  background: #fff;
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
}

.slide-track {
  display: flex;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.slide-track img {
  width: 200px;
  height: 60px;
  object-fit: cover;
  margin-right: 30px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== NAVIGATION BAR ========== */
.navbar {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.logo {

 size: 10px;
}

.logo span {
  color: #ff3b3f;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ff3b3f;
}

/* Burger Icon */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    border-top: 1px solid #ddd;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ========== FLOATING SOCIAL SIDEBAR ========== */
.social-sidebar {
  position: fixed;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.social-sidebar a {
  width: 42px;
  height: 42px;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Hover Animation Effects */
.social-sidebar a:hover {
  transform: scale(1.2) rotate(10deg);
  color: #fff;
}

/* Specific brand colors */
.social-sidebar a.facebook:hover {
  background: #1877f2;
}
.social-sidebar a.twitter:hover {
  background: #1da1f2;
}
.social-sidebar a.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-sidebar a.youtube:hover {
  background: #ff0000;
}

/* Add slight bounce animation */
.social-sidebar a:hover i {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ========== NEWS SECTION ========== */
.news-section {
  padding: 40px 5%;
  background: #fff;
  margin-left: 30px;
  margin-right: 20pxs;
}

.container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.news-main {
  flex: 2.5;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  border-bottom: 3px solid #ff3b3f;
  display: inline-block;
  margin-bottom: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card.large img {
  height: 250px;
}

.news-card h3 {
  padding: 12px 15px;
  font-size: 16px;
  color: #111;
}

.news-card .author {
  padding: 0 15px 15px;
  font-size: 13px;
  color: #ff3b3f;
}

.news-card .author span {
  color: #777;
  margin-left: 4px;
}

/* AD BANNER BELOW MAIN NEWS */
.ad-space {
  text-align: center;
  margin-top: 30px;
}

.ad-space img {
  max-width: 100%;
  border-radius: 6px;
}

/* SIDEBAR */
.sidebar {
  flex: 1;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending-item {
  display: flex;
  gap: 10px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 10px;
}

.trending-item img {
  width: 90px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.trend-info .title {
  font-weight: 600;
  font-size: 14px;
  color: #111;
}

.trend-info .author {
  font-size: 12px;
  color: #ff3b3f;
  margin-top: 5px;
}

/* Sidebar ad */
.ad-vertical {
  margin-top: 30px;
  text-align: center;
}

.ad-vertical img {
  width: 100%;
  border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

.category-filter {
  text-align: center;
  margin: 1rem 0 2rem;
}

.filter-btn {
  border: none;
  background: #ddd;
  color: #333;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #444;
  color: #fff;
}

.filter-btn.active {
  background: #e91e63;
  color: white;
}


/* ====== News Grid Animation ====== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.news-grid.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card h3 {
  font-size: 1.1rem;
  margin: 10px;
  color: #222;
}

.news-card .author {
  font-size: 0.85rem;
  color: #777;
  margin: 0 10px 8px;
}

.news-card .category {
  background: #f44336;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 5px;
  margin-left: 10px;
  display: inline-block;
}


/* ===== News Section Layout ===== */
.news-section {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.news-section .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  border-left: 4px solid #b30000;
  padding-left: 10px;
  color: #222;
  margin-bottom: 1rem;
}

/* ===== Trending Sidebar ===== */
.trending-sidebar {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.trend-info {
  flex: 1;
}

.trend-info .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

.trend-info .title:hover {
  color: #b30000;
  cursor: pointer;
}

.trend-info .author {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

/* ===== Ad Spaces ===== */
.ad-space,
.ad-vertical {
  margin-top: 20px;
  text-align: center;
}

.ad-space img {
  width: 100%;
  border-radius: 6px;
}

.ad-vertical img {
  width: 100%;
  border-radius: 8px;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .news-section .container {
    grid-template-columns: 1fr;
  }

  .trending-sidebar {
    margin-top: 20px;
  }
}



/* ===== Auto-Scroll Trending ===== */
.trending-wrapper {
  height: 400px; /* adjust to your sidebar height */
  overflow: hidden;
  position: relative;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scrollTrending 20s linear infinite;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  min-height: 80px;
}

.trending-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.trend-info .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.trend-info .title:hover {
  color: #b30000;
  cursor: pointer;
}

.trend-info .author {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

/* ===== Animation Keyframes ===== */
@keyframes scrollTrending {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* ===== Pause on Hover ===== */
.trending-wrapper:hover .trending-list {
  animation-play-state: paused;
}


/* ===== News Details Page ===== */
.news-details-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 40px 5%;
}

.news-details img.news-banner {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.news-details h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.news-details .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.news-details .content {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}

/* ===== Related Stories ===== */
.related-news h3 {
  margin-bottom: 15px;
  border-left: 4px solid #b30000;
  padding-left: 8px;
}

.related-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  text-decoration: none;
  color: #222;
}

.related-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.related-item p {
  font-size: 0.9rem;
  line-height: 1.3;
}

.related-item:hover p {
  color: #b30000;
}

@media (max-width: 900px) {
  .news-details-container {
    grid-template-columns: 1fr;
  }
}


/* 🔝 Top Social Bar */
.top-bar {
  background: #111;
  color: #fff;
  padding: 5px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.top-bar .socials a {
  color: #fff;
  margin-right: 10px;
  text-decoration: none;
}

.top-bar .socials a:hover {
  color: #b30000;
}

/* 📰 News Details Page */
.news-details-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 40px 5%;
}

.news-details img.news-banner {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.news-details h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.news-details .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.news-details .content {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}

/* Sidebar */
.sidebar section {
  margin-bottom: 2rem;
}

.related-item,
.trending-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  text-decoration: none;
  color: #222;
}

.related-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.related-item p,
.trending-item {
  font-size: 0.9rem;
  line-height: 1.3;
}

.related-item:hover p,
.trending-item:hover {
  color: #b30000;
}

.trending-item i {
  color: #b30000;
  margin-right: 8px;
}

.ad-space {
  background: #f9f9f9;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
}

.ad-space img {
  width: 100%;
  border-radius: 8px;
  margin-top: 5px;
}

@media (max-width: 900px) {
  .news-details-container {
    grid-template-columns: 1fr;
  }

  .navbar ul {
    flex-direction: column;
    display: none;
  }

  .navbar ul.show {
    display: flex;
  }
}
/* ====== FOOTER SECTION ====== */
.site-footer {
  width: 100%;
  background: #0b0b0b;
  color: #fff;
  margin-top: 50px;
  font-family: "Poppins", sans-serif;
}

/* ====== Subscribe Section ====== */
.footer-top {
  background: #b30000;
  text-align: center;
  padding: 40px 5%;
}

.footer-top h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-top p {
  color: #f5f5f5;
  margin-bottom: 20px;
  font-size: 1rem;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.subscribe-form input {
  padding: 10px 15px;
  width: 300px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.subscribe-form button {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.subscribe-form button:hover {
  background: #333;
}

/* ====== Footer Content ====== */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 8%;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
  border-left: 3px solid #b30000;
  padding-left: 8px;
}

.footer-col p {
  line-height: 1.7;
  color: #ccc;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #b30000;
}

/* Social Icons */
.social-icons a {
  display: inline-block;
  background: #222;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #b30000;
}

/* ====== Footer Bottom ====== */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding: 15px 10px;
  font-size: 0.9rem;
  color: #aaa;
}

/* ====== Responsive ====== */
@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col h3,
  .footer-col h4 {
    border: none;
    padding-left: 0;
  }

  .social-icons a {
    margin: 5px;
  }

  .subscribe-form input {
    width: 80%;
  }
}

.subscribe-message {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.3s ease;
}

/* ====== ADMIN PAGE (Subscribers) ====== */
.admin-container {
  background: #111;
  color: #f5f5f5;
  padding: 80px 0;
  min-height: 80vh;
}

.admin-container .container {
  max-width: 950px;
  margin: 0 auto;
  background: #1c1c1c;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.admin-container h1 {
  text-align: center;
  color: #b30000;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

#subscribersTable {
  margin-top: 20px;
  overflow-x: auto;
}

#subscribersTable table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: #fff;
}

#subscribersTable th, #subscribersTable td {
  border-bottom: 1px solid #444;
  padding: 12px 10px;
  text-align: left;
}

#subscribersTable th {
  background-color: #b30000;
  color: #fff;
}

#subscribersTable tr:hover {
  background: #222;
}

.actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 25px;
  gap: 10px;
}

.actions button {
  background: #b30000;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.95rem;
}

.actions button:hover {
  background: #900;
}

.empty-message {
  text-align: center;
  color: #aaa;
  margin-top: 20px;
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .admin-container .container {
    width: 90%;
    padding: 20px;
  }

  #subscribersTable th, #subscribersTable td {
    font-size: 0.9rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== ADMIN LOGIN ===== */
#loginSection {
  text-align: center;
}

#loginSection input {
  padding: 10px;
  width: 60%;
  max-width: 300px;
  border-radius: 5px;
  border: 1px solid #555;
  margin-top: 15px;
  background: #222;
  color: #fff;
}

#loginSection button {
  margin-top: 15px;
  background: #b30000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#loginSection button:hover {
  background: #900;
}

.login-message {
  margin-top: 10px;
  color: #ff5555;
}


/* ===== Pagination / Load More ===== */
.pagination-controls {
  text-align: center;
  margin: 30px 0;
}

.pagination-controls button {
  background: #b30000;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.pagination-controls button:hover {
  background: #900;
}

.pagination-controls button:disabled {
  background: #444;
  cursor: not-allowed;
}






