/*
Theme Name: Greg Stuart Custom Theme
Theme URI: https://your-greg-stuart-site.com/
Author: Your Name
Author URI: https://your-website.com/
Description: Custom theme for Greg Stuart, replicating a React design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, responsive-layout
Text Domain: gregstuart-custom-theme
*/

/* === Import from your index.css === */
body {
  margin: 0;
  font-family: "Inter Tight", sans-serif; /* UPDATED */
  font-weight: 100; /* ADDED for Thin variant */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: scroll;
  background-image: linear-gradient(to bottom, #ffffff, #e0e6ea);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6; /* Consolidated from duplicate rule */
  color: #333; /* Consolidated from duplicate rule */
}

/*
In WordPress, #root doesn't exist by default.
The body tag or a main wrapper (like #page or #content) serves a similar purpose.
*/

.page {
  /* Can be added to your main content wrapper in templates */
  flex: 1;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

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

html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  width: 100%;
  font-size: 1.2rem;
  color: #777;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  background-color: #0056b3;
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

.admin-sign-in-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.admin-sign-in-container h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.admin-sign-in-container p {
  color: #555;
  margin-bottom: 20px;
}

/* === Import from your navbar.css === */

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  background-color: transparent;
  position: relative;
  z-index: 1000; /* WordPress admin bar is typically 99999 */
}

.navbar-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.navbar-row-top {
  padding-bottom: 1rem;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-placeholder {
  /* Example placeholder style if WP logo isn't set */
  height: 100px;
  width: 100px;
  margin-bottom: 1rem;
}

.logo {
  /* WP Custom Logo styles */
  height: auto;
  max-height: 100px;
  width: auto;
  max-width: 100%;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  font-family: "Anton", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 1000; /* Matches the Google Fonts weight */
  text-align: center;
  white-space: nowrap;
  color: #333;
  letter-spacing: 0.05em;
  font-display: swap; /* Ensures proper font loading */
  -webkit-font-smoothing: antialiased; /* Improves rendering on webkit browsers */
  -moz-osx-font-smoothing: grayscale; /* Improves rendering on Firefox/Mac */
  text-rendering: optimizeLegibility; /* Better text rendering */
  font-stretch: normal; /* Ensures normal width */
  font-style: normal; /* Ensures normal style */
}

.fine-arts-desktop {
  display: inline;
}

.fine-arts-mobile {
  display: none;
}

.nav-links {
  /* Styles the <ul> generated by wp_nav_menu */
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.nav-links a {
  /* Styles the <li> elements containing the links */
  margin: 0 1.5rem;
}

.nav-link {
  /* Applied to <a> tags by the custom walker */
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #007bff;
}

.nav-link-active {
  /* Applied to the active <a> tag by the custom walker */
  color: #007bff;
  font-weight: bold;
}

.navbar-row-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  width: 100%;
}

.navbar-row-bottom::before,
.navbar-row-bottom::after {
  content: "";
  flex: 1;
  border-top: 1px solid #ccc;
  max-width: 300px;
}

.navbar-row-bottom::before {
  margin-right: 1rem;
}

.navbar-row-bottom::after {
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1.5rem 0 1rem 0;
  }

  .logo {
    max-height: 60px;
    margin-bottom: 0.5rem;
  }

  .title {
    font-size: 2rem;
    white-space: normal;
    font-weight: 1000; /* Ensure consistent weight on mobile */
  }

  .fine-arts-desktop {
    display: none;
  }

  .fine-arts-mobile {
    display: inline;
  }

  .nav-links a {
    margin: 0 0.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .navbar-row-bottom {
    padding-top: 0.5rem;
  }

  .navbar-row-bottom::before,
  .navbar-row-bottom::after {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
  }
}

/* WordPress specific styles */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* === Contact Footer Styles === */
.contact-footer {
  margin-top: 2rem;
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 1px solid #eaeaea;
}

.contact-footer-info {
  margin-bottom: 1rem;
}

.contact-footer-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-footer-email {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.contact-footer-email a {
  color: inherit;
  text-decoration: none;
}

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

.contact-footer-about {
  font-size: 1rem;
  color: #555;
}

.contact-footer-about a {
  color: inherit;
  text-decoration: none;
}

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

.contact-footer-credit {
  font-size: 0.8rem;
  color: #888;
  margin-top: 3rem;
}

.contact-footer-credit a {
  color: inherit;
  text-decoration: none;
}

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

.site-content {
  /* Typically on <main id="content"> for sticky footer */
  flex-grow: 1;
}

/* === About Page Styles === */
.about-page {
  /* Added to <article> tag in page-about.php */
  padding: 2rem;
}

.about-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-title {
  /* On h1 generated by the_title() */
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: start;
}

.about-intro {
  /* Wraps the_content() in page-about.php */
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto 5rem auto;
  line-height: 1.3;
  text-align: start;
}

.about-book-callout {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4rem;
  padding: 2rem;
  border: 1px solid #007bff;
  border-radius: 8px;
  background-color: #e9f5ff;
}

.book-title {
  font-size: 1.5rem;
  color: #0056b3;
  margin-bottom: 1rem;
  text-align: center;
}

.book-description {
  font-size: 1.1rem;
  color: #004085;
  margin-bottom: 1.5rem;
}

.book-forward {
  font-family: monospace;
  font-size: 1rem;
  color: #003366;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #d6e9ff;
  border-left: 3px solid #007bff;
}

.book-forward p {
  margin-bottom: 0.5rem;
}

.author {
  display: block;
  text-align: right;
  font-style: italic;
  font-size: 0.9rem;
}

.publisher-note {
  font-style: italic;
  text-align: center;
  color: #004085;
}

/* === About Contact Section Styles === */
.about-contact-section {
  margin-top: 2rem;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-family: "Fira Sans Condensed", sans-serif;
  font-weight: 600;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.contact-phone,
.contact-email {
  font-size: 1rem;
  margin: 0;
}

.contact-phone a,
.contact-email a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-phone a:hover,
.contact-email a:hover {
  color: #0056b3;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .about-page {
    padding: 1rem;
  }
  .about-book-callout {
    margin-top: 1rem;
    padding: 1rem;
    line-height: 1.2;
  }
  .about-contact-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
  }
  .contact-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .contact-info {
    gap: 0.5rem;
  }
  .about-title,
  .about-intro {
    text-align: start;
  }
}

/* === Gallery Page Styles === */
.gallery {
  /* On main wrapping div in page-gallery.php */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem; /* Increased spacing between gallery items */
  padding: 0.5rem;
  max-width: 600px; /* Single column layout */
  margin: 2rem auto 8rem auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-title {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: start;
}

.gallery-intro {
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto 5rem auto;
  line-height: 1.3;
  text-align: start;
}

.gallery-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  min-height: 150px;
  background-color: #f0f0f0; /* Fallback */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-image-container a.glightbox {
  display: block;
  line-height: 0;
}

.gallery-image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  opacity: 0;
  animation: fade-in 1s forwards;
  position: relative;
  z-index: 1;
}

.gallery-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.gallery-placeholder {
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  box-sizing: border-box;
  width: 90%;
  max-width: 300px;
}

@keyframes fade-in {
  /* Ensure this is defined once */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-item-title {
  color: #333;
  font-family: "Fira Sans Condensed", sans-serif; /* Ensure this is the enqueued font */
  font-weight: 600; /* Slightly bolder for better visibility */
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
}

.gallery-item-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  max-width: 100%;
}

.gallery-empty,
.error-message {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: #555;
}
.gallery-empty a {
  color: #007bff;
  text-decoration: underline;
}
.gallery-empty a:hover {
  color: #0056b3;
}

@media (max-width: 768px) {
  .gallery {
    padding: 0.5rem;
    gap: 2rem; /* Maintain good spacing on mobile */
  }

  .gallery-header {
    margin-bottom: 1rem;
  }
  .gallery-intro {
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  .gallery-item {
    gap: 0.75rem; /* Slightly less gap between image and info on mobile */
  }

  .gallery-item-title {
    font-size: 1rem;
  }

  .gallery-item-description {
    font-size: 0.85rem;
  }

  .gallery-image-container {
    min-height: 100px;
  }

  .gallery-placeholder {
    width: 90%;
    max-width: 200px;
  }
}

/* === Sketches Page Styles === */
.sketches-page {
  /* On main wrapping div in page-sketches.php */
  padding: 2rem;
}

.sketches-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sketches-title {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: start;
}

.sketches-intro {
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto 3rem auto;
  line-height: 1.3;
  text-align: start;
}

.sketches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.sketches-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem; /* Spacing if grid gap isn't enough for design */
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.sketches-image-container {
  margin-bottom: 0.5rem;
}

.sketches-image-container a.glightbox {
  display: block;
  line-height: 0;
}

.sketches-image {
  /* Applied to img tag by the_post_thumbnail */
  display: block;
  width: auto; /* This allows it to shrink if height is constrained */
  max-width: 100%; /* Prevents it from overflowing its container's width */
  height: auto; /* Maintains aspect ratio, but can lead to very tall images */
  max-height: 20rem;
  border-radius: 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  object-fit: contain; /* Ensures the whole image is visible, scaling down if necessary */
}

.sketches-image-placeholder {
  width: 250px;
  height: 250px;
  background-color: #f0f0f0;
  border-radius: 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
  padding: 10px;
  margin: 0 auto 0.5rem auto;
}

.sketches-item-title {
  font-family: "Fira Sans Condensed", sans-serif; /* ADDED */
  font-weight: 400; /* UPDATED to Regular weight */
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #333;
  text-align: center;
}

.sketches-item-description {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.sketches-empty {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: #555;
}
.sketches-empty a {
  color: #007bff;
  text-decoration: underline;
}
.sketches-empty a:hover {
  color: #0056b3;
}

@media (max-width: 768px) {
  .sketches-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  .sketches-page {
    padding: 1rem;
  }
  .sketches-intro {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .sketches-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 1.5rem;
  }
}

/* === Hero Section Styles (from hero.css) === */

.hero .text-container {
  text-align: center;
  max-width: 600px;
}

.hero .intro-text {
  font-size: 1.2rem;
  color: #999;
}

.hero .image-container {
  max-width: 800px;
  display: inline-block;
  line-height: 0;
  background-color: #f0f0f0;
  border: 5px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 2rem;
  text-align: center;
}

.hero .hero-image-placeholder {
  font-size: 1rem;
  color: #aaa;
  text-align: center;
  padding: 20px;
}

/* === Artwork Grid Section Styles (from artwork-grid.css) === */
.artwork-grid-section {
  padding-bottom: 2rem;
}

.artwork-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 10px;
  gap: 10px;
  margin: 3rem 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  background-color: #ffffff;
}

.artwork-grid .artwork-item {
  box-sizing: border-box;
  background-color: #f0f0f0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  /* Aspect ratio padding trick */
  width: calc(20% - 8px); /* Default for 5 items */
  padding-bottom: calc(20% - 8px); /* Same as width for square items */
  height: 0;
}

.artwork-grid .artwork-item a.glightbox {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.artwork-grid .artwork-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade-in 0.5s forwards;
}

.artwork-grid .artwork-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  padding: 5px;
}

/* Apply 3+2 pattern from 1024px all the way down to a smaller breakpoint (e.g., 481px) */
@media (max-width: 1024px) {
  .artwork-grid .artwork-item {
    /* Items 1, 2, 3 */
    width: calc(33.333% - 7px); /* Approx 1/3rd width (100%/3 - adjusted gap) */
    padding-bottom: calc(33.333% - 7px);
  }
  .artwork-grid .artwork-item:nth-child(4),
  .artwork-grid .artwork-item:nth-child(5) {
    /* Items 4, 5 */
    width: calc(50% - 5px); /* Approx 1/2 width (100%/2 - adjusted gap) */
    padding-bottom: calc(50% - 5px);
  }
}

/* At very small screens (e.g., 480px and below), stack them if the 3+2 becomes too cramped. */
/* You can adjust this breakpoint or remove it if you want 3+2 to always try to fit. */
@media (max-width: 300px) {
  .artwork-grid .artwork-item,
  .artwork-grid .artwork-item:nth-child(4), /* Resetting specific widths for 4th and 5th */
  .artwork-grid .artwork-item:nth-child(5) {
    width: 100%; /* Each item takes full width */
    padding-bottom: 100%; /* Maintain square aspect ratio */
  }
}
/* === Sketch Highlight Section Styles (from sketch-highlight.css) === */
.sketch-highlight {
  margin-top: 3rem;
  padding: 2rem 1rem;
}

.sketch-highlight-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

.sketch-highlight-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.sketch-highlight-item {
  flex: 1 1 300px; /* Flex grow, shrink, basis */
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.sketch-highlight-image-container {
  margin-bottom: 1rem;
  width: 100%;
}

.sketch-highlight-image-container a.glightbox {
  display: block;
  line-height: 0;
}

.sketch-highlight-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  max-height: 20rem;
  border-radius: 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.sketch-highlight .sketches-image-placeholder {
  /* Specific to sketch-highlight if needed */
  width: 200px;
  height: 200px;
  /* Inherits other placeholder styles or define fully here */
  margin: 0 auto 1rem auto;
  background-color: #f0f0f0;
  border-radius: 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
  padding: 10px;
}

.sketch-highlight-item-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
  text-align: center;
}

.sketch-highlight-item-description {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

/*
.sketch-highlight-item-date {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.5rem;
  text-align: center;
}
*/

.sketch-highlight-button-container {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.sketch-highlight-button {
  background: none;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sketch-highlight-button:hover {
  background-color: #007bff;
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }
  .sketch-highlight {
    padding: 1.5rem 1rem;
  }

  .sketch-highlight-grid {
    gap: 1.5rem;
  }
}

/* === Blog Page Styles === */
.blog-page-container {
  padding: 2rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.blog-title {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: start;
}

.blog-intro {
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto 3rem auto;
  line-height: 1.3;
  text-align: start;
}

.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 3rem; /* Space between blog post items */
  max-width: 900px; /* Consistent max-width for readability */
  margin: 0 auto; /* Center the content */
}

article.blog-post-item {
  background-color: #fff; /* White background for each post */
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07); /* Subtle shadow */
  transition: box-shadow 0.3s ease-in-out;
}

article.blog-post-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-thumbnail {
  margin-bottom: 1.5rem;
  text-align: center; /* Center the image if it's not full width */
}

.blog-post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 6px; /* Rounded corners for images */
  border: 1px solid #eee;
}

.blog-post-header {
  margin-bottom: 1rem;
}

.blog-post-title {
  font-size: 1.8rem; /* Title size for individual posts */
  font-family: "Fira Sans Condensed", sans-serif; /* Consistent with other titles */
  margin-bottom: 0.25rem;
}

.blog-post-title a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: #007bff; /* Theme's primary link color */
}

