/* ==========================================
   BLOG INDEX PAGE STYLES
   ========================================== */

/* Hero Section */
.blog-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #01753a 0%, #015229 100%);
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 100%);
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.blog-hero .breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.blog-hero .breadcrumb-nav a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.blog-hero .breadcrumb-nav a:hover {
    opacity: 0.8;
}

.blog-hero .page-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.blog-hero .highlight {
    color: #00ff7f;
    position: relative;
    display: inline-block;
}

.blog-hero .page-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-btn {
    padding: 12px 32px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Stats Bar */
.blog-stats {
    padding: 60px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.stat-icon svg {
    width: 48px;
    height: 48px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories Section */
.categories-section {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    /* position: sticky; */
    /* top: 80px; */
    /* z-index: 100; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.categories-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Featured Article Section */
.featured-article-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #fff;
    border-radius: 50px;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.label-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-icon svg {
    width: 20px;
    height: 20px;
}

.featured-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reading-time {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
}

.featured-content {
    padding: 40px;
}

.featured-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.publish-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.engagement-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.engagement-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CTA Banners */
.cta-banner-inline {
    padding: 60px 0;
    background: #fff;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 50px;
    border-radius: 20px;
    color: #fff;
}

.cta-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-card h3 svg {
    width: 28px;
    height: 28px;
}

.cta-card p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 0;
}

.btn-light {
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Articles Grid Section */
.articles-grid-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-time {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.author-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.author-small img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.date {
    font-size: 14px;
    color: var(--text-light);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* Newsletter CTA */
.cta-section-full {
    padding: 100px 0;
    background: linear-gradient(135deg, #01753a 0%, #015229 100%);
    position: relative;
    overflow: hidden;
}

.cta-section-full::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-content-center {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content-center h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-content-center > p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto 20px;
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 32px;
    white-space: nowrap;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cta-note svg {
    width: 16px;
    height: 16px;
}

/* Topics Section */
.topics-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.topic-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid transparent;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.topic-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.topic-icon svg {
    width: 48px;
    height: 48px;
}

.topic-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.topic-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Final CTA */
.final-cta-section {
    padding: 80px 0;
    background: #fff;
}

.final-cta-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 60px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.final-cta-card h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.final-cta-card > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-benefits li svg {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.pulse-btn {
    animation: pulse-effect 2s infinite;
}

@keyframes pulse-effect {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(1, 117, 58, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(1, 117, 58, 0);
    }
}

.cta-subtext {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cta-subtext svg {
    width: 16px;
    height: 16px;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-hero .page-title {
        font-size: 42px;
    }

    .blog-hero .page-subtitle {
        font-size: 18px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 26px;
    }

    .cta-card,
    .final-cta-card {
        padding: 40px;
        text-align: center;
    }

    .final-cta-card .col-lg-4 {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 80px 0 60px;
    }

    .blog-hero .page-title {
        font-size: 32px;
    }

    .blog-hero .page-subtitle {
        font-size: 16px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 16px;
    }

    .search-btn {
        border-radius: 12px;
        justify-content: center;
    }

    .stats-grid {
        gap: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .featured-image {
        min-height: 250px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-content h2 {
        font-size: 22px;
    }

    .featured-excerpt {
        font-size: 16px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cta-card,
    .final-cta-card {
        padding: 30px 20px;
    }

    .cta-card h3,
    .final-cta-card h2 {
        font-size: 24px;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 16px;
    }

    .newsletter-form button {
        border-radius: 12px;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .topic-card {
        padding: 24px 16px;
    }
}
