
/* SDN Buzz Portal - v2 Responsive UI */
:root {
  --primary: #d62828;
  --secondary: #212529;
  --light: #f8f9fa;
}
body {
  font-family: "Poppins", sans-serif;
  background: var(--light);
  color: var(--secondary);
}

  .navbar-nav .nav-link:hover {
    color: #d63384 !important;
  }
  .logo{
      height: 77px;
  }

.card {
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
}
.card.show {
  opacity: 1;
  animation: fadeIn 0.6s ease forwards;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}
.bottom-nav {
  display: flex;
  justify-content: space-around;
  background: #fff;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 1000;
}
.bottom-nav a {
  text-align: center;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.85rem;
}
.bottom-nav a.active, .bottom-nav a:hover {
  color: var(--primary);
}


/* ==========================================================
   📰 SDN BUZZ NEWS CARDS
   ========================================================== */
.news-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.news-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.news-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img {
  transform: scale(1.05);
}

.news-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.news-card:hover .news-title {
  color: #d62828;
}

/* "Read More" Button */
.read-more {
  align-self: flex-start;
  background: #d62828;
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(214, 40, 40, 0.3);
  transition: all 0.3s ease;
}
.read-more:hover {
  background: #b81f1f;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(184, 31, 31, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .news-img {
    height: 180px;
  }
  .news-content {
    padding: 12px;
  }
  .read-more {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}


/* ==========================================================
   🧱 SDN BUZZ FOOTER STYLING
 /* ==========================================================

/* ==========================================================
   🔴 SDN Buzz — Gradient Footer
   ========================================================== */

.sdn-footer {
  background: linear-gradient(to bottom, #8b0000, #000000); /* dark red → black gradient */
  color: #f8f9fa;
  font-family: 'Open Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

/* --- Top Section --- */
.footer-top {
  border-bottom: none;
}

/* --- Footer Logo --- */
.footer-logo-img {
  height: 55px; /* increased from 45px */
  width: auto;
  transform: scale(1.2); /* slightly magnify logo */
  transform-origin: left center; /* scale from left, not center */
  filter: brightness(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  margin-right: 10px;
  margin-top: -3px; /* adjust for visual centering */
}

.footer-logo-img:hover {
  transform: scale(1.25);
  filter: brightness(110%);
}

/* keep footer balanced in height */
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Navigation Links --- */
.footer-nav li {
  margin: 0 10px;
}

.footer-nav a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #ffe66d;
}

/* --- Subscribe Form --- */
.subscribe-form {
  position: relative;
}

.subscribe-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px 0 0 25px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  width: 180px;
  transition: all 0.3s ease;
}

.subscribe-form input::placeholder {
  color: #f1f1f1;
  font-weight: 300;
}

.subscribe-form input:focus {
  background: rgba(255, 255, 255, 0.2);
}

.subscribe-form button {
  background: #d62828;
  border: none;
  border-radius: 0 25px 25px 0;
  padding: 8px 14px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background: #b81f1f;
  transform: translateY(-1px);
}

/* --- Gradient Divider --- */
.footer-divider {
  height: 2px;
  background: linear-gradient(to right, #999, #000, #999);
  opacity: 0.6;
}

/* --- Bottom Section --- */
.footer-bottom {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* --- Responsive Layout --- */
@media (max-width: 991px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .subscribe-form input {
    width: 160px;
  }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 0;
  }

  .footer-nav li {
    margin-bottom: 8px;
  }
}

/* ==========================================================
   ✉️ Subscription Toast Popup
   ========================================================== */
.subscribe-toast {
  visibility: hidden;
  min-width: 260px;
  background-color: rgba(0,0,0,0.85);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 16px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.4s, bottom 0.4s ease;
}

.subscribe-toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 60px;
}

/* Success, duplicate, and error colors */
.subscribe-toast.success {
  background-color: #28a745; /* green */
}
.subscribe-toast.exists {
  background-color: #ffc107; /* yellow/orange */
  color: #222;
}
.subscribe-toast.error {
  background-color: #dc3545; /* red */
  color: #fff;
}





