/* ===================== blog.css ===================== */

/* Base */
body {
    margin-left: 0;
	margin-right: 0;
	margin-top: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #140a24, #0b0614 60%);
    color: #f5ecff;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 30px;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #f0dbff;
    text-shadow: 0 0 12px rgba(180, 120, 255, 0.3);
}

header p {
    color: #c4a7ff;
    margin-top: 10px;
}

/* Container */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Blog Post Card */
.blog-post {
    background: linear-gradient(160deg, #1a0f2b, #120a1f);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(180, 120, 255, 0.15);
    box-shadow: 0 10px 30px rgba(120, 0, 255, 0.2);
    transition: all 0.25s ease;
}

/* Hover effect */
.blog-post:hover {
    box-shadow: 0 20px 50px rgba(150, 70, 255, 0.3);
    transform: translateY(-2px);
}

/* Header (clickable) */
.blog-header {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #f0dbff;
    position: relative;
    background: rgba(140, 80, 255, 0.08);
    transition: all 0.2s ease;
}

/* Hover glow */
.blog-header:hover {
    background: rgba(140, 80, 255, 0.15);
    text-shadow: 0 0 8px rgba(180, 120, 255, 0.4);
}

/* Expand arrow */
.blog-header::after {
    content: "▾";
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    color: #c4a7ff;
}

/* Rotate arrow when active */
.blog-post.active .blog-header::after {
    transform: rotate(180deg);
}

/* Date styling (optional enhancement) */
.blog-date {
    color: #a78bfa;
    margin-right: 8px;
}

/* Content */
.blog-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: all 0.35s ease;
    opacity: 0;
}

/* Active state (expanded) */
.blog-post.active .blog-content {
    max-height: 1000px;
    padding: 20px;
    opacity: 1;
}

/* Text */
.blog-content p {
    line-height: 1.7;
    color: #e9d5ff;
    margin-bottom: 15px;
}

/* Images inside blog */
.blog-content img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid rgba(200, 140, 255, 0.2);
    box-shadow: 0 10px 25px rgba(140, 70, 255, 0.25);
}

.cool-button {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(140, 80, 255, 0.25);
    border: 1px solid rgba(200, 140, 255, 0.3);
    border-radius: 8px;
    color: #f5ecff;
    width: fit-content;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-container {
        padding: 10px;
    }

    .blog-header {
        font-size: 0.95rem;
    }
}