.video-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #0a87ed;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.video-btn:hover {
  background-color: #ee0924;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 280px;
}

.carousel-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  display: none;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-img.active {
  opacity: 1;
  z-index: 1;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #b5179e, #7209b7);
  border: none;
  font-size: 32px;
  color: white;
  padding: 10px 18px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-nav:hover {
  background: linear-gradient(135deg, #560bad, #3a0ca3);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav.left {
  left: 10px;
}

.carousel-nav.right {
  right: 10px;
}

.custom-carousel {
  position: relative;
  width: 95%;
  max-width: 1300px;
  height: auto;
  margin: 10px auto 30px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: #242425;
}
.scroll-strip {
  width: 100%;
  background-color: #0077b6;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.scroll-strip p {
  display: inline-block;
  color: white;
  font-size:28px;
  font-weight: bold;
  animation: scroll-left 30s linear infinite;
  padding-left: 100%;
  margin: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 350px;
  max-width: 90%;
  margin: 100px auto;
  position: relative;
  animation: popupFade 0.3s ease-in-out;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
}

/* Centered Modal Content */
.modal-content {
  background: #ffffff;
  margin: 10% auto;
  padding: 30px 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.4s ease;
}

/* Close Button */
.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

/* Form Styling */
#authForm input {
  width: 100%;
  padding: 10px;
  margin: 10px 0 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#authButton {
  width: 100%;
  padding: 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#authButton:hover {
  background-color: #005bb5;
}

/* Toggle Text */
.toggle-text {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9em;
}

/* OR Separator */
.or-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.or-separator span {
  flex-grow: 1;
  border-bottom: 1px solid #ccc;
  position: relative;
}

.or-separator span::before {
  content: "OR";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 10px;
  color: #777;
}

/* Social Login Buttons */
.google-btn,
.yahoo-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.google-btn {
  background-color: #db4437;
}

.yahoo-btn {
  background-color: #6001d2;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 315px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.google-btn {
  background-color: #db4437;
}

.yahoo-btn {
  background-color: #430297;
}

.google-btn:hover {
  background-color: #c1351c;
}

.yahoo-btn:hover {
  background-color: #360174;
}

.or-separator {
  text-align: center;
  margin: 15px 0;
  position: relative;
}

.or-separator span {
  background: white;
  padding: 0 10px;
  color: #888;
  font-size: 14px;
}

.or-separator::before {
  content: '';
  position: absolute;
  width: 100%;
  top: 50%;
  height: 1px;
  background: #ccc;
  left: 0;
  z-index: -1;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url("images/bg1.png") no-repeat center center fixed;
  background-size: cover;
  color: #333;
  min-height: 100vh;
}

.page-bg {
  background-image: url('bg1.jpg');  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

header {
  padding: 30px 20px;
  text-align: center;
  color: rgb(14, 13, 13);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-family: 'Playfair Display', serif;
}

header h1 {
  font-size: 3rem;
  letter-spacing: 1px;
}

.navbar {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #5f0f40, #1e0465, #770383);
  padding: 15px 30px;
  flex-wrap: wrap;
  border-radius: 12px;
  max-width: 90%;     
  margin: 20px auto;  
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.login-btn {
  background-color: #03045e;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s ease;
}

.login-btn:hover {
  background-color: #f5e58d;
  color: black;
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

h2 {
  color: #161616;
  margin-bottom: 20px;
}
#dashboard h2,#interactive-map h2,#ngo-section h2 {
  color: #121112; 
}

.article-preview {
  background: #ffffff;
  border-left: 6px solid #00b4d8;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.article-preview:hover {
  transform: translateY(-3px);
}

.article-preview h3 a {
  color: #2f2fcb;
  font-size: 20px;
  text-decoration: none;
}

.article-preview h3 a:hover {
  text-decoration: underline;
}

.article-preview p {
  margin-top: 10px;
  color: #111113;
}

#dashboard, #interactive-map, #ngo-section {
  background-color: #e7f2a9;
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 6px 10px rgba(0,0,0,0.08);
}

#dashboard a,
#interactive-map a,
#ngo-section a {
  display: inline-block;
  background-color: #00b4d8;
  color: white;
  padding: 10px 16px;
  margin-top: 12px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

#dashboard a:hover,
#interactive-map a:hover,
#ngo-section a:hover {
  background-color: #0096c7;
}

footer {
  text-align: center;
  background-color: #023e8a;
  color: white;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .nav-left, .nav-right {
    flex-direction: column;
    gap: 10px;
  }

  .navbar li {
    margin: 8px 0;
  }

  main {
    padding: 20px;
  }
}
