/* Blog Page Container */
.blog-page {
    padding-top: 6rem; /* 96px - accounts for navbar */
    padding-bottom: 4rem; /* 64px */
}

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

.blog-content {
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
}

/* Header Section */
.blog-header {
    margin-bottom: 3rem; /* 48px */
}

.blog-title {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem; /* 12px */
}

.blog-subtitle {
    font-size: 1.25rem; /* 20px */
    color: #4B5563;
    margin-bottom: 3rem; /* 48px */
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* 32px */
    margin-bottom: 3rem; /* 48px */
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card Image */
.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

/* Card Content */
.blog-card-content {
    padding: 1.5rem; /* 24px */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta Information */
.blog-card-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* 14px */
    color: #6B7280;
    margin-bottom: 0.75rem; /* 12px */
}

.blog-meta-item {
    display: flex;
    align-items: center;
}

.blog-meta-icon {
    width: 1rem; /* 16px */
    height: 1rem; /* 16px */
    margin-right: 0.25rem; /* 4px */
}

.blog-meta-separator {
    margin: 0 0.5rem; /* 8px */
}

/* Card Title */
.blog-card-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem; /* 12px */
    line-height: 1.4;
}

.blog-card-title:hover {
    color: #2563EB;
}

.blog-card-content .blog-card-title a, a:hover, a:focus, a:active {
    color: #0077FF;
}

/* Card Description */
.blog-card-description {
    color: #4B5563;
    margin-bottom: 1.5rem; /* 24px */
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.blog-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-read-more-button {
    display: inline-block;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem; /* 6px */
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    width: 100%;
    transition: background-color 0.2s ease;
}

.blog-read-more-button:hover {
    background: linear-gradient(to right, #4f46e5, #2563eb);
}

.blog-card-footer .blog-read-more-button a, a:hover, a:focus, a:active { 
    color: #fff;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.blog-pagination-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    flex-wrap: wrap;
}
  
.blog-pagination-content li {
    display: inline-flex;
}
  
.blog-pagination-content .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #4B5563;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
  
.blog-pagination-content .page-numbers:hover {
    background-color: transparent;
    color: #07f !important;
}
  
.blog-pagination-content .page-numbers.current {
    background-color: #ffffff;
    color: #111827;
    border-color: #D1D5DB;
}

/*
.blog-pagination-item {
     No specific styles, container for links 
}
*/

.blog-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem; /* 36px */
    height: 2.25rem; /* 36px */
    padding: 0.5rem; /* 8px */
    border-radius: 0.375rem; /* 6px */
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    text-decoration: none;
    color: #4B5563;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.blog-pagination-link:hover {
    background-color: #F3F4F6;
    color: #111827;
}

.blog-pagination-link.active {
    background-color: #ffffff;
    color: #111827;
    border-color: #D1D5DB;
}

.blog-pagination-previous,
.blog-pagination-next {
    padding: 0.5rem 0.625rem; /* 8px 10px */
    gap: 0.25rem; /* 4px */
}

.blog-pagination-icon {
    width: 1rem; /* 16px */
    height: 1rem; /* 16px */
}

/* Responsive Design */
@media (min-width: 768px) {
    .blog-container {
        padding: 0 1.5rem; /* 24px */
    }
    
    .blog-page {
        padding-top: 7rem; /* 112px */
        padding-bottom: 5rem; /* 80px */
    }
    
    .blog-title {
        font-size: 3rem; /* 48px */
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-title {
        font-size: 3.75rem; /* 60px */
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.fade-in-up-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-up-delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}