/* Scoped presentation for Programming/Microsoft/SQL-Server pages. */
.sql-page {
    background: #f3f6fa;
    color: #142235;
    font-family: 'Poppins', Arial, sans-serif;
}

.sql-page * {
    box-sizing: border-box;
}

.sql-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.sql-hero {
    min-height: 390px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(5, 13, 27, .94), rgba(15, 42, 62, .76)),
        url('/images/hero.jpg') center/cover no-repeat;
}

.sql-hero--article {
    min-height: 340px;
}

.sql-hero .sql-wrap {
    padding: 76px 0;
}

.sql-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #f3b33d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sql-hero h1,
.sql-panel h2,
.sql-section h2,
.sql-band h2,
.sql-cta h2,
.sql-article h2 {
    margin: 0;
    color: #071d36;
    font-weight: 800;
    line-height: 1.12;
}

.sql-hero h1 {
    max-width: 900px;
    color: #fff;
    font-size: 54px;
    font-weight: 700;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .34);
}

.sql-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .42);
}

.sql-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.sql-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 6px;
    background: #b51f31;
    border: 1px solid #b51f31;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(181, 31, 49, .24);
}

.sql-button:hover {
    background: #941927;
    border-color: #941927;
    color: #fff !important;
    text-decoration: none;
}

.sql-button--alt {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .38);
    box-shadow: none;
}

.sql-main {
    padding: 72px 0;
}

.sql-intro,
.sql-band,
.sql-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: start;
}