.blog-post-meta {
  font-size: 0.9rem;
  color: #777;
  font-family: "Inter Tight", sans-serif;
}

.blog-post-meta .posted-on,
.blog-post-meta .byline,
.blog-post-meta .cat-links {
  margin-right: 1rem;
}

.blog-post-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}

.blog-post-excerpt p:last-child {
  margin-bottom: 0;
}

.blog-post-footer {
  text-align: left; /* Align read more button to the left */
}

.blog-read-more {
  display: inline-flex; /* For icon alignment */
  align-items: center;
  gap: 0.5rem; /* Space between text and icon */
  text-decoration: none;
  color: #007bff;
  font-weight: 500; /* Medium weight */
  padding: 0.5rem 1rem;
  border: 1px solid #007bff;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-read-more:hover {
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
}

.blog-read-more .fa-arrow-right {
  transition: transform 0.3s ease;
}

.blog-read-more:hover .fa-arrow-right {
  transform: translateX(4px);
}

/* Pagination Styles */
.pagination.blog-pagination {
  margin-top: 3rem;
  text-align: center;
  font-family: "Inter Tight", sans-serif;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  margin: 0 0.25rem;
  border: 1px solid #ddd;
  color: #007bff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination .page-numbers.dots {
  border: none;
  background-color: transparent;
  color: #777;
}

