/* ======= BULLETIN BOARD ======= 

    :root{
      --red:#C62828;
      --yellow:#FFD54F;
      --blue:#1976D2;
      --bg:#f6f7fb;
      --card:#ffffff;
      --muted:#6b7280;
      --radius:12px;
      --max-width:900px;
      font-family: Inter, sans-serif;
    }

    .board{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
    .card{background:var(--card);padding:14px;border-radius:var(--radius);box-shadow:0 6px 18px rgba(17,24,39,0.06);border:1px solid rgba(15,23,42,0.03)}
    .card .meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
    .tag{font-weight:600;padding:6px 10px;border-radius:999px;font-size:12px}
    .tag.announce{background:linear-gradient(90deg,var(--red),#ff7b7b);color:white}
    .tag.event{background:linear-gradient(90deg,var(--yellow),#ffe08a);color:#111}
    .tag.info{background:linear-gradient(90deg,var(--blue),#64b5f6);color:white}
    .title{font-weight:700;margin:6px 0}
    .body{color:var(--muted);font-size:14px;margin-bottom:12px}
    .small{font-size:13px;color:var(--muted)}*/

    
    body {
      font-family: 'Segoe UI', sans-serif;
      scroll-behavior: smooth;
    }

    /* Navbar */
    .navbar {
      background-color: #003366; /* Dark Blue */
      transition: all 0.4s ease;
      height: 70px;
    }
    .navbar-brand {
      color: #FFD700 !important; /* Yellow */
      font-weight: 700;
    }
    .nav-link {
      color: #fff !important;
      font-weight: 500;
      position: relative;
      margin-right: 30px;
    }
    .nav-link::after {
      content: "";
      position: absolute;
      width: 0;
      height: 2px;
      left: 0;
      bottom: -3px;
      background: #FFD700;
      transition: 0.3s;
    }
    .nav-link:hover::after {
      width: 100%;
    }
    .nav-link:hover {
      color: #FFD700 !important;
    }
    .btn-danger {
      transition: all 0.3s ease;
    }
    .btn-danger:hover {
      background-color: #a50e2d !important;
      box-shadow: 0 0 10px rgba(220,20,60,0.8);
    }

    /* Hero Section */
    .hero {
      background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('/Barangay400-main/WEBSITE/image/p1.png') no-repeat center/cover;
      color: white;
      height: 90vh;
      display: flex;
      align-items: center;
      text-align: center;
      animation: fadeIn 2s ease-in-out;
    }
    .hero h1 {
      font-size: 3rem;
      font-weight: bold;
      color: #FFD700;
      animation: slideDown 1.5s ease;
    }
    .hero p {
      animation: fadeUp 2s ease;
    }
    .btn-custom {
      background-color: #DC143C;
      color: white;
      font-weight: 600;
      transition: all 0.3s ease;
    }
    .btn-custom:hover {
      background-color: #a50e2d;
      transform: scale(1.05);
      box-shadow: 0 0 15px rgba(220,20,60,0.7);
    }

    /* Navbar background when collapsed (mobile view) */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #041562 ; /* Yellow background */
    padding: 15px;
    border-radius: 0 0 10px 10px;
  }

  .navbar-collapse a {
    color: #ffcc00 !important; /* Dark text for readability */
  }
}








    /* Sections */
    .section-title {
      color: #003366;
      font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }

    /* Officials & Services Cards */
    .card {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .official-img {
      transition: transform 0.4s ease;
    }
    .official-img:hover {
      transform: scale(1.1) rotate(2deg);
    }

    /* Keyframes */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes slideDown {
      from { transform: translateY(-50px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    @keyframes fadeUp {
      from { transform: translateY(30px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    /* ======= CUSTOM FOOTER STYLING ======= 
    footer {
      margin: 0;
      padding: 0;
      background: #003366;
    }

    footer .container-two {
      width: auto;
      margin: auto;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      background: #141E30;
    }

    footer .footer-cont {
      width: 250px;
      padding: 20px;
      text-align: center;
    }

    .footer-cont img {
      width: 200px;
      margin-top: 20px;
    }

    footer .footer-cont h3 {
      margin-top: 20px;
      font-size: 15px;
      margin-bottom: 10px;
      color: white;
    }

    footer .footer-cont p {
      width: 100%;
      margin: auto;
      padding: 7px;
      padding-bottom: 20px;
      color:white;
      text-align: justify;
      font-size: 14px;
    }

    .adlink li {
      list-style: none;
      padding: 7px;
      position: relative;
    }

    .adlink a{
      color: white;
      text-decoration: none;
      font-weight: 500;
    }

    .adlink li::before {
      content: '';
      position: absolute;
      transform: translate(-50%, -50%);
      left: 50%;
      top: 100%;
      width: 0;
      height: 2px;
      background: #f18930;
      transition-duration: .5s;
    }

    .adlink li:hover::before {
      width: 100px;
    }*/

    .govlinks li {
      list-style: none;
      padding: 7px;
      position: relative;
      text-align: center;
    }

    .govlinks li a {
      text-decoration: none;
      color: white;
      font-size: 14px;
    }

    .govlinks li::before {
      content: '';
      position: absolute;
      transform: translate(-50%, -50%);
      left: 50%;
      top: 100%;
      width: 0;
      height: 2px;
      background: #f18930;
      transition-duration: .5s;
    }

    .govlinks li:hover::before {
      width: 100px;
    }

    .bottom-bar {
      background: #FCD116;
      text-align: center;
      padding: 10px 0;
    }

    .bottom-bar p {
      margin: 0;
      font-size: 14px;
      color: black;
    }

    .bottom-bar a{
      text-decoration: none;
      color: black;
    }




/* MAP SECTION */
#map {
    height: 500px;
    width: 100%;
}

#barangay-map{
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#barangay-map h2 {
    color: #041562;
    font-size: 30px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 20px;
}

#barangay-map p{
    font-size: 20px;
    margin-bottom: 30px;
}



/* Weather Section Styles */
#weather h2 {
    color: #041562;
    font-size: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#weather p {
    color: white;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Weather Card */
.weather-card {
    background: #b71c1c;
    color: white;
    padding: 20px;
    text-align: center;
    max-width: 650px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.weather-card h3 {
    font-size: 20px;
}

.weather-card #temp {
    font-size: 50px;
    font-weight: bold;
    color: white;
}

/* Weather Map */
.weather-map iframe {
    height: 450px;
    width: 700px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Forecast Section */
.forecast {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.forecast-item:last-child {
    border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .weather-map iframe {
        width: 100%;
        height: 400px;
    }

    .weather-card {
        width: 100%;
        height: auto;
    }
}

/* Office Hours Card */
.office-hours-card {
    position: absolute;
    top: 100px;
    left: 30px; /* Changed from right: 30px */
    background-color: rgba(255, 255, 255, 0.671);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    max-width: 300px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    z-index: 5;
  }
  
  .office-hours-card h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.5em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
  }
  
  .office-hours-card p {
    margin: 10px 0;
    font-size: 1em;
  }
  
.announcement-bar {
    display: flex;
    align-items: center;
    background-color: #a50e2d; /* red background */
    color: white;
    font-family: Arial, sans-serif;
    padding: 10px 0;
    position: relative;
}

.announcement-label {
    background-color: #0047ab; /* blue color */
    padding: 15px 20px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    font-weight: bold;
    white-space: nowrap;
}

.announcement-content {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding-left: 10px;
}

.announcement-content marquee {
    flex: 1;
    font-size: 16px;
    white-space: nowrap;
}

.announcement-date {
    background-color: #0047ab;
    padding: 5px 10px;
    margin-left: 10px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 3px;
}

.announcement-nav button {
    background-color: #0047ab;
    border: none;
    color: white;
    margin-left: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
}


