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

body {
    line-height: 1.6;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Header */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background-color: #f9f9f9;
}

.header-section .logo img {
    max-width: 120px;
    height: auto;
}

.header-section a {
    text-decoration: none;
    color: #fff;
    background-color: #5044E5;
    padding: 8px 25px;
    border-radius: 33px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.header-section a:hover {
    background-color: #3b35b3;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    background-image: linear-gradient(to right, #fff, #d7d5f5);
    width: 100%;
    margin: auto;
}

.hero-section > .badge {
    max-width: 300px;
    height: 42px;
    margin: 0 auto 1rem auto;
    border-radius: 50px;
    border: 0.3px solid #000;
    background-color: #cac3c3;
    color: #5044E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-section > h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section span {
    color: #5044E5;
}

.hero-section > p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 2rem auto;
}

.hero-section > .form-group {
    border: 2px solid #000;
    max-width: 360px;
    padding: 0.5rem;
    border-radius: 10px;
    margin: 2rem auto;
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-section .form-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.hero-section .form-group button {
    background-color: #5044E5;
    padding: 10px 20px;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Blog Section */
.blog-section {
    max-width: 100%;
    margin: 30px auto;
    text-align: center;
}

.blog-section > ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
    justify-content: center;
    margin: 30px auto;
    padding: 0 1rem;
}

.blog-section > ul a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 50px;
    transition: all 0.3s;
}

.blog-section > ul .active {
    background-color: #5044E5;
    color: #fff;
}

/* Blog Cards */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 1rem;
}

.blog-container > .card {
    width: 300px;
    background: #fff;
    text-align: left;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-container > .card:hover {
    transform: translateY(-5px);
}

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

.card-text {
    padding: 15px;
}

.card-text a {
    display: inline-block;
    background-color: #8b89a5;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    padding: 5px 15px;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.card-text h6 {
    font-size: 1rem;
    margin: 10px 0;
}

.card-text p {
    font-size: 0.875rem;
    color: #555;
}

/* Subscribe Section */
.subscribe-section {
    margin: auto;
    max-width: 600px;
    text-align: center;
    padding: 3rem 1rem;
}

.subscribe-section h1 {
    font-size: 2rem;
    color: #373737;
    margin-bottom: 1rem;
}

.subscribe-section p {
    font-size: 1rem;
    color: #9A9A9A;
    margin-bottom: 1.5rem;
}

.subscribe-section .input {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.subscribe-section input[type="email"] {
    border-radius: 6px;
    border: 1px solid #C7C7C7;
    outline: none;
    width: 100%;
    max-width: 400px;
    height: 50px;
    padding: 10px;
}

.subscribe-section button {
    background-color: #6257E8;
    border: none;
    outline: none;
    padding: 15px 25px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-section button:hover {
    background-color: #473dc1;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .header-section {
        padding: 1rem 2rem;
    }

    .blog-container {
        padding: 1rem;
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .hero-section > h1 {
        font-size: 1.5rem;
    }

    .hero-section > p {
        font-size: 0.9rem;
    }

    .header-section {
        flex-direction: column;
        gap: 10px;
    }

    .blog-section > ul {
        flex-direction: column;
        align-items: center;
    }

    .subscribe-section h1 {
        font-size: 1.5rem;
    }

    .subscribe-section input[type="email"] {
        width: 100%;
    }

    .blog-container > .card {
        width: 100%;
        max-width: 95%;
    }
}

@media screen and (max-width: 480px) {
    .hero-section > .form-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-section .form-group button {
        width: 100%;
        margin-top: 10px;
    }

    .header-section .logo img {
        max-width: 90px;
    }

    .header-section a {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .subscribe-section .input {
        flex-direction: column;
    }

    .subscribe-section button {
        width: 100%;
    }
}
