/* ============================================================
   BLOG PAGE — blog.css
   Hiroshi Architects — Two-column sidebar layout.
============================================================ */

:root {
  --blog-spacing: 80px;
  --widget-spacing: 60px;
}

body.blog-page {
  background: var(--white);
  color: var(--black);
}

/* ----------------------------------------
   BREADCRUMBS
---------------------------------------- */
.breadcrumb-container {
  padding: calc(var(--header-height) + 40px) 0 20px;
}

@media (max-width: 768px) {
  .breadcrumb-container {
    padding-top: calc(var(--header-height-mobile) + 32px);
  }
}

.breadcrumbs {
  font-family: var(--font-h);
  font-size: 0.75rem;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
}

.breadcrumbs a {
  color: inherit;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--black);
}

/* ----------------------------------------
   LAYOUT
---------------------------------------- */
.blog-main-layout {
  padding-bottom: 100px;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
}

/* ----------------------------------------
   POST ITEMS
---------------------------------------- */
.post-item {
  margin-bottom: 80px;
}

.post-media {
  position: relative;
  margin-bottom: 25px;
  overflow: hidden;
}

.post-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* This forces a rectangular shape */
  object-fit: cover;
  /* This prevents the image from stretching */
  display: block;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  background: var(--white);
}

.slide-count {
  font-family: var(--font-h);
  font-size: 0.8rem;
  color: var(--black);
}

.slide-arrows {
  display: flex;
  gap: 20px;
}

.slide-arrows button {
  font-size: 1.2rem;
  color: var(--black);
  cursor: pointer;
}

/* Post Info */
.post-title {
  font-family: var(--font-h);
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.post-title a {
  color: var(--black);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-h);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
}

.post-meta span::after {
  content: '|';
  margin-left: 15px;
  opacity: 0.5;
}

.post-meta span:last-child::after {
  display: none;
}

/* Quote Style */
.post-quote {
  margin: 100px 0;
}

.quote-container {
  display: flex;
  background: #F9F8F6;
  padding: 0;
  align-items: center;
}

.author-img {
  width: 200px;
  flex-shrink: 0;
}

.author-img img {
  filter: grayscale(100%);
}

.quote-text-wrap {
  padding: 60px 80px;
}

.quote-text {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 30px;
  font-style: normal;
}

.quote-author {
  font-family: var(--font-h);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--black);
  font-weight: 500;
  text-transform: uppercase;
}

/* List Style Post */
.post-list-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #E5DFDA;
  padding: 0;
}

.post-thumb {
  width: 250px;
  flex-shrink: 0;
}

.post-list-content {
  padding: 40px;
}

.post-list-title {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 300;
}

.post-list-title a {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

/* ----------------------------------------
   SIDEBAR
---------------------------------------- */
.blog-sidebar {
  padding-top: 10px;
}

.widget {
  margin-bottom: var(--widget-spacing);
}

.widget-title {
  font-family: var(--font-h);
  font-size: 1.25rem;
  margin-bottom: 30px;
  font-weight: 400;
}

/* Search */
.search-form {
  position: relative;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.search-form input {
  border: none;
  background: none;
  font-family: var(--font-h);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  width: 100%;
  outline: none;
  color: #999;
}

.search-form button {
  opacity: 0.5;
}

/* Categories */
.widget-categories ul li {
  margin-bottom: 15px;
}

.widget-categories ul li a {
  font-family: var(--font-h);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--black);
  font-weight: 500;
  transition: opacity 0.3s;
}

.widget-categories ul li a:hover {
  opacity: 0.6;
}

/* Read Next */
.read-next-item {
  margin-bottom: 25px;
}

.read-next-item h4 {
  font-family: var(--font-h);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 5px;
  font-weight: 400;
}

.read-next-item .item-cat {
  font-family: var(--font-h);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
}

/* Newsletter */
.newsletter-box {
  background: var(--gray-dark);
  color: var(--white);
  padding: 40px;
  text-align: center;
}

.newsletter-box .widget-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.newsletter-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 10px 0;
  margin-bottom: 20px;
  font-family: var(--font-h);
  font-size: 0.8rem;
  outline: none;
}

.btn-send {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--white);
  color: var(--white);
  text-transform: lowercase;
  font-family: var(--font-h);
  font-size: 0.8rem;
  transition: background 0.3s, color 0.3s;
}

.btn-send:hover {
  background: var(--white);
  color: var(--black);
}

/* Inspiration Grid */
.inspired-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.grid-item {
  aspect-ratio: 1;
  overflow: hidden;
}

/* Promo Box */
.promo-box {
  background: #EFEFEF;
  text-align: center;
  padding: 40px 20px;
}

.promo-img {
  width: 140px;
  margin: 0 auto 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.promo-content h4 {
  font-family: var(--font-h);
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 400;
}

.order-link {
  font-family: var(--font-h);
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----------------------------------------
   PAGINATION
---------------------------------------- */
.pagination {
  margin-top: 40px;
}

.pagination ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.pagination ul li a {
  font-family: var(--font-h);
  font-size: 0.85rem;
  color: var(--black);
  padding-bottom: 8px;
  border-bottom: 1.5px solid transparent;
  display: inline-block;
  min-width: 25px;
  text-align: center;
}

.pagination ul li.active a {
  border-bottom-color: var(--black);
}

.next-page {
  font-size: 1.2rem !important;
  border-bottom: none !important;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
#site-footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--gray-light);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px;
}

.footer-logo-link {
  display: block;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.footer-cols {
  display: flex;
  gap: 100px;
}

.col-label {
  display: block;
  font-family: var(--font-h);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gray-mid);
  margin-bottom: 25px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a,
.footer-col address {
  font-family: var(--font-h);
  font-size: 0.85rem;
  color: var(--black);
  font-style: normal;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--gray-light);
  padding-top: 30px;
}

.footer-bottom p {
  font-family: var(--font-h);
  font-size: 0.65rem;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 1024px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .blog-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .widget {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }

  .quote-container {
    flex-direction: column;
  }

  .author-img {
    width: 100%;
  }

  .quote-text-wrap {
    padding: 40px;
  }

  .post-list-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-thumb {
    width: 100%;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 60px;
  }

  .footer-cols {
    flex-direction: column;
    gap: 40px;
  }
}

/* ----------------------------------------
   MOBILE — 480px and below
---------------------------------------- */
@media (max-width: 480px) {
  .blog-main-layout {
    padding-bottom: 60px;
  }

  .post-item {
    margin-bottom: 56px;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .quote-text {
    font-size: 1.1rem;
  }

  .quote-text-wrap {
    padding: 24px 16px;
  }

  .author-img {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
  }

  .post-list-inner {
    flex-direction: column;
  }

  .post-thumb {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
  }

  .post-list-content {
    padding: 20px 16px;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-cols {
    flex-direction: column;
    gap: 30px;
  }
}