:root {
    --msn-navy: #07152b;
    --msn-blue: #1464ff;
    --msn-cyan: #31c8ff;
    --msn-text: #152238;
    --msn-muted: #68758a;
    --msn-line: #e5eaf2;
    --msn-bg: #f5f8fc;
    --msn-header-height: 78px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--msn-header-height) + 20px);
}

body {
    overflow-x: hidden;
    color: var(--msn-text);
}

body.msn-menu-open {
    overflow: hidden;
}

body.admin-bar .msn-site-header {
    top: 32px;
}

.msn-anchor-section,
#ana-sehife,
#haqqimizda,
#xidmetler,
#komanda,
#is-prosesi {
    scroll-margin-top: calc(var(--msn-header-height) + 20px);
}

.msn-site-header {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--msn-header-height);
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    background: rgba(6, 18, 39, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.msn-site-header.is-scrolled,
body:not(.home) .msn-site-header {
    background: rgba(5, 15, 32, .97);
    border-bottom-color: rgba(255, 255, 255, .08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.msn-header-inner {
    width: min(1340px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.msn-header-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.msn-header-logo img {
    display: block;
    width: 196px;
    height: auto;
    max-height: 51px;
    object-fit: contain;
    transition: filter .25s ease;
}

.msn-desktop-nav {
    margin-left: auto;
}

.msn-desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.msn-desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 650;
    white-space: nowrap;
    transition: color .2s ease;
}

.msn-desktop-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--msn-blue), var(--msn-cyan));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.msn-desktop-nav a:hover,
.msn-desktop-nav a.is-active {
    color: var(--msn-cyan);
}

.msn-desktop-nav a:hover::after,
.msn-desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.msn-header-cta,
.msn-mobile-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--msn-blue), #318cff);
    box-shadow: 0 10px 24px rgba(20, 100, 255, .24);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}

.msn-header-cta:hover,
.msn-mobile-contact:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(20, 100, 255, .32);
}

.msn-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
}

.msn-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 5px;
    background: #fff;
}

.msn-mobile-menu {
    position: fixed;
    z-index: 10001;
    top: 0;
    right: 0;
    width: min(380px, 88vw);
    height: 100vh;
    padding: 22px;
    background:
        radial-gradient(circle at 85% 10%, rgba(49, 200, 255, .14), transparent 28%),
        linear-gradient(180deg, #07152b, #0b2247);
    box-shadow: -30px 0 70px rgba(0, 0, 0, .28);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
}

.msn-menu-open .msn-mobile-menu {
    transform: translateX(0);
    visibility: visible;
}

.msn-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.msn-mobile-logo img {
    display: block;
    width: 165px;
    height: auto;
}

.msn-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: 30px;
    line-height: 1;
}

.msn-mobile-menu nav {
    padding: 20px 0;
}

.msn-mobile-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.msn-mobile-menu li + li {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.msn-mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.msn-mobile-menu nav a::after {
    content: "›";
    margin-left: auto;
    color: #71d9ff;
    font-size: 24px;
}

.msn-mobile-contact {
    width: 100%;
}

.msn-menu-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(4, 12, 27, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.msn-menu-open .msn-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Keep fixed header from covering the first content area. */
body:not(.home) .body-bg-1,
body.blog .body-bg-1 {
    padding-top: var(--msn-header-height);
}

/* Blog page */
.msn-blog-page {
    min-height: 100vh;
    background: var(--msn-bg);
}

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

.msn-blog-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 82px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(49, 200, 255, .25), transparent 29%),
        radial-gradient(circle at 15% 100%, rgba(20, 100, 255, .3), transparent 38%),
        linear-gradient(135deg, #061327 0%, #0b2247 58%, #103d72 100%);
}

.msn-blog-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(255, 255, 255, .035), 0 0 0 90px rgba(255, 255, 255, .025);
}

.msn-blog-hero .msn-blog-container {
    position: relative;
    z-index: 1;
}

.msn-blog-kicker {
    display: inline-flex;
    padding: 8px 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #8edfff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.msn-blog-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.msn-blog-hero p {
    max-width: 710px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .73);
    font-size: 18px;
    line-height: 1.75;
}

.msn-blog-content {
    padding: 80px 0 100px;
}

.msn-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.msn-blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--msn-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16, 35, 67, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.msn-blog-card:hover {
    transform: translateY(-7px);
    border-color: #cfddf2;
    box-shadow: 0 22px 52px rgba(16, 35, 67, .12);
}

.msn-blog-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #07152b;
}

.msn-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.msn-blog-card:hover .msn-blog-card-media img {
    transform: scale(1.055);
}

