/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  background-color: #f8fafc;
  color: #1f2937;
  font-feature-settings: "kern", "liga", "clig", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top Bar */
.top-bar {
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.date-display {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
}

.top-bar-links a {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.utilities {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-selector:hover {
  border-color: #7b1e25;
  background: #f8fafc;
}

.utility-btn {
  padding: 0.5rem;
  border: none;
  background: none;
  color: #6b7280;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.utility-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Main Header */
.main-header {
  background: white;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background: #f3f4f6;
}
/* Navbar container */
.mobile-menu-navbar {
  display: none; /* hidden by default */
  width: 100%;
  margin-top: 15px;
  background: #dc2626;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  white-space: nowrap;
}

/* Hide scrollbar */
.mobile-menu-navbar::-webkit-scrollbar {
  display: none;
}

/* Navbar links */
.mobile-menu-link {
  display: inline-block;
  margin: 2px;
  padding: 8px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  /* top: 120px; */
  border-radius: 20px;
  text-decoration: none;
  flex-shrink: 0;
  transition: 0.3s;
}

/* Active link */
.mobile-menu-link.active {
  background: #f3f4f6;
  color: #dc2626;
}

/* Hover effect */
.mobile-menu-link:hover {
  background: #f3f4f6;
  color: #dc2626;
}

/* Show navbar only on ≤1024px */
@media (max-width: 1024px) {
  .mobile-menu-navbar {
    display: flex;
  }
}

.logo-container {
  flex: 1;
  justify-content: center;
}

.logo {
  height: 60px;
  object-fit: contain;
  cursor: pointer;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  transition: color 0.2s ease;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: #7b1e25;
  background: #eff6ff;
}

.nav-item.active {
  background: #7b1e25;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.nav-item.featured {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.nav-item.featured:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  width: 12rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #eff6ff;
  color: #7b1e25;
}

/* Search */
.search-container {
  display: flex;
  align-items: center;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  width: 40px;
}

.search-wrapper.expanded {
  width: 256px;
}

.search-btn {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.5rem;
  border: none;
  background: none;
  color: #6b7280;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.search-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.search-input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-wrapper.expanded .search-input {
  opacity: 1;
  pointer-events: auto;
}

.search-input:focus {
  outline: none;
  ring: 2px;
  ring-color: #7b1e25;
  border-color: transparent;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  max-height: 24rem;
}

.mobile-menu-content {
  padding: 1rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  color: #7b1e25;
  background: #eff6ff;
}

.mobile-nav-item.active {
  background: #7b1e25;
  color: white;
}

.mobile-nav-item.featured {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Breaking News */
.breaking-news {
  background: #dc2626;
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
}

.breaking-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breaking-label {
  background: white;
  color: #dc2626;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-container {
  overflow: hidden;
  flex: 1;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  animation: marquee 45s linear infinite;
}

.marquee-text a {
  color: #fff;
  text-decoration: none;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 2rem;
}

.content-grid-article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* News Cards */
.news-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.news-item:first-child {
  display: block;
}
.news-item:nth-child(n + 4) {
  display: block;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item:first-child .news-image {
  width: 100%;
  height: auto;
  padding-bottom: 20px;
}
.news-item:nth-child(n + 4) .news-image {
  width: 100%;
  height: auto;
  padding-bottom: 20px;
}
.news-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.02);
}

.news-content {
  flex: 1;
}

.news-content a {
  text-decoration: none;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s ease;
}

.news-article-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.news-title:hover {
  color: #7b1e25;
}

.news-excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.news-time,
.news-category {
  font-weight: 500;
}

.news-category {
  color: #7b1e25;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 120px;
  align-self: start;
  height: max-content;
}

.sidebar-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Trending News */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.trending-item:hover {
  background: #f8fafc;
}

.trending-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #7b1e25;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.trending-text {
  font-size: 1rem;
  color: #374151;
  line-height: 1.4;
  transition: color 0.2s ease;
  font-weight: 600;
}

.trending-item:hover .trending-text {
  color: #7b1e25;
}

/* Weather Widget */
.weather-widget {
  background: linear-gradient(135deg, #7b1e25 0%, #1d4ed8 100%);
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: white;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.weather-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.weather-content {
  text-align: center;
}

.weather-main {
  margin-bottom: 1rem;
}

.temperature {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.location {
  font-size: 0.875rem;
  opacity: 0.9;
}

.weather-condition {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.weather-extra {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quick-link {
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  color: #374151;
  text-align: center;
  transition: all 0.2s ease;
}

.quick-link:hover {
  background: #eff6ff;
  border-color: #7b1e25;
  color: #7b1e25;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .logo-container {
    display: flex;
    justify-content: center;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-grid-article {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .news-image {
    width: 100%;
    height: 200px;
  }
  .sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 2rem;
  }

  .utilities {
    gap: 0.5rem;
  }

  .lang-selector {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .breaking-content {
    gap: 0.75rem;
  }

  .breaking-label {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }

  .marquee-text {
    font-size: 0.75rem;
  }

  .main-content {
    padding: 1rem 0;
  }

  .news-card,
  .sidebar-card,
  .weather-widget {
    padding: 1rem;
  }

  .section-title,
  .sidebar-title {
    font-size: 1.25rem;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .top-bar-content {
    height: 40px;
  }

  .header-content {
    height: 56px;
  }

  .date-display {
    font-size: 0.75rem;
  }

  .logo {
    font-size: 1.75rem;
  }

  .utilities {
    gap: 0.25rem;
  }

  .utility-btn {
    padding: 0.375rem;
  }

  .lang-selector {
    padding: 0.25rem 0.375rem;
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

.chevron-down {
  transition: transform 0.2s ease;
}

.dropdown:hover .chevron-down {
  transform: rotate(180deg);
}

/* Focus Styles */
button:focus,
input:focus,
a:focus {
  outline: 2px solid #7b1e25;
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .header,
  .sidebar {
    display: none;
  }

  .main-news {
    width: 100%;
  }
}

/* Footer Styles */
.footer {
  background: #0d0d0d;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 250px;
  height: auto;
}

.footer-logo h2 {
  font-size: 28px;
  font-weight: bold;
}

.footer-column h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #7b1e25;
}

.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  padding-top: 15px;
  margin-top: 20px;
  font-size: 13px;
  color: #aaa;
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* Background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

/* Loader circle */
.loader {
  width: 120px;
  height: 120px;
  border: 6px solid #ddd;
  border-top: 6px solid #c8102e; /* Red like logo */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

/* Logo inside */
.logo-pre {
  width: 80px;
  height: auto;
  position: relative;
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.epaper-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #7b1e25;
  color: white;
  padding: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.epaper-btn span {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  transition: all 0.3s ease;
}

.epaper-btn:hover {
  border-radius: 30px;
  padding: 15px 25px;
}

.epaper-btn:hover span {
  max-width: 100px;
  opacity: 1;
  margin-left: 10px;
}

.share-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #7b1e25;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
  font-size: 22px;
  z-index: 1000;
}

/* Popup share box */
.share-options {
  position: fixed;
  bottom: 160px;
  right: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}

.share-options a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  transition: background 0.3s;
}

.share-options a:hover {
  background: #f0f0f0;
}

.breaking-news-art {
  margin-top: 20px;
  padding: 15px;
  background: #fff4e6;
  border-left: 4px solid #ff5722;
}

.breaking-list-art {
  margin-top: 10px;
}

.breaking-item-art {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
}

.breaking-thumb-art img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}

.breaking-info-art h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.breaking-time-art {
  font-size: 12px;
  color: #777;
}

.no-breaking-art {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.news-content {
  -webkit-touch-callout: none; /* disable copy/paste popup */
}

.news-content p,
.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content li {
  -webkit-user-select: text;
  user-select: text; /* allow selecting lines */
}
.news-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}
.mob-view-ad {
  display: none;
}

/* Advertisement Styles */
.ad-container {
  margin: 20px auto;
  text-align: center;

  border-radius: 8px;
  padding: 15px;
  overflow: hidden;
}

.ad-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Ad Slider */
.ad-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 4px;
}

.ad-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.ad-slide.active {
  display: block;
  opacity: 1;
}

.ad-slide a {
  display: block;
  width: 100%;
}

.ad-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ad-slide:hover img {
  transform: scale(1.02);
}

/* Ad Controls (Dots) */
.ad-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ad-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.ad-dot.active {
  background: #7b1e25;
  width: 24px;
  border-radius: 5px;
}

/* Top Banner Ad */
.ad-banner-top {
  margin-bottom: 30px;
  max-width: 970px;
}

.ad-banner-top .ad-slide img {
  max-height: 250px;
  object-fit: contain;
}

/* Bottom Banner Ad */
.ad-banner-bottom {
  margin-top: 30px;
  margin-bottom: 20px;
  max-width: 728px;
}

.ad-banner-bottom .ad-slide img {
  max-height: 90px;
  object-fit: contain;
}

/* Sidebar Ads */
.ad-sidebar {
  margin-bottom: 20px;
  max-width: 300px;
  width: 100%;
}

.ad-sidebar .ad-slide img {
  min-height: 250px;
  max-height: 300px;
  object-fit: cover;
}

/* Sticky Ad */
.ad-sticky {
  position: sticky;
  top: 140px;
  max-width: 300px;
  width: 100%;
  margin-top: 20px;
}

.ad-sticky .ad-slide img {
  min-height: 500px;
  max-height: 600px;
  object-fit: cover;
}

/* In-Feed Ads */
.ad-infeed {
  margin: 30px 0;
  padding: 20px;
  background: #fafafa;
  border: 1px dashed #d1d5db;
}

.ad-infeed .ad-slide img {
  max-height: 200px;
  object-fit: contain;
}

/* Loading State */
.ad-slide:not(.active) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Hover Effect */
.ad-slider:hover .ad-controls {
  opacity: 1;
}

/* Responsive Ad Adjustments */
@media (max-width: 1024px) {
  .ad-banner-top,
  .ad-banner-bottom {
    max-width: 728px;
  }

  .ad-sticky {
    position: relative;
    top: auto;
  }

  .ad-sticky .ad-slide img {
    min-height: 250px;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .ad-container {
    margin: 15px auto;
    padding: 10px;
  }

  .ad-banner-top,
  .ad-banner-bottom,
  .ad-sidebar,
  .ad-infeed {
    max-width: 100%;
  }

  .ad-banner-top .ad-slide img,
  .ad-banner-bottom .ad-slide img {
    max-height: 150px;
  }

  .ad-sidebar .ad-slide img {
    min-height: 200px;
    max-height: 250px;
  }

  /* Hide large skyscraper on mobile */
  .ad-sticky {
    display: none;
  }

  .ad-infeed .ad-slide img {
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .ad-container {
    padding: 8px;
    margin: 10px auto;
  }
  .mob-view-ad {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .ad-label {
    font-size: 9px;
  }

  .ad-infeed {
    padding: 12px;
  }

  .ad-controls {
    gap: 6px;
    margin-top: 8px;
  }

  .ad-dot {
    width: 8px;
    height: 8px;
  }

  .ad-dot.active {
    width: 20px;
  }

  .ad-banner-top .ad-slide img,
  .ad-banner-bottom .ad-slide img {
    max-height: 100px;
  }

  .ad-sidebar .ad-slide img {
    min-height: 150px;
    max-height: 200px;
  }
}

/* Animation for slide transition */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ad-slide.active {
  animation: fadeIn 0.5s ease-in-out;
}

/* Print - Hide ads */
@media print {
  .ad-container {
    display: none;
  }
}
