/* Global Variables & Resets */
:root {
  /* Color Palette */
  --clr-bg-dark: #014040;
  --clr-primary: #3d6686;
  --clr-accent: #3366ff;
  --clr-accent-bg: #ccffff;
  --clr-border-light: #b1b1b1;
  --clr-border-dark: #666666;
  --clr-text: #222222;
  --clr-white: #ffffff;
  
  /* Typography */
  --font-main: "Times New Roman", Times, serif;
  --font-size-base: 12pt;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--clr-white);
  color: var(--clr-text);
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: 1.5;
}

/* Layout Container */
.wrapper {
  max-width: 822px;
  margin: 0 auto;
  /* Replicating the legacy layered frame effect cleanly 
  border: 5px solid var(--clr-bg-dark);
  outline: 2px ridge var(--clr-bg-dark);
  outline-offset: -7px;  */
}

/* Header Component */
.site-header {
  height: 71px;
  background-color: var(--clr-primary);
  position: relative;
  overflow: hidden;
}

.site-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.site-header h1 {
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 2;
  margin: 0;
  width: 795px;
  height: 71px;
  font-size: 1.7em;
  line-height: 71px;
  /* Keeping text accessible but hidden visually behind/with the image if needed */
  color: transparent; 
  text-shadow: none;
}

/* Main Content & Framing */
.matte-container {
  background-color: var(--clr-primary);
  padding: 20px;
 }
#frame_elem_1 {
  border: 5px solid #014040;
  margin: 0px;
  padding: 0px;
}
#frame_elem_2 {
  border: 2px ridge #014040;
  margin: 1px;
  padding: 0px;
}
#frame_elem_3 {
  border: 3px ridge #ffffff;
  margin: 0px;
  padding: 0px;
}

.main-content {
  background-color: var(--clr-white);
  border: 2px solid #000000;
  padding: 20px;
}

p {
  margin: 0 0 1.5em 0;
  text-align: justify;
}

/* Profile Split Columns */
.profile-section {
  display: flex;
  gap: 20px;
  margin-bottom: 2rem;
}

.profile-left {
  flex: 35%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

.profile-right {
  flex: 65%;
  text-align: center;
}

/* Photo Galleries & Layouts */
.img-border {
  border: 2px solid var(--clr-border-dark);
  max-width: 100%;
  height: auto;
}

.gallery-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2rem;
  text-align: center;
}

.center-group {
  text-align: center;
  margin-bottom: 2rem;
}

/* Pet Expo Layout */
.expo-section {
  display: flex;
  gap: 20px;
  margin-bottom: 2rem;
}

.expo-left {
  flex: 1;
  text-align: center;
}

.expo-right {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Media/Video Grid Section */
.media-grid {
  display: grid;
  grid-template-columns: auto 158px auto;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1.5rem;
}

/* Resource Card Sections */
.info-card {
  border: 3px double var(--clr-border-light);
  padding: 20px;
  width: 75%;
  margin: 2rem auto;
  text-align: center;
}

.info-card h2 {
  margin-top: 0;
}

.info-card hr {
  border: none;
  border-top: 2px solid var(--clr-border-light);
  margin-bottom: 1.5rem;
}

.article-title {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
}

/* Utility Classes */
.code-box {
  display: block;
  width: 96%;
  margin: 10px auto;
  padding: 8px;
  border: 3px solid var(--clr-accent);
  background-color: var(--clr-accent-bg);
  text-align: center;
  font-family: monospace;
}

.top-link {
  display: block;      /* Forces it to behave as a full-width block */
  width: 100%;         /* Ensures it spans the entire 822px of the wrapper */
  text-align: left;    /* Aligns the text inside to the far left edge */
  margin: 1rem 0;
  padding: 0;          /* Removes any padding that might push it inward */
}

ul {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}
.button-container {
  display: flex;
  gap: 350px; /* Adjust spacing between buttons here */
}