/* =========================
   GLOBAL RESET & BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --gallery-hero-width: 800px;   /* ← HERO IMAGE SIZE */
  --gallery-thumb-width: 140px;  /* ← THUMBNAIL SIZE */
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  font-family: Arial, sans-serif;
  color: #fff;
  background: #1a3d6c;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   BREED CARDS
========================= */

.breed-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.breed-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
  padding-top: 40px;
}

.breed-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.breed-card img {
  width: 40%;
  height: auto;
  object-fit: cover;
}

.breeds p {
  text-align: center;
  font-size:18px;
}

.breeds h2 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #FFA500;
  background-color: #1a3d6c;   /* dark blue banner */
  padding: 15px 0;             /* vertical padding */
  margin: 0 auto 30px auto;    /* center horizontally with bottom spacing */
  width: 100%;                  /* leave some space on sides for rounded corners */
  border-radius: 12px;         /* rounded corners */
  box-sizing: border-box;      /* ensures padding doesn't break width */
}

.breed-card h3 {
  margin: 10px 0 10px 0;
  font-size: 25px;
  color: #1a3d6c; /* dark blue accent */
  font-weight: bold;
}

.breed-card p {
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* =========================
   BUTTON
========================= */

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #FFA500; /* darkish blue */
  color: #1a3d6c;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Hover effect - slightly brighter blue */
.btn:hover {
  background-color: #315a99; /* brighter blue */
  color:#FFA500;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* Outline variant - dark blue border */
.btn-outline {
  background-color: transparent;
  color: #1a3d6c;
  border: 2px solid #1a3d6c;
}

.btn-outline:hover {
  background-color: #1a3d6c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 260px;
  background: #111;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;    
  position: fixed;    
  top: 0;
  left: 0;
}

.sidebar h1 {
  font-size: 22px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  position: relative;
  margin: 8px 0;
}

.nav-links > li > a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links > li > a:hover {
  background: #222;
}

.hero-buttons {
  display: flex;
  justify-content: center; /* center buttons horizontally */
  gap: 15px;               /* space between buttons */
  margin-top: 20px;
}

.hero-buttons .btn {
  display: inline-block;
  width: 180px;            /* same width for all buttons */
  text-align: center;      /* centers text inside button */
  padding: 12px 0;         /* vertical padding */
  font-size: 16px;
}

/* =========================
   DROPDOWNS
========================= */
.dropdown-content {
  display: none;
  min-width: 220px;
  background: #333;
  list-style: none;
  padding: 8px;
  z-index: 1000;
  border-radius: 4px;
}

.dropdown-content li a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #ddd;
  border-radius: 4px;
}

.dropdown-content li a:hover {
  background: #444;
}

.dropdown:hover > .dropdown-content {
  display: block;
}

/* =========================
   DROPDOWN POSITIONING
/* =========================
/* -------------------------
   FIRST-LEVEL DROPDOWN
------------------------- */
.nav-links > .dropdown {
  position: relative; /* Important: sets positioning context for second-level fly-outs */
}

.nav-links > .dropdown:hover > .dropdown-content {
  display: block;     /* show first-level dropdown */
  position: absolute; /* now first-level dropdown drops down */
  top: 100%;          /* immediately below parent */
  left: 0;
  margin: 0;
  z-index: 1000;
}

/* -------------------------
   SECOND-LEVEL DROPDOWNS
------------------------- */
.nav-links > .dropdown > .dropdown-content > .dropdown {
  position: relative; /* positioning context for its own fly-out */
}

.nav-links > .dropdown > .dropdown-content > .dropdown:hover > .dropdown-content {
  display: block;      /* show only hovered submenu */
  position: absolute;  /* fly out right */
  top: 0;
  left: 100%;
  white-space: nowrap;
  z-index: 1000;
}



/* =========================
   MAIN CONTENT
========================= */
.main {
  margin-left: 260px;
  flex: 1;
  overflow-y: auto;
  padding: 30px 20px;
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

.content-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

/* =========================
   HERO (NON-GALLERY PAGES)
========================= */
.hero {
  max-width: 400px;
  margin: 0 auto 30px;
  border-radius: 8px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   FORMS
========================= */
form {
  margin-top: 20px;
}

#contact-form input,
#contact-form textarea {
  font-family: 'Arial', sans-serif;  /* change to any font you like */
  font-size: 16px;                   /* optional, adjust text size */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#contact-form textarea {
  width: 100%;        /* full width of the form */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;   /* allows users to manually adjust height */
  height: 200px;      /* default taller height */
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form textarea {
  resize: vertical;
}

form button,
form input[type="submit"] {
  background: #FFA500;       /* orange background */
  color: #1a3d6;               /* text color remains white for contrast */
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover,
form input[type="submit"]:hover {
  background: #e69500;       /* slightly darker orange on hover */
}

/* =========================
   GALLERY (SCALED, NO CROPPING)
========================= */
#gallery-container {
  width: fit-content;
  margin: 40px 0 0 0;       /* no centering */
  float: right;     /* pushes container to right side of screen */
}


#gallery-container .hero-wrapper {
  width: 100%;       /* fill container width */
  margin: 0;         /* align to top-right of container */
}


#gallery-container .hero-wrapper .hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* THUMBNAILS */
#gallery-container .thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--gallery-thumb-width), 1fr));
  gap: 12px;
  width: 100%;   /* fill the container width (hero width) */
  margin: 10px 0 0 0;  /* spacing under hero */
}




#gallery-container .thumbs img.thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#gallery-container .thumbs img.thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


/* Compact fixed sidebar variables */
:root {
  --sidebar-width: 100px; /* adjust as needed */
}

/* Sidebar stays fixed and narrow */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
  }

  .main {
    margin-left: var(--sidebar-width);
  }

  /* First-level dropdown: fly out to the right of the compact sidebar */
  .nav-links > .dropdown {
    position: relative;
  }

  .nav-links > .dropdown > .dropdown-content {
    display: none;
    position: absolute;
    top: 0;
    left: calc(var(--sidebar-width));
    min-width: 220px;
    background: #222;
    border-radius: 6px;
    padding: 0px;
    z-index: 1100;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    white-space: nowrap;
  }

  /* Second-level flyouts appear to the right of the first-level panel */
  .nav-links > .dropdown > .dropdown-content > .dropdown {
    position: relative;
  }

  .nav-links > .dropdown > .dropdown-content > .dropdown > .dropdown-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    z-index: 1200;
    background: #222;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }

