/* =====================================================
   Custom Styles for Political Website – Congress Theme
   ===================================================== */

   :root {
    /* Congress-inspired colors */
    --congress-blue: #0b5ed7;
    --congress-light-blue: #3b82f6;
    --congress-green: #138808;
    --congress-saffron: #ff9933;
    --text-color: #1f2937;
    --bg-light: #f9fafb;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
  }
  
  /* ================= Navbar ================= */
  
  .navbar {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }
  
  .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }
  
  /* ================= Hero Section ================= */
  
  .hero-section {
    position: relative;
    height: 420px;
    margin-bottom: 50px;
    overflow: hidden;
  }
  
  /* Carousel slides */
  .hero-slide {
    height: 420px;
    background-size: cover;
    background-position: center;
  }
  
  /* Text overlay */
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 15px;
  }
  
  .hero-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
  }
  
  .hero-overlay p {
    font-size: 1.25rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  }
  
  /* Tricolour accent line */
  .hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(
      to right,
      var(--congress-saffron),
      #ffffff,
      var(--congress-green)
    );
    z-index: 20;
  }
  
  /* ================= Cards ================= */
  
  .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }
  
  .card-title {
    color: var(--congress-blue);
    font-weight: 600;
  }
  
  /* ================= Buttons ================= */
  
  .btn-primary {
    background-color: var(--congress-blue);
    border-color: var(--congress-blue);
    padding: 10px 32px;
    font-weight: 600;
    border-radius: 30px;
  }
  
  .btn-primary:hover {
    background-color: #094bb5;
    border-color: #094bb5;
  }
  
  /* ================= Footer ================= */
  
  .footer {
    background-color: var(--text-color);
    color: white;
    padding: 45px 0;
    margin-top: 70px;
  }
  
  /* ================= Forms & Login ================= */
  
  .login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
  
  .form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #d1d5db;
  }
  
  .form-control:focus {
    border-color: var(--congress-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.25);
  }
  
  /* ================= Alerts & Badges ================= */
  
  .alert {
    border-radius: 10px;
  }
  
  .badge {
    padding: 6px 12px;
    font-size: 0.875rem;
  }
  
  /* ================= Dashboard ================= */
  
  .stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  }
  
  .stat-card h3 {
    font-size: 2.5rem;
    color: var(--congress-blue);
    margin: 10px 0;
  }
  
  .stat-card p {
    color: #6b7280;
    margin: 0;
  }
  
  /* ================= Gallery ================= */
  
  .gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  }
  
  .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.08);
  }
  
  /* ================= Events ================= */
  
  .event-card {
    border-left: 5px solid var(--congress-blue);
    background: #ffffff;
  }
  
  .event-date {
    color: var(--congress-green);
    font-weight: 600;
  }
  
  /* ================= Responsive ================= */
  
  @media (max-width: 768px) {
  
    .hero-section,
    .hero-slide {
      height: 300px;
    }
  
    .hero-overlay h1 {
      font-size: 2rem;
    }
  
    .hero-overlay p {
      font-size: 1rem;
    }
  
    .login-container {
      margin: 50px 20px;
      padding: 30px 20px;
    }
  }

  /* ================= HERO FALLBACK (Congress Colors) ================= */

/* Base fallback background */
.congress-fallback {
  background: linear-gradient(
    135deg,
    #ff9933 0%,   /* Saffron */
    #ffffff 50%, /* White */
    #138808 100% /* Green */
  );
}

/* Ensure slides always show fallback first */
.hero-slide {
  background-color: #0b5ed7; /* Congress blue base */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Smooth fade-in effect when images load */
.hero-slide {
  transition: background-image 0.6s ease-in-out;
}

/* Dark overlay stays visible even without image */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Keep text above everything */
.hero-overlay {
  position: absolute;
  z-index: 5;
}

/* Tricolour accent line (extra polish) */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(
    to right,
    #ff9933,
    #ffffff,
    #138808
  );
}
