/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    background-image: url('/images/milky-way.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #212529; /* fallback dark color */
    color: #212529;
    font-family: Libre Baskerville, Times New Roman, Times, serif, Open Sans, Helvetica Neue, Arial, sans-serif, -apple-system;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: left;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 300;
  color: #2c2c2c;
}

h1 {
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  border-bottom: 3px solid #d4af37;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
}

h3 {
  font-size: 1.6rem;
  margin: 0.5rem 0 1rem 0;
}

h4 {
  font-size: 1.3em;
  padding: 0px;
  margin: 0px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 0 0 currentColor;  

}

h5 {
  font-size: 1.1em;
  margin: 0px;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0.75px 0 0 currentColor;  

}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  word-spacing: 0.9px;
}

/* Links */
a {
  color: #1937bd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

a:hover {
  color: #4aa1ff;
}

/* Header/Navigation */
nav {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #d4af37 !important;
  border: none !important;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

nav a {
  color: white !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  font-family: 'Libre Baskerville';
  border: none !important;
  transition: color 0.3s ease;
}

nav a:hover {
  color: white !important;
}

/* Main Content */
main {
    background: rgba(215, 241, 254, .8);
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex: 1;    
}

/* Content Cards */
.content-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.content-card h2 {
  margin-top: 0;
  color: #8b4513;
}

.content-card h3 {
  margin-top: 0;
  color: #8b4513;
}

/* Issue Grid */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Stats/Metadata */
.meta {
  color: #666;
  font-size: 0.95rem;
  font-style: italic;
}

.meta strong {
  color: #8b4513;
  font-style: normal;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.btn:hover {
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #666 0%, #888 100%);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #888 0%, #666 100%);
}

/* Forms */
.form-group {
  margin: 1.5rem 0;
}

input[type="email"], input[type="text"] {
  padding: 12px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  margin-right: 1rem;
  transition: border-color 0.3s ease;
}

input[type="email"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: #d4af37;
}

/* Back Links */
.back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 0;
  color: #666 !important;
  font-size: 0.95rem;
}

.back-link:hover {
  color: #8b4513 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  nav .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  main {
    padding: 2rem 1rem;
  }
      
  .issue-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group input {
    margin-bottom: 1rem;
    margin-right: 0;
  }

  .two-column-layout {
    flex-direction: column;
  }
  
  .left-column,
  .right-column {
    flex: 1;
    padding: 10px;
  }
  
  .site-container {
    width: 100%;
    max-width: 100%;
  }
  
  .site-header {
    padding: 10px 15px 0px 15px;
  }
  
  .site-main {
    padding: 20px 15px;
  }
  
  article p {
    padding: 0px 10px;
  }
  
}

/* Main content container to include the navbar */
.site-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 8px 8px 0px 0px;
    overflow: hidden; /* keeps rounded corners clean */
}

/* Header with logo */
.site-header {
    padding: 10px 30px 0px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 255, .1);
}

.site-logo {
    width: 100%;
    height: 100%;
    align-items: center;    
}

/* Navigation */
.site-nav {
    background: rgba(25, 55, 189, .6);
    padding: 16px 20px; /* Reduced from 30px */
    border-radius: 8px 8px 0px 0px;
    position: relative;
}

.site-nav .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 5px; /* Reduced from 10px */
    flex-wrap: nowrap;
}

.site-nav a {
    color: #212529;
    text-shadow: 0.5px 0 0 currentColor;
    text-decoration: none;
    font-weight: 1000;
    padding: 10px 8px; /* Reduced horizontal padding from 10px to 8px */
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
    font-size: 0.95em; /* Slightly smaller text */
}

.site-nav a:hover {
    background-color: #1937bd;
}

/* Hamburger menu - hidden by default */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #212529;
    margin: 3px 0;
    transition: 0.3s;
}

.issuesTitle {
  font-size: 2.5em;
  padding: 0px 0px 0px 0px;
  margin: 0px;
}

/* Mobile styles */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .site-nav .nav-menu {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background: rgba(25, 55, 189, .95);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .site-nav .nav-menu.active {
        max-height: 500px;
    }
    
    .site-nav .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-nav .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .site-nav a {
        display: block;
        padding: 15px 10px;
        font-size: 1em; /* Reset font size for mobile */
    }
}

/* Main content area */
.site-main {
    max-width: 1100px;
    padding: 20px 40px 20px 40px;
}

article h3 {
  text-align: center;
}

article h3.pageHeader {
  text-transform: uppercase;
  text-shadow: 1px 0 0 currentColor;
}

article h3.workTitle {
  font-size: 2.5em;
  padding: 20px 0px 0px 0px;
  margin: 0px;
}

article h3.workAuthor {
  color: #000000;
  margin: 0px;
}

article h3.authorTitle {
  font-size: 2.5em;
  padding: 0px;
  margin: 0px;
}

article h3.contentHeader {
  font-size: 2.5em;
  padding: 30px 0px 0px 0px;
  margin: 0px;
  text-transform: uppercase;
  text-shadow: 1px 0 0 currentColor;  
}

article h3.contentSubheader {
  font-size: 1.75em;
  padding: 25px 0px 5px 0px;
  margin: 0px;
  text-transform: uppercase;
  text-shadow: 1px 0 0 currentColor;  
}

article h3.staticSubheader {
  font-size: 1.75em;
  padding: 0px 0px 20px 0px;
  margin: 0px;
  text-transform: uppercase;
  text-shadow: 1px 0 0 currentColor;  
}

article hr {
    height: 1px;
    color: rgba(0, 0, 255, .1);
    background: rgba(0, 0, 255, .1);
    font-size: 0;
    border: 0;
}

