/* ==============================================
   BLOG PAGE STYLES - BrightStack Solutions
   Beautiful Layout with Smooth Animations
   ============================================== */

/* ==============================================
   1. BLOG HERO
   ============================================== */



/* Search Bar */
.blog-search-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.blog-search-bar {
    position: relative;
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(26, 26, 46, 0.1);
    display: flex;
    align-items: center;
    padding: 0.1rem 1rem;
    transition: all 0.3s ease;
}

.blog-search-bar:focus-within {
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.2);
}

.blog-search-bar i {
    color: #FF6B35;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.blog-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 1rem 0;
    color: #1a1a2e;
}

.blog-search-bar input::placeholder {
    color: #94A3B8;
}

/* ==============================================
   2. FEATURED POST
   ============================================== */

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(26, 26, 46, 0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(26, 26, 46, 0.15);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.featured-post-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-title {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-post-excerpt {
    font-size: 1.125rem;
    color: #5a5a5a;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.featured-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ==============================================
   3. BLOG META & AUTHOR
   ============================================== */

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.blog-date,
.blog-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5a5a5a;
    font-size: 0.9375rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: #1a1a2e;
    font-size: 1rem;
}

.author-info span {
    color: #5a5a5a;
    font-size: 0.875rem;
}

/* ==============================================
   4. CATEGORIES FILTER
   ============================================== */

.blog-filters {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.filter-title {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #FFFFFF;
    color: #5a5a5a;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-pill:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
}

.category-pill.active {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    border-color: #FF6B35;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* ==============================================
   5. BLOG GRID
   ============================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--animation-delay, 0s);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 26, 46, 0.15);
}

.blog-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(247, 147, 30, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.blog-card-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #FF6B35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.blog-card:hover .blog-card-link {
    transform: scale(1);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

.blog-card-excerpt {
    color: #5a5a5a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.blog-author-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.blog-author-small strong {
    display: block;
    color: #1a1a2e;
    font-size: 0.9375rem;
}

.blog-author-small .blog-date {
    display: block;
    font-size: 0.8125rem;
}

.read-more-link {
    color: #FF6B35;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    gap: 0.75rem;
}

/* ==============================================
   6. PAGINATION
   ============================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.pagination-btn {
    padding: 0.875rem 1.75rem;
    background: #FFFFFF;
    color: #1a1a2e;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    transform: translateY(-2px);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #1a1a2e;
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    transform: scale(1.1);
}

.pagination-number.active {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    border-color: #FF6B35;
}

/* ==============================================
   7. NEWSLETTER CTA
   ============================================== */

.newsletter-cta {
    padding: 5rem 0;
}

.newsletter-box {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
    border: 2px solid #FFE4D6;
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.newsletter-box h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.newsletter-box p {
    font-size: 1.125rem;
    color: #5a5a5a;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.newsletter-box small {
    color: #5a5a5a;
    font-size: 0.875rem;
}

/* ==============================================
   8. NO POSTS
   ============================================== */

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts h3 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.no-posts p {
    font-size: 1.125rem;
    color: #5a5a5a;
}

/* ==============================================
   9. ANIMATIONS
   ============================================== */

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

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* ==============================================
   10. RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 992px) {
    .blog-hero {
        padding: 6rem 0 4rem;
    }

    .blog-hero-title {
        font-size: 2rem;
          font-weight: 800;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        height: 350px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2rem;
      
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .category-pills {
        gap: 0.75rem;
    }

    .category-pill {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }

    .featured-post-content {
        padding: 2rem;
    }

    .newsletter-box {
        padding: 3rem 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 5rem 0 3rem;
    }

    .blog-hero-title {
        font-size: 1.75rem;
    }

    .blog-search-bar input {
        font-size: 1rem;
    }

    .featured-post-title {
        font-size: 1.5rem;
    }

    .blog-card-content {
        padding: 1.5rem;
    }
}



/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.05); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }

    .cta-title {
        font-size: 1.375rem;
    }

    .cta-subtitle {
        font-size: 0.9375rem;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.25rem;
    }

    .cta-subtitle {
        font-size: 0.875rem;
    }
}