/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Open Sans", sans-serif;
}


/* Main Container */
.main-container {
    width: 100%;
    min-height: 100vh;
    background: white;
    overflow-x: hidden;
}

.content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
}

.section-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero-section {
    width: 100%;
    /* padding: 1.5rem; */
    /* padding-top: 10px; */
    padding-bottom: 1rem;
    /* background: linear-gradient(0deg, #d3d3db 0.07%, #e5e6eb 61.19%, #EFF2FF 99.93%); */
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    /* gap: 1rem; */
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    /* min-height: 400px; */
    margin: 0 auto;
    /* Reset to neutral layout */
    padding: 0;
    /* Ensure no padding adds space */
    background: linear-gradient(0deg, #d3d3db 0.07%, #e5e6eb 61.19%, #EFF2FF 99.93%);

}



.hero-text {
    flex: 1;
    max-width: 100rem;
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
    padding: 0 2rem;
    margin-top: 10rem;
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.hero-text h1 span {
    display: inline-block;
    transform: translateX(-100%);
    opacity: 0;
    animation: slideIn 0.6s ease-out forwards;
}

.hero-text p {
    font-size: 22px;
    font-family: Open Sans;
    font-weight: 400;
    line-height: 42px;
    word-wrap: break-word;
    margin: 0;
}

.mobile-p {
    display: block;
}

.hero-text h1 span:nth-of-type(1) {
    animation-delay: 0s;
}

.hero-text h1 span:nth-of-type(2) {
    animation-delay: 0.6s;
}

.hero-text h1 span:nth-of-type(3) {
    animation-delay: 1.2s;
}

.hero-text h1 span:nth-of-type(4) {
    animation-delay: 1.8s;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.hero-text .highlight-blue {
    color: #4285F4;
}

.hero-text .highlight-yellow {
    color: #F8A401;
}




/* Section spacing */
.blog-sections-container {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 16px;
}

.blog-section {
    margin-bottom: 28px;
}

.blog-section h2 {
    color: #121212;
    font-size: 40px;
    font-family: Poppins;
    font-weight: 600;
    line-height: 34px;
    letter-spacing: 0.30px;
    word-wrap: break-word;
    margin: 2.5rem auto;
}

/* Grid wrapper */
.blog-cards {
    display: grid;  
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Individual card */
.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    ;
    width: 100%;
    /* flex: 1 1 300px;
    min-width: 280px;
    max-width: 550px; */
}

.blog-card:hover {
    /* transform: translateY(-4px); */
    z-index: 0;
    /* stronger, layered shadow */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.12);
    background-color: #f8f9fa;
    /* subtle light tint on hover */
}

.blog-card:active {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: 40px;
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.blog-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #111;
    font-family: Poppins;
    font-weight: 600;
    line-height: 31.13px;
    letter-spacing: 0.27px;
    word-wrap: break-word;
}

.blog-card-subtitle {
    color: #777777;
    font-size: 1rem;
    font-family: Poppins;
    font-weight: 400;
    line-height: 18.31px;
    letter-spacing: 0.27px;
    word-wrap: break-word
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: self-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #007bff;
    /* adjust if needed */
    margin-bottom: 8px;
}

.blog-card-button {
    display: inline-block;
    background-color: #FFC107;
    /* yellow */
    color: #111;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.blog-card-button:hover {
    background-color: #e0a800;
}

.blog-card-button:active {
    transform: scale(0.95);
}

@media only screen and (min-width: 768px) and (max-width: 950px) {
    .hero-content {
        margin-top: -8rem !important;
    }
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .blog-card img {
        height: 140px;
    }
}

@media(max-width: 768px) {
    .hero-content {
        margin-top: -9rem !important;
        ;
    }

    .hero-text {
        margin-bottom: 3rem;
    }

    .hero-text p{
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.6;
    }

}


/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-card {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(100% - 1rem);
    }
}

@media (max-width: 640px) {
    .blog-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .blog-card-content {
        gap: 0.3rem;
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.4rem;
        /* line-height: 1.4; */
    }

    .blog-card-subtitle {
        font-size: 0.85rem;
        /* line-height: 1.4; */
    }

    .main-container .hero-section .hero-text .mobile-p {
        display: none !important;
    }
}