body {
    background: var(--main-alt-bg);
}

.hero-section {
    width: 100%;
    display: flex;
    padding: 0 10%;
    flex-direction: column;

    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--text-alt-color);
}

.hero-title h1 {
    font-size: 5rem;
}

.hero-title p {
    text-align: right;
}

/* ------------------------------------ */
/*                 POST                 */
/* ------------------------------------ */
.btn.active,
.btn.active:hover {
    border-color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.2);
}

.post {
    display: flex;
    gap: 3rem;
    background: var(--sec-bg);
    padding: 20px;
    border-radius: 1rem;
    align-items: stretch;
}

.post-image {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
    border-radius: 1rem;
}

.post-image img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.meta {
    font-size: 1rem;
    color: var(--text-alt-color);
    margin-bottom: 10px;
}

.read-more {
    margin-top: 5%;
    align-self: flex-start;
    transition: all .3s ease;
}

.read-more:hover {
    border-color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

/* ------------------------------------ */
/*              CATEGORIES              */
/* ------------------------------------ */
.categories {
    width: 100%;
    height: auto;
    padding: 7rem 0 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories h2 {
    margin: 0;
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;

    display: flex;
    gap: 1rem;
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 2rem 10%;
}

.post-small {
    background: var(--sec-bg);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.post-small:hover {
    transform: translateY(-5px);
}

.post-small .post-image {
    flex: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

.post-small .post-image img {
    width: 100%;
    height: 25vh;
    object-fit: cover;
    display: block;
}

.post-small .post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.post-small .post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.post-small .post-content a {
    text-decoration: none;
}

.post-small .post-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------ */
/*                FOOTER                */
/* ------------------------------------ */
footer {
    width: calc(100% - 40px);
    height: 50vh;
    background: var(--sec-bg);
    border-radius: 10px;
    margin: 20px;
    padding: 3rem 5%;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left-side {
    flex: 1 1 800px;
}

.footer-left-side h2 {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    -webkit-tap-highlight-color: transparent;

    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-color);
}

.footer-left-side h2 span {
    font-family: "GonzalesSans", sans-serif;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--logo-color);
}

.footer-left-side p {
    line-height: 1.6;
}

.footer-left-side p:last-child {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer-right-side {
    display: flex;
    flex: 2 1 200px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-right-side ol {
    list-style: none;
    padding: 0;
}

.footer-right-side ol li:first-child {
    font-weight: bold;
    color: var(--logo-color);
    margin-bottom: 1rem;
}

.footer-right-side ol li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    transition: color 0.3s;
}

.footer-right-side ol li a:hover {
    color: var(--logo-color);
}

/* ===================================================== */
/*                RESPONSIVE DESIGN                      */
/* ===================================================== */

/* ---------- Large Screens (ab 1600px) ---------- */
@media (min-width: 1600px) {
    .hero-title h1 {
        font-size: clamp(4rem, 4vw, 6rem);
    }

    main {
        grid-template-columns: repeat(3, 1fr);
        padding: 3rem 12%;
    }

    .post-content h2 {
        font-size: 3.2rem;
    }
}

/* ---------- Desktop / Laptop (max 1200px) ---------- */
@media (max-width: 1200px) {
    .hero-section,
    main {
        padding: 2rem 6%;
    }

    .hero-title h1 {
        font-size: clamp(3rem, 5vw, 4rem);
    }

    .post {
        gap: 2rem;
    }

    .post-image img {
        height: 30vh;
    }
}

/* ---------- Tablet (max 900px) ---------- */
@media (max-width: 900px) {
    .hero-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-title p {
        text-align: left;
        font-size: 1rem;
    }

    .post {
        flex-direction: column;
    }

    .post-image,
    .post-image img {
        max-width: 100%;
        height: 35vh;
    }

    .post-content h2 {
        font-size: 2.4rem;
    }

    .categories ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    footer {
        width: calc(100% - 20px);
        height: auto;
        padding: 2.5rem 5%;
    }
}

/* ---------- Mobile (max 600px) ---------- */
@media (max-width: 600px) {
    .hero-section {
        padding: 0 1.5rem;
    }

    .hero-title h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    main {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .categories {
        padding: 7rem 1rem 0;
    }

    .post {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .post-content h2 {
        font-size: 2rem;
    }

    .meta {
        font-size: 0.9rem;
    }

    .read-more {
        margin-top: 1.5rem;
    }

    .post-small .post-image img {
        height: 22vh;
    }

    footer {
        margin: 10px;
        gap: 3rem;
    }

    .footer-right-side {
        flex-direction: column;
    }
}

/* ---------- Ultra Small Devices (max 400px) ---------- */
@media (max-width: 400px) {
    .hero-title h1 {
        font-size: 2rem;
    }

    .post-content h2 {
        font-size: 1.7rem;
    }

    .post-image img {
        height: 28vh;
    }

    .post-small .post-image img {
        height: 20vh;
    }
}
