.hero {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
    /*padding: 6rem 5% 2rem;*/
}


/* Page heading */
.page-title {
  font-size: clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* List */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid #e5e7eb; /* light gray */
}

.post-item:last-child {
  border-bottom: none;
}

/* Title link */
.post-title {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

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

/* Meta + excerpt */
.post-date {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;        /* muted */
  margin-bottom: 0.75rem;
}

.post-excerpt {
  margin: 0;
  line-height: 1.55;
  color: #374151;
}

/* Optional: tighter spacing on small screens */
@media (max-width: 480px) {
  .post-item {
    padding: 1.25rem 0;
  }
}


.pager {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
  font-weight: 500;
}
.pager a { color: var(--primary-color); text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager-page { color: #666; }



/* Page heading */
.page-title {
  font-size: clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* List */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid #e5e7eb; /* light gray */
}

.post-item:last-child {
  border-bottom: none;
}

/* Title link */
.post-title {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

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

/* Meta + excerpt */
.post-date {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;        /* muted */
  margin-bottom: 0.75rem;
}

.post-excerpt {
  margin: 0;
  line-height: 1.55;
  color: #374151;
}

/* Optional: tighter spacing on small screens */
@media (max-width: 480px) {
  .post-item {
    padding: 1.25rem 0;
  }
}
/* Blog Index Page */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9932cc 100%);
    color: white;
    padding: 5rem 0 3rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-featured {
    padding: 4rem 0;
}

.blog-featured h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.featured-post {
    display: flex;
    gap: 2rem;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.featured-image {
    flex: 1;
    min-width: 300px;
}

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

.featured-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background-color: #f0f0f0;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.featured-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.featured-content h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.featured-content h3 a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.blog-meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}

.blog-date, .blog-author {
    margin-right: 1rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: auto;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--primary-hover);
}

.blog-grid-section {
    padding: 4rem 0;
    background-color: #f9f9fc;
}

.blog-grid-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card a {
    text-decoration: none;
    color: var(--text-color);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h4 {
    margin: 0.5rem 0 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.blog-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a {
    background-color: white;
    color: var(--text-color);
    border: 1px solid #ddd;
}

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

.pagination span.current-page {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.pagination a.next {
    margin-left: 0.5rem;
}

.blog-subscribe {
    background-color: white;
    padding: 4rem 0;
    display: flex;
    justify-contentitlet: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.subscribe-content {
    flex: 1;
    min-width: 300px;
}

.subscribe-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.subscribe-content p {
    color: #666;
}

.subscribe-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
}

.subscribe-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-form button:hover {
    background-color: var(--primary-hover);
}

/* Blog Post Page */
.blog-header {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
    background: url('/assets/images/index_hero_bg.svg') no-repeat center center;
    background-size: cover;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-featured-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    margin: 2rem auto 0;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.blog-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: #333;
}

.blog-tags {
    margin: 3rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.blog-tags span {
    font-weight: bold;
    margin-right: 0.5rem;
}

.blog-tags a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-tags a:hover {
    background-color: #e0e0e0;
    color: #333;
}

.blog-share {
    margin: 1.5rem 0 3rem;
}

.blog-share span {
    font-weight: bold;
    margin-right: 0.5rem;
}

.blog-share a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.blog-share a:nth-of-type(1) {
    background-color: #3b5998; /* Facebook */
}

.blog-share a:nth-of-type(2) {
    background-color: #1da1f2; /* Twitter */
}

.blog-share a:nth-of-type(3) {
    background-color: #0077b5; /* LinkedIn */
}

.blog-share a:hover {
    opacity: 0.9;
}

.related-posts {
    background-color: #f9f9fc;
    padding: 4rem 0;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-post {
        flex-direction: column;
    }
    
    .featured-image {
        min-width: 100%;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .blog-header {
        padding: 4rem 0 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-categories {
        gap: 0.5rem;
    }
    
    .blog-categories a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
}
