/* =========================================
   GLOBAL
========================================= */
body {
  font-family: 'Poppins', sans-serif;
  background: #f8fafc;
  margin: 0;
  color: #333;
}

/* =========================================
   HEADER
========================================= */
header {
  background: linear-gradient(90deg,#001F33,#002b45);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  flex-wrap: wrap;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.logo-text::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 34px;
  background: #ff2b2b;
  border-radius: 2px;
  margin-right: 10px;
}

.logo-text span { color: #00bfff; margin-left: 6px; }

/* =========================================
   NAV
========================================= */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 6px 10px;
  font-weight: 500;
  transition: color .3s;
}

nav a:hover { color: #00bfff; }

/* =========================================
   TITLES
========================================= */
h1 {
  text-align: center;
  margin-top: 30px;
  color: #002b45;
  font-size: 28px;
  font-weight: 700;
}

/* =========================================
   NEWS GRID (UNIFIED FOR ALL PAGES)
========================================= */
.news-grid,
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin: 40px auto;
  max-width: 1300px;
  padding: 0 16px;
}

/* =========================================
   CARD
========================================= */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: .2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card h2 {
  font-size: 18px;
  color: #001f33;
  margin-top: 12px;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  margin-top: 6px;
  color: #00bfff;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover { text-decoration: underline; }

.card small {
  display: block;
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}

/* =========================================
   DELETE BUTTON
========================================= */
.delete-btn {
  background: #ff3b3b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
}

.delete-btn:hover { background: #e60000; }

/* =========================================
   AD BOXES
========================================= */
.ad-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.ad-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: .3s ease;
}

.ad-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.15);
}

.ad-box span {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: #002b45;
  margin-bottom: 8px;
}

.ad-box p {
  color: #555;
  font-size: 14px;
  margin-bottom: 12px;
}

.ad-box a {
  background: #00bfff;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
}

.ad-box a:hover { background: #002b45; }

/* =========================================
   FLOATING BUTTON
========================================= */
.floating-btn {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: linear-gradient(90deg, #00bfff, #002b45);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: all .3s ease;
}

.floating-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #002b45, #00bfff);
}

/* =========================================
   PREMIUM BADGE
========================================= */
.badge-sponsored {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff2b2b;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    text-align: center;
    padding: 12px 18px;
  }

  nav a {
    margin: 6px 8px;
    font-size: 15px;
  }

  .news-grid,
  .home-news-grid {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .card img {
    height: 180px;
  }
}
/* SPECIAL AD CARDS FIX */
.ad-card h2,
.ad-card p {
  color: #fff !important;
}

.ad-card .read-more {
  color: #fff !important;
  font-weight: 700;
}
