/* -------------------------------------- */
/* BASE */
/* -------------------------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f8fb;
}

/* -------------------------------------- */
/* HEADER + NAVIGATION */
/* -------------------------------------- */

.imd-header {
  background: #004a80;
  color: white;
}

.imd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  overflow-x: hidden;    /* 🔥 ADD THIS LINE */
}


.imd-logo {
  background: white;
  border-radius: 8px;
  padding: 4px;
  margin: 0 15px;
  width: 45px;
  height: 45px;
}
.imd-title {
  text-align: center;
  flex: 1;
  min-width: 0;          /* 🔥 ADD THIS LINE */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.imd-title h2 {
  margin: 0;
  font-size: 20px;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
  margin-bottom: 3px;
}

.imd-title h4 {
  margin: 0;
  font-size: 14px;
}

/* -------------------------------------- */
/* NAVIGATION */
/* -------------------------------------- */

.imd-nav {
  background: #003a63;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding: 10px 0;
}

.imd-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 5px 15px;
}

.imd-nav a:hover {
  border-bottom: 2px solid #fff;
  padding-bottom: 8px;
}

.imd-nav a.active-nav {
  color: #ffcc00;
  font-weight: bold;
  border-bottom: 2px solid #ffcc00;
}

/* -------------------------------------- */
/* MARQUEE */
/* -------------------------------------- */

.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: #004080;
  padding: 10px 0;
  border-bottom: 2px solid #ffcc00;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
  color: yellow;
  animation: scroll 30s linear infinite;
  font-size: 16px;
}

.highlight {
  color: #00ffff;
}

@keyframes scroll {
  0%   { transform: translateX(20%); }
  100% { transform: translateX(-100%); }
}

/* -------------------------------------- */
/* RESPONSIVE FIXES */
/* -------------------------------------- */

/* ✅ MOBILE HEADER FIX */
@media (max-width: 600px) {

  .imd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    overflow: hidden;
  }

  .imd-logo {
    width: 34px;
    height: 34px;
    margin: 0;
    flex-shrink: 0; /* logos never shrink */
  }

  .imd-title {
    flex: 1;
    min-width: 0;   /* 🔥 allows wrapping */
    padding: 0 6px;
    text-align: center;
  }

  .imd-title h2,
  .imd-title h4 {
    white-space: normal;   /* 🔥 text goes downward */
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
  }

  .imd-title h2 {
    font-size: 13px;
  }

  .imd-title h4 {
    font-size: 10px;
  }
}
