 

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #000;
  color: #fff;
}

/* ===== Header ===== */
.site-header {
  padding-top: 12px;
}

.usda-head {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 4px;
}

.slogan {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 0 14px;
  letter-spacing: .6px;
}

/* ===== Horizontal Navigation (under header) ===== */
.topnav {
  background: #0b0b0b;
  border-top: 1px solid #151515;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
}

.menu li {
  display: inline-flex;
}

.menu a {
  display: inline-block;
  padding: 12px 6px;
  color: #ddd;
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
  letter-spacing: .3px;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 2px;
  background: #DAA520; /* Golden accent */
  opacity: 0;
  transform: scaleX(0);
  transition: transform .2s ease, opacity .2s ease;
}

.menu a:hover {
  color: #fff;
}

.menu a:hover::after,
.menu a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .menu {
    justify-content: center;
    width: 100%;
  }
  .menu a {
    padding: 12px 10px;
  }
}

/* ===== Slider ===== */
.box {
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* Slider frame */
.slider-frame {
  width: min(1170px, 95%);
  aspect-ratio: 16/9;
  border: 5px solid #DAA520; /* Goldenrod */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
}

/* Slider inner */
.image-slider {
  position: relative;
  height: 100%;
}

.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Prev / Next buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.prev { left: 15px; }
.next { right: 15px; }

/* ===== Content ===== */
main.content {
  width: min(900px, 92%);
  margin: 18px auto 24px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  flex: 1 0 auto; /* pushes footer down */
}

main.content h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* ===== Footer ===== */
footer {
  flex-shrink: 0;
  margin-top: 15pt;          /* space above bottom */
  background: #000;
  text-align: center;
  padding: 16px 0;
  color: #fff;
  border-top: 1px solid #222;
}

.footer-container {
  width: min(900px, 92%);
  margin: 0 auto;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}

.social-links a:hover {
  color: #1e90ff;
}
