/* Custom Blog Style - Canva Inspired Pro Aesthetics (Modern Dark Theme) */

/* General Blog Root & Gradient Backgrounds */
body {
    background-color: #0d162d; 
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(111, 66, 193, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.1), transparent 25%);
}

.blog-header {
    text-align: center;
    padding: 180px 20px 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(13,22,45,1) 100%);
    position: relative;
}

/* Canva Style Gradients for Text */
.blog-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}
.blog-title span {
    background: linear-gradient(135deg, #00f3ff 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-desc {
    color: #cbd5e0;
    font-size: 1.25rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

/* Canva Pill Buttons */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 3.5rem 0 5rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, #00f3ff, #00b4d8);
    border-color: transparent;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
}

/* Post Cards Array */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 0 20px 8rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* The true Canva style card */
.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px; /* classic canva rounding */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}
.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 243, 255, 0.1);
}

.blog-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-img {
    transform: scale(1.08); /* slight inner image zoom on hover */
}

.blog-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13,22,45,0) 0%, rgba(13,22,45,0.9) 100%);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.blog-cat {
    background: rgba(111, 66, 193, 0.15);
    color: #d6bcfa;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(111, 66, 193, 0.3);
    letter-spacing: 0.5px;
}
.blog-date {
    color: #a0aec0;
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-weight: 700;
}
.blog-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.blog-card h3 a:hover {
    color: #00f3ff;
}

.blog-card p {
    color: #a0aec0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: #0d162d;
    padding: 2px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.4);
}
.author-name {
    color: #edf2f7;
    font-size: 1rem;
    font-weight: 600;
}

.read-more {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-card:hover .read-more {
    background: #00f3ff;
    color: #000;
    gap: 0.9rem;
    border-color: #00f3ff;
}

/* Full Article Page Layout - Canva Minimalist Document feel */
.article-header {
    padding: 160px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, rgba(0,243,255,0.15), rgba(111,66,193,0.15));
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.article-title {
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    color: #cbd5e0;
    font-size: 1.05rem;
    background: rgba(255,255,255,0.03);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.am-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.am-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.article-hero-img {
    max-width: 1050px;
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 28px;
    margin: 0 auto 5rem;
    display: block;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

.article-body {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 6rem;
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1.9;
}

.article-body h2 {
    color: #fff;
    font-size: 2.4rem;
    margin: 4.5rem 0 1.8rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.8rem;
}
.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #00f3ff, rgba(0,243,255,0));
    border-radius: 5px;
}

.article-body h3 {
    color: #fff;
    font-size: 1.7rem;
    margin: 3rem 0 1.2rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 2rem;
    color: #a0aec0;
}

.article-body ul {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    background: rgba(255,255,255,0.02);
    padding: 2.5rem 2.5rem 2.5rem 3.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

.article-body li {
    margin-bottom: 1.2rem;
    color: #cbd5e0;
}
.article-body li::marker {
    color: #00f3ff;
    font-size: 1.3rem;
}

.article-body blockquote {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0,243,255,0.08) 0%, rgba(13,22,45,0) 100%);
    border-left: 5px solid #00f3ff;
    border-radius: 0 24px 24px 0;
    margin: 4rem 0;
    font-style: italic;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.7;
    font-weight: 500;
}

.share-section {
    max-width: 850px;
    margin: 0 auto 6rem;
    padding: 3rem 3.5rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.share-links {
    display: flex;
    gap: 1.5rem;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px; /* Canva likes rounded rectangles for icons */
    background: rgba(255,255,255,0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.share-btn:hover {
    background: linear-gradient(135deg, #00f3ff, #00b4d8);
    color: #000;
    transform: translateY(-5px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0,243,255,0.4);
}

@media (max-width: 768px) {
    .blog-title { font-size: 3rem; }
    .blog-grid { grid-template-columns: 1fr; padding: 0 15px 5rem;}
    .article-title { font-size: 2.4rem; }
    .article-hero-img { height: 300px; margin-bottom: 3rem; border-radius: 16px; width: calc(100% - 30px); }
    .article-meta { flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: 16px; margin: 0 15px 3rem;}
    .share-section { flex-direction: column; gap: 2rem; text-align: center; padding: 2rem 1.5rem; margin: 0 15px 4rem;}
}
