/* Blog-specific styles */

.blog-hero {
    background: #f4f7ff;
    padding-bottom: 2rem;
}

.blog-header {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #013DC4;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}

.blog-content {
    padding: 4rem 0;
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #013DC4;
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, #f4f7ff 0%, #e5edff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(1, 61, 196, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.blog-emoji {
    font-size: 4rem;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.blog-emoji .blog-img {
    object-fit: contain;
    max-width: 100%;
    object-position: center;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

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

.blog-card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #013DC4;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-meta {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta::before {
    content: '📅';
    font-size: 0.8rem;
}

.blog-subscribe {
    background: #013DC4;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-subscribe::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.subscribe-content {
    position: relative;
    z-index: 1;
}

.blog-subscribe h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.blog-subscribe p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-subscribe .signup-form {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    padding: 0;
    margin-top: 0;
}

.blog-subscribe .signup-input {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.blog-subscribe .email-input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
}

.blog-subscribe .email-input::placeholder {
    color: #999;
}

.blog-subscribe button {
    padding: 1rem 2rem;
    background: #6688ff;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0;
}

.blog-subscribe button:hover {
    background: #5577ee;
}

.header .left-nav a.active {
    color: #013DC4;
}

.header .left-nav a.active::after {
    width: 70%;
}

/* Responsive Design */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .blog-header h1 {
        font-size: 3.5rem;
    }

    .blog-subscribe .signup-input {
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-card-content h3 {
        font-size: 1.4rem;
    }

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

    .blog-subscribe h2 {
        font-size: 3rem;
    }
}

/* Hover effects for better interactivity */
.blog-card:hover .blog-emoji {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-content h3 {
    color: #0056b3;
}

/* Loading animation for cards */
.blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-card:nth-child(7) { animation-delay: 0.7s; }
.blog-card:nth-child(8) { animation-delay: 0.8s; }
.blog-card:nth-child(9) { animation-delay: 0.9s; }

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

/* Subtle tentacle decorations for blog cards */
.blog-card:nth-child(3n+1):hover::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 40px;
    height: 40px;
    background: url(../images/tentacle_top_left.png) no-repeat;
    background-size: contain;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.blog-card:nth-child(3n+2):hover::after {
    content: '';
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: 40px;
    height: 40px;
    background: url(../images/tentacle_left.png) no-repeat;
    background-size: contain;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
