* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
}

/* TOP BAR */
/*
.top-bar {
  background: #004080;
  color: #fff;
  padding: 6px 16px;
  font-size: 14px;
}*/
.top-bar {
    display: none !important;
}

/* HEADER BASE */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* SEARCH BAR ADJUSTMENTS */
.header-search {
  display: flex;
  align-items: center;
  background: #f4f6f8;
  border-radius: 30px;
  padding-left: 15px;
  border: 1px solid #ddd;
  max-width: 450px; /* Limits width on desktop */
  width: 100%;
}

.search-select {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #004080;
  font-weight: bold;
  padding: 10px 5px;
  border-right: 1px solid #ccc;
  outline: none;
  cursor: pointer;
}

.header-search:focus-within {
  background: #fff;
  border-color: #004080;
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
}

.header-search input {
  border: none;
  background: transparent;
  padding: 10px;
  flex: 1; /* Grows to fill space */
  font-size: 14px;
  outline: none;
  min-width: 50px; /* Prevents squashing on mobile */
}

.header-search button {
  background: #004080;
  color: white;
  border: none;
  border-radius: 0 30px 30px 0; /* Rounds the right side */
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

/* SEARCH RESULTS */
.search-results-section {
  background: white;
  border: 1px solid #004080;
  border-radius: 8px;
  margin-top: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

/*.logo {
  font-size: 22px;
  font-weight: bold;
  color: #004080;
}*/
/* Container for Logo + Text */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px; /* Space between logo and text */
}

.logo-img {
  height: 45px; /* Slightly larger to balance the text */
  width: auto;
  display: block;
}

/* Text Container */
.logo-text {
  display: flex;
  flex-direction: column; /* Stacks Title and Tagline vertically */
  justify-content: center;
}

.logo-title {
  font-size: 18px;
  font-weight: bold;
  color: #004080;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.submenu {
  display: none;
  position: absolute;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav li {
  position: relative;
}

.nav li:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 6px 10px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* CAROUSEL */
.carousel {
  background: #e9ecef;
  padding: 60px 20px;
  text-align: center;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

/* QUICK LINKS */
.quick-links {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;*/
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;  
  /*padding: 30px;*/
  /* Reduced vertical padding (10px top/bottom, 20px left/right) */
  padding: 10px 20px;
}

.card {
  background: #004080;
  color: #fff;
  /*padding: 30px;*/
  padding: 15px 10px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px; /* Slightly smaller font to match the compact look */
}

/* CONTENT */
/*
.content {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}*/
/* Hide both the Content and Footer sections */
.content, .footer {
    display: none !important;
}

/* FOOTER */
/*
/.footer {
  background: #002b55;
  color: #fff;
  padding: 30px;
/}*/
.footer {
    display: none !important;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.footer a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin: 6px 0;
}

/* PHOTO SLIDER */
.photo-slider {
  width: 100%;
  /*height: 70vh;*/
  height: 82vh; 
  max-height: 850px;
  position: relative;
  overflow: hidden;
}

.slider {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;   // desktop default 
  /*background-size: contain;   // 🔥 KEY LINE */
  opacity: 0;
  transition: opacity 1s ease;
  /*background-color: #f4f6f8;  // fills empty space */
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Dark overlay */
/*.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 80, 0.55);
}
*/
.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 80px 40px;
}

.slide-content h2 {
  font-size: 42px;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 18px;
  max-width: 500px;
}

/* SLIDER DOTS */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

#pdfFrameWrapper {
    width: 100%;
    height: 70vh; /* Responsive height: 70% of the screen height */
    max-height: 800px;
    background: #f0f0f0;
    position: relative;
    border: 1px solid #004080;
    border-radius: 0 0 8px 8px;
    overflow: hidden; /* Important: prevents double scrollbars */
}

/* Ensure the iframe fills the container without overflow */
#iframePlaceholder object, 
#iframePlaceholder iframe {
    display: block !important;
    min-height: 500px !important;
    width: 100% !important;
}


/* Toast Notification Styles */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}


/* Ensure the modal doesn't scroll the background page */
body:has(#apiResultModal[style*="display: block"]) {
    overflow: hidden;
}

/* Optional: Add a smooth fade-in for the modal */
#apiResultModal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadein { from { bottom: 0; opacity: 0; } to { bottom: 30px; opacity: 1; } }
@keyframes fadeout { from { bottom: 30px; opacity: 1; } to { bottom: 0; opacity: 0; } }

@media (max-width: 600px) {
    #pdfFrameWrapper {
        height: 500px; /* Better height for mobile viewports */
    }
}

/* Slider Overlay Container */
.slider-overlay {
    position: absolute;
    top: 20px;
    left: 40px; /* Change to right: 40px if preferred */
    z-index: 10; /* Ensures it stays above the sliding images */
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none; /* Allows clicks to pass through if needed */
}

.special-slider-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.1));
}

.special-slider-text span {
    display: block;
    font-size: 10px;
    font-weight: bold;
    color: #004080;
    letter-spacing: 1px;
}

.special-slider-text p {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .slider-overlay {
        left: 8px;
        top: 8px;
        padding: 4px 10px;
    }
    .special-slider-logo { height: 24px; }
    .special-slider-text p { font-size: 11px; }
	.special-slider-text span {
        font-size: 8px;
    }	
}

/* MOBILE */
@media (max-width: 600px) {
  .photo-slider {
    height: 50vh;
  }

  .slide-content h2 {
	font-size: 12px;
	margin-bottom: 5px;
	line-height: 1.2;
  }
  .slide-content p {
    font-size: 8px;
	margin-top: 0;
	line-height: 1.4;
  }

 .slide {
    background-size: contain;
	/*
    background-color: #002b55; //fallback background 
	*/
	background-color: #f4f6f8; /* neutral background */	
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.active {
    display: block;
    width: 100%;
  }

  .nav ul {
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }
}
/* MOBILE FIX */
@media (max-width: 480px) {
  .header-search {
    padding-left: 10px;
  }
  .search-select {
    font-size: 11px;
    padding: 5px;
  }
}

/* VIEWPORT OPTIMIZATION */
@media (max-width: 600px) {
  .logo-tagline {
    display: none; /* Hide tagline on small screens to save space */
  }
  .logo-img {
    height: 35px;
  }
  .logo-title {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .logo-text {
    display: none; /* Hide all text on very small screens to fit search bar */
  }
}