/* ================== Reset & Base ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  /*background: #f9f9f9;*/
  background: ;
  background-size: cover; 
  line-height: 1.6;
}

/* ================== Top Bar ================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #FFFFFF;
  color: #fd0404;
}

/* ==== Logo Alignment Fix ==== */
.brand {
  display: flex !important;
  align-items: flex-end !important; /* align both at bottom */
  gap: 15px !important;
  padding-left: 10px;
}

.brand .logo {
  height: 100px !important; /* make both slightly larger */
  width: auto !important;
  object-fit: contain !important;
  border-radius: 6px;
}

.brand img:last-child {
  height: 105px !important; /* second logo a bit taller for even bottom edge */
  width: auto !important;
  margin-bottom: 0 !important;
}



.apply-btn {
  background: #ffcc00;
  color: #000;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.apply-btn:hover {
  background: #e6b800;
}

/* ================== Navigation ================== */
.nav {
  position: relative;
  z-index: 30;
  margin: 0;
  padding: 0;
  background: #02ddf5;
  transform: translateX(100%);  /* start off-screen */
  opacity: 0;
  animation: navSlideIn 0.8s ease-out forwards; /* slide in */
line-height: 1; 
}

@keyframes navSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.nav ul {
  display: flex;
  justify-content: left;
  list-style: none;
}
.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul li {
  position: relative;
}

.nav ul li a {
 
  display: block;
  padding: 14px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s;
  white-space: nowrap;
}
.nav ul li a:hover,
.nav ul li:hover > a {
  background: #0055aa;
}

/* Dropdown menus */
.nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #004080;
  min-width: 200px;
  z-index: 20;
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.nav ul li:hover > ul {
  display: flex;
}

.nav ul li ul li {
  margin: 0;
  padding: 0;
}

.nav ul li ul li a {
  padding: 12px 15px;
  font-size: 14px;
  text-align: left;
}
.nav ul li ul li a:hover {
  background: #013e0c;
}

/* ================== Slider ================== */
.slider {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}
.arrow:hover { background: rgba(0,0,0,0.7); }
.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s;
}
.dot.active {
  opacity: 1;
  background: #ff9800;
}

/* ================== Grid Section ================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}
.card h3 { margin: 15px 0 10px; }
.card p { font-size: 14px; color: #555; }

.badge {
  display: inline-block;
  padding: 8px 15px;
  margin-top: 10px;
  background: #ff9800;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.badge:hover { background: #e68900; }

/* ================== Footer ================== */
.footer {
  background: #0e2a47;
  color: #cbd5e1;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ================== Marquee / Announcement ================== */
.notice-bar {
  width: 100%;
  background: #015e01;
  color: #eeff07;
  border-top: 1px solid #015e01;
  border-bottom: 1px solid #015e01;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
}

.notice-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 60s linear infinite;
}
.notice-content a {
  color: lch(98.27% 0.01 296.81);
  text-decoration: none;
  font-weight: bold;
}
.notice-content a:hover { text-decoration: underline; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.notice-bar:hover .notice-content {
  animation-play-state: paused;
}

/* ================== Fix Headings Margin ================== */
h1, h2, h3 {
  margin-top: 0; /* removes extra gap under nav */
}
/* ================== Header Buttons Alignment ================== */
.header-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px; /* space between the two buttons */
  margin-right: 30px; /* move slightly inward from the right edge */
}

.header-buttons a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: #ffcc00;
  color: #000;
  transition: background 0.3s;
}

.header-buttons a:hover {
  background: #e6b800;
}