﻿/* ============================================================
   LAYOUT
   ============================================================ */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #e8edf4;
}
.site-wrapper {
  max-width: 961px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #18417e;
  padding: 0;
}
.banner-img {
  width: 100%;
  max-width: 961px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.site-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
.site-footer {
  padding: 1rem 5%;
  text-align: center;
  background-color: #18417e;
  color: #fff;
}
.site-footer .copyright {
  color: #dce6f5;
}
.site-footer hr {
  border-color: #3a6aae;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  width: 100%;
  background-color: #18417e;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #18417e;
}
.nav-list li {
  display: flex;
}
.nav-list a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  transition: background-color 0.2s ease;
}
.nav-list a:hover {
  background-color: #2a5faa;
  text-decoration: none;
}
.nav-list a.active {
  background-color: #0d2d5e;
  border-bottom: 3px solid #fff;
}

/* ============================================================
   WINNERS PAGE
   ============================================================ */
h1 {
  color: #000080;
  text-align: center;
  margin: 10px 0;
  font-size: 2em;
}
.year-section {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.year-divider {
  background-color: #00337F;
  height: 10px;
}
.year-header {
  background-color: #C6CDE5;
  padding: 15px;
  text-align: center;
  font-family: 'Karla', sans-serif;
  font-weight: bold;
}
.year-header a {
  color: #000080;
  text-decoration: none;
  margin-left: 10px;
}
.year-header a:hover {
  text-decoration: underline;
}
.banner-image {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
}
.banner-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 20px;
  background-color: #fff;
}
.links-grid a {
  display: block;
  padding: 12px;
  text-align: center;
  color: #CC0000;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 14px;
}
.links-grid a:hover {
  background-color: #C6CDE5;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   CATPAGES
   ============================================================ */
.best {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: x-large;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.4rem;
}
.catname {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: large;
  font-weight: normal;
  text-align: center;
  margin-bottom: 0.4rem;
  }
.submenu {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size:medium;
  font-weight: normal;
  text-align: center;
  line-height: 150%;
  margin-bottom: 0.4rem;
}
.description {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: small;
  font-weight: normal;
  text-align: center;
  line-height: 150%;
  margin-bottom: 0.4rem;
}
.sponsorship {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  font-style: italic;
  color: purple;
  text-align: center;
  margin-bottom: 0.4rem;
}
.sponsorship a {
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  font-style: italic;
  color: purple;
}
.photo {
  font-family: Arial, Helvetica, sans-serif;
  font-size: x-small;
  font-weight: normal;
  text-align: center;
}
.goldheading {
  font-family: "Times New Roman", Times, serif;
  font-size: xx-large;
  text-align: center;
  color: #808000;
  margin: 10px 0;
}
.container-row {
  width: 100%;
  padding: 12px 15px;
  margin: 0 auto;
  box-sizing: border-box;
}
.cat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cat-col {
  flex: 1 1 280px;
  text-align: center;
}
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 768px and below */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5em;
  }

  /* Winners index page */
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cat entry pages: stack photo and text vertically */
  .cat-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cat-col {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Reduce container padding on smaller screens */
  .container-row {
    padding: 8px 10px;
  }
  .site-content {
    padding: 0.5rem 0.75rem;
  }

  /* Slightly smaller text on nav to fit more items */
  .nav-list a {
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
  }

  /* Reduce heading font sizes */
  .best {
    font-size: large;
  }
  .catname {
    font-size: 1rem;
  }
  .sponsorship {
    font-size: 16px;
  }
  .goldheading {
    font-size:large;
  }
}

/* Phone: 480px and below */
@media (max-width: 480px) {
  /* Winners index page */
  .links-grid {
    grid-template-columns: 1fr;
  }

  /* Remove body background on small screens so the page fills edge to edge */
  body {
    background-color: #fff;
  }
  .site-wrapper {
    box-shadow: none;
  }

  /* Tighter padding */
  .container-row {
    padding: 6px 8px;
  }
  .site-content {
    padding: 0.4rem 0.5rem;
  }

  /* Nav: let items wrap naturally, slightly smaller */
  .nav-list a {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }

  /* Images: constrain height so portrait photos don't dominate */
  .img-fluid {
    max-height: 400px;
    object-fit: contain;
  }

  /* Breed grid: 2 columns on phone instead of auto-fill */
  .breed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  /* Slightly smaller breed card text */
  .breed-cat-label {
    font-size: 8px;
  }
  .breed-cat-name {
    font-size: 10px;
  }
  .breed-cat-owner {
    font-size: 9px;
  }
}
