@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

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

html {
    font-size: 62.5%;
}

html,
body {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 1.4;
    scroll-behavior: smooth;
}

body {
    font-size: 1.4rem;
}

ul {
    list-style: none;
}

header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

nav {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 2.5rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li {
    font-size: 1.8rem;
    cursor: pointer;
}

nav ul li:hover {
    border-bottom: 2px solid rgb(255, 200, 0);
}

nav i {
    font-size: 2.2rem;
    cursor: pointer;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* hero section */
#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero_content h1 {
    font-size: 6rem;
    line-height: 1.2;
}

.hero_content h4 {
    font-size: 2.5rem;
    font-weight: 300;
}

.hero_image img {
    max-width: 100%;
    border-radius: 2rem;
}

/* long card section */
.h_card {
    display: flex;
    margin: 2rem 0;
    box-shadow: 0px 5px 4px rgba(221, 221, 221, 0.25);
    align-items: center;
    border: 1px solid #e2e2e2;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-wrap: wrap;
}

.card_content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.h_card img {
    width: 350px;
    max-width: 100%;
    height: auto;
}

.status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-btn {
    all: unset;
    font-weight: 600;
    cursor: pointer;
}

.read-btn:hover {
    border-bottom: 1px solid #ccc;
}

/* vertical card */
.v_card {
    display: flex;
    flex-direction: column-reverse;
    max-width: 320px;
    box-shadow: 0px 5px 4px rgba(221, 221, 221, 0.25);
    align-items: center;
    border: 1px solid #e2e2e2;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card_wrapper {
    display: flex;
    justify-content: center;
}

.v_card img {
    width: 100%;
    height: auto;
}

/* footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

footer ul {
    display: flex;
    gap: 1.5rem;
}

footer ul li {
    font-size: 1.8rem;
}

/* post page */
.banner_image img {
    width: 100%;
    border-radius: 1rem;
}

.post h1 {
    font-size: 3rem;
    margin: 1rem 0;
}

.post hr {
    margin: 3rem 0;
}

.about-author {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

article {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: #000;
}

/* ================== Responsive ================== */
@media (max-width: 992px) {
    .hero_content h1 {
        font-size: 4rem;
    }

    .hero_content h4 {
        font-size: 2rem;
    }

    .h_card {
        flex-direction: column;
    }

    .h_card img {
        width: 100%;
    }

    nav h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero_content h1 {
        font-size: 3rem;
    }

    .hero_content h4 {
        font-size: 1.6rem;
    }

    .status {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}
