/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Layout */
body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

/* 🌈 Top Bar */
.top-bar {
  background: linear-gradient(90deg,rgba(0, 48, 97, 1) 0%, rgba(8, 126, 199, 1) 100%);
  color: #fff;
  padding: 15px 15px;
  text-align: center;
  position: relative;
  z-index: 1000;
}

.ticker-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ticker-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  white-space: nowrap;
}

.ticker-message {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

#typed-text {
  color: #fff;
}

#cursor {
  display: inline-block;
  width: 10px;
  animation: blink 1s infinite;
  color: #a7f3d0;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

#readMore {
  margin-left: 10px;
  background: #ff6b6b;
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

#readMore:hover {
  background: #ff4040;
}

/* 🖼️ Ad Section */
.ad-section {
  width: 100%;
  text-align: center;
  background: #f0f0f0;
  padding: 2px 0;
}

.ad-section img {
  max-width: 100%;
  height: auto;
}

/* 🌐 Iframe */
.iframe-container {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: auto;
}

/* 📢 Bottom Ad Overlay */
.bottom-ad {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 2000;
  padding: 6px 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
}

.bottom-ad img {
  max-width: 100%;
  height: auto;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .ticker-container {
    flex-direction: column;
    text-align: center;
  }

  .ticker-title {
    margin-bottom: 5px;
  }

  #readMore {
    margin-top: 5px;
  }

  .bottom-ad img {
    width: 95%;
  }
}
