/* === Base Styles === */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* === Header Section === */
header {
  background: #004466;
  color: white;
  padding: 1rem 5%;
}

/* === Flex Container === */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* === Logo === */
.logo {
  font-size: 1.7rem;
  font-weight: bold;
}

/* === Navigation === */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.menu li a:hover {
  opacity: 1;
  border-bottom: 2px solid #FABE04;
  padding-bottom: 3px;
}

/* === Search === */
.search-icon {
  cursor: pointer;
  font-size: 1.2rem;
}

#search-bar {
  display: none;
  padding: 0.4rem 0.6rem;
  margin-left: 0.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* === Main Content === */
main {
  flex: 1;
  padding: 2rem;
}

/* === Footer Base === */
footer {
  background: #004466;
  color: white;
  padding: 40px 20px;
  width: 100%;
  text-align: center;
}

/* Footer Headings */
footer h3 {
  margin-bottom: 10px;
  color: #fff;
}

/* Footer Divider Full Width */
footer hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 30px 0;
  width: calc(100% + 40px);
  margin-left: -20px;
}

/* === Footer Navigation Links === */
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 20px;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.footer-link:hover {
  border-color: #FABE04;
  opacity: 1;
}

/* Footer Copyright */
footer p {
  font-size: 13px;
  margin-top: 20px;
  color: #ccc;
}
/* === Article Content Styles === */
main h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #222;
}

main h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: #004466;
  border-left: 4px solid #FABE04;
  padding-left: 10px;
}

main p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Featured Image */
main img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}

/* CTA Block */
#cta-block {
  background: #fff8e1;
  border-left: 4px solid #FABE04;
  padding: 20px;
  margin: 40px 0;
  border-radius: 6px;
}

#cta-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #004466;
}

#cta-block p {
  margin-bottom: 12px;
}

#cta-block a {
  display: inline-block;
  background: #FABE04;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#cta-block a:hover {
  background: #f9d13b;
}

/* Related Links Section */
.related-links {
  margin-top: 40px;
}

.related-links h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #004466;
}

.related-links ul {
  list-style: disc;
  padding-left: 20px;
}

.related-links li {
  margin-bottom: 8px;
}

.related-links a {
  color: #0077cc;
  text-decoration: none;
}

.related-links a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  main {
    padding: 1.5rem 1rem;
  }

  main h1 {
    font-size: 1.5rem;
  }

  main h2 {
    font-size: 1.1rem;
  }

  #cta-block {
    padding: 16px;
  }

  #cta-block a {
    width: 100%;
    text-align: center;
  }
}
/* === Desktop Article Spacing Fixes === */
main {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

main h2 {
  display: block;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #004466;
  border-left: 4px solid #FABE04;
  padding-left: 10px;
}

main p {
  margin-top: 0.4rem;
  margin-bottom: 1.6rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === Featured Image Padding Boost === */
main img {
  display: block;
  margin: 30px auto;
  border-radius: 10px;
}

/* === Fix CTA Button Overflow on Mobile === */
#cta-block a {
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

/* === Align Publication Date Correctly on Desktop === */
@media (min-width: 769px) {
  p[style*="font-size: 0.9rem"] {
    display: block;
    text-align: left;
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 2rem;
  }
}

