:root {
    --primary-color: #127a58;
    --primary-light: #18a076;
    --primary-dark: #0e5d44;
    --secondary-color: #6c757d;
    --dark-color: #2d3e50;
    --light-color: #f8f9fa;
    --hover-color: #0e5d44;
    --transition-speed: 0.3s;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Blog Hero Section */
.blog_hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, rgba(18, 122, 88, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
    animation: fadeIn 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.blog_hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.blog-container {
    max-width: 800px;
    width: 100%;
    opacity: 0;
    animation: fadeInContent 2s ease-in-out forwards;
    position: relative;
    z-index: 1;
}

.blog-container h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    animation: slideInFromTop 1.5s ease-in-out;
    line-height: 1.2;
}

.blog-container h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.blog-container h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(18, 122, 88, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.blog-container p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    animation: slideInFromBottom 1.5s ease-in-out;
}

.blog-container .btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-container .btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInButtons 2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-container .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.blog-container .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 122, 88, 0.3);
}

.blog-container .btn-outline-primary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.blog-container .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Blog Cards Section */
.blog-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Controls */
.filter-controls {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 22px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    transition: all var(--transition-speed);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box input {
    width: 100%;
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid #ddd;
    padding-right: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(18, 122, 88, 0.1);
    outline: none;
}

.search-box button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Blog Cards */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform var(--transition-speed);
}

.blog-card-link:hover {
    transform: translateY(-8px);
}

.blog-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-speed);
    background-color: white;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    padding: 15px;
}

.blog-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.blog-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card-link:hover .card-title {
    color: var(--primary-color);
}

.card-text {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex: 1;
}

.category-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 25px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 500;
    color: var(--dark-color);
}

/* Buttons */
.btn-read-more {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all var(--transition-speed);
    font-weight: 500;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-read-more:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 122, 88, 0.3);
}

.btn-read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    margin: 50px 0 20px;
    justify-content: center;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 8px !important;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInButtons {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation delays for blog cards */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .blog-container h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .blog_hero {
        padding: 100px 20px;
    }
    
    .blog-container h1 {
        font-size: 2.5rem;
    }
    
    .blog-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .blog-container h1 {
        font-size: 2.2rem;
    }
    
    .blog-container p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .blog-image-container {
        height: 200px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .blog_hero {
        padding: 80px 20px;
    }
    
    .blog-container h1 {
        font-size: 1.8rem;
    }
    
    .blog-container p {
        font-size: 0.95rem;
    }
    
    .blog-container .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .blog-container .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .blog-image-container {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .filter-controls {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .blog-container h1 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .blog-image-container {
        height: 160px;
    }
}