/* ==========================================================================
   EmpiriLaw - style.css
   ========================================================================== */

body {
  background-color: #0f2b4d;
  color: #f4f4f4;
  margin: 0;
  font-family: 'Lato', sans-serif;
}

/* -------------------------- Navigation Bar -------------------------- */

nav {
  background-color: #0d223b;
  padding: 1rem;
  text-align: center;
}

/* Logo on pages other than index */
nav img {
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

/* All nav links and the Articles dropdown button */
nav a,
.dropbtn {
  color: #d4af37;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;   /* Ensure Articles font-size matches other links */
  background: none;
  border: none;
  cursor: pointer;
}

/* Hover state for nav items */
nav a:hover,
.dropbtn:hover {
  text-decoration: underline;
}

/* Dropdown container */
.dropdown {
  display: inline-block;
  position: relative;
}

/* Hidden by default; appears when .dropdown is hovered */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0d223b;
  min-width: 160px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.2);
  z-index: 1;
  text-align: left;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: #d4af37;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}

/* Hover state for dropdown links */
.dropdown-content a:hover {
  background-color: #142c4c;
}

/* Show dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/* ----------------------------- Hero Section ----------------------------- */

.hero {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #0d223b;
  border-bottom: 2px solid #d4af37;
}

/* Hero titles */
.hero h1 {
  font-size: 3rem;
  margin: 0;
}
.hero h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  font-weight: normal;
}

/* Hero logo (index.html) */
.hero img {
  max-width: 200px;
  margin-top: 1rem;
}


/* ---------------------------- Content Sections ---------------------------- */

section {
  max-width: 900px;
  margin: 2rem auto;
  text-align: left;
  padding: 0 1rem;
}

/* Headings */
h1, h2, h3 {
  color: #d4af37;
  font-family: 'Merriweather', serif;
}

/* Unordered lists */
ul {
  line-height: 1.8;
  padding-left: 1.2rem;
}

/* Anchor links */
a {
  color: #d4af37;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ---------------------------- Profile Image ---------------------------- */

/* “Who We Are” headshot */
img.profile {
  max-width: 240px;
  float: right;
  margin: 1rem 0 1rem 1rem;
  border-radius: 6px;
}


/* ------------------------- Middle “Impact” Banner ------------------------ */

/* Show full image without cropping, maintain aspect ratio */
img.mid {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* On screens 600px or narrower, same behavior */
@media (max-width: 600px) {
  img.mid {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
