/*
 Theme Name:   Hello Biz Child
 Theme URI:    https://example.com/
 Description:  Child theme for Hello Biz
 Author:       Your Name
 Author URI:   https://example.com
 Template:     hello-biz
 Version:      1.0.0
*/

/* Import parent theme styles */
@import url("../hello-biz/style.css");

/* Search form wrapper */
.newsletter-search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 20px auto;
  border: 1px solid black;
  border-radius: 6px;
  overflow: hidden;
}

/* Search input */
.newsletter-search-field {
  flex: 1;
  padding: 12px 15px;
  font-size: 16px;
  border: none;
  outline: none;
}

/* Search button */
.newsletter-search-submit {
  background: black;
  color: #fff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-search-submit:hover {
  background: #1e3a5f;
}

.newsletter-search-form {
  display: flex;
  align-items: center; /* vertically center input + button */
}

.newsletter-search-field {
  flex: 1; /* input takes full width */
}

.newsletter-search-submit {
  margin-left: 0px; /* space between input + button */
}

.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 2px;
  border: 1px solid #0073aa;
  border-radius: 4px;
  text-decoration: none;
  color: #0073aa;
  background-color: #fff;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background-color: #0073aa;
  color: #fff !important;
}

.page-numbers.current {
  background-color: #0073aa;
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.issue-card {
    position: relative;
    overflow: hidden;
}

.issue-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Overlay */
.issue-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); /* dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Title stays visible */
.issue-card .issue-title {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
    z-index: 2;
    transition: transform 0.3s ease;
}
.read-more:hover {
  background: #333333 !important;
}
/* Hover effect */
.issue-card:hover img {
    transform: scale(1.05); /* zoom in slightly */
	cursor: hand;
}

.issue-card:hover::after {
    opacity: 1;
}
/* Newsletter Posts */
.newsletter-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 768px) {
    .newsletter-posts {
        grid-template-columns: 1fr; /* single column on tablet & below */
		padding: 10px;
    }
}

/* Past Issues Grid */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .issues-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}
@media (max-width: 600px) {
    .issues-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
		padding: 10px;
    }
}

/* Mobile-friendly */
@media (max-width: 600px) {
  .newsletter-search-form {
    max-width: 100%;
    margin: 10px;
  }

  .newsletter-search-field {
    font-size: 14px;
    padding: 10px;
  }
}