.pagination .prev,
.pagination .next {
  font-weight: 500;
}

.pagination .prev .fa-chevron-left,
.pagination .next .fa-chevron-right {
  font-size: 0.8em;
  margin: 0 0.2em;
}

/* Responsive adjustments for the blog */
@media (max-width: 768px) {
  .blog-page-container {
    padding: 1rem;
  }

  .blog-header {
    margin-bottom: 1rem;
  }

  .blog-intro {
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  article.blog-post-item {
    padding: 1.5rem;
    gap: 2rem;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-post-excerpt {
    font-size: 0.95rem;
  }

  .blog-read-more {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  article.blog-post-item {
    padding: 1rem;
  }
  .blog-post-title {
    font-size: 1.3rem;
  }
  .pagination .page-numbers {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
}

/* No Results / Search Form Styling (if needed) */
.no-results.not-found {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 6px;
}
.no-results .search-form {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.no-results .search-form label {
  display: none; /* Assuming a simple input + button layout */
}
.no-results .search-form input[type="search"] {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  min-width: 200px;
}
.no-results .search-form input[type="submit"] {
  padding: 0.75rem 1.25rem;
  border-radius: 0 4px 4px 0;
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
  cursor: pointer;
  font-weight: 500;
}
.no-results .search-form input[type="submit"]:hover {
  background-color: #0056b3;
}

/* === Single Post Styles === */

.single-post-container {
  max-width: 800px; /* Adjust for desired content width */
  margin: 2rem auto 4rem auto; /* Center content and add spacing */
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-radius: 8px;
}

.single-post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.single-post-title {
  font-size: 2.5rem; /* Larger title for single post */
  font-family: "Anton", sans-serif; /* Consistent with site title styling */
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-transform: uppercase; /* Optional */
  letter-spacing: 0.03em;
}

.single-post-meta {
  font-size: 0.9rem;
  color: #777;
  font-family: "Inter Tight", sans-serif;
}

.single-post-meta span {
  margin-right: 1rem;
}

.single-post-meta a {
  color: #007bff;
  text-decoration: none;
}

.single-post-meta a:hover {
  text-decoration: underline;
}

.single-post-thumbnail {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.single-post-content {
  font-size: 1.1rem; /* Good readable size for post content */
  line-height: 1.8;
  color: #333; /* Darker for better readability */
}

.single-post-content p {
  margin-bottom: 1.5em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  font-family: "Fira Sans Condensed", sans-serif;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #222;
}

.single-post-content h2 {
  font-size: 1.8em;
}
.single-post-content h3 {
  font-size: 1.5em;
}
.single-post-content h4 {
  font-size: 1.3em;
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.single-post-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #007bff;
  background-color: #f9f9f9;
  font-style: italic;
}

.single-post-content img {
  /* General image styling within post content */
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

.single-post-content .alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}
.single-post-content .alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
.single-post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

.single-post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eaeaea;
}

.tags-links {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

.tags-links a {
  color: #007bff;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  margin-right: 0.3em;
  background-color: #f9f9f9;
}

.tags-links a:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Post Navigation (Previous/Next) */
.post-navigation {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  font-family: "Inter Tight", sans-serif;
}

.post-navigation .nav-links > div {
  flex-basis: 48%;
}

.post-navigation .nav-previous {
  text-align: left;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #007bff;
  text-decoration: none;
}
.post-navigation a:hover .nav-title {
  text-decoration: underline;
}

/* Basic Comments Section Styling */
.comments-area {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.comments-title,
.comment-reply-title {
  font-size: 1.5rem;
  font-family: "Fira Sans Condensed", sans-serif;
  color: #333;
  margin-bottom: 1rem;
}

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

.comment-list .comment {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-author .avatar {
  float: left;
  margin-right: 10px;
  border-radius: 50%;
}
.comment-author .fn {
  /* author name */
  font-weight: bold;
  font-size: 1rem;
}
.comment-author .says {
  font-style: italic;
}

.comment-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}
.comment-meta a {
  color: #777;
  text-decoration: none;
}
.comment-meta a:hover {
  text-decoration: underline;
}

.comment-content p {
  margin-bottom: 0.5em;
}

.reply .comment-reply-link {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
  border: 1px solid #007bff;
  padding: 0.2em 0.5em;
  border-radius: 3px;
}
.reply .comment-reply-link:hover {
  background-color: #007bff;
  color: #fff;
}

/* Comment Form Styling */
.comment-form label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 500;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.comment-form .comment-notes,
.comment-form .logged-in-as {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

/* Responsive adjustments for single posts */
@media (max-width: 768px) {
  .single-post-container {
    padding: 1.5rem 1rem;
    margin: 1.5rem auto 3rem auto;
  }
  .single-post-title {
    font-size: 2rem;
  }
  .single-post-content {
    font-size: 1rem;
  }
  .single-post-content h2 {
    font-size: 1.6em;
  }
  .single-post-content h3 {
    font-size: 1.4em;
  }

  .post-navigation .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    text-align: left;
    flex-basis: auto;
  }
}

@media (max-width: 480px) {
  .single-post-title {
    font-size: 1.7rem;
  }
}
