.ma-blog {
    --brand-dark: #08202C;
    --shop-blue: #1a6699;
    font-family: "Poppins", sans-serif;
    color: var(--brand-dark);
    background: #fff;
}

.ma-blog__hero {
    background: linear-gradient(270deg, #003862 0%, #00203E 100%);
    color: #fff;
    padding: 35px 15px;
    text-align: center;
    width: 100%;
}

.ma-blog__hero-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: #ffffff;
    margin: 0;
}

.ma-blog__hero-sub {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    color: #D4A843;
    max-width: 900px;
    margin: 0 auto;
}

.ma-blog__wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 36px 20px 60px;
}

.ma-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
}

.ma-blog__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 10px 10px 10px -13px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ma-blog__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: var(--shop-blue);
}

.ma-blog__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: #f8fafc;
    overflow: hidden;
    text-decoration: none;
}

.ma-blog__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.ma-blog__media-fallback {
    color: var(--shop-blue);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ma-blog__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-align: center;
}

.ma-blog__date {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ma-blog__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
    min-height: 61px;
}

.ma-blog__title a {
    color: var(--shop-blue);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ma-blog__title a:hover {
    color: #333;
}

.ma-blog__excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ma-blog__more {
    margin-top: auto;
    align-self: center;
    background: var(--shop-blue);
    border: 1px solid var(--shop-blue);
    border-radius: 100px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    padding: 10px 22px;
    text-decoration: none;
}

.ma-blog__more:hover {
    background: #145278;
    border-color: #145278;
    color: #fff;
}

.ma-blog__empty {
    text-align: center;
    color: #475569;
    margin: 0;
}

.ma-blog__pages {
    margin: 36px 0 0;
    text-align: center;
}

.ma-blog__pages .page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.ma-blog__pages .page-numbers li {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0;
}

.ma-blog__pages a.page-numbers,
.ma-blog__pages span.page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ma-blog__pages a.page-numbers:hover {
    color: var(--shop-blue);
    background: #f8fafc;
}

.ma-blog__pages span.page-numbers.current {
    background: var(--shop-blue);
    color: #fff;
    font-weight: 600;
}

@media (max-width: 900px) {
    .ma-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ma-blog__hero-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .ma-blog__hero-sub {
        font-size: 14px;
    }

    .ma-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ma-blog__body {
        padding: 14px 12px 16px;
    }

    .ma-blog__title {
        font-size: 14px;
        min-height: 57px;
    }

    .ma-blog__excerpt {
        display: none;
    }
}

.ma-post {
    --brand-dark: #08202C;
    --shop-blue: #1a6699;
    font-family: "Poppins", sans-serif;
    color: var(--brand-dark);
    background: #fff;
}

.ma-post__hero {
    background: linear-gradient(270deg, #003862 0%, #00203E 100%);
    color: #fff;
    padding: 35px 15px;
    text-align: center;
    width: 100%;
}

.ma-post__hero-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 auto;
    max-width: 980px;
}

.ma-post__hero-sub {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    color: #D4A843;
    margin: 8px 0 0;
}

.ma-post__wrap {
    max-width: 1250px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.ma-post__card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 1px 1px 11px 3px rgba(178, 178, 178, 0.25);
    padding: 40px 44px;
}

.ma-post__media {
    margin: 0 0 28px;
}

.ma-post__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.ma-post__content h2,
.ma-post__content h3,
.ma-post__content h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #116190;
}

.ma-post__content h2 {
    font-size: 24px;
    margin: 32px 0 14px;
}

.ma-post__content h2:first-child {
    margin-top: 0;
}

.ma-post__content h3 {
    font-size: 20px;
    margin: 28px 0 12px;
}

.ma-post__content h4 {
    font-size: 18px;
    margin: 24px 0 10px;
}

.ma-post__content p,
.ma-post__content li {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #1c2e3a;
    margin: 0 0 14px;
}

.ma-post__content ul,
.ma-post__content ol {
    margin: 0 0 14px;
    padding-left: 1.25rem;
}

.ma-post__content a {
    color: #1a6699;
    text-decoration: underline;
}

.ma-post__content a:hover {
    color: #145278;
}

.ma-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.ma-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}

.ma-post__content th,
.ma-post__content td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.ma-post__content th {
    background: #f8fafc;
    color: #116190;
    font-weight: 600;
}

.ma-post__nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.ma-post__nav a {
    color: #1a6699;
    font-weight: 600;
    text-decoration: none;
}

.ma-post__nav a:hover {
    color: #145278;
}

@media (max-width: 640px) {
    .ma-post__hero-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .ma-post__hero-sub {
        font-size: 14px;
    }

    .ma-post__card {
        padding: 22px 16px;
    }

    .ma-post__content h2 {
        font-size: 20px;
    }
}
