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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
}

.home-desktop {
    background-color: #fafaf9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

/* Header styles */
.header {
    background-color: white;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.5rem 3.5rem;
    width: 100%;
}

.logo-section {
    color: #0c0a09;
    display: flex;
    font-size: 1.25rem;
    font-weight: 700;
    gap: 0.375rem;
    letter-spacing: -0.025em;
    line-height: 1;
}

.logo-image {
    aspect-ratio: 1;
    flex-shrink: 0;
    object-fit: contain;
    width: 34px;
}

.logo-text {
    flex-basis: auto;
    margin: auto 0;
}

.navigation {
    color: #171717;
    display: flex;
    font-size: 1rem;
    font-weight: 600;
    gap: 2rem;
    margin: auto 0;
    text-align: right;
}

.navigation a {
    text-wrap: nowrap;
}

/* Hero section */
.hero-section {
    align-items: flex-start;
    color: white;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    min-height: 488px;
    padding: 18rem 3.5rem 3.5rem;
    position: relative;
    width: 100%;
}

.hero-background {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-date {
    position: relative;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-top: 0.625rem;
    position: relative;
}

.hero-preview {
    margin-top: 0.625rem;
    max-width: 100%;
    position: relative;
    width: 615px;
}

/* Main content */
.main-content {
    align-self: center;
    margin-top: 3.5rem;
    max-width: 979px;
    width: 100%;
}

.blog-grid {
    display: flex;
    gap: 1.25rem;
}

.first-row {
    margin-bottom: 3rem;
}

.second-row {
    margin-bottom: 3rem;
}

.blog-card {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.blog-image {
    aspect-ratio: 1.33;
    border-radius: 0.375rem;
    object-fit: contain;
    width: 100%;
}

.blog-date {
    align-self: flex-start;
    color: black;
    font-size: 0.875rem;
    margin-top: 0.875rem;
}

.blog-title {
    align-self: flex-start;
    color: #171717;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.875rem;
}

.blog-preview {
    color: #525252;
    font-size: 1rem;
    line-height: 1.25;
    margin-top: 0.625rem;
}

.view-more-button {
    align-self: center;
    color: black;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 2rem;
    text-align: center;
    text-decoration: underline;
}

/* Footer */
.footer {
    align-items: center;
    background-color: #262626;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    justify-content: center;
    margin-top: 3rem;
    overflow: hidden;
    padding: 2.25rem 5rem;
    text-align: center;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 150px;
}

.footer-title {
    color: #e5e7eb;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.footer-copyright {
    align-self: center;
    color: #d4d4d8;
    line-height: 1;
}

/* Tablet Screen */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1.25rem;
    }

    .hero-section {
        padding: 6rem 1.25rem 3.5rem;
    }

    .hero-preview {
        width: 100%;
    }

    .main-content {
        margin-top: 2.5rem;
        padding: 0 1.25rem;
    }

    .blog-grid {
        flex-direction: column;
        gap: 1.75rem;
    }

    .first-row {
        margin-bottom: 2.5rem;
    }

    .second-row {
        margin-bottom: 2.5rem;
    }

    .footer {
        margin-top: 2.5rem;
        padding: 2.25rem 1.25rem;
    }
}

/* Mobile Screen */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .blog-title {
        font-size: 1.25rem;
    }
}