.imgbox-container {
  width: 353px; /* fixed width */
  height: 250px; /* fixed height */
  overflow: hidden; /* hide overflow */
}

.imgbox-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures the image fills the box without stretching */
  display: block;
}

/*----NEWS CARD STYLES----*/

.gov-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.gov-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.gov-card-image {
  position: relative;
  display: block;
}

.gov-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gov-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0a6b22; /* government red */
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.gov-card-body {
  padding: 18px;
}

.gov-date {
  color: #6b7280;
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.gov-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.gov-title a {
  color: #111827;
  text-decoration: none;
}

.gov-title a:hover {
  color: #0a6b22;
}

.gov-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 14px;
}

.gov-readmore {
  font-size: 14px;
  font-weight: 600;
  color: #0a6b22;
  text-decoration: none;
}

.gov-readmore:hover {
  text-decoration: underline;
}

/* ================================
   MODERN BREAKING NEWS TICKER
================================ */

.breaking-news-modern {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

/* Label */
.news-label {
  background: #dc3545;
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ticker area */
.news-ticker {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 12px 0;
}

/* Scrolling track */
.news-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
}

/* Pause animation on hover */
.news-ticker:hover .news-track {
  animation-play-state: paused;
}

/* Links */
.news-track a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.news-track a:hover {
  color: #dc3545;
  text-decoration: underline;
}

/* Dot separator */
.dot {
  color: #dc3545;
  font-size: 20px;
  line-height: 1;
}

/* Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .news-label {
    padding: 10px 14px;
    font-size: 13px;
  }

  .news-track a {
    font-size: 14px;
  }
}

/*----NEWS CARD STYLES----*/

.gov-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.gov-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.gov-card-image {
  position: relative;
  display: block;
}

.gov-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gov-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0a6b22; /* government red */
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.gov-card-body {
  padding: 18px;
}

.gov-date {
  color: #6b7280;
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.gov-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.gov-title a {
  color: #111827;
  text-decoration: none;
}

.gov-title a:hover {
  color: #0a6b22;
}

.gov-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 14px;
}

.gov-readmore {
  font-size: 14px;
  font-weight: 600;
  color: #0a6b22;
  text-decoration: none;
}

.gov-readmore:hover {
  text-decoration: underline;
}

.related-articles-section {
  padding: 30px 15px;
  background-color: #f9f9f9;
}

.section-title {
  font-size: 1.8rem;
  color: #003366; /* government dark blue */
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  border-left: 4px solid #007bff; /* subtle accent */
  padding-left: 10px;
}

.article-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.article-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.article-img-wrapper:hover img {
  transform: scale(1.05);
}

.article-content {
  padding: 15px;
}

.article-date {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.article-title a {
  color: #003366;
  text-decoration: none;
}

.article-title a:hover {
  text-decoration: underline;
}

.read-more {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}
.gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  margin: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery img:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .gallery img {
    width: 100%;
    height: auto;
    margin: 5px 0;
  }
}

/* ==============================
       THUMBNAIL IMAGE STYLING
       ============================== */

.fixed-thumb .hoverBorderWrapper {
  width: 450px;
  height: 300px;
  display: block;
  overflow: hidden;
}

.fixed-thumb img {
  width: 450px;
  height: 300px;
  object-fit: cover;
  display: block;
}

.hoverBorderWrapper {
  position: relative;
}

.theHoverBorder {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hoverBorder:hover .theHoverBorder {
  opacity: 1;
}

/* Float helpers */
.float-left {
  float: left;
}
.float-right {
  float: right;
}

/* Clear floats */
.itemBody::after {
  content: "";
  display: block;
  clear: both;
}

/* ==============================
       LIGHTBOX CLOSE BUTTON (WHITE)
       ============================== */

.lightbox {
  z-index: 9998;
}

.lb-data .lb-close {
  position: fixed !important;
  top: 20px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.9) !important;
  border-radius: 50%;
  opacity: 1 !important;
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
}

/* Remove default Lightbox sprite */
.lb-data .lb-close img {
  display: none !important;
}

/* White close icon */
.lb-data .lb-close::after {
  content: "✕";
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-data .lb-close:hover {
  background: rgba(0, 0, 0, 1) !important;
}
/* ==============================
       CUSTOM IMAGE BOX STYLES
       ============================== */
.image-boxes {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  padding: 15px;
}

.image-boxes:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hoverBorderWrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.imgbox_image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hoverBorderWrapper:hover .imgbox_image {
  transform: scale(1.05);
}

.theHoverBorder {
  position: absolute;
  inset: 0;
  border: 2px solid #004080;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hoverBorderWrapper:hover .theHoverBorder {
  opacity: 1;
}

h6 {
  margin-top: 10px;
  font-weight: 500;
  color: #007bff;
}

.m_title a {
  text-decoration: none;
  color: #004080;
  font-weight: 600;
}

.m_title a:hover {
  text-decoration: underline;
}

/* Header Wrapper */
.site-header-left {
  position: relative;
  display: flex;
  align-items: center;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1f2937;
}

.brand img {
  width: 58px;
  height: auto;
}

.brand-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand-text small {
  font-weight: 400;
  color: #6b7280;
}

/* Info Card */
.brand-card {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 20px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 1000;
}

/* Hover & focus reveal beside the tabs */
.site-header-left:hover .brand-card,
.site-header-left:focus-within .brand-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card-content h5 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.card-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

/* Map link */
.map-link {
  display: inline-block;
  margin: 10px 0 14px;
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.map-link:hover {
  text-decoration: underline;
}

/* Social icons */
.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  color: #1f2937;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .brand-card {
    width: 90vw;
    left: 50%;
    transform: translate(-50%, 10px);
  }
}
