body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.page-wrapper {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    height: auto;
    margin-bottom: 0;
} 

.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title span {
    display: inline-block;
    animation: wavyText 2s infinite;
    animation-delay: calc(0.1s * var(--i));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

main.content {
    position: relative;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h2 {
    color: #333;
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wavyText {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .blog-card {
        margin: 0 10px;
    }
}

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Desktops and Laptops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
}

/* Tablets and Small Laptops (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .blog-content {
        padding: 1.5rem;
    }
    .blog-content h2 {
        font-size: 1.3rem;
    }
}

/* Large Mobile Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .hero-section {
        padding: 40px 0;
    }
    .blog-image {
        height: 200px;
    }
}

/* Small Mobile Devices (575px and below) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
    .hero-section {
        padding: 30px 0;
    }
    .blog-card {
        margin: 0 10px;
    }
    .blog-image {
        height: 180px;
    }
    .blog-content {
        padding: 1.25rem;
    }
    .blog-content h2 {
        font-size: 1.2rem;
    }
    .blog-excerpt {
        font-size: 0.9rem;
       
    }
    .read-more {
        margin-bottom: 0.5rem;
    }
    .content {
        padding: 1rem;
    }
}

/* Fix for very small devices */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .blog-content h2 {
        font-size: 1.1rem;
    }
    .blog-image {
        height: 160px;
    }
}

/* Add animation delay for each card */
.blog-card:nth-child(1) { animation-delay: 0.2s; }
.blog-card:nth-child(2) { animation-delay: 0.4s; }
.blog-card:nth-child(3) { animation-delay: 0.6s; }
