/* =========================================================
  (styles-main.css)
   ========================================================= */

/* ------------------------------
   Root variables
   ------------------------------ */
:root {
  /* Fonts */
  --font-sans: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

  /* Text colors */
  --text-default: #222222;
  --text-muted: #555555;
  --text-heading: #1f2a3a;

  /* Links */
  --link-color: #234f7f;
  --link-hover: #C2A55F;
  --link-visited: #3b587a;
  --link-top-bar: #ffffff;

  /* Backgrounds */
  --page-bg: #d4dfeb;
  /* page background around the site */
  --wrapper-bg: #ffffff;
  /* site content background */
  --top-bar: #222e3c;
  /* nav bar */
  --top-bar-border-bottom: #1a222f;
  /* optional card/section background */
   --card-bg: #f6f2e8;
  
   /* oldcard --card-bg: #fdf9f2; */
   
  /* footer/section background */
  --footer-bg: #fff;

  --accent: #dbcaa3;

  /* Borders / lines */
  --border-color: #d0c0a3;
  --divider-color: #ccbba0;
}


/* ------------------------------
   Basic reset / base styles
   ------------------------------ */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--text-default);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
}

/* Wrapper that holds the whole page */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--wrapper-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* ------------------------------
   Typography
   ------------------------------ */
h1,
h2,
h3 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  margin: 1.25rem 0 0.75rem;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.4rem;
  text-transform: none;
}

h3 {
  font-size: 1.1rem;
  text-transform: none;
}

h4 {
font: normal 22px 'Jura', Verdana, Helvetica, sans-serif;
color: #404040;
margin: .3em 0;
}

h5 {
font: normal 20px 'Raleway', Verdana, Helvetica, sans-serif;
color: #404040;
margin: .3em 0;
}

h6 {
font: normal 18px 'Raleway',Verdana, Helvetica, sans-serif;
color: #302f59;
margin: .3em 0;
}

p {
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0 0 0.75rem 1.5rem;
  padding: 0;
}

