@font-face {
  font-family: 'Bermont';
  src: url('/fonts/BermontFree.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background-color: #fff;
}

/* Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 50px;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f18a01;
  background-image: url('img/navigation-bar-texture.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 70px;
  min-height: 70px;
  box-sizing: border-box;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  height: 3px;
  background-color: #474e5a;
  width: calc(100% - 140px);
  z-index: -1;
  pointer-events: none;
}

.logo {
  position: relative;
  margin-right: 20px;
}

.logo img {
  height: 120px;
  position: absolute;
  top: -30px;
  left: 20px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: 140px;
  margin-top: 8px;
  flex: 1;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #474e5a;
  border-bottom: none;
}

.nav-links a.nav-merch {
  margin-left: auto;
  position: relative;
}

@media (min-width: 769px) {
  .nav-links a.nav-merch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: transparent;
    color: #f18a01;
    padding: 0;
    border-radius: 999px;
    line-height: 1.1;
    overflow: visible;
    transition: transform 0.24s ease;
  }

  .nav-links a.nav-merch .nav-merch-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
    color: #f18a01;
    padding: 10px 30px;
    border-radius: 999px;
    font-family: 'Bermont', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: box-shadow 0.24s ease, background 0.24s ease;
  }

  .nav-links a.nav-merch:hover .nav-merch-label,
  .nav-links a.nav-merch.active .nav-merch-label {
    background: linear-gradient(180deg, #ffffff 0%, #ededed 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .nav-links a.nav-merch::before,
  .nav-links a.nav-merch::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 86px;
    height: 86px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.24s ease;
  }

  .nav-links a.nav-merch::before {
    left: -34px;
    transform: translateY(-45%) rotate(-9deg);
    background-image: url('/img/nav-merch-jersey-left.png');
  }

  .nav-links a.nav-merch::after {
    right: -34px;
    transform: translateY(-45%) rotate(9deg);
    background-image: url('/img/nav-merch-jersey-right.png');
  }

  .nav-links a.nav-merch:hover::before,
  .nav-links a.nav-merch.active::before {
    transform: translateY(-52%) rotate(-9deg);
  }

  .nav-links a.nav-merch:hover::after,
  .nav-links a.nav-merch.active::after {
    transform: translateY(-52%) rotate(9deg);
  }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 5px 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  color: #474e5a;
  outline: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #1f2530;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a,
.nav-dropdown-item-disabled {
  color: #ffffff;
  padding: 10px 14px;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background-color: rgba(241, 138, 1, 0.18);
  color: #f18a01;
}

.nav-dropdown-item-disabled {
  color: rgba(255, 255, 255, 0.55);
  cursor: default;
}

.hamburger-menu {
  display: none;
}

.menu-keeper {
  display: none;
}

/* Global News Ticker (blog pages) */
.news-ticker {
  position: relative;
  background: transparent;
  color: #fff;
  height: 38px;
  overflow: hidden;
  clip-path: inset(0 0 0 140px);
}

.news-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  left: 140px;
  right: 0;
  height: 100%;
  background-color: #474e5a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 1;
  pointer-events: none;
}

.news-ticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 140px;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, #474e5a 65%, rgba(71, 78, 90, 0));
  z-index: 2;
  pointer-events: none;
}

.news-ticker-track {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 64px;
  width: max-content;
  padding-left: 0;
  animation: ticker-scroll 34s linear infinite;
  will-change: transform;
}

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0;
  height: 38px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.news-ticker-item::before {
  content: "Club News";
  color: #f18a01;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.8px;
  margin-right: 10px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   BLOG HERO IMAGE
   ============================================ */

.blog-hero {
  width: 100%;
  max-width: 900px;
  margin: 100px auto 0;
  padding: 0 20px;
}

.blog-hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* ============================================
   BLOG ARTICLE CONTENT
   ============================================ */

.blog-article {
  padding: 40px 20px 60px;
}

.blog-article-container {
  max-width: 720px;
  margin: 0 auto;
}

/* Meta: Category pill + Date */
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-article-category {
  display: inline-block;
  background-color: #f18a01;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 4px;
}

.blog-article-date {
  font-size: 0.875rem;
  color: #999;
  font-weight: 400;
}

/* Title */
.blog-article-title {
  font-family: 'Bermont', sans-serif;
  font-size: 3.1rem;
  font-weight: 400;
  color: #474e5a;
  line-height: 1.08;
  margin-bottom: 40px;
}

/* Body content */
.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
}