.sql-panel,
.sql-section,
.sql-band,
.sql-related,
.sql-cta,
.sql-article,
.sql-sidebar {
    background: #fff;
    border: 1px solid #d6e0ec;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.sql-panel,
.sql-section,
.sql-related,
.sql-cta,
.sql-article,
.sql-sidebar {
    padding: 36px;
}

.sql-section,
.sql-band,
.sql-related,
.sql-cta {
    margin-top: 28px;
}

.sql-band {
    padding: 40px;
    background: linear-gradient(135deg, #102033, #24384d);
    color: #fff;
}

.sql-band h2,
.sql-band p,
.sql-cta h2,
.sql-cta p {
    color: #fff !important;
}

.sql-band p {
    color: rgba(255, 255, 255, .84) !important;
}

.sql-rule {
    display: block;
    width: 76px;
    height: 4px;
    margin-bottom: 26px;
    background: #b51f31;
    border-radius: 999px;
}

.sql-panel p,
.sql-section p,
.sql-related p,
.sql-article p,
.sql-sidebar p,
.sql-panel li,
.sql-section li,
.sql-article li {
    color: #3e4c5d;
    font-size: 17px;
    line-height: 1.72;
}

.sql-panel p,
.sql-section p,
.sql-article p {
    margin: 18px 0 0;
}

.sql-panel h3,
.sql-card h3,
.sql-step h3,
.sql-sidebar h3,
.sql-article h3 {
    margin: 0 0 14px;
    color: #102033;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.sql-grid,
.sql-steps,
.sql-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.sql-card,
.sql-step,
.sql-faq {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #dce6f1;
    border-left: 4px solid #b51f31;
    border-radius: 8px;
}

.sql-step span {
    display: inline-flex;
    margin-bottom: 16px;
    color: #b51f31;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.sql-proof {
    display: grid;
    gap: 12px;
}

.sql-proof div {
    padding: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.sql-proof strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 20px;
}

.sql-proof span {
    color: rgba(255, 255, 255, .78);
    line-height: 1.5;
}

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

.sql-link-grid a,
.sql-sidebar a,
.sql-article-nav a,
.sql-article-nav span {
    color: #145b8e;
    font-weight: 800;
    text-decoration: none;
}

.sql-link-grid a {
    display: block;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #dce6f1;
    border-radius: 8px;
}

.sql-link-grid a:hover,
.sql-sidebar a:hover,
.sql-article-nav a:hover {
    color: #b51f31;
    text-decoration: none;
}

.sql-cta {
    background: #111827;
    color: #fff;
}

.sql-article-layout {
    align-items: start;
}

.sql-article h2 {
    margin-bottom: 18px;
    font-size: 36px;
}

.sql-article h3 {
    margin-top: 28px;
}

.sql-article ul,
.sql-article ol {
    margin: 18px 0 0;
    padding-left: 22px;
}

.sql-article li + li {
    margin-top: 10px;
}

.sql-article-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.sql-article-nav--bottom {
    margin: 34px 0 0;
    padding-top: 24px;
    border-top: 1px solid #dce6f1;
}

.sql-article-nav a,
.sql-article-nav span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #dce6f1;
    border-radius: 6px;
    background: #f8fafc;
}

.sql-article-nav__all {
    background: #b51f31 !important;
    border-color: #b51f31 !important;
    color: #fff !important;
}

.sql-sidebar {
    position: sticky;
    top: 24px;
}

.sql-sidebar a {
    display: block;
    padding: 11px 0;
    border-top: 1px solid #e5edf5;
    line-height: 1.35;
}

.sql-faq-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 980px) {
    .sql-intro,
    .sql-band,
    .sql-grid,
    .sql-steps,
    .sql-link-grid,
    .sql-article-layout {
        grid-template-columns: 1fr;
    }

    .sql-wrap {
        width: min(100% - 28px, 1120px);
    }

    .sql-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .sql-hero {
        min-height: auto;
    }

    .sql-hero .sql-wrap,
    .sql-main {
        padding: 44px 0;
    }

    .sql-panel,
    .sql-section,
    .sql-band,
    .sql-related,
    .sql-cta,
    .sql-article,
    .sql-sidebar {
        padding: 24px;
    }

    .sql-hero h1 {
        font-size: 38px;
    }

    .sql-hero p {
        font-size: 18px;
    }
}

.sql-video {
    position: relative;
    width: 100%;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #d6e0ec;
    border-radius: 8px;
    background: #071d36;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
    aspect-ratio: 16 / 9;
}

.sql-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sql-page > .sql-article-nav-wrap {
    padding: 26px 20px 0;
    background: #f3f6fa;
}

.sql-page > .sql-article-nav-wrap .sql-article-nav {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.sql-page > .sql-article-nav-wrap.sql-article-nav-wrap--bottom {
    padding: 0 20px 48px;
}

.sql-page > .sql-article-nav-wrap.sql-article-nav-wrap--bottom .sql-article-nav {
    padding-top: 24px;
    border-top: 1px solid #dce6f1;
}

.sql-page > section:not(.sql-hero):not(.sql-article-nav-wrap) {
    background: #f3f6fa !important;
    padding: 46px 20px !important;
}

.sql-page > section:not(.sql-hero):not(.sql-article-nav-wrap) > .container {
    max-width: 1120px;
    padding: 38px 44px !important;
    background: #fff;
    border: 1px solid #d6e0ec;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.sql-page .Content {
    max-width: 940px;
    margin: 0 auto;
    text-align: left;
}

.sql-page .Content img[align="right"],
.sql-page .Content img[style*="padding"] {
    max-width: 180px;
    height: auto;
    margin: 0 0 22px 28px;
    border-radius: 8px;
}

.sql-page .Content h1 {
    margin: 0 0 16px !important;
    color: #071d36 !important;
    font-size: 34px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    text-align: left;
}

.sql-page .Content h2,
.sql-page .Content h3,
.sql-page .Content h4 {
    color: #102033 !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left;
}

.sql-page .Content p,
.sql-page .Content li {
    color: #3e4c5d;
    font-size: 17px;
    line-height: 1.72;
    text-align: left;
}

.sql-page .Content a {
    color: #145b8e;
    font-weight: 800;
}

.sql-page .Content a:hover {
    color: #b51f31;
    text-decoration: none;
}

.sql-page .Content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #d6e0ec;
}

.sql-page .Content th,
.sql-page .Content td {
    padding: 14px;
    border: 1px solid #d6e0ec;
    color: #27384a;
}

.sql-page .Content th {
    background: #f3f6fa;
    color: #071d36;
    font-weight: 800;
}

@media (max-width: 640px) {
    .sql-page .Content img[align="right"],
    .sql-page .Content img[style*="padding"] {
        float: none !important;
        display: block;
        margin: 0 0 20px;
    }

    .sql-page > section:not(.sql-hero):not(.sql-article-nav-wrap) > .container {
        padding: 26px 22px !important;
    }
}
