 /* General site styles */
body {
  font-family: "Times New Roman", Calibri, sans-serif;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  max-width: 1500px;
  box-sizing: border-box;
}

/* Homepage & site header */
header {
  text-align: center;
  padding: 40px;
  background-color: #2a9d8f; 
  color: white;
}
header img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
}
header h1 {
  margin-top: 15px;
  font-size: 36px;
}
header p {
  font-style: italic;
  margin-top: 10px;
  color: #e0f7fa;
}

/* Navigation bar */
 av {
  background: #264653; 
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 50px;
  text-decoration: none;
}
.logo-brand-img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
}
nav a, .nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}
nav a:hover, .nav-links a:hover {
  text-decoration: underline;
}

/* Sections */
section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h2 {
  border-bottom: 2px solid #2a9d8f;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* YOUR ORIGINAL HEADER BLOCK (FIXED FOR AUTHOR ENHANCEMENT) */
.header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #2a9d8f;
  color: white;
}

/* Protects your profile photo from stretching */
.author-photo img {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  margin-right: 15px;
  border: 3px solid white;
  display: block;
  object-fit: cover;
}

.author-info h1 {
  margin: 0;
  font-size: 24px;
  color: white;
}
.author-info p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #e0f7fa;
}
.author-link {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #2a9d8f;
  color: white;
  margin-top: 40px;
  font-size: 15px;
}

/* Comments Section */
#comments {
  background-color: #f0f0f0;   
  padding: 20px;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 900px;
}
#comments h2 {
  color: #264653;              
  margin-bottom: 15px;
}
#comments form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#comments input,
#comments textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
#comments button {
  background-color: #2a9d8f;   
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
#comments button:hover {
  background-color: #005f99;   
}
#comments h3 {
  margin-top: 30px;
  color: #333;
}
#comments ul {
  list-style-type: none;
  padding: 0;
}

/* Page container for articles */
.page-container {
  max-width: 900px;   
  margin: 0 auto;     
  padding: 20px;
}

/* Content and comments styled as cards */
.content, #comments {
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  padding: 20px;
}

/* RESPONSIVE ARTICLE MAIN THEME IMAGES ONLY */
.theme-image {
  max-width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
}
.theme-image img {
  width: 100%;
  max-width: 100%;
  height: auto !important; 
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px; 
}

/* General article content images fallback */
.content img:not(.author-photo img) {
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
  font-size: 15px;
  color: grey;
  margin-top: 8px;
}

.site-tagline {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin-bottom: 30px;
}

/* MOBILE ISOLATION DESIGN */
 @media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    text-align: center;
  }
  .nav-links {
    justify-content: center;
  }
  .header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .author-photo img {
    margin-right: 0 !important;
    margin-bottom: 5px;
  }
}
 
