:root {
  --primary-bg: #111;
  --accent-color: #79b8ff;
  --text-color: #f5f5f5;
  --card-bg: #1a1a1a;
  --divider: #333;
}

/* === Global Styles === */

.section-divider {
  border: none;
  border-top: 1px solid var(--divider); /* or use #333 if you prefer */
  margin:  0px auto 80px auto;
  max-width: 700px; /* matches the text width */
}


.thank-you {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  background-color: #f9f9f9; /* soft neutral backdrop */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.thank-you h1 {
  font-size: 2.2em;
  color: #2c2c2c;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.thank-you p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.6;
}


.dropdown {
  position: relative;
  display: inline-block;
  flex: 1;
}

.dropbtn {
  display: block; /* Makes it behave like nav a */
  padding: 12px 0;
  width: 100%;
  background: linear-gradient(to bottom, #2e2e2e, #111);
  color: #f0f0f0;
  font-weight: bold;
  text-align: center;
  border-left: 1px solid #333;
  border-bottom: none;
  border-top: none;
  box-shadow: none;
}


.dropbtn:hover {
  background: linear-gradient(to bottom, #444, #222);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1a1a;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  z-index: 1;
}

.dropdown-content a {
  color: #f0f0f0;
  padding: 12px 16px;
  text-align: left;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #333;
}


.dropdown-content.show {
  display: block;
  position: absolute;
  bottom: 50px; /* Or adjust depending on your fixed nav height */
  left: 0;
  right: 0;
  z-index: 999;
}



body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  padding-bottom: 60px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.section {
  padding: 30px 20px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}


/* === Header === */
.site-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 10px;
  text-align: center;
}

.logo-large {
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

/* === Navigation === */
nav {
  width: 100%;
  background-color: #1a1a1a;
  border-top: 1px solid #222;
  overflow: visible;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1280px;
}

nav li {
  flex: 1;
}
  



nav a {
  display: block;
  padding: 12px 0;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(to bottom, #2e2e2e, #111);
  color: #f0f0f0;
  border-left: 1px solid #333;
  transition: background 0.3s ease;
}

/* Give dropbtn the same styling as nav a */
nav a,
.dropbtn {
  display: block;
  padding: 12px 0;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(to bottom, #2e2e2e, #111);
  color: #f0f0f0;
  width: 100%;
  border-left: 1px solid #333;
  border-top: none;
  border-bottom: none;
  border-right: none;
  box-shadow: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Remove left border from first item */
nav li:first-child a,
nav li:first-child .dropbtn {
  border-left: none;
}

/* Match hover style */
nav a:hover,
.dropbtn:hover {
  background: linear-gradient(to bottom, #444, #222);
}

nav li:first-child a {
  border-left: none;
}

nav li:first-child a,
nav li:first-child .dropbtn {
  border-left: none;
}

nav a:hover {
  background: linear-gradient(to bottom, #444, #222);
}

nav a:hover,
.dropbtn:hover {
  background: linear-gradient(to bottom, #444, #222);
}

/* === Typography === */
h2 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 6px;
}

h3 {
	text-align: center;
	padding-bottom: 0;
	margin-bottom: 0;
}

.centered-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* === About Section === */
#about {
  position: relative;
  padding-top: 20px;
  padding-bottom: 30px;
}

.about-bg {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 30px;
  background: url('images/opsbg.jpg') center center no-repeat;
  background-size: contain;
}

.about-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.about-bg > .container {
  position: relative;
  z-index: 1;
}

}

.about-content {
  padding: 20px;

}

.about-content p {
  font-size: 1em;
  line-height: 1.5;           /* Each line = 1.5em tall */
  margin-bottom: 10px;        /* Slightly tighter */
}

.about-content h2 {
  margin-top: 20px;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

/* Spacer */
.half-break {
  display: block;
  height: 0.35em;
  line-height: 0;
}


/* === Services === */
#services {
  background-color: #161616;
}

ul.services {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

ul.services li {
  text-align: center;
  padding: 6px 0;
  border-bottom: 1px solid #444;
}

/* === Contact === */
#contact p {
  text-align: center;
  margin-bottom: 10px;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 16px 20px;
  background: #000;
  font-size: 0.9em;
  color: #aaa;
}

footer a {
  color: var(--accent-color);
}

footer a:hover {
  text-decoration: underline;
}

/* === Team Section === */
.team-section {
  padding: 20px;
  background-color: var(--primary-bg);
  color: var(--text-color);
}

.team-header h1 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
}

.member-card {
  display: flex;
  gap: 16px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  align-items: center;
  transition: background 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.member-card:hover {
  background-color: #222;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.member-card img {
  max-width: 25%;
  object-fit: cover;
  border-radius: 7%;
  border: 5px solid var(--divider);
}

.member-bio h2 {
  font-size: 1.2em;
  margin: 0;
  padding: 0;
  border-bottom: none;
  text-align: left;
}

.member-bio p {
  margin-top: 0;
  font-size: 0.95em;
  line-height: 1.5;
  text-align: left;
}

.subtitle {
  display: block;
  margin: 0 0 16px 0;
  font-style: italic;
  font-size: 0.95em;
  color: #ccc;
  text-align: center;
}

/* === Forms === */

.form-header {
	text-align: center;
}

.request-form {
  max-width: 700px;
  margin: 30px auto;
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.request-form h2 {
  font-size: 1.6em;
  color: #fff;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 5px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: bold;
  color: #ccc;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 1em;
}

.form-group textarea {
  resize: vertical;
}

.form-group button {
  background-color: #444;
  color: #fff;
  padding: 12px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.form-group button:hover {
  background-color: #666;
}

.media-section {
  padding: 40px 0;
}

.media-embeds {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center; /* This centers them vertically */
}

/* Facebook Container */
.fb-container {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  width: 100%;
}

/* Facebook Embed Wrapper */
.facebook-embed {
  flex: 1 1 100%;
  max-width: 500px;
}

.facebook-embed iframe {
  width: 100%;
  height: 420px;
  border: none;
  overflow: hidden;
}

/* YouTube Embed Wrapper */
.youtube-embed {
  flex: 1 1 100%;
  max-width: 750px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hide/show logic */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/* Side-by-side layout for larger screens */
@media (min-width: 768px) {
  .facebook-embed,
  .youtube-embed {
    flex: 1 1 45%;
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0;
}

.social-icons img {
  width: 40px;
  height: 40px;

  transition: transform 0.2s ease, filter 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
  filter: brightness(1.5);
}

.announcement-container {
  text-align: center;
  padding: 40px 20px;
}

.announcement-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.announcement-image {
  max-width: 100%;
  height: auto;
  width: 80%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}


.announcement-text {
  max-width: 700px;
  text-align: left;
}

/* Add padding to separate the sections more comfortably */
section#next-investigation {
  padding: 40px 20px;
}

/* Optional: give it a light background or subtle frame */
section#next-investigation {
  background-color: rgba(255, 255, 255, 0.02); /* faint contrast box */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

/* Image scaling */
section#next-investigation img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* === Responsive === */
@media (max-width: 1280px) {
  .facebook-embed,
  .youtube-embed {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
  
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

  
@media (max-width: 768px) {
  .announcement-content {
    flex-direction: column;
    align-items: center;
  }

  .announcement-text {
    text-align: center;
  }
  
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1em;
  }
  
  .mobile-only a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .member-card img {
    width: 120px;
    margin-right: 15px;
  }

  .member-bio h2,
  .member-bio .subtitle {
    text-align: left;
  }

  nav ul {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    border-top: 1px solid #333;
    background-color: #1a1a1a;
    z-index: 10;
  }
}

nav a,
.dropbtn {
  border: none;
  padding: 12px 0;
  background: linear-gradient(to bottom, #2e2e2e, #111);
  font-weight: bold;
  color: #f0f0f0;
  width: 100%;
  text-align: center;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}


.dropbtn {
  border: none;
  padding: 12px 0;
  background: linear-gradient(to bottom, #2e2e2e, #111); /* Restore background */
  font-weight: bold;
  color: #f0f0f0;
  width: 100%;
  text-align: center;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}

.dropdown-content {
  left: auto;
  transform: translateX(-80%);
  right: 0;
  min-width: fit-content;
  max-width: calc(100vw - 32px);
  bottom: 100%; /* optional — moves it above the button */
  z-index: 1000;

}

  
  .team-header h1 {
    font-size: 1.5em;
  }
}