li {
  margin-bottom: 0.25rem;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-border {
	margin: 5px 10px 0 0; 
	border: 1px #777 solid;
}

.img-catalog {border: 1px #d0d0d0 solid; padding: 1%; margin: 1% 2%; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);}
.img-frame {background: #ffffff; border: 1px #aaa solid; padding: 3px; margin: 4px 1px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);}
.img-curved {border-radius: 10px; margin: 4px 2px; border: 1px #444 solid; box-shadow: 0 10px 15px -9px rgba(0, 0, 0, 0.5);}
.img-gallery {border: 1px #d0d0d0 solid; padding: 1%; margin: 1% 2%;}
.img-shadow {margin: 5px 0; box-shadow: 0 10px 15px -9px rgba(0, 0, 0, 0.5);}

.img-right {margin: 5px 0 0 10px; float: right;}
.img-right-shadow {margin: 5px 0 0 10px; float: right; box-shadow: 0 10px 15px -9px rgba(0, 0, 0, 0.5);}

.img-left {margin: 5px 10px 0 0; float: left;}
.img-left-shadow {margin: 5px 10px 0 0; float: left; box-shadow: 0 10px 15px -9px rgba(0, 0, 0, 0.5);}

/* Tables (for lists, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

thead th {
  background-color: #f0f0f0;
}

/* ------------------------------
   Layout: header, nav, banner
   ------------------------------ */


header {
  display: block;
}

.banner {
  text-align: center;
  background: #ffffff;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--link-color);
}

.banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  width: 100%;
}

/* Top header wrapper */
.ky-header {
  font-family: var(--font-sans, "Segoe UI", Tahoma, sans-serif);
}

/* Dark strip: title + USGenWeb badge */
.ky-top-bar {
  background: #34495e;
  /* dark blue-gray */
  color: #ffffff;
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.ky-top-bar a {
  color: white;
  text-decoration: none;
}

.ky-top-bar a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.ky-top-em {
  font-style: italic;
  font-weight: 600;
}

.ky-top-left {
  white-space: nowrap;
}

.ky-top-right {
  text-align: right;
}

.usgenweb-badge {
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
}

.usgenweb-name {
  font-weight: 600;
}

/* Light nav + search band */
.ky-nav-bar {
  background: #ececec;
  /* light tan */
  border-bottom: 1px solid #d2c5b0;
  padding: 0.4rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

/* Nav links */
.ky-nav-links a {
  margin-right: 0.75rem;
  font-size: 1.0rem;
  text-decoration: none;
  color: #234f7f;
  /* your link blue */
}

.ky-nav-links a:hover {
  text-decoration: underline;
}

/* Search form (Footsteps-style) */
.ky-nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ky-nav-search input[type="text"] {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #c3b090;
  border-radius: 4px;
  width: 180px;
}

.ky-nav-search button {
  padding: 0.32rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #234f7f;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.ky-nav-search button:hover {
  opacity: 0.9;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .ky-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .ky-nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ky-nav-search input[type="text"] {
    width: 160px;
  }
}


/* ------------------------------
   Main content area
   ------------------------------ */

main {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
}

/* Standard article content */
article {
  max-width: 1100px;
  margin: 0 auto;
}

/* If you still use article.right on some pages, style it as a side card */
article.right {
  max-width: 320px;
  margin: 0 0 1.5rem auto;
  padding: 1rem 1.25rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.about {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.side-by-side {
  display: flex;
  align-items: flex-start;
  gap: 7.5rem;
  flex-wrap: wrap;          /* allows wrapping if needed */
}

.side-by-side img {
  width: 100%;
  max-width: 400px;         /* desktop size */
  height: auto;
  flex-shrink: 1;           /* IMPORTANT */
}

.side-by-side ul {
  min-width: 0;             /* IMPORTANT for flex items */
}
.side-by-side p {
  min-width: 0;             /* IMPORTANT for flex items */
}

@media (max-width: 768px) {
  .side-by-side {
    flex-direction: column;
  }

  .side-by-side img {
    max-width: 100%;        /* fills mobile width */
  }
}

/* ------------------------------
   Responsive adjustments
   ------------------------------ */

@media (max-width: 768px) {
  .top-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-list {
    margin-top: 0.35rem;
  }

  /* Dropdowns align better on small screens */
  .dropdown .dropdown-content {
    left: 0;
    right: auto;
  }

  main {
    padding: 0.75rem 1rem 1.5rem;
  }

  article {
    max-width: 100%;
  }

  article.right {
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}

/* Inline menu search */

.menu-search {
  display: flex;
  align-items: center;
}

.menu-search-form {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.menu-search-input {
  padding: 4px 6px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 150px;
}

.menu-search-button {
  padding: 4px 10px;
  font-size: 0.85rem;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.menu-search-button:hover {
  background: #f0f0f0;
}

table.memlist {background: rgba(0,0,0,.0);}
table.memlist tr:nth-child(odd){background: rgba(0,0,0,.05);}	
/* ------------------------------
   FOOTER — GLOBAL BASE STYLES
   ------------------------------ */

.kyg-footer {
  margin-top: 5px;
  background: var(--footer-bg);
  padding: 1.5rem 1rem;
  border-top: 3px solid var(--top-bar-border-bottom);
  font-family: var(--font-sans);
  color: var(--text-default);
  text-align: center;
}

/* keep text alignment/spacing on the inner, not the full-width band */
.kyg-footer-inner {
  max-width: 1100px;          /* match your main wrapper width */
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.kyg-footer.deluxe .kyg-footer-inner {
  text-align: left;
}

.kyg-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ------------------------------
   LINKS
   ------------------------------ */

.footer-links a {
  color: var(--text-default);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.footer-links a:visited {
  color: var(--text-default);
  text-decoration: none;
}

/* ------------------------------
   LOGO ROW (Simple + Deluxe)
   ------------------------------ */

.footer-logos {
  margin: 0.8rem 0 1rem;
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
}

.footer-logos img {
  display: block;
  max-height: 55px;
  height: auto;
}

/* copyright strip gets its own subtle background */

.footer-bottom {
  background: rgba(0, 0, 0, 0.03);   /* or swap to a hex you like */
  border-top: 1px solid var(--footer-bg);
  padding: 0.75rem 0;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.9;
}

.footer-bottom .footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ------------------------------
   FOOTER NOTES / DISCLAIMER
   ------------------------------ */

.footer-note,
.endorsement {
  font-size: 0.75rem;
  margin-top: 0.6rem;
  color: var(--text-default);
  opacity: 0.85;
}

/* ------------------------------
   DELUXE FOOTER LAYOUT
   ------------------------------ */

.kyg-footer.deluxe {
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-default);
  letter-spacing: 0.04em;
}

.footer-col p,
.footer-col ul {
  font-size: 0.85rem;
}

.footer-col ul {
  padding-left: 1rem;
  margin: 0.6rem 0;
}

/* ------------------------------
   DELUXE FOOTER — BOTTOM BAR
   ------------------------------ */

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

.footer-bottom .footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.75;
}




/* ===============================
   KY Schools – Collection Index
   =============================== */

/* Panel around the county list */
.kys-collection-panel {
  background: var(--card-bg);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  font-family: var(--font-sans);
}

/* Multi-column county list */
.kys-county-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 1rem 0 0;

  /* force 3 columns, with prefixes for safety */
  -webkit-column-count: 5;
  -moz-column-count: 5;
  column-count: 5;

  -webkit-column-gap: 2rem;
  -moz-column-gap: 2rem;
  column-gap: 2rem;

  -webkit-column-width: 220px;
  -moz-column-width: 220px;
  column-width: 220px;
}

.kys-county-list li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  margin-bottom: 0.15rem;
}

/* Links */
.kys-collection-panel a {
  color: var(--link-color); 
  text-decoration: none;
}

.kys-collection-panel a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.kys-collection-panel a:visited {
  color: var(--link-visited);
  text-decoration: none;  
}
