/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: 'Cinzel', serif;
  background: url('images/vintage-newspaper-texture.jpg') repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #5a2a00;
  line-height: 1.6;
}

/* Navigation Bar */
#topnav {
  background-color: #ffffff;
  border-top: 2px solid #a14400;
  border-bottom: 2px solid #a14400;
  padding: 12px 0;
  text-align: center;
}

#topnav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

#topnav li {
  display: inline;
}

#topnav a {
  text-decoration: none;
  color: #a14400;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 22px;
  border: 2px solid #a14400;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#topnav a:hover, #topnav .active {
  background-color: #a14400;
  color: #ffffff;
  transform: scale(1.05);
}

/* Page Header */
.news-header {
  text-align: center;
  padding: 50px 20px 20px 20px;
  background-color: #f0ede5;
  border-bottom: 2px solid #a14400;
}

.news-header h1 {
  font-size: 36px;
  color: #a14400;
  margin-bottom: 10px;
}

.news-header .subheading {
  font-size: 18px;
  color: #555;
  margin-top: 5px;
}

/* News Wrapper */
.news-wrapper {
  padding: 50px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Each News Frame */
.news-frame {
  background-color: #ffffff;
  border: 2px solid #c7b39c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}

/* Iframe Styling */
.news-frame iframe {
  width: 100%;
  height: 900px;
  min-height: 900px;
  border: none;
}

/* News Note */
.note {
  text-align: center;
  font-size: 16px;
  margin-top: -20px;
  margin-bottom: 60px;
}

.note a {
  color: #a14400;
  font-weight: bold;
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #222;
  color: #eee;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 30px;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #topnav ul {
    gap: 10px;
  }

  #topnav a {
    padding: 8px 14px;
    font-size: 16px;
  }

  .news-header h1 {
    font-size: 28px;
  }

  .news-wrapper {
    padding: 30px 10px;
  }

  .news-frame iframe {
    height: 600px;
    min-height: 600px;
  }
}
