/* =========================================================
   RETIREMENTIZE BLOG
   ========================================================= */

.blog-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 35px 50px;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.blog-header-content {
    flex: 1;
}

.blog-header h1 {
    margin: 0 0 8px;
    color: #001f3f;
    font-size: 32px;
    font-weight: 700;
}

.blog-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   SEARCH
   ========================================================= */

.blog-search {
    width: 300px;
    flex-shrink: 0;
}

.blog-search label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.blog-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-search input:focus {
    border-color: #001f3f;
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.08);
}


/* =========================================================
   CATEGORY BAR
   ========================================================= */

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-category {
    padding: 9px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: #ffffff;
    color: #475569;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.blog-category:hover {
    border-color: #001f3f;
    color: #001f3f;
}

.blog-category.active {
    border-color: #001f3f;
    background: #001f3f;
    color: #ffffff;
}


/* =========================================================
   ARTICLE GRID
   ========================================================= */

.blog-results {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        160px
    );

    justify-content: center;

    gap: 25px;

    width: 100%;
}


/* =========================================================
   ARTICLE CARD
   ========================================================= */

.blog-card {
    display: flex;
    flex-direction: column;

    width: 160px;
    min-width: 160px;
    max-width: 160px;

    height: 350px;
    min-height: 350px;
    max-height: 350px;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;

    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   CARD IMAGE
   ========================================================= */

.blog-card-image {
    display: block;
    width: 100%;
    height: 110px;
    min-height: 110px;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.3s ease;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 12px;
    box-sizing: border-box;
}

.blog-card-category {
    margin-bottom: 6px;

    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 0 0 7px;

    color: #001f3f;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}

.blog-card p {
    margin: 0 0 10px;

    color: #64748b;
    font-size: 11px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}




/* =========================================================
   READ MORE
   ========================================================= */

.blog-read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    margin-top: auto;
    padding: 6px 9px;

    border: 1px solid #001f3f;
    border-radius: 5px;

    background: #ffffff;
    color: #001f3f;

    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.blog-read-more:hover {
    background: #001f3f;
    color: #ffffff;
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.blog-no-results {
    padding: 50px 20px;

    border: 1px dashed #cbd5e1;
    border-radius: 10px;

    background: #f8fafc;
    color: #64748b;

    text-align: center;
    font-size: 15px;
}


/* =========================================================
   HIDDEN CARDS
   ========================================================= */

.blog-card[hidden] {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .blog-page {
        padding: 25px;
    }

    .blog-header {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .blog-search {
        width: 100%;
        max-width: 450px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .blog-page {
        padding: 20px 15px 40px;
    }

    .blog-header h1 {
        font-size: 27px;
    }

    .blog-header p {
        font-size: 14px;
    }

    .blog-results {
        gap: 18px;
    }

    .blog-card {
        width: 100%;
        min-width: 0;
        max-width: 350px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-content {
        padding: 18px;
    }

    .blog-card h2 {
        font-size: 19px;
    }

    .blog-categories {
        gap: 7px;
    }

    .blog-category {
        padding: 8px 13px;
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 400px) {

    .blog-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .blog-results {
        gap: 15px;
    }
}


/* =========================================================
   BLOG AD
   ========================================================= */

.blog-ad-card {
    width: 160px;
    min-width: 160px;
    max-width: 160px;

    height: 350px;
    min-height: 350px;
    max-height: 350px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

/* =========================================================
   BLOG ARTICLE
   ========================================================= */

.blog-article {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.blog-article-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    box-sizing: border-box;

    background: #f9f9f9;
    border-radius: 10px;

    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   ARTICLE TYPOGRAPHY
   ========================================================= */

.blog-article-content h1 {
    margin: 0 0 15px;

    color: #001f3f;

    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.blog-article-content h2 {
    margin: 35px 0 12px;

    color: #001f3f;

    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.blog-article-content h3 {
    color: #007bff;
}

.blog-article-content p {
    margin: 0 0 18px;

    color: #334155;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   ARTICLE IMAGE
   ========================================================= */

.blog-article-image {
    width: 100%;
    margin: 25px 0 30px;

    text-align: center;
}

.blog-article-image img {
    display: block;

    width: 75%;
    max-width: 900px;
    height: auto;

    margin: 0 auto;

    border-radius: 6px;
}


/* =========================================================
   FUN FACTS
   ========================================================= */

.blog-article-content .fun-facts {
    margin: 25px 0;
    padding: 20px;

    background-color: #f0f8ff;

    border-radius: 10px;

    box-shadow:
        0 0 5px rgba(0, 0, 0, 0.10);
}

.blog-article-content .fun-facts h3 {
    margin-top: 0;

    color: #007bff;
}

.blog-article-content .fun-facts ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.blog-article-content .fun-facts li {
    margin-bottom: 10px;

    color: #334155;
    line-height: 1.6;
}


/* =========================================================
   ARTICLE SEPARATORS
   ========================================================= */

.blog-article-content hr {
    width: 75%;

    margin: 30px auto;

    border: 0;
    border-top: 1px solid #999;
}

.blog-article-content .hr-content {
    width: 75%;

    margin: 30px auto;

    text-align: center;

    color: #334155;
    line-height: 1.6;
}


/* =========================================================
   ARTICLE TABLES
   ========================================================= */

.blog-article-content .blog-post-table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;
}

.blog-article-content .blog-post-table th,
.blog-article-content .blog-post-table td {
    padding: 8px;

    border: 1px solid #000;

    text-align: left;
}

.blog-article-content .blog-post-table th {
    background: #f1f5f9;
}


/* =========================================================
   ARTICLE AUTHOR
   ========================================================= */

.blog-article-content .author {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin: 10px 0 20px;

    font-size: 15px;
    font-style: italic;
}

.blog-article-content .author img {
    width: 35px;
    height: 35px;

    margin: 0 10px 0 0;

    object-fit: cover;

    border-radius: 50%;
}


/* =========================================================
   ARTICLE LINKS
   ========================================================= */

.blog-article-content a {
    color: #007bff;
}

.blog-article-content a:hover {
    color: #001f3f;
}


/* =========================================================
   ARTICLE TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .blog-article {
        padding: 15px;
    }

    .blog-article-content {
        padding: 30px;
    }

    .blog-article-image img {
        width: 85%;
    }
}


/* =========================================================
   ARTICLE MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .blog-article {
        padding: 10px;
    }

    .blog-article-content {
        padding: 25px 20px;
    }

    .blog-article-content h1 {
        font-size: 27px;
    }

    .blog-article-content h2 {
        font-size: 22px;
    }

    .blog-article-content p {
        font-size: 15px;
    }

    .blog-article-image img {
        width: 100%;
    }

    .blog-article-content hr,
    .blog-article-content .hr-content {
        width: 90%;
    }

    .blog-article-content .blog-post-table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }
}


/* =========================================================
   ARTICLE VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 400px) {

    .blog-article {
        padding: 5px;
    }

    .blog-article-content {
        padding: 20px 15px;

        border-radius: 8px;
    }

    .blog-article-content h1 {
        font-size: 24px;
    }

    .blog-article-content h2 {
        font-size: 20px;
    }

    .blog-article-content p {
        font-size: 14px;
    }

    .blog-article-content .fun-facts {
        padding: 15px;
    }
}


.author {
    display: flex;
    justify-content: left;
    align-items: center;
    margin: -20px 0 0 0 ;
    font-size: 15px;
    font-style: italic;
}

.author img{
    width: 3%; 
    margin: 0 10px 0 0 ;
}


/* =========================================================
   LOGGED-IN BLOG ARTICLE
   ========================================================= */

.logged-in-blog-article {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.blog-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 15px 0;
    padding: 9px 16px;

    border: 0;
    border-radius: 6px;

    background: #001f3f;
    color: #ffffff;

    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

.blog-back-button:hover {
    background: #007bff;
}


/* =========================================================
   LOADING
   ========================================================= */

.blog-article-loading {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 250px;

    color: #64748b;
    font-size: 16px;
}


/* =========================================================
   ARTICLE
   ========================================================= */

.logged-in-blog-article .blog-article {
    width: 100%;
    padding: 0;
}

.logged-in-blog-article .blog-article-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;

    box-sizing: border-box;

    background: #f9f9f9;
    border-radius: 10px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .logged-in-blog-article {
        padding: 10px;
    }

    .logged-in-blog-article .blog-article-content {
        padding: 25px 20px;
    }

}


@media (max-width: 400px) {

    .logged-in-blog-article {
        padding: 5px;
    }

    .logged-in-blog-article .blog-article-content {
        padding: 20px 15px;
        border-radius: 8px;
    }

}


/* =========================================================
   LOGGED-IN BLOG ARTICLE
========================================================= */

.logged-in-blog-article {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.logged-in-blog-article .blog-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 15px 0;
    padding: 9px 16px;

    border: 0;
    border-radius: 6px;

    background: #001f3f;
    color: #ffffff;

    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

.logged-in-blog-article .blog-back-button:hover {
    background: #007bff;
}


/* =========================================================
   ARTICLE CONTAINER
========================================================= */

.logged-in-blog-article .blog-article {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.logged-in-blog-article .blog-article-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 30px 40px;

    box-sizing: border-box;

    background: #f9f9f9;
    border-radius: 10px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   ARTICLE HEADINGS
========================================================= */

.logged-in-blog-article .blog-article-content h1 {
    margin: 0 0 15px;

    color: #001f3f;

    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.logged-in-blog-article .blog-article-content h2 {
    margin: 35px 0 12px;

    color: #001f3f;

    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.logged-in-blog-article .blog-article-content h3 {
    color: #007bff;
}


/* =========================================================
   ARTICLE TEXT
========================================================= */

.logged-in-blog-article .blog-article-content p {
    margin: 0 0 18px;

    color: #334155;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   ARTICLE IMAGES
========================================================= */

.logged-in-blog-article .blog-article-image {
    width: 100%;
    margin: 25px 0 30px;
    text-align: center;
}

.logged-in-blog-article .blog-article-image img {
    display: block;

    width: 75%;
    max-width: 900px;
    height: auto;

    margin: 0 auto;

    border-radius: 6px;
}


/* =========================================================
   FUN FACTS
========================================================= */

.logged-in-blog-article .fun-facts {
    margin: 25px 0;
    padding: 20px;

    background-color: #f0f8ff;

    border-radius: 10px;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
}

.logged-in-blog-article .fun-facts h3 {
    margin-top: 0;
    color: #007bff;
}

.logged-in-blog-article .fun-facts ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.logged-in-blog-article .fun-facts li {
    margin-bottom: 10px;

    color: #334155;
    line-height: 1.6;
}


/* =========================================================
   HORIZONTAL RULE / CENTERED CONTENT
========================================================= */

.logged-in-blog-article .blog-article-content hr {
    width: 75%;

    margin: 30px auto;

    border: 0;
    border-top: 1px solid #999;
}

.logged-in-blog-article .hr-content {
    width: 75%;

    margin: 30px auto;

    text-align: center;

    color: #334155;
    line-height: 1.6;
}


/* =========================================================
   TABLE
========================================================= */

.logged-in-blog-article .blog-post-table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;
}

.logged-in-blog-article .blog-post-table th,
.logged-in-blog-article .blog-post-table td {
    padding: 8px;

    border: 1px solid #000;

    text-align: left;
}

.logged-in-blog-article .blog-post-table th {
    background: #f1f5f9;
}


/* =========================================================
   AUTHOR
========================================================= */

.logged-in-blog-article .author {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin: 10px 0 20px;

    font-size: 15px;
    font-style: italic;
}

.logged-in-blog-article .author img {
    width: 35px;
    height: 35px;

    margin: 0 10px 0 0;

    object-fit: cover;

    border-radius: 50%;
}


/* =========================================================
   ARTICLE LINKS
========================================================= */

.logged-in-blog-article .blog-article-content a {
    color: #007bff;
}

.logged-in-blog-article .blog-article-content a:hover {
    color: #001f3f;
}


/* =========================================================
   LOADING
========================================================= */

.blog-article-loading {
    width: 100%;
    padding: 50px 20px;

    box-sizing: border-box;

    text-align: center;

    color: #64748b;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1050px) {

    .logged-in-blog-article {
        padding: 15px;
    }

    .logged-in-blog-article .blog-article-content {
        padding: 30px;
    }

    .logged-in-blog-article .blog-article-image img {
        width: 85%;
    }

}


@media (max-width: 650px) {

    .logged-in-blog-article {
        padding: 10px;
    }

    .logged-in-blog-article .blog-article-content {
        padding: 25px 20px;
    }

    .logged-in-blog-article .blog-article-content h1 {
        font-size: 27px;
    }

    .logged-in-blog-article .blog-article-content h2 {
        font-size: 22px;
    }

    .logged-in-blog-article .blog-article-content p {
        font-size: 15px;
    }

    .logged-in-blog-article .blog-article-image img {
        width: 100%;
    }

    .logged-in-blog-article .blog-article-content hr,
    .logged-in-blog-article .hr-content {
        width: 90%;
    }

    .logged-in-blog-article .blog-post-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}


@media (max-width: 400px) {

    .logged-in-blog-article {
        padding: 5px;
    }

    .logged-in-blog-article .blog-article-content {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .logged-in-blog-article .blog-article-content h1 {
        font-size: 24px;
    }

    .logged-in-blog-article .blog-article-content h2 {
        font-size: 20px;
    }

    .logged-in-blog-article .blog-article-content p {
        font-size: 14px;
    }

    .logged-in-blog-article .fun-facts {
        padding: 15px;
    }

}