@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #f4f4f4 0%, #e6eefa 50%, #a2aac0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-container {
    margin: 120px auto 60px;
    max-width: 1400px;
    padding: 0 20px;
}

.blog-title {
    background: linear-gradient(to right, #003366, #1f4d7a);
    padding: 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blog-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #003366, #ff6347, #003366);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.blog-title:hover::before {
    transform: scaleX(1);
}

.blog-title:hover {
    transform: translateY(-5px);
}

.blog-title h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.blog-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid #003366;
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #ff6347;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card h4 {
    color: #003366;
    font-size: 20px;
    padding: 20px 20px 10px;
    position: relative;
    transition: all 0.3s ease;
}

.blog-card:hover h4 {
    color: #ff6347;
}

.blog-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 2px;
    background: #ff6347;
    transition: width 0.4s ease;
}

.blog-card:hover h4::after {
    width: 50px;
}

.blog-card p {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 14px;
}

.blog-card .button {
    display: inline-block;
    background-color: #003366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    margin: 0 20px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-card .button:hover {
    background-color: #ff6347;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 99, 71, 0.4);
}

.blog-card .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.blog-card .button:hover::before {
    left: 100%;
}

/* Footer styling */
.footer {
    background-color: #003366;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-media a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-media img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-media img:hover {
    transform: translateY(-5px) rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 99, 71, 0.4);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .blog-container {
        margin-top: 100px;
    }
    
    .blog-title {
        padding: 20px;
    }
    
    .blog-title h2 {
        font-size: 24px;
    }
    
    .blog-list {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}