article p {
  text-align: justify;
  width: 100%;
  padding: 0px 20px 0px 20px;
  font-family:'Libre Baskerville';
}

article p.namesAndTitle {
  font-size: 1.1rem;
  text-align: center;
}

article p.wordCountAlign {
  text-align: right;
}

.two-column-layout {
  display: flex;
  gap: 20px; 
  max-width: 1200px; 
  margin-bottom: 20px;
}

.left-column {
  flex: 0 0 290px;
  min-width: 200px; 
  padding-right: 10px;
}

.right-column {
  flex: 2.5; 
  padding-left: 10px;  
}

.cover-placeholder {
  background-color: #f5f5f5;
  border: 2px solid black;
  margin-top:20px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 1);  
}

.read-more-btn:hover {
  background-color: #696767 !important;
  color: white !important;
}

.footer {
  background-color: #414156;
  padding: 0px 20px 0px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.footer div {
  margin: 0 auto;
}

.footer p {
  margin: 20px;
  font-size: .8rem; 
  font-weight: bold;
  letter-spacing: 0.7px;
  word-spacing: 0.9px;
  color: #ffffff;
}

.footer nav {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.footer a {
  color: #333; 
  padding: 20px;
  text-decoration: none; 
  font-size: .8rem;
  letter-spacing: 0.7px;
  word-spacing: 0.9px;
  margin: 0 15px;
}

.footer a:hover {
  background-color: #1937bd; 
}

.leftColumnButton {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 12px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 1);
} 

.leftColumnButton:hover {
  background-color: #333;
  color: white !important;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 1);
}

.rightColumnReadButton {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 1);  
} 

.rightColumnReadButton:hover {
  background-color: #333;
  color: white !important;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 1);
}

.rightColumnReadButtonDiv {
  margin-top: 40px; 
  margin-bottom: 40px; 
  display: flex; 
  justify-content: center;
}

.pageSpacer {
  margin-top:30px;
  margin-bottom: 25px;
  width: 100%;
}

.pageSpacer::after {
  content: "";
  display: table;
  clear: both;
}

.patreonbutton {
  display: block;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 1);  
  white-space: nowrap;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 20px;
  width: fit-content;
  height: 60px;
  line-height: 60px;
  padding: 0px 10px;
  background-color: blue;
  border-radius: 24px;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: white;
  text-decoration: none;
  -webkit-transition: all 0.15s ease;
  transition: background-color 0.3s ease;
}
.patreonbutton:hover {
    color: white;
    background-color: blue;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 1);
}

.submissionsButton {
  display: block;
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 1);  
} 

.submissionsButton:hover {
  background-color: #333;
  color: white !important;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 1);
}

.editorImage {
  text-align: center;
   float: right; 
   margin: 10px 25px 10px 25px; 
   border: 2px solid black;
}

.editorImage img {
    width: 200px;
    height: auto;
    display: block;
}

.editorImage a {
    display: inline-block;
    text-align: center;
    margin: 10px;
    font-size: 18px;
    text-decoration: none;
    color: black;
}

.issuesImage {
   text-align: center;
   float: right; 
   margin: 15px 20px 10px 30px;
}

.issuesImage img {
    width: 150px;
    height: auto;
    display: block;
    border: 2px solid black;
  }

.issuesImage a {
    display: inline-block;
    text-align: center;
    font-size: 18px;
    text-decoration: none;
    color: black;
}

.ksImage {
  text-align: center;
   float: right; 
   margin: 10px 25px 10px 25px; 
}

.ksImage img {
    width: 350px;
    height: auto;
    display: block;
}

.ksImage a {
    display: inline-block;
    text-align: center;
    margin: 10px;
    font-size: 18px;
    text-decoration: none;
    color: black;
}

.ksHr {
    display: none;
}

.socLinkHover:hover {
  color: blue;
}

.formerEditorsWrapper {
  display: inline-block;
  width: 100%;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.formerEditorsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 15px 25px 0px 25px;
}

.subWindows {
  font-size: medium!important;
  box-sizing: content-box;
  padding: 10px;
}

.subWindows li {
  list-style-type: none;
  text-align: left;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0px 10px 0px 10px;
  gap: 5px;
}

@media (max-width: 1024px) {
  .formerEditorsGrid {
    grid-template-columns: 1fr;
  }
  .editorImage {
    float: none;
    margin: 10px auto;
    display: block;
    width: fit-content;
  }
  .ksImage {
    float: none;
    margin: 0px auto;
    margin-top: 10px;
    margin-bottom: 30px;
    display: block;
    width: fit-content;
  }
  .ksImage img {
      width: 100%;
      height: auto;
      display: block;
  }
  .ksHr {
    float: none;
    margin: 0px auto;
    margin-bottom: 50px;
    display: block;
    width: 20%;
  }

  .subWindows {
    grid-column: 1 / span 3;
  }
  .subWindows li {
    text-align: center;
  }
}

.submitGuidelines {
  padding: 5px 20px 0px 50px;
  text-align: justify;
}

.editorCard {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

.editorImageFormer {
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  overflow: hidden;
  border-radius: 50%;
}

.editorImageFormer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorInfo {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  text-align: center;
}

.formerEditorNameTitle {
  font-weight: bold;
}

.editorUrl a {
  color: #007acc;
  text-decoration: none;
}

.editorUrl a:hover {
  text-decoration: underline;
}

.iframeContact {
  min-height: 620px;
  width: 100%;
  border: none;
}

.pagination {
  margin: 20px 0;
  text-align: center;
}

.pagination a, .pagination .current-page {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  border: 1px solid #ddd;
}

.pagination .current-page {
  background-color: #007cba;
  color: white;
  border-color: #007cba;
}

.pagination a:hover {
  background-color: #f5f5f5;
}