/* Base Styles & Animations */
body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.page-section.active {
  display: block;
}

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

.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: #D4AF37;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #D4AF37;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #A9B3A7;
}
::-webkit-scrollbar-thumb {
  background: #4A5D23;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #182A1B;
}

/* AI Chatbot Styles */
#ai-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #D4AF37;
  color: #182A1B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s, background-color 0.3s;
}
#ai-chat-btn:hover {
  transform: scale(1.1);
  background-color: #FCE690;
}

#ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  max-height: 80vh;
  background-color: #182A1B;
  border: 2px solid #4A5D23;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  overflow: hidden;
}
#ai-chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-header {
  background-color: #2E3E2E;
  color: #D4AF37;
  padding: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #4A5D23;
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #1E291E;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.chat-user {
  align-self: flex-end;
  background-color: #4A5D23;
  color: #F5F5F5;
  border-bottom-right-radius: 0;
}
.chat-ai {
  align-self: flex-start;
  background-color: #2E3E2E;
  color: #D0D6CE;
  border: 1px solid #4A5D23;
  border-bottom-left-radius: 0;
}

.chat-input-area {
  padding: 15px;
  background-color: #2E3E2E;
  border-top: 2px solid #4A5D23;
  display: flex;
  gap: 10px;
}
.chat-input-area input {
  flex-grow: 1;
  background-color: #182A1B;
  border: 1px solid #4A5D23;
  color: #F5F5F5;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}
.chat-input-area input:focus {
  border-color: #D4AF37;
}
.chat-input-area button {
  background-color: #D4AF37;
  color: #182A1B;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}
.chat-input-area button:hover {
  background-color: #FCE690;
}

.typing-indicator {
  display: none;
  align-self: flex-start;
  background-color: transparent;
  color: #D4AF37;
  font-size: 0.8rem;
  font-style: italic;
  padding: 0 10px;
}

@media (max-width: 480px) {
  #ai-chat-window {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 90px;
  }
}
/* Multi-page navigation */
.nav-link { text-decoration: none; display: inline-block; }
.page-section { display: block; }


/* Added responsive video section (scoped; existing styles remain unchanged) */
.military-video-section {
  margin-top: 4rem;
  padding: 2rem;
  color: #F5F5F5;
  background: #182A1B;
  border: 2px solid #4A5D23;
  border-top: 4px solid #D4AF37;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.military-video-heading {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.military-video-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #D4AF37;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.military-video-heading h2 {
  margin: 0 0 0.75rem;
  color: #F5F5F5;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
}
.military-video-heading p {
  margin: 0;
  color: #D0D6CE;
  font-size: 0.95rem;
  line-height: 1.7;
}
.military-video-frame {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 2px;
}
.military-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.military-video-source {
  max-width: 900px;
  margin: 0.85rem auto 0;
  color: #D0D6CE;
  font-size: 0.8rem;
  text-align: right;
}
.military-video-source a {
  color: #D4AF37;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.military-video-source a:hover {
  color: #FCE690;
}
@media (max-width: 640px) {
  .military-video-section {
    margin-top: 2.5rem;
    padding: 1.1rem;
  }
  .military-video-source {
    text-align: left;
  }
}
