/* =====================
   Enhanced Blog Page Styles
   ===================== */
:root {
    --blog-primary: #0a4a0a;
    --blog-secondary: #ff9000;
    --blog-accent: #4ade80;
    --blog-text-dark: #1a365d;
    --blog-text-light: #64748b;
    --blog-bg-light: #f8fafc;
    --blog-bg-white: #ffffff;
    --blog-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --blog-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Blog Hero Section */
.blog-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blog-primary) 0%, #1a7a1a 50%, var(--blog-primary) 100%);
    color: white;
    padding: 120px 0 80px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0LCAwLCB3MCkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0idHJhbnNwYXJlbnQiPjwvcmVjdD48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9InJnYmEoMjU1LCAyNTUsIDI1NSwgMC4wNSkiPjwvcmVjdD48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiPjwvcmVjdD48L3N2Zz4=') repeat;
    opacity: 0.05;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.blog-hero-subtitle {
    display: inline-block;
    background: var(--blog-secondary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    animation: fadeInUp 0.8s ease-out;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Typewriter Animation */
.typewriter {
    display: inline-block;
    border-right: 3px solid var(--blog-secondary);
    animation: typewriter 3s steps(35) 1s 1 normal both,
               blinkTextCursor 500ms steps(35) infinite normal;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkTextCursor {
    from {
        border-right-color: var(--blog-secondary);
    }
    to {
        border-right-color: transparent;
    }
}

.blog-hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blog-secondary);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

/* Floating Elements */
.hero-shape-1,
.hero-shape-2,
.hero-shape-3,
.hero-shape-4 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--blog-secondary);
    animation-delay: 0s;
}

.hero-shape-2 {
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--blog-accent);
    animation-delay: 2s;
}

.hero-shape-3 {
    bottom: 30%;
    left: 20%;
    width: 40px;
    height: 40px;
    background: var(--blog-secondary);
    animation-delay: 4s;
}

.hero-shape-4 {
    top: 40%;
    right: 30%;
    width: 50px;
    height: 50px;
    background: var(--blog-accent);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

/* Blog Main Content */
.blog-main {
    padding: 80px 0;
    background: var(--blog-bg-light);
}

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

/* Blog Categories Filter */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.blog-category-btn {
    padding: 12px 25px;
    background: var(--blog-bg-white);
    color: var(--blog-text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--blog-transition);
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.blog-category-btn:hover,
.blog-category-btn.active {
    background: var(--blog-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(10, 74, 10, 0.3);
}

/* Enhanced Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.blog-card {
    background: var(--blog-bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: var(--blog-transition);
    position: relative;
}

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

.blog-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

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

.blog-card-featured .blog-image-wrapper {
    height: 100%;
    min-height: 400px;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--blog-transition);
}

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

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 74, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--blog-transition);
}

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

.blog-read-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transform: scale(0);
    transition: var(--blog-transition);
}

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

.blog-content {
    padding: 30px;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 74, 10, 0.1);
    color: var(--blog-primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.blog-card-featured .blog-title {
    font-size: 1.8rem;
}

.blog-excerpt {
    color: var(--blog-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blog-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

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

.author-name {
    font-weight: 600;
    color: var(--blog-text-dark);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.blog-date {
    color: var(--blog-text-light);
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.blog-read-time {
    color: var(--blog-text-light);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
}

.blog-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--blog-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--blog-transition);
    font-size: 0.9rem;
}

.blog-read-btn:hover {
    background: #1a7a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(10, 74, 10, 0.3);
}

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

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

/* Blog Newsletter Section */
.blog-newsletter {
    background: linear-gradient(135deg, var(--blog-primary) 0%, #1a7a1a 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgzMCkiPjxyZWN0IHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgZmlsbD0idHJhbnNwYXJlbnQiPjwvcmVjdD48cmVjdCB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIGZpbGw9InJnYmEoMjU1LCAyNTUsIDI1NSwgMC4wNSkiPjwvcmVjdD48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiPjwvcmVjdD48L3N2Zz4=') repeat;
    opacity: 0.1;
    z-index: 1;
}

.blog-newsletter-content {
    position: relative;
    z-index: 2;
}

.blog-newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.blog-newsletter-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Poppins', sans-serif;
}

.blog-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.blog-newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--blog-transition);
}

.blog-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.blog-newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.blog-newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--blog-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--blog-transition);
    font-size: 1rem;
}

.blog-newsletter-btn:hover {
    background: #ffb700;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 144, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-description {
        font-size: 1.1rem;
    }
    
    .blog-hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog-categories {
        gap: 10px;
    }
    
    .blog-category-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .blog-card-featured .blog-image-wrapper {
        height: 250px;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-newsletter {
        padding: 40px 25px;
    }
    
    .blog-newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-newsletter-btn {
        justify-content: center;
    }
    
    .typewriter {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .typewriter {
        font-size: 1.8rem;
    }
    
    .blog-hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-card-featured .blog-title {
        font-size: 1.5rem;
    }
}
