/* Modern Blog Page Styles */

/* Hero Section */
.blog-hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.95) 0%, rgba(96, 202, 249, 0.95) 100%);
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/slider/abc.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.blog-hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.blog-hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Breadcrumb */
.blog-breadcrumb {
    margin-top: 30px;
    text-align: center;
}

.blog-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.blog-breadcrumb li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.blog-breadcrumb li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-breadcrumb li a:hover {
    color: white;
}

.blog-breadcrumb li.active {
    color: white;
    font-weight: 600;
}

.blog-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    opacity: 0.7;
}

/* Introduction Section */
.blog-intro-section {
    padding: 80px 0;
    background: #ffffff;
}

.blog-intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.blog-intro-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.2;
}

.blog-intro-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Only apply flex if NOT a Bootstrap row */
.blog-listing:not(.row) {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* When it's a Bootstrap row, let Bootstrap handle it */
.blog-listing.row {
    display: block !important;
}

.blog-listing:not(.row) > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.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; }

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Blog Card Overlay */
.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.95) 0%, rgba(96, 202, 249, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.read-more-btn {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more-btn i {
    transform: translateX(8px);
}

/* Blog Card Category */
.blog-card-category {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.blog-card-category span {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #01c057 0%, #00a045 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(1, 192, 87, 0.4);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-category span {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(1, 192, 87, 0.5);
}

/* Blog Card Content */
.blog-card-content {
    padding: 35px 20px; /* Reduced horizontal padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #666666;
    flex-wrap: wrap;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-meta span {
    background: #e9ecef;
}

.blog-card-meta i {
    font-size: 18px;
    color: #01c057;
}

.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 18px 0;
    color: #000000;
    transition: color 0.3s ease;
}

.blog-card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title a {
    color: #01c057;
}

.blog-card-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #01c057;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.blog-card-link:hover {
    color: #00a048;
    gap: 15px;
}

.blog-card-link i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.blog-card-link:hover i {
    transform: translateX(8px);
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 100px 20px;
    color: #666666;
}

.blog-empty-icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.blog-empty-title {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.blog-empty-text {
    font-size: 18px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Call to Action Section */
.blog-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/slider/abc.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.blog-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.blog-cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-cta-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #01c057 0%, #00a045 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #01c057;
    box-shadow: 0 4px 15px rgba(1, 192, 87, 0.3);
}

.blog-cta-button:hover {
    background: linear-gradient(135deg, #00a045 0%, #01c057 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(1, 192, 87, 0.5);
    color: #ffffff;
}

.blog-cta-button i {
    font-size: 22px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-listing {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .blog-listing > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 991px) {
    .blog-hero-content h1 {
        font-size: 48px;
    }
    
    .blog-hero-content p {
        font-size: 18px;
    }
    
    .blog-intro-content h2 {
        font-size: 36px;
    }
    
    .blog-cta-title {
        font-size: 36px;
    }
    
    .blog-cta-text {
        font-size: 18px;
    }
    
    .blog-card-image {
        height: 250px;
    }
    
    .blog-card-content {
        padding: 30px 15px; /* Reduced horizontal padding */
    }
    
    .blog-card-title {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 100px 0 60px;
    }
    
    .blog-hero-content h1 {
        font-size: 36px;
    }
    
    .blog-hero-content p {
        font-size: 16px;
    }
    
    .blog-intro-section {
        padding: 60px 0;
    }
    
    .blog-intro-content h2 {
        font-size: 28px;
    }
    
    .blog-intro-content p {
        font-size: 16px;
    }
    
    .blog-grid-section {
        padding: 60px 0;
    }
    
    .blog-card-image {
        height: 220px;
    }
    
    .blog-card-content {
        padding: 25px 12px !important; /* Significantly reduced horizontal padding on mobile */
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-card-meta span {
        width: 100%;
    }
    
    .blog-cta-section {
        padding: 80px 0;
    }
    
    .blog-cta-title {
        font-size: 28px;
    }
    
    .blog-cta-text {
        font-size: 16px;
    }
    
    .blog-cta-button {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .blog-hero-content h1 {
        font-size: 32px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px 10px !important; /* Minimal horizontal padding on small mobile */
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .blog-card-excerpt {
        font-size: 15px;
    }
    
    .blog-cta-title {
        font-size: 24px;
    }
    
    .blog-cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .blog-empty-icon {
        font-size: 64px;
    }
    
    .blog-empty-title {
        font-size: 24px;
    }
    
    .blog-empty-text {
        font-size: 16px;
    }
}

