:root {
    --primary-dark: #f3f3f4;
    --primary: #1e293b;
    --primary-light: #334155;
    --accent: #dc2626;
    --accent-light: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --gold: #f59e0b;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    overflow-x: hidden ;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--primary-dark);
}

/* Glass Morphism Effect */
.glass-card {
    /* background: rgba(30, 41, 59, 0.7); */
    background-color: rgb(5 22 108 / 70%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%); */
    background: linear-gradient(325deg, rgb(13 112 112 / 95%) 0%, rgb(27 65 127 / 98%) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="rgba(220, 38, 38, 0.08)"/></svg>');
    background-size: 100% 100%;
}

.hero h1 {
    font-weight: 800;
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 35px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Blog Cards */
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(220, 38, 38, 0.4);
}

.blog-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.blog-content {
    padding: 28px;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.blog-date {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-date i, .blog-author i {
    margin-right: 8px;
    color: var(--accent);
    font-size: 0.9rem;
}

.blog-title {
    margin-bottom: 18px;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: -100%;
    transition: left 0.4s ease;
}

.read-more:hover::after {
    left: 0;
}

.read-more i {
    margin-left: 10px;
    transition: transform 0.4s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Featured Post */
.featured-post {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.featured-post .blog-img {
    height: 400px;
}

.featured-post .blog-content {
    padding: 35px;
}

.featured-post .blog-title {
    font-size: 2rem;
}

.featured-post .blog-excerpt {
    font-size: 1.1rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 20px;
    justify-content: center;
}

.filter-btn {
    /* background: rgba(30, 41, 59, 0.7); */
    background-color: rgb(0 42 111);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Load More Button */
.load-more {
    text-align: center;
    margin: 60px 0 40px;
}

.load-more-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.6);
    background: var(--accent-light);
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-5px);
}
/* ---------------
start blog details 
----------------*/
.blog-details{
    padding: 40px;
    border-radius: 10px;
    background-color: rgb(5 22 108 / 70%);
    border: 1px solid gray;
    box-shadow: 0px 8px 36px #0000004f;
    color: white;
}
.blog-details p{
    font-size: 18px;
    text-align: justify;
}
.blog-details figure img{
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .featured-post .blog-img {
        height: 350px;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .featured-post {
        grid-column: span 1;
    }
    
    .featured-post .blog-img {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 130px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-img {
        height: 220px;
    }
    .blog-details{
        padding: 30px;
    }
}

@media (max-width: 575.98px) {
    .blog-details{
        padding: 20px;
    }
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .navbar-brand {
        font-size: 1.7rem;
    }
    
    .footer-logo {
        font-size: 2rem;
    }
}
