/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%), url('../images/blog/blog_hero.png') center/cover no-repeat;
    background-attachment: fixed;
    padding: 80px 20px;
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Articles Grid */
.blog-articles {
    padding: 60px 20px;
    background: #ffffff66;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

/* New Badge for Latest Article */
.blog-new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    }
}

.blog-card-header {
    margin-bottom: 20px;
}

.blog-date {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.blog-tag {
    display: inline-block;
    background: #e8f0ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-expand-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0066cc;
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-expand-btn:hover {
    background: #0052a3;
    transform: scale(1.1);
}

.blog-expand-btn:active {
    transform: scale(0.95);
}

/* Default state - show plus */
.blog-expand-btn::before {
    content: '+';
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: showPlus 0.4s ease forwards;
}

/* Active state - show X */
.blog-expand-btn.active::before {
    content: '×';
    animation: showX 0.4s ease forwards;
}

@keyframes showPlus {
    from {
        opacity: 0;
        transform: rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes showX {
    from {
        opacity: 0;
        transform: rotate(45deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* Full Articles Section */
.blog-full-articles {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%), url('../images/blog/blog_hero.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.blog-full-article {
    max-width: 800px;
    margin: 0 auto 60px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    display: none;
    animation: slideDown 0.3s ease;
}

.blog-full-article.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-full-article:last-child {
    margin-bottom: 0;
}

.blog-full-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.blog-close-btn {
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.blog-close-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.1);
}

.blog-close-btn:active {
    transform: scale(0.95);
}

.blog-full-date {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-full-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.blog-full-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.blog-full-content p {
    margin-bottom: 20px;
}

.blog-full-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.blog-full-content ul {
    margin: 15px 0 20px 20px;
    padding-left: 20px;
}

.blog-full-content li {
    margin-bottom: 10px;
    color: #333;
}

/* Blog CTA Section */
.blog-cta {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
    padding: 60px 20px;
}

.blog-cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-cta-image {
    flex: 0 0 40%;
    min-width: 0;
}

.blog-cta-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.blog-cta-text {
    flex: 1;
    text-align: left;
}

.blog-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.blog-cta .btn {
    background: #ffffff;
    color: #0066cc;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.blog-cta .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

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

    .blog-hero p {
        font-size: 1rem;
    }

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

    .blog-full-article {
        padding: 25px;
    }

    .blog-full-title {
        font-size: 1.5rem;
    }

    .blog-cta-content {
        flex-direction: column;
        gap: 30px;
    }

    .blog-cta-image {
        flex: 0 0 100%;
    }

    .blog-cta-text {
        text-align: center;
    }

    .blog-cta h2 {
        font-size: 1.5rem;
    }

    .blog-cta p {
        font-size: 1rem;
    }
}

