.content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-family: var(--playfair-display);
    font-size: var(--fs-xxl);
    color: var(--primary-color);
    text-align: center;
    
    
}

section {
    margin-bottom: calc(var(--space-section) * 2);
}

.journal-heading {
    margin: 0 auto calc(var(--space-section) * 2);
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
    margin-top: calc(var(--space-section) * 2);
}

.journal-heading div {
    padding: 5px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
}

.journal-heading div p {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    color: var(--primary-color);
}

.journal-heading h2 {
    font-family: var(--urbanist);
    font-size: var(--fs-xl);
    color: var(--primary-color);
}

.journal-heading p {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--primary-color);
}

.journals {
    display: flex;
    flex-direction: column;
    gap: var(--space-section);
}

.first-card {
    display: flex;
    gap: var(--space-xs);
}

.first-card-image {
    width: 100%;
    flex: 1 1 50%;
    min-height: 320px;
    border-radius: var(--space-sm);
    overflow: hidden;
}

.first-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--space-sm);
}

.first-card-description {
    width: 100%;
    display: flex;
    flex-basis: 50%;
    flex-direction: column;
    gap: var(--space-sm);
    background-color: white;
    border-radius: var(--space-sm);
    padding: var(--space-sm);
}

.top {
    max-width: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-xs);
}

.author {
    display: flex;
    align-items: center;
    gap: calc(var(--space-xs) - 6px);
}

.text {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--primary-color);
    max-width: 300px;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: var(--space-xs);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-lg);
}

.bottom .read-more {
    color: var(--primary-color);
    font-size: var(--fs-xs);
}

.bottom .arrow {
    text-decoration: none;
    color: var(--primary-color);
}

.bottom a:hover {
    color: var(--gold);
    transition: color 0.3s ease;
}

.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--space-sm);
}

.journal-card {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-radius: var(--space-sm);
}

.journal-description {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: var(--space-sm);
    background-color: white;
    border-radius: var(--space-sm);
    padding: var(--space-sm);
}

.journal-image {
    padding: var(--space-sm);
    background-color: white;
    border-radius: var(--space-sm);
    width: 100%;
    max-width: 280px;
    min-height: 220px;
    overflow: hidden;
}

.journal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--space-sm);
}



@media (min-width: 769px) and (max-width: 1024px) {
    .first-card {
        flex-direction: row;
        align-items: stretch;
    }

    .first-card-image {
        min-height: 300px;
    }

    .journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journal-card {
        width: 100%;
        align-items: stretch;
    }

    .journal-image {
        max-width: 220px;
        min-height: 200px;
    }

    .journal-description {
        min-width: 0;
    }
}

@media (max-width: 1024px) {

    
    .first-card {
        flex-direction: column;
    }

    .first-card-image {
        width: 100%;
    }

    .first-card-description {
        flex-basis: auto;
        width: 100%;
    }

    
    .journals-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {

    
    .journals-grid {
        grid-template-columns: 1fr;
    }

    
    .journal-card {
        flex-direction: column;
        width: 100%;
    }

    .journal-description {
        width: 100%;
    }

    .journal-image {
        width: 100%;
        max-width: 100%;
        min-height: 0;
    }

    .journal-image img {
        max-height: 160px;
        object-fit: cover;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .journal-heading h2 {
        font-size: var(--fs-lg);
    }

    .first-card-image img {
        max-height: 220px;
        object-fit: cover;
        width: 100%;
    }
}