/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.heroblog {
    background: url('../image/image4.jpg') no-repeat center;
    background-size: cover;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 20px;
}

.heroblog h1 {
    font-size: 3rem;
    background: linear-gradient(to right, #fff 20%, #4a4dff 40%, #fff 60%, #ffb74a 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Blog Section */
/* .blog-section {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.blog-section li {
    flex: 1 1 calc(50% - 15px);
    max-width: 48%;
    margin-top: 50px;
}

/* Blog Cards */
/* .blog-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.blog-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

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

.blog-card h5 {
    margin: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.blog-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.blog-card a {
    display: inline-block;
    width: auto;
    text-decoration: none;
    background: #317ff4;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s;
}

.blog-card a:hover {
    background: #1a5bb8;
}  */

/* Blog Section */
.blog-section {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.blog-section li {
    flex: 1 1 calc(50% - 15px);
    max-width: 48%;
    margin-top: 50px;
}

/* Blog Card */
.blog-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    overflow: hidden;
    min-height: 380px; /* Ensures cards have a uniform height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card:hover {
    transform: translateY(-10px);
}

/* Blog Image */
.blog-img {
    width: 100%;
    height: 220px; /* Fixed height */
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image scales while maintaining aspect ratio */
    border-radius: 10px;
}

/* Blog Content */
.blog-card h5 {
    margin: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.blog-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

/* Read More Button */
.blog-card a {
    text-decoration: none;
    background: #317ff4;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
    width: fit-content;
}

.blog-card a:hover {
    background: #1a5bb8;
}

/* Contact Section */
.contact-blog {
    background: #222;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.contact-blog h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-form-blog {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-blog input,
.contact-form-blog textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.contact-form-blog button {
    background: #ff9100;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form-blog button:hover {
    background: #e07b00;
}

/* Success Alert */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 600px;
    margin: auto;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    .heroblog h1 {
        font-size: 2.5rem;
    }


    .blog-card h5 {
        font-size: 1rem;
    }

    .contact-blog h2 {
        font-size: 2rem;
    }
}

/* Small Screens (Phones) */
@media (max-width: 621px) {
    .heroblog h1 {
        font-size: 2rem;
    }

    .blog-card {
        padding: 15px;
        min-height: auto;
    }

    .blog-section li {
        flex: 1 1 100%;
        max-width: 100%;
    }


    .blog-img {
        height: 180px;
    }

    .blog-card h5 {
        font-size: 1rem;
    }

    .blog-card p {
        font-size: 0.9rem;
    }

    .blog-card a {
        font-size: 14px;
        padding: 8px 15px;
    }

    .contact-blog {
        padding: 30px 15px;
    }

    .contact-blog h2 {
        font-size: 1.8rem;
    }

    .contact-form-blog {
        width: 100%;
    }

    .contact-form-blog input,
    .contact-form-blog textarea {
        width: 100%;
        font-size: 14px;
    }

    .contact-form-blog button {
        font-size: 14px;
    }
}

