/*
Theme Name: MX1Mail Blog
Theme URI: https://mx1mail.com/blog/
Author: YCR Internet Technologies
Description: Custom bilingual blog theme for MX1Mail.
Version: 1.0.0
Text Domain: mx1mail-blog
*/

:root {
    --mx1-bg: #f4f8fc;
    --mx1-navy: #061c2d;
    --mx1-blue: #1177f7;
    --mx1-blue-dark: #07358c;
    --mx1-text: #0d2138;
    --mx1-muted: #66788d;
    --mx1-border: #d9e6f1;
    --mx1-white: #ffffff;
    --mx1-radius: 18px;
    --mx1-shadow: 0 18px 45px rgba(21, 58, 93, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mx1-bg);
    color: var(--mx1-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.mx1-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.mx1-header {
    background: #06192b;
    color: #fff;
    min-height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.mx1-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.mx1-logo img {
    width: 142px;
    display: block;
}

.mx1-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.mx1-nav a {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.mx1-nav a:hover {
    color: #67b1ff;
}

.mx1-header-actions {
    display: flex;
    gap: 12px;
}

.mx1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    transition: .2s ease;
}

.mx1-btn-primary {
    background: linear-gradient(180deg,#1745b7,#0b2d8c);
    border: 1px solid #245ce7;
    color: #fff;
}

.mx1-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}


/* HERO */

.mx1-hero {
    background:
        radial-gradient(circle at 88% 35%, rgba(15,118,255,.12), transparent 28%),
        linear-gradient(110deg,#061d2e,#073668);
    color: #fff;
    padding: 90px 0 85px;
    position: relative;
    overflow: hidden;
}

.mx1-hero::after {
    content: "";
    position: absolute;
    right: 5%;
    top: 0;
    width: 320px;
    height: 100%;
    background-image: radial-gradient(rgba(23,119,247,.33) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .45;
}

.mx1-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.mx1-kicker {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: #0f528b;
    color: #74c2ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 20px;
}

.mx1-hero h1 {
    margin: 0 0 18px;
    max-width: 850px;
    font-size: clamp(38px,5vw,66px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.mx1-hero h1 span {
    color: #1680ff;
}

.mx1-hero p {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    color: #c7d5e4;
}


/* MAIN */

.mx1-main {
    padding: 55px 0 80px;
}

.mx1-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.mx1-section-title h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.mx1-section-title p {
    margin: 0;
    color: var(--mx1-muted);
}


/* FILTERS */

.mx1-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.mx1-filter {
    display: inline-flex;
    padding: 9px 16px;
    border: 1px solid var(--mx1-border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #35516f;
}

.mx1-filter:hover,
.mx1-filter.active {
    background: #0f73f6;
    color: #fff;
    border-color: #0f73f6;
}


/* FEATURED */

.mx1-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--mx1-border);
    border-radius: var(--mx1-radius);
    overflow: hidden;
    box-shadow: var(--mx1-shadow);
    margin-bottom: 40px;
}

.mx1-featured-media {
    min-height: 360px;
    background: linear-gradient(135deg,#08243c,#0f6be7);
}

.mx1-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mx1-featured-content {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mx1-category {
    color: #1377ef;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .06em;
}

.mx1-featured h2 {
    margin: 10px 0 14px;
    font-size: 34px;
    line-height: 1.15;
}

.mx1-featured p {
    color: var(--mx1-muted);
    margin: 0 0 22px;
}

.mx1-meta {
    font-size: 13px;
    color: #8291a3;
}


/* GRID */

.mx1-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.mx1-card {
    background: #fff;
    border: 1px solid var(--mx1-border);
    border-radius: var(--mx1-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(22,52,82,.05);
    transition: .2s ease;
}

.mx1-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(22,52,82,.1);
}

.mx1-card-media {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg,#0b2742,#126ee9);
}

.mx1-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mx1-card-body {
    padding: 24px;
}

.mx1-card h3 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.25;
}

.mx1-card p {
    color: var(--mx1-muted);
    margin: 0 0 18px;
    font-size: 14px;
}

.mx1-readmore {
    font-weight: 800;
    color: #0f73f6;
    font-size: 14px;
}


/* ARTICLE */

.mx1-article-wrap {
    padding: 60px 0 80px;
}

.mx1-article {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--mx1-border);
    border-radius: var(--mx1-radius);
    padding: 48px;
    box-shadow: var(--mx1-shadow);
}

.mx1-article h1 {
    font-size: 44px;
    line-height: 1.12;
    margin: 10px 0 18px;
}

.mx1-article-content {
    font-size: 17px;
    color: #28415d;
}

.mx1-article-content h2 {
    color: #0c223a;
    margin-top: 38px;
    font-size: 29px;
}

.mx1-article-content h3 {
    color: #0c223a;
    margin-top: 28px;
}

.mx1-article-content p {
    margin: 0 0 20px;
}

.mx1-article-content ul,
.mx1-article-content ol {
    margin: 0 0 22px;
}

.mx1-article-content a {
    color: #0f73f6;
    text-decoration: underline;
}


/* CTA */

.mx1-cta {
    margin-top: 55px;
    border-radius: 24px;
    background: linear-gradient(120deg,#071e31,#083c78);
    color: #fff;
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.mx1-cta h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.mx1-cta p {
    margin: 0;
    color: #bfd1e3;
}


/* FOOTER */

.mx1-footer {
    background: #06192b;
    color: #b8c6d5;
    padding: 45px 0;
    margin-top: 70px;
}

.mx1-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.mx1-footer a {
    color: #d9e5ef;
}


/* RESPONSIVE */

@media (max-width: 980px) {

    .mx1-nav {
        display: none;
    }

    .mx1-featured {
        grid-template-columns: 1fr;
    }

    .mx1-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 680px) {

    .mx1-container {
        width: min(100% - 24px,1220px);
    }

    .mx1-header-inner {
        min-height: 68px;
    }

    .mx1-header-actions .mx1-btn:first-child {
        display: none;
    }

    .mx1-logo img {
        width: 122px;
    }

    .mx1-hero {
        padding: 65px 0;
    }

    .mx1-hero h1 {
        letter-spacing: -1px;
    }

    .mx1-grid {
        grid-template-columns: 1fr;
    }

    .mx1-featured-content,
    .mx1-article {
        padding: 28px;
    }

    .mx1-article h1 {
        font-size: 34px;
    }

    .mx1-cta,
    .mx1-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   MX1MAIL POST TAGS
   ========================================================= */

.mx1-post-tags {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid #e6ebf2;
}

.mx1-post-tags-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.mx1-post-tags-title i {
    color: #0d6efd;
}

.mx1-post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mx1-post-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid #d8e5f8;
    border-radius: 999px;
    background: #f5f9ff;
    color: #1769c2;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.mx1-post-tag:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {

    .mx1-post-tags {
        margin-top: 28px;
    }

    .mx1-post-tag {
        font-size: 12px;
        padding: 6px 11px;
    }

}
