/* ===========================
   Blogs Page Styles
   Theme Color: #eb9000 (Orange)
   =========================== */

/* Blogs Hero Section */
.blogs-hero {
    /* background: linear-gradient(135deg, #eb9000 0%, #ff6b00 100%); */
    /* padding: 80px 0 60px;
    text-align: center;
    color: white; */
}

.blogs-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.blogs-hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Blogs Container */
.blogs-container {
    padding: 80px 0;
    /* background: #f5f5f5; */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.rx-banner h4{
    text-align: center;
}
/* .rx-banner h4 span{
    color: #eb9000;
} */
.rx-banner p{
text-align: center;
}
/* Hero Blogs Section (Featured) */
.hero-blogs-section {
    margin-bottom: 60px;
}

.hero-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card-hero {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    height: 400px;
}

.blog-card-hero:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

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

.blog-card-hero .blog-image-wrapper {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.blog-card-hero .blog-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
   background:rgba(48, 2, 29, 0.4);
    z-index: 1;
}

.blog-card-hero .blog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    color: white;
}

.blog-date {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}

.blog-card-hero h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    /* background: #eb9000; */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid #eb9000;
}

.btn-read-more:hover {
    background: transparent;
    /* border-color: #fff; */
    color: #fff;
    transform: translateX(5px);
    background: #eb9000;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

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

/* Regular Blogs Section */
.regular-blogs-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.regular-blogs-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #eb9000;
    margin: 15px auto 0;
    border-radius: 2px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card-link {
    text-decoration: none;
    display: block;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 3px solid #eb9000;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.blog-card .blog-content {
    padding: 20px;
}

.blog-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card:hover h3 {
    color: #eb9000;
}

.blog-card .blog-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.empty-blogs {
    text-align: center;
    padding: 100px 20px;
}

.empty-blogs i {
    font-size: 100px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.empty-blogs h3 {
    font-size: 28px;
    color: #666;
    margin-bottom: 15px;
}

.empty-blogs p {
    font-size: 16px;
    color: #999;
}

/* Loading State */
.blogs-loading {
    text-align: center;
    padding: 100px 20px;
}

.blogs-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #eb9000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blogs-hero h1 {
        font-size: 40px;
    }

    .regular-blogs-section h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .blogs-hero {
        padding: 60px 0 40px;
    }

    .blogs-hero h1 {
        font-size: 32px;
    }

    .blogs-hero p {
        font-size: 16px;
    }

    .blogs-container {
        padding: 50px 0;
    }

    .hero-blogs-section {
        margin-bottom: 40px;
    }

    .hero-blogs-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .regular-blogs-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .blog-card-hero h3,
    .blog-card h3 {
        font-size: 20px;
    }

    .blog-card .blog-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .blogs-hero h1 {
        font-size: 28px;
    }

    .blog-card-hero .blog-content,
    .blog-card .blog-content {
        padding: 20px;
    }

    .btn-read-more {
        padding: 10px 20px;
        font-size: 13px;
    }
     .rx-banner h4{
        font-size: 1rem;
    }
    .rx-banner p{
        font-size: 1rem !important;
    }
}

/* Animation for blog cards on load */
.blog-card-link {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.blog-card-link:nth-child(1) { animation-delay: 0.1s; }
.blog-card-link:nth-child(2) { animation-delay: 0.2s; }
.blog-card-link:nth-child(3) { animation-delay: 0.3s; }
.blog-card-link:nth-child(4) { animation-delay: 0.4s; }
.blog-card-link:nth-child(5) { animation-delay: 0.5s; }
.blog-card-link:nth-child(6) { animation-delay: 0.6s; }

.blog-card-hero {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.blog-card-hero:nth-child(1) { animation-delay: 0.1s; }
.blog-card-hero:nth-child(2) { animation-delay: 0.2s; }
.blog-card-hero:nth-child(3) { animation-delay: 0.3s; }
.blog-card-hero:nth-child(4) { animation-delay: 0.4s; }

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