.msn-blog-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background:
        radial-gradient(circle at 75% 25%, rgba(49, 200, 255, .34), transparent 24%),
        linear-gradient(140deg, #07152b, #103b77);
    color: #fff;
    letter-spacing: .13em;
}

.msn-blog-placeholder span {
    font-size: 16px;
    font-weight: 500;
}

.msn-blog-placeholder strong {
    font-size: 27px;
    line-height: 1.1;
}

.msn-blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.msn-blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    color: #758197;
    font-size: 13px;
}

.msn-blog-category {
    overflow: hidden;
    max-width: 65%;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--msn-blue);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msn-blog-card h2 {
    margin: 0 0 12px;
    font-family: "Sora", sans-serif;
    font-size: 21px;
    line-height: 1.38;
    letter-spacing: -.02em;
}

.msn-blog-card h2 a {
    color: #111f36;
    transition: color .2s ease;
}

.msn-blog-card h2 a:hover {
    color: var(--msn-blue);
}

.msn-blog-card p {
    margin: 0 0 22px;
    color: var(--msn-muted);
    font-size: 15px;
    line-height: 1.7;
}

.msn-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    color: #12233f;
    font-size: 14px;
    font-weight: 800;
}

.msn-blog-read-more i {
    color: var(--msn-blue);
    transition: transform .2s ease;
}

.msn-blog-read-more:hover {
    color: var(--msn-blue);
}

.msn-blog-read-more:hover i {
    transform: translateX(4px);
}

.msn-load-more-wrap {
    padding-top: 52px;
    text-align: center;
}

.msn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 176px;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--msn-blue), #2586ff);
    box-shadow: 0 14px 28px rgba(20, 100, 255, .24);
    font-size: 15px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.msn-load-more:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(20, 100, 255, .32);
}

.msn-load-more:disabled {
    cursor: wait;
    opacity: .65;
}

.msn-load-more.is-loading i {
    animation: msn-spin 1s linear infinite;
}

.msn-load-status {
    min-height: 24px;
    margin: 13px 0 0;
    color: var(--msn-muted);
    font-size: 14px;
}

.msn-blog-card.is-new {
    animation: msn-card-in .45s ease both;
}

.msn-blog-empty {
    padding: 70px 20px;
    border: 1px solid var(--msn-line);
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

@keyframes msn-card-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes msn-spin {
    to { transform: rotate(360deg); }
}

/* Mobile polish for Elementor sections and theme content. */
img,
video,
iframe {
    max-width: 100%;
}

@media (max-width: 1180px) {
    .msn-desktop-nav a {
        padding-inline: 8px;
        font-size: 14px;
    }

    .msn-desktop-nav a::after {
        left: 8px;
        right: 8px;
    }

    .msn-header-cta {
        display: none;
    }
}

@media (max-width: 991px) {
    :root {
        --msn-header-height: 70px;
    }

    .msn-header-inner {
        width: min(100% - 32px, 960px);
    }

    .msn-desktop-nav {
        display: none;
    }

    .msn-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .msn-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.admin-bar .msn-site-header {
        top: 46px;
    }
}

@media (max-width: 767px) {
    :root {
        --msn-header-height: 66px;
    }

    html {
        scroll-padding-top: 82px;
    }

    .msn-header-inner {
        width: calc(100% - 24px);
    }

    .msn-header-logo img {
        width: 156px;
        max-height: 42px;
    }

    .msn-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .msn-blog-container {
        width: calc(100% - 28px);
    }

    .msn-blog-hero {
        padding: 68px 0 62px;
    }

    .msn-blog-hero h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .msn-blog-hero p {
        margin-top: 17px;
        font-size: 16px;
        line-height: 1.65;
    }

    .msn-blog-content {
        padding: 48px 0 72px;
    }

    .msn-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .msn-blog-card {
        border-radius: 17px;
    }

    .msn-blog-card-body {
        padding: 20px;
    }

    .msn-blog-card h2 {
        font-size: 20px;
    }

    .msn-load-more-wrap {
        padding-top: 36px;
    }

    .elementor-widget-container h1,
    .elementor-widget-container h2,
    .elementor-widget-container h3 {
        overflow-wrap: anywhere;
    }

    .elementor-element.e-con,
    .elementor-section .elementor-container {
        max-width: 100%;
    }

    .elementor-button,
    a[class*="btn"] {
        min-height: 46px;
    }

    video {
        height: auto;
    }
}

@media (max-width: 420px) {
    .msn-mobile-menu {
        width: 91vw;
        padding: 18px;
    }

    .msn-mobile-logo img {
        width: 150px;
    }

    .msn-blog-card-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .msn-blog-category {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
