/* ==========================================================================
   Sitewide modernization layer.
   Restyles EXISTING generic classes/elements used across every content page
   (product pages, article/news pages, sidebars, etc.) so the whole site
   reads as one modern system without touching page markup.
   Loaded after Site.css / media.css in the main bundle so it wins on
   equal-specificity rules.
   ========================================================================== */

:root {
    --mc-navy-900: #0a1122;
    --mc-navy-800: #0f172a;
    --mc-navy-700: #16234a;
    --mc-teal-600: #0d9488;
    --mc-teal-500: #0fcabf;
    --mc-teal-400: #4fe0d3;
    --mc-teal-050: #e7faf8;
    --mc-text-900: #101a2c;
    --mc-text-600: #48566a;
    --mc-border: #e6ecf1;
    --mc-bg-alt: #f5f8fa;
    --mc-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    --mc-shadow-lg: 0 18px 40px rgba(10, 17, 34, .16);
}

/* ---------- base rhythm ---------- */
body {
    color: var(--mc-text-900);
    line-height: 1.8;
}

p, li {
    line-height: 1.9;
    color: var(--mc-text-600);
}

.container,
.container-fluid {
    padding-top: 6px;
}

/* ==========================================================================
   Hero / title band — upgrades the existing .row-lightgray + .text-divider-horiz
   combo already used on ~20 pages (Products, Solutions, IVR sub-pages, Contact,
   Customers, PanaPayam, Sms, Voip, FaxServer, Crm, …) into a modern gradient band.
   ========================================================================== */
.row-lightgray {
    background: linear-gradient(115deg, var(--mc-navy-800) 0%, var(--mc-navy-700) 30%, var(--mc-teal-600) 100%);
    padding: 46px 15px;
    margin-bottom: 6px;
}

.text-divider-horiz,
.text-divider-horiz-noMargin {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 0;
}

.text-divider-horiz-noMargin + .text-divider-horiz-noMargin,
h3.text-divider-horiz-noMargin {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, .85);
    margin-top: 10px;
}

/* ---------- generic page title (pages without the banner treatment) ---------- */
h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--mc-navy-800);
    line-height: 1.6;
    margin: 26px 0 20px;
    padding-inline-start: 16px;
    border-inline-start: 6px solid var(--mc-teal-500);
}

/* hero-band h1 variants should not get the accent bar / dark color */
.row-lightgray h1,
.text-divider-horiz,
.text-divider-horiz-noMargin {
    border-inline-start: none;
    padding-inline-start: 0;
    color: #ffffff;
}

h1 + hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, var(--mc-teal-500), transparent 75%);
    margin: 0 0 26px;
}

hr {
    border-top: 1px solid var(--mc-border);
}

h2, h3, h4 {
    color: var(--mc-navy-800);
    font-weight: 700;
}

h2.h3, h3.h3 {
    font-size: 20px;
    padding-bottom: 10px;
    margin-top: 34px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--mc-border);
    position: relative;
}

h2.h3::after, h3.h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 64px;
    height: 2px;
    background: var(--mc-teal-500);
}

h3.h3 a {
    color: var(--mc-navy-800);
    text-decoration: none;
}

h3.h3 a:hover {
    color: var(--mc-teal-600);
}

/* ==========================================================================
   Links & buttons
   ========================================================================== */
a {
    color: var(--mc-teal-600);
}

a:hover, a:focus {
    color: var(--mc-navy-700);
}

.btn-default {
    background: var(--mc-teal-500);
    border-color: var(--mc-teal-500);
    color: var(--mc-navy-900);
    font-weight: 700;
    border-radius: 8px;
    padding: 9px 22px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-default:hover,
.btn-default:focus {
    background: var(--mc-teal-400);
    border-color: var(--mc-teal-400);
    color: var(--mc-navy-900);
    transform: translateY(-2px);
    box-shadow: var(--mc-shadow);
}

/* ==========================================================================
   Feature / content lists
   ========================================================================== */
.text-packed li,
.product-features li,
.product-feature-ul > li {
    list-style: none;
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 10px;
    line-height: 1.9;
}

.text-packed,
.product-features,
.product-feature-ul {
    padding-inline-start: 0;
}

.text-packed li::before,
.product-features li::before,
.product-feature-ul > li::before {
    content: '\e013';
    font-family: 'Glyphicons Halflings';
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    color: var(--mc-teal-600);
    font-size: 12px;
}

/* ==========================================================================
   Images
   ========================================================================== */
.img-thumbnail {
    border-radius: 12px;
    border-color: var(--mc-border);
    box-shadow: var(--mc-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

a:hover > .img-thumbnail {
    transform: translateY(-4px);
    box-shadow: var(--mc-shadow-lg);
}

.img-circle.image-circle-border {
    border: 4px solid var(--mc-teal-500);
    box-shadow: var(--mc-shadow);
    transition: transform .25s ease;
}

a:hover > .img-circle.image-circle-border {
    transform: translateY(-4px) scale(1.02);
}

/* ==========================================================================
   Sidebar navigation — shared by every *LeftMenu / *LeftPanel partial
   ========================================================================== */
.list-group-item {
    border-color: var(--mc-border);
    color: var(--mc-text-900);
    font-size: 14.5px;
    padding: 12px 16px;
    transition: background-color .2s ease, color .2s ease, padding-inline-start .2s ease;
}

.list-group-item:first-child {
    border-top-inline-start-radius: 12px;
    border-top-inline-end-radius: 12px;
}

.list-group-item:last-child {
    border-bottom-inline-start-radius: 12px;
    border-bottom-inline-end-radius: 12px;
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background: var(--mc-navy-800);
    border-color: var(--mc-navy-800);
    color: #ffffff;
    font-weight: 700;
}

a.list-group-item:hover,
a.list-group-item:focus {
    background: var(--mc-teal-050);
    color: var(--mc-teal-600);
    padding-inline-start: 22px;
}

/* ==========================================================================
   Product grid cards — .thumbnail.product-single (Products/Index, MedicalCenter, …)
   ========================================================================== */
.thumbnail.product-single {
    background: #ffffff;
    border-color: var(--mc-border);
    border-radius: 16px;
    box-shadow: var(--mc-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    margin-bottom: 24px;
}

.thumbnail.product-single:hover {
    transform: translateY(-6px);
    box-shadow: var(--mc-shadow-lg);
}

.product-single > a {
    color: var(--mc-text-900);
}

.product-circle-span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    background: var(--mc-teal-500);
    box-shadow: var(--mc-shadow);
    vertical-align: middle;
}

.product-circle-span > .glyphicon {
    color: var(--mc-navy-900);
}

.product-title-text {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--mc-navy-800);
}

/* ==========================================================================
   Excerpt / brief text blocks (products-brief, news-brief, etc.)
   ========================================================================== */
.excerpt {
    color: var(--mc-text-600);
}

.product-title a {
    color: var(--mc-navy-800);
}

.product-title a:hover {
    color: var(--mc-teal-600);
}

/* ==========================================================================
   Tables (spec sheets, admin-adjacent content tables on public pages)
   ========================================================================== */
.table > thead > tr > th {
    background: var(--mc-navy-800);
    color: #ffffff;
    border: none;
}

.table-bordered {
    border-color: var(--mc-border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .row-lightgray {
        padding: 32px 15px;
    }

    .text-divider-horiz,
    .text-divider-horiz-noMargin {
        font-size: 20px;
    }

    h1 {
        font-size: 22px;
    }
}
