/* @import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Source Serif 4", serif; */
    font-family: "Lato", sans-serif;
}

:root {
    --text-lg: 2rem;
    --text-md: 1.2rem;
    --text-sm: 1rem;
    --text-tag: 0.8rem;
    --text-post: 1.125rem;
    --subtitle-color: rgba(0, 0, 0, 0.73);
    --border-grey: rgba(0, 0, 0, 0.17);
    --side-margin-xl: 18rem;
    --side-margin-lg: 12rem;
    --side-margin-md: 4rem;
    --side-margin-sm: 1rem;
    --primary-purple: #5d03ef;
    --tag-purple: #b3a9fa;
    --tag-green: #c3faa9;
    --tag-blue: #a9d7fa;
    --tag-purple-text: #3622c9;
    --tag-green-text: #247100;
    --tag-blue-text: #095c9c;
    --nav-footer-height: 7rem;
}

.min-height-container {
    min-height: calc(
        100vh - var(--nav-footer-height) - var(--nav-footer-height)
    );
}

.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.ml-half {
    margin-left: 0.5rem;
}

.mb-half {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mr-1 {
    margin-right: 1rem;
}

.ml-3 {
    margin-left: 3rem;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pb-section {
    padding-bottom: 3rem;
}

.py-half {
    padding: 0.5rem 0;
}

.py-1 {
    padding: 1rem 0;
}

.py-2 {
    padding: 2rem 0;
}

.py-6 {
    padding: 6rem 0;
}

.side-margin {
    margin: 0 var(--side-margin-xl);
}

.border-top {
    border-top: 1px solid var(--border-grey);
}

.border-bottom {
    border-bottom: 1px solid var(--border-grey);
}

.text-lg {
    font-size: var(--text-lg);
}
.text-md {
    font-size: var(--text-md);
}
.text-sm {
    font-size: var(--text-sm);
}

.text-subtitle {
    font-size: var(--text-sm);
    color: var(--subtitle-color);
}

.nav-link {
    text-decoration: none;
    color: black;
}

.link {
    text-decoration: none;
}

.post-card {
    border-top: 1px solid var(--border-grey);
    border-bottom: 1px solid var(--border-grey);
    margin: 1rem 0;
}

.read-more-btn {
    background-color: var(--primary-purple);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: var(--text-sm);
    text-decoration: none;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    padding-bottom: 0.4rem;
    font-size: var(--text-tag);
    margin-right: 0.5rem;
}

.tag-purple {
    background-color: var(--tag-purple);
    color: var(--tag-purple-text);
}
.tag-green {
    background-color: var(--tag-green);
    color: var(--tag-green-text);
}
.tag-blue {
    background-color: var(--tag-blue);
    color: var(--tag-blue-text);
}

.post p {
    font-size: var(--text-post);
    line-height: 1.6;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.img-fluid-lg {
    max-width: 700px;
    height: auto;
    object-fit: cover;

}

.definition, .proof {
    text-align: left;
    border: 1px solid var(--border-grey);
    border-left: 5px solid var(--primary-purple);
    padding: 1rem;
    margin: 2rem 0;
}

/* Mobile */
@media (max-width: 767px) {
    /* CSS for mobile devices */
    .side-margin {
        margin: 0 var(--side-margin-sm);
    }

    .post-card {
        flex-direction: column;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    /* CSS for tablets */
    .side-margin {
        margin: 0 var(--side-margin-md);
    }
}

/* Tablets */
@media (min-width: 1025px) and (max-width: 1224px) {
    /* CSS for tablets */
    .side-margin {
        margin: 0 var(--side-margin-lg);
    }
}

/* Desktops */
@media (min-width: 1225px) {
    /* CSS for desktops */
    .side-margin {
        margin: 0 var(--side-margin-xl);
    }
}
