body {
    background-color: rgb(248, 249, 250);
    font-size: 16px;
}

.mobile-header-bar {
    display: none;
}

/* Blogs header section. */
.blogs-header {
    background-color: rgb(122, 151, 198);
    padding: 5.5rem 4.5rem 6rem 4.5rem;
    margin-bottom: 2rem;
}

.blogs-header-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 2.5rem !important;
    color: white;
    text-align: center;
}

/* Blogs container. */
.blog-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 1rem;
    max-width: 1800px;
    margin: 0 auto;
}

.blog-entry-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: calc(25% - 7rem);
}

.blog-entry-link:hover {
    text-decoration: none;
    color: inherit;
}

.blog-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    min-width: 250px;
    height: 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-entry-hidden {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 1.5rem;
    width: calc(25% - 7rem);
    min-width: 250px;
}

.blog-entry-title {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 200px;
    padding: 0.7rem 0.4rem 0rem 0.4rem;
}

.blog-entry-summary {
    font-family: 'Poppins', sans-serif;
    color: rgb(80, 80, 80);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 0.4rem 0.7rem 0.4rem;
}

/* Pagination. */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0 2rem 0;
    font-family: 'Poppins', sans-serif;
}

.pagination-btn {
    background: #f6f7fa;
    color: #3a3a3a;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.pagination-btn.disabled,
.pagination-btn:disabled {
    background: #f0f0f0;
    color: #bbb;
    border-color: #e3e3e3;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    opacity: 1;
}

.pagination-btn:hover,
.pagination-btn:focus {
    background: rgb(122, 151, 198);
    color: #fff;
    border-color: rgb(122, 151, 198);
    box-shadow: 0 0 0 2px #d8e6ff;
}

.pagination-info {
    color: #888;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* Footer section in desktop. */
.footer-section {
    color: #2c3e50;
    font-weight: 400;
    text-align: center;
    width: 100%;
    margin-top: 7rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 60px;
    padding: 0 20px;
}

.footer-link-column {
    flex: 1;
    min-width: 200px;
    margin: 0 10px;
    text-align: center;
}

.footer-link-column-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgb(94, 94, 94);
    letter-spacing: 0.1em;
}

.footer-link-column-links {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 5px;
    color: rgb(94, 94, 94);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.footer-link-column-links a {
    color: rgb(94, 94, 94);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-column-links a:hover {
    color: rgb(94, 94, 94);
}

.footer-copyright {
    font-size: 0.8rem;
    font-weight: 100;
    color: rgb(150, 150, 150);
    text-align: center;
    padding-left: 1rem;
}

.footer-copyright p {
    margin-bottom: 0;
}

/* Hamburger menu in mobile or small screens. */
.hamburger-menu {
    display: none;
}

.hamburger-menu-icon {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 30px;
    z-index: 1001;
}

@keyframes rotate720 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(720deg);
    }
}

.rotate-once {
    animation: rotate720 0.5s ease;
}

.hamburger-menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 60%;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.hamburger-menu-sidebar.open {
    transform: translateX(0);
}

.hamburger-menu-sidebar-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hamburger-menu-sidebar-links a {
    display: inline-block;
    margin: 8px 0;
    font-size: 1rem;
    text-decoration: none;
    color: #333;
}

.hamburger-menu-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hamburger-menu-sidebar-close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.hamburger-menu-sidebar-close i {
    font-size: 2rem;
}

.hamburger-menu-divider {
    border: none;
    border-top: 1px solid rgb(130, 130, 130);
    margin: 10px 0;
    width: 100%;
}

/* For ipad pro. */
@media (max-width: 1400px) {
    .blog-container {
        max-width: 900px;
    }

    .blog-entry-link {
        width: calc(33.33% - 2rem);
    }

    .blog-entry-hidden {
        width: calc(33.33% - 2rem);
    }
}

/* For smaller pads. */
@media (max-width: 1000px) {

    .blog-container {
        max-width: 650px;
    }

    .blog-entry-link {
        width: calc(50% - 3rem);
    }

    .blog-entry-hidden {
        width: calc(50% - 3rem);
    }

    .footer-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-header-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-color: rgb(122, 151, 198);
        z-index: 1000;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 10px 20px 10px 20px;
    }

    .hamburger-menu-icon {
        position: fixed;
        top: 15px;
        right: 20px;
        font-size: 28px;
        z-index: 9999;
    }
}

/* For iphone pro max. */
@media (max-width: 500px) {

    .blogs-header-title {
        font-size: 1.8rem !important;
    }

    .blog-container {
        max-width: 400px;
    }

    .blog-entry-link {
        width: calc(100% - 4rem);
    }

    .blog-entry-hidden {
        width: calc(100% - 4rem);
    }

    .footer-link-column {
        min-width: 100px;
    }

    .footer-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

/* For iphone pro. */
@media (max-width: 400px) {

    .blogs-header-title {
        font-size: 1.6rem !important;
    }
}