/* Enhanced Blog Grid */
.blog-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 60px 0;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.blog-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #4ba349, #2d6a2b);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

/* Image Container with Overlay */
.blog-image {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    flex-shrink: 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Image Overlay */
.blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 163, 73, 0.1), rgba(45, 106, 43, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-image-overlay {
    opacity: 1;
}

/* Category Badge */
.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(75, 163, 73, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Content Area */
.blog-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    background: #fff;
}

.blog-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.blog-date::before {
    content: '📅';
    font-size: 12px;
}

.blog-content h3 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    min-height: 62px;
}

.blog-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a, #4ba349);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: bottom left;
}

.blog-content h3 a:hover {
    color: #4ba349;
    background-size: 100% 2px;
}

.blog-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
    font-size: 15px;
}

/* Enhanced Button */
.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4ba349;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.blog-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.blog-btn:hover {
    gap: 12px;
    color: #2d6a2b;
}

.blog-btn:hover::after {
    transform: translateX(4px);
}

/* Author Section */
.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ba349, #2d6a2b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.author-title {
    font-size: 11px;
    color: #999;
}

/* Stats Section */
.blog-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #999;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading Skeleton */
.blog-card.skeleton .blog-image {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        gap: 28px;
        padding: 0 20px;
    }
    
    .blog-content h3 {
        font-size: 20px;
        min-height: 56px;
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .blog-content {
        padding: 24px;
    }
    
    .blog-content h3 {
        font-size: 20px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 40px 0;
        padding: 0 16px;
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-content h3 {
        font-size: 18px;
        min-height: auto;
    }
    
    .blog-content p {
        font-size: 14px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .blog-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    }
    
    .blog-card {
        background: #2d2d2d;
    }
    
    .blog-content {
        background: #2d2d2d;
    }
    
    .blog-content h3 a {
        color: #f0f0f0;
    }
    
    .blog-content p {
        color: #b0b0b0;
    }
    
    .blog-author {
        border-top-color: #404040;
    }
    
    .author-name {
        color: #f0f0f0;
    }
}

/* Hover Card Effect - Additional Polish */
.blog-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for 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-pagination{
    margin-top:50px;
    text-align:center;
}

.blog-pagination .page-numbers{
    display:inline-block;
    margin:0 5px;
    padding:10px 16px;
    border-radius:8px;
    text-decoration:none;
    background:#f5f5f5;
    color:#333;
}

.blog-pagination .current{
    background:#4ba349;
    color:#fff;
}


/*Testimonial*/
.testimonial-slider {
    padding: 20px 10px 60px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    text-align: center;
    height: 100%;
}

.testimonial-card p {
    color: #555;
    line-height: 1.8;
}

.testimonial-card h4 {
    color: #4ba349;
    margin: 15px 0 5px;
}

.testimonial-card span {
    color: #777;
    font-size: 14px;
}

.swiper-pagination-bullet-active {
    background: #4ba349 !important;
}

.about{
    /*color:#178527;*/
    color: #000;
}

.about span{
    color:#4ba349;
}

/*footer*/
.custom-footer{
    background:linear-gradient(135deg,#003d46,#004c57);
    padding:50px 0;
    color:#fff;
}

.custom-footer .footer-container{
    max-width:1280px;
    margin:auto;
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.2fr;
    gap:40px;
    padding:0 20px;
}

.custom-footer .footer-col{
    padding-right:25px;
}

.custom-footer .footer-col:not(:last-child){
    border-right:1px solid rgba(255,255,255,.15);
}

.custom-footer h4{
    color:#fff;
    margin-bottom:20px;
    font-size:20px;
}

.custom-footer ul{
    list-style:none;
    padding:0;
    margin:0;
}

.custom-footer li{
    margin-bottom:12px;
}

.custom-footer a{
    color:#fff;
    text-decoration:none;
}

.custom-footer .footer-about p{
    margin-top:15px;
    color:rgba(255,255,255,.8);
    line-height:1.8;
}

.custom-footer .footer-social{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.custom-footer .footer-social a{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.1);
}

.custom-footer .custom-logo{
    max-width:180px;
    height:auto;
}

@media(max-width:768px){
    .custom-footer .footer-container{
        grid-template-columns:1fr;
    }

    .custom-footer .footer-col{
        border-right:none !important;
        padding-right:0;
    }
}

