/* Base Styling */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar-brand img {
  height: 50px;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover {
  color: #d5e7de;
  border-bottom: 2px solid #00a85a;
}



/* Search Bar */
.search-form {
  position: relative;
}

.search-form input {
  border-radius: 50px;
  padding-right: 40px;
  box-shadow: none;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #413c3c;
}

/* Section Container */
.news-section {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 25px;
  margin-bottom: 35px;
  height: 100%;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.news-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.arrow-icon {
  color: #00a85a;
  font-size: 1.5rem;
}

/* News Cards */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1rem;
}

.card-text {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

/* Read More Button */
.btn-outline-success {
  border-radius: 50px;
  font-weight: 500;
  padding: 5px 15px;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline-success:hover {
  background: #00a85a;
  color: #fff;
}

/* Bulletin News */
.bulletin-container {
  background-color: #00a85a;
  color: white;
  padding: 15px;
  border-radius: 8px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.bulletin-container p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Scrollbar */
.bulletin-container::-webkit-scrollbar {
  width: 8px;
}
.bulletin-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.bulletin-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}
.bulletin-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Load More Button */
.load-more-btn {
  background-color: #00a85a;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 6px 20px;
  font-weight: 600;
  margin: 20px auto;
  display: block;
  font-size: 0.95rem;
}

.load-more-btn:hover {
  background-color: #008d4c;
}

/* Footer */
footer {
  background-color: #000;
  color: white;
  padding: 40px 0;
}

footer h5 {
  font-weight: bold;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Grid Spacing */
.row > div {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .card img {
    height: 140px;
  }
  .news-title {
    font-size: 1.4rem;
  }
}

.vertical-nav {
  position: fixed;
  top: 200px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 999;
  gap: 20px;
  padding-left: 10px;
}

.vertical-nav a {
  display: inline-block;
  transform: rotate(-90deg);
  transform-origin: left top;
  text-decoration: none;
  color: #00a85a;
  font-weight: bold;
  background: white;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

.vertical-nav a:hover {
  background-color: #00a85a;
  color: white;
}

.form-select,
.form-control {
  border-radius: 50px;
  font-size: 0.875rem;
}

.input-group .input-group-text {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  border-left: none;
  background-color: #fff;
}

.form-select:focus,
.form-control:focus {
  border-color: #00a85a;
  box-shadow: none;
}

.navbar-brand img {
  height: 45px;
  vertical-align: middle;
}