.blog-article-body p {
  margin-bottom: 24px;
}

.blog-article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 40px;
  margin-bottom: 16px;
}

.blog-article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-article-body strong {
  font-weight: 700;
  color: #1a1a1a;
}

.blog-article-body blockquote {
  border-left: 4px solid #f18a01;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.blog-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  display: block;
}

.blog-article-body ul,
.blog-article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-article-body li {
  margin-bottom: 8px;
}

.blog-article-body a {
  color: #f18a01;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-article-body a:hover {
  color: #d94400;
  text-decoration: underline;
}

/* ============================================
   RELATED POSTS SECTION
   ============================================ */

.related-posts {
  background-color: #f9f9f9;
  padding: 70px 20px;
}

.related-posts-container {
  max-width: 1100px;
  margin: 0 auto;
}

.related-posts-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Related post card */
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.04);
}

.related-card-body {
  padding: 20px;
}

.related-card-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.related-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f18a01;
  line-height: 1;
}

.related-card-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #b8bcc4;
  line-height: 1;
}

.related-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.related-card-excerpt {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
  background-color: #474E5A;
  padding: 24px 20px;
}

.newsletter-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(320px, 440px);
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.newsletter-copy {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.newsletter-subtitle {
  font-size: 0.95rem;
  color: #c0c4ca;
  line-height: 1.28;
  margin: 0;
  max-width: 600px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 440px;
  margin: 0 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.newsletter-signup {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #333;
  outline: none;
  background: #fff;
}

.newsletter-form input::placeholder {
  color: #aaa;
}

.newsletter-btn {
  padding: 13px 24px;
  border: none;
  background-color: #f18a01;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background-color: #d97a00;
}

.newsletter-disclaimer {
  font-size: 0.8rem;
  color: #8a8f97;
  margin: 8px 0 0;
  display: none;
}

/* ============================================
   FOOTER SECTION
   ============================================ */

.sponsor-section {
  width: 100%;
  background-color: #474E5A;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sponsor-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/revolutionary-war-burning.jpg') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.sponsor-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.sponsor-logo {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-footer {
  position: relative;
  background-color: #f18a01;
  background-image: url('img/navigation-bar-texture.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 30px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  overflow: hidden;
}

.footer-links-container {
  display: grid;
  grid-template-columns: 320px repeat(4, minmax(140px, 1fr)) 148px;
  align-items: flex-start;
  max-width: 1320px;
  margin: 0 auto;
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 0;
  margin-top: 0;
  flex: 0 0 320px;
  min-width: 320px;
}

.footer-logo img {
  height: 100px;
  width: auto;
}

.footer-bottom {
  margin-top: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  min-width: 190px;
}

.footer-bottom p {
  margin: 0 0 4px;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  margin: 0;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-column {
  min-width: 140px;
  text-align: left;
}

.footer-column h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-column ul li span {
  color: #ffffff;
  font-size: 0.875rem;
}

.footer-column ul li a:hover {
  color: #fff;
}

.footer-social-column {
  min-width: 148px;
  flex: 0 0 148px;
}

.footer-social-column h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-links a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-social-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
}

.footer-social-links img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.footer-gif {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
}

.footer-gif img {
  max-width: 100px;
  height: auto;
  display: block;
  border: none;
  box-shadow: none;
}

/* ============================================
   RESPONSIVE - Blog Post Pages
   ============================================ */

@media screen and (max-width: 768px) {
  .blog-hero {
    margin-top: 80px;
    padding: 0 16px;
  }

  .blog-hero-image {
    border-radius: 12px;
    max-height: 300px;
  }

  .blog-article-title {
    font-size: 2.2rem;
  }

  .blog-article-body {
    font-size: 1rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sponsor-section {
    padding: 22px 14px 18px;
  }

  .sponsor-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .sponsor-container > * {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sponsor-logo {
    max-width: 100%;
    height: 52px;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 8px;
  }

  .newsletter-form input {
    border-radius: 8px 8px 0 0;
  }

  .newsletter-btn {
    border-radius: 0 0 8px 8px;
  }

  .footer-links-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .footer-logo {
    margin-left: 0;
    min-width: 0;
  }

  .footer-social-column {
    min-width: 0;
  }
}
