/* css/style.css */

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

/* Body/base typography & background */
body {
  font-family: 'Open Sans', Verdana, Geneva, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f8f8;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
}

/* Header – stack banner and nav vertically */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

/* Banner image */
.site-banner {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}

/* Navigation bar styling */
.site-nav {
  width: 100%;
  background: #336699; /* muted sky-blue */
  padding: 0.30rem 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-family: Verdana, Geneva, sans-serif;
}

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

/* Full-width white wrapper */
.site-content {
  width: 100%;
  background: #fff;
  padding-bottom: 2rem;
}

/* Centered column */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Main sections */
main {
  padding: 0;
  background: none;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #224466; /* deeper blue */
}

.hero p {
  font-size: 1.2rem;
  color: #885533; /* warm cinnamon-brown */
}

/* Section headings */
h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #224466;
}

/* Footer */
.site-footer {
  background: #f1f1f1;    /* light gray */
  color: #333;            /* dark text for readability */
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid #ccc;
}

.site-footer a {
  color: #336699;         /* keep your link blue */
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}




/* Responsive nav for small screens */
@media (max-width: 960px) {
  .site-nav ul {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .site-nav a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    text-align: center;
  }
}

/* Desktop: constrain header/content/footer into one outlined box */
@media (min-width: 961px) {
  .site-header {
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-bottom: none;
  }
  .site-content {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
  }
  .site-footer {
    max-width: 960px;
    margin: 0 auto;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
  }
}

/* Bullet list spacing inside page sections */
.page-section ul {
  margin-left: 1.5rem;
}

.page-section ul li p,
.highlights ul li p {
  margin: 0.2rem 0 1rem 0;
  font-size: 0.9em;
  color: #555;
}

/* Link behavior */
.site-content a {
  color: #336699;
  text-decoration: none;
}

.site-content a:hover {
  text-decoration: underline;
}

/* Make every heading use the deeper blue */
h1, h2, h3, h4, h5, h6 {
  color: #224466;
}

/* Paragraph spacing inside article */
article p {
  margin-bottom: 1rem;
}

/* Add space above headers in articles */
article h2,
article h3,
article h4,
article h5,
article h6 {
  margin-top: 2rem;
}

/* Article list formatting */
article ul {
  margin-left: 2rem;
}

/* Center all H1s site-wide */
h1 {
  text-align: center;
}

/* Center the article title and metadata (if used) */
.issue h1,
.issue .issue-meta {
  text-align: center;
}

/* Add spacing before article content */
.issue article {
  margin-top: 2rem;
}

/* Author box layout */
.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0.5em 0 1em;
  flex-wrap: wrap;
  text-align: center;
}

.author-photo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block !important;
}

.author-info {
  font-size: 0.95em;
  line-height: 1.4;
  text-align: center;
}

.author-link {
  text-decoration: none;
  color: #224466;
  font-style: normal;
}

.author-link:hover {
  text-decoration: underline;
}

.pub-date {
  color: #555;
}

/* Navigation block under articles */
.issue-nav {
  text-align: center;
  margin-top: 2rem;
}

.issue-nav a {
  display: block;
  margin: 0.5rem 0;
  text-decoration: none;
  color: #224466;
}

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

/* Responsive image wrapper */
.centered-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2em 0;
}

.centered-image img {
  max-width: 100%;
  height: auto;
}

.centered-image figcaption {
  font-size: 0.8em;
  color: #555;
  margin-top: 0.5em;
  max-width: 90%;
}

/* Table responsiveness */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem auto;
  width: fit-content;
}

table {
  border-collapse: collapse;
  font-family: sans-serif;
  width: 100%;
}

table th,
table td {
  border: 1px solid #000;
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Remove bullets & center only on “index-list” sections */
.page-section.index-list > ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: center;
}

.page-section.index-list > ul > li {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.page-section.index-list > ul > li > a {
  color: #336699;
  text-decoration: none;
}

.page-section.index-list > ul > li > a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}

.highlights {
  margin: 2rem 0;
}

.highlights .tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlights .tiles li {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.highlights .tiles li a {
  color: inherit;
  text-decoration: none;
}

.highlights .tiles .tile-image img {
  width: 100%;
  height: auto;
}

.highlights .tiles h2 {
  padding: 0.5rem;
  font-weight: normal;
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
}

.highlights .tiles p {
  flex-grow: 1;
  margin: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.highlights > h1 {
  margin-bottom: 0.5rem;
}

/* Load More button styling */
.load-more {
  display: block;
  margin: 1rem auto;
  background-color: #336699;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-family: Verdana, Geneva, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.load-more:hover {
  background-color: #2a4466;
}

.load-more:active {
  background-color: #1a2e4f;
}

/* Desktop adjustments */
@media (min-width: 961px) {
  .issue article {
    padding: 0 2.5rem;
  }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Gallery grid thumbnails: fixed height with object-fit */
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

/* Modal navigation zones */
#image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#image-modal .modal-nav {
  position: absolute;
  top: 0;
  height: 100%;
  width: 20%;
  cursor: pointer;
}

#image-modal .modal-nav.prev {
  left: 0;
}

#image-modal .modal-nav.next {
  right: 0;
}

#image-modal .modal-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  user-select: none;
}

#image-modal .modal-nav.prev::before {
  content: '‹';
  left: 10px;
}

#image-modal .modal-nav.next::before {
  content: '›';
  right: 10px;
}

#image-modal img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  border-radius: 4px;
  z-index: 1001;
}

#image-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1002;
}
