/* ================================
   BLOG STYLE - REDESIGNED
   ================================ */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e5e7eb;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-out;
}

/* Blog Header */
.blog-header {
    padding: 60px 0 40px;
    text-align: center;
}

.blog-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blog Content */
.blog-content {
    background-color: var(--background-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 50px;
    margin-bottom: 60px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-image {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.blog-image:hover {
    transform: scale(1.02);
}

.blog-image-caption {
    text-align: center;
    font-style: italic;
    color: var(--light-text);
    margin-top: -10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Typography */
h1, h2, h3, h4 {
    margin: 30px 0 20px;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    font-size: 1.6rem;
    color: var(--text-color);
}

p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-left: 25px;
    margin-bottom: 25px;
}

li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--light-text);
    background: var(--light-bg);
    border-radius: 0 8px 8px 0;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    left: 10px;
    top: 10px;
    line-height: 1;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    margin: 30px 0;
    overflow-x: auto;
    color: #f8fafc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* Tags */
.tags {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 60px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.author-details h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.author-details p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Read More Section */
.read-more {
    margin-top: 60px;
}

.read-more h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.read-more-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.read-more-card {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.read-more-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.read-more-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.read-more-card .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more-card .read-more-link:hover {
    color: var(--primary-dark);
}

/* Back to Home Button */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.back-to-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-content {
        padding: 40px;
    }
    
    .read-more-links {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0 30px;
    }
    
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-content {
        padding: 30px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-bottom: 20px;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-content {
        padding: 25px 20px;
    }
    
    .read-more-links {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}

/* ================================
   BLOG LISTING PAGE STYLES
   ================================ */

/* Blog Page Container */
.blog-page .blog-container {
    padding-top: 100px;
    padding-bottom: 80px;
}

/* Section Header */
.blog-page .section-header {
    margin-bottom: 60px;
    text-align: center;
}

.blog-page .section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-page .section-description {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Posts Grid */
.blog-page .blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Blog Post Card */
.blog-page .blog-post {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-page .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Post Image */
.blog-page .post-image {
    overflow: hidden;
    height: 250px;
}

.blog-page .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-page .blog-post:hover .post-image img {
    transform: scale(1.05);
}

/* Post Content */
.blog-page .post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.blog-page .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.blog-page .post-meta time {
    position: relative;
    padding-right: 15px;
}

.blog-page .post-meta time::after {
    content: '';
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--light-text);
    border-radius: 50%;
}

.blog-page .post-category {
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.blog-page .post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-color);
}

.blog-page .post-excerpt p {
    color: var(--light-text);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Post Actions */
.blog-page .post-actions {
    margin-top: auto;
}

.blog-page .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.blog-page .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.blog-page .btn-primary i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

/* Blog Categories */
.blog-page .blog-categories {
    margin-top: 80px;
    text-align: center;
}

.blog-page .section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.blog-page .category-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-page .category-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.blog-page .category-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* ================================
   RESPONSIVE STYLES
   ================================ */

@media (max-width: 1024px) {
    .blog-page .blog-post {
        grid-template-columns: 250px 1fr;
    }
    
    .blog-page .post-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .blog-page .blog-container {
        padding-top: 80px;
    }
    
    .blog-page .section-title {
        font-size: 2.2rem;
    }
    
    .blog-page .blog-post {
        grid-template-columns: 1fr;
    }
    
    .blog-page .post-image {
        height: 200px;
    }
    
    .blog-page .post-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .blog-page .section-title {
        font-size: 1.8rem;
    }
    
    .blog-page .section-description {
        font-size: 1rem;
    }
    
    .blog-page .post-title {
        font-size: 1.4rem;
    }
    
    .blog-page .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .blog-page .post-meta time::after {
        display: none;
    }
    
    .blog-page .category-list {
        gap: 10px;
    }
    
    .blog-page .category-tag {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
   }
