/* ==========================================================================
   GLOBAL RESET & FONTS
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Aligns correctly with sticky header height */
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.topbar {
  background: #0B1A30; /* Clinically crisp deep blue */
  color: #E2E8F0;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-track {
  display: flex;
  width: max-content;
  animation: scrollTopbar 28s linear infinite;
}

.topbar-track:hover {
  animation-play-state: paused;
}

.topbar-content {
  padding: 8px 40px;
}

@keyframes scrollTopbar {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E2E8F0;
  transition: all 0.3s ease;
}

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  letter-spacing: -0.3px;
  max-width: 320px;
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 1px;
}

/* Nav Links - Desktop style layout */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0B2545;
}

.apply-btn-nav {
  background: #0B2545;
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  transition: all 0.25s ease;
}

.apply-btn-nav:hover {
  background: #134074;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.25);
}

/* Nav Dropdown structure */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 220px;
  padding: 8px 0;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid #F1F5F9;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown::after {
  content: "";
  position: absolute;
  height: 20px;
  width: 100%;
  bottom: -20px;
  left: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  color: #475569;
}

.dropdown-menu li:hover {
  background: #F8FAFC;
}

.dropdown-menu li:hover a {
  color: #0B2545;
}

/* Mobile responsive navigation toggling triggers */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #0F172A;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    border-top: 1px solid #F1F5F9;
    display: none;
  }

  .nav-links li {
    border-bottom: 1px solid #F8FAFC;
    padding: 12px 0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links.show {
    display: flex;
    animation: slideDownNav 0.25s ease-out forwards;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 15px;
    background: transparent;
  }

  .dropdown-menu li {
    padding: 8px 0;
    border: none;
  }
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO & SLIDESHOW SECTION
   ========================================================================== */
.hero {
  height: 600px;
  background: #091522;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  height: 100%;
}

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

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 21, 34, 0.45) 0%, rgba(9, 21, 34, 0.85) 100%);
}

.fade {
  animation: slideFadeEffect 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeEffect {
  from { opacity: 0.6; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

.prev-slide, .next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 40;
}

.prev-slide:hover, .next-slide:hover {
  background: rgba(255, 255, 255, 0.3);
  scale: 1.05;
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

@media (max-width: 768px) {
  .prev-slide, .next-slide { display: none; }
  .hero { height: 500px; }
}

.dots {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  z-index: 40;
}

.dots span {
  height: 8px;
  width: 32px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s, width 0.3s;
}

.dots .active {
  background: #F59E0B; /* Amber indicator */
  width: 48px;
}

/* Overlay Caption Card */
.hero-caption-card {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  max-width: 620px;
  z-index: 40;
  text-align: left;
  padding: 20px;
}

@media (max-width: 1024px) {
  .hero-caption-card {
    left: 5%;
    right: 5%;
    max-width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   NOTICE BOARD SLIDER
   ========================================================================== */
.notice-slider {
  max-width: 680px;
  margin: auto;
}

.notice-img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.notice-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  z-index: 20;
}

.notice-btn:hover {
  background: #0B2545;
  color: #FFFFFF !important;
  border-color: #0B2545;
}

.notice-btn:hover svg {
  stroke: #FFFFFF;
}

.notice-btn.prev { left: -24px; }
.notice-btn.next { right: -24px; }

@media (max-width: 768px) {
  .notice-btn.prev { left: 4px; }
  .notice-btn.next { right: 4px; }
}

/* ==========================================================================
   MODAL WINDOWS & LIGHTBOXES
   ========================================================================== */
.notice-modal, .lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content, .lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.close-modal, .close-lightbox {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #FFFFFF;
  font-size: 38px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-modal:hover, .close-lightbox:hover {
  opacity: 1;
}

/* ==========================================================================
   FOOTER STRUCTURE
   ========================================================================== */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}