a {
    text-decoration: none;
}


.blog{
    margin-top: 170px;
    background-color: white;
}

.blogs-card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 70%;
    max-width: 1200px;
    margin: 20px auto; 
}

.blogs-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s; 
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
    position: relative; 
}

.blogs-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: filter 0.3s; 
}

.blogs-card-content {
    padding: 20px;
}

.blogs-card-category {
    color: #00aeef;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    margin-left: 10px;
    color: #848484;
}


.blogs-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    font-size: 24px;
    line-height: 0.2; /* Or try 30px */
    font-weight: 600;
}

.blogs-card-title a:hover {
    color: #00aeef;
    cursor: pointer;
}


.blogs-card-description {
    color: #555;
    margin-bottom: 15px;
    font-size: 15px;
}

.blogs-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.author-info {
    display: flex; /* Enable flexbox for author info */
    align-items: center; /* Vertically align image and name */
}

.blogs-card-author {
    font-size: 18px;
    font-weight: 500;
    color: #555;
}

.blogs-card-date{
    font-size: 16px;
    font-weight: 500;
    color: #848484;
}

.author-image {
    margin-right: 8px !important   ;
    width: 40px !important; /* Adjust size as needed */
    height: 40px !important;
    border-radius: 50% !important;  /* Makes the image round */
    margin-right: 5px; /* Space between image and name */
    vertical-align: middle; /* Align image with text */
}



.read-time i, .blogs-card-date i {
    margin-right: 2px;
}

.blogs-card:hover {
    transform: translateY(-5px);
}

.blogs-card:hover img {
    filter: brightness(1.1); 
}


.blogs-card::before { 
    content: "";
    position: absolute;
    top: 0;
    left: -100%; 
    width: 10%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5)); 
    transform: skewX(-25deg); 
    transition: left 1s;
    z-index: 1; 
    opacity: 0; 
}

.blogs-card:hover::before {
    left: 150%; 
    opacity: 1; 
}


/* Responsive adjustments */
@media (min-width: 768px) {
    .blogs-card-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .blogs-card {
        width: calc(48% - 20px);
    }

}

@media (min-width: 450px) {
    .blogs-card img {
        height: auto;
    }

}

/* Optional: Add some basic body styles if needed */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4; /* Only if you want this background */
}






/* -------------------------------------------Blog Details---------------------------------- */

.blog-details{
    background-color: white;
    padding-top: 100px;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* Blog Header */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.blog-headline{
    font-size: 24px;
    color: #2a2a2a;
    margin-bottom: 15px;
    font-weight: 500;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.read-time {
    font-size: 14px;
    color: #777;
}

/* Blog Title */
.blog-title {
    font-size: 28px;
    font-weight: 600;
    margin: 20px 0;
    display: flex;
    align-items: center;
}

/* Blog Subtitle */
.blog-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    line-height: 24px;
    font-weight: 500;
}

/* Bullet Points */
.blog-points {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.blog-points li {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.blog-points i {
    color: #00aeef;
    margin-right: 10px;
    font-size: 18px;
}

/* Blog Image */
.blog-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    margin-top: 20px;
}

/* Blog Content */
.blog-content {
    font-size: 16px;
    line-height: 24px;
    color: #444;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.blog-content i {
    color: #007bff;
    margin-right: 10px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 15px;
    }

    .blog-title {
        font-size: 24px;
    }

    .blog-subtitle, .blog-content {
        font-size: 14px;
    }

    .blog-section-title {
        font-size: 18px;
    }
}


.newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e4f8ff; 
    color: white;
    padding: 50px 50px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.newsletter-content {
    max-width: 50%;
}

.newsletter-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #00aeef;
}

.newsletter-content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #2a2a2a;
}

/* Email Input & Button */
.newsletter-form {
    display: grid;
    align-items: center;
    border-radius: 50px;
    padding: 5px;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    margin-bottom: 10px;
}

.newsletter-form button {
    background-color: #00aeef;
    color: white;
    border: none;
    padding: 16px 25px;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    min-width: 140px; /* Ensures a minimum width */
    display: block; /* Makes sure width is applied */
    text-align: center;
}

.newsletter-form button:hover {
    background-color: #0084b4;
}

/* Image Section */
.newsletter-image img {
    max-width: 80%;
    height: auto;
}

/* Responsive Design */

@media (max-width: 1310px) {
    .newsletter {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

}
@media (max-width: 1024px) {
    .newsletter {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .newsletter-content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .newsletter-form {
        margin: 0 auto;
        align-items: center;
    }
}


@media (max-width: 600px) {
    .newsletter {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
    .newsletter-content h2 {
        font-size: 28px;
    }

    .newsletter-content p {
        font-size: 14px;
    }

    .newsletter-form input {
        padding: 12px 15px;
        font-size: 12px;
    }

    .newsletter-form {
        display: grid;
        align-items: center;
        border-radius: 50px;
        padding: 5px;
        max-width: 400px;
    }
    .blog-details{
        background-color: white;
        padding-top: 60px;
    }
    

    .newsletter-form button {
        padding: 14px 2px;
        font-size: 12px;
        color: white;
        border: none;
    }
}


.blog-post-container {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

.blog-title { /* Style your blog title */
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;  /* Align tags and social */
    align-items: center;
    margin-bottom: 20px; /* Space below meta info */
}


.blog-tags {
    display: flex;
}

.blog-tag {
    background-color: #d9f5ff;
    padding: 10px 10px;
    margin-right: 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.blog-tag:hover {
    background-color: #00aeef;
    color: white;
}

.blog-social {
    display: flex;
    align-items: center;
}

.blog-social span {
    margin-right: 5px;
    color: #555;
}

.blog-social a {
    display: inline-block;
    margin-left: 10px;
    color: #555;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.blog-social a:hover {
    color: #00aeef;
}



/* ... (rest of your CSS) */

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-meta {
        flex-direction: column; /* Stack on smaller screens */
        align-items: flex-start;
    }
    .blog-tags {
        margin-bottom: 10px;
    }
    .blog-post-container {
        width: 95%;
        padding: 10px;
    }
    .blog{
        margin-top: 10px;
    }
}
