/* =========================================
   Online Update Stm - Common Page CSS
   About | Disclaimer | Privacy Policy | Terms
========================================= */

.stm-common-page {
    --stm-primary: #1769e0;
    --stm-secondary: #084a9e;
    --stm-text: #263449;
    --stm-muted: #5d6b7e;
    --stm-border: #e5ebf3;
    --stm-bg: #f5f8fc;

    width: 100%;
    max-width: 100%;
    margin: 2px 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--stm-text);
    line-height: 1.8;
}

.stm-common-page *,
.stm-common-page *::before,
.stm-common-page *::after {
    box-sizing: border-box;
}

/* Main Container */

.stm-common-container {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--stm-border);
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(20, 60, 110, 0.08);
}

/* Content Area */

.stm-common-content {
    padding: 30px;
}

/* Common Section */

.stm-common-section {
    margin-bottom: 32px;
}

.stm-common-section:last-child {
    margin-bottom: 0;
}

/* Headings */

.stm-common-section h2 {
    position: relative;
    margin: 0 0 15px;
    padding: 0 0 12px 15px;
    border-bottom: 1px solid var(--stm-border);
    font-size: 23px;
    line-height: 1.4;
    font-weight: 750;
    color: #123f78;
}

.stm-common-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 12px;
    width: 4px;
    border-radius: 10px;
    background: linear-gradient(
        180deg,
        #1769e0,
        #0b4b9e
    );
}

.stm-common-section h3 {
    margin: 22px 0 7px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    color: #1b4f91;
}

/* Paragraph */

.stm-common-section p {
    margin: 0 0 13px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--stm-text);
}

.stm-common-section strong {
    color: #163f72;
}

/* Lists */

.stm-common-section ul,
.stm-common-section ol {
    margin: 10px 0 15px;
    padding-left: 22px;
}

.stm-common-section li {
    margin-bottom: 8px;
    padding-left: 4px;
    font-size: 15px;
    line-height: 1.8;
}

/* Links */

.stm-common-page a {
    color: #145dc0;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.stm-common-page a:hover {
    color: #084a9e;
    text-decoration: underline;
}

/* Category Grid */

.stm-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 18px;
}

/* Category Card */

.stm-category-card {
    padding: 20px;
    background: #f7faff;
    border: 1px solid #e1eaf7;
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.stm-category-card:hover {
    transform: translateY(-3px);
    border-color: #a8c8f3;
    box-shadow: 0 8px 20px rgba(23, 105, 224, 0.08);
}

.stm-category-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #1455a3;
}

.stm-category-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--stm-muted);
}

/* Important Notice */

.stm-important-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 4px solid #1769e0;
    border-radius: 8px;
    background: #eef5ff;
}

.stm-important-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

/* Contact Box */

.stm-contact-box {
    padding: 22px;
    margin-top: 18px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #f1f6ff,
        #f8fbff
    );
    border: 1px solid #dbe8fa;
}

.stm-contact-box p {
    margin-bottom: 8px;
}

.stm-contact-email {
    display: inline-block;
    font-weight: 700;
    color: #145dc0;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.stm-contact-email:hover {
    text-decoration: underline;
}

/* Internal Links */

.stm-internal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--stm-border);
}

/* Link Buttons */

.stm-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 20px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.stm-link-button:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Contact Button */

.stm-contact-button {
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #1769e0,
        #084a9e
    );
    box-shadow: 0 5px 15px rgba(23, 105, 224, 0.18);
}

.stm-contact-button:hover {
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(23, 105, 224, 0.3);
}

/* Disclaimer Button */

.stm-disclaimer-button {
    color: #1455a3 !important;
    background: #ffffff;
    border: 1px solid #b8d0ef;
}

.stm-disclaimer-button:hover {
    color: #084a9e !important;
    background: #f1f6ff;
    border-color: #1769e0;
}

/* Common Footer */

.stm-common-footer {
    padding: 22px 35px;
    text-align: center;
    border-top: 1px solid var(--stm-border);
    background: #f8fafd;
}

.stm-common-footer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--stm-muted);
}

.stm-common-footer strong {
    color: #24528a;
}

/* =========================================
   Tablet Responsive
========================================= */

@media (max-width: 768px) {

    .stm-common-page {
        margin: 15px 0;
    }

    .stm-common-content {
        padding: 25px 22px;
    }

    .stm-common-section h2 {
        font-size: 21px;
    }

    .stm-category-grid {
        gap: 12px;
    }

    .stm-common-footer {
        padding: 20px 22px;
    }

}

/* =========================================
   Mobile Responsive
========================================= */

@media (max-width: 520px) {

    .stm-common-page {
        margin: 10px 0;
    }

    .stm-common-container {
        border-radius: 0 0 12px 12px;
    }

    .stm-common-content {
        padding: 23px 16px;
    }

    .stm-common-section {
        margin-bottom: 27px;
    }

    .stm-common-section h2 {
        font-size: 20px;
        padding-left: 12px;
        margin-bottom: 12px;
    }

    .stm-common-section h3 {
        font-size: 17px;
    }

    .stm-common-section p,
    .stm-common-section li {
        font-size: 14px;
        line-height: 1.85;
    }

    .stm-category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stm-category-card {
        padding: 16px;
    }

    .stm-category-card h3 {
        font-size: 16px;
    }

    .stm-category-card p {
        font-size: 14px;
    }

    .stm-important-note {
        padding: 15px;
    }

    .stm-contact-box {
        padding: 17px;
    }

    .stm-internal-links {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
        padding-top: 22px;
    }

    .stm-link-button {
        width: 100%;
        min-height: 50px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .stm-common-footer {
        padding: 18px 16px;
    }

}

/* =========================================
   Page wrapper (static pages)
========================================= */
.stm-page-wrap{ padding:15px 13px 5px; }
@media (max-width:768px){ .stm-page-wrap{ padding:10px 8px 0; } }

/* =========================================
   Common Page Title (h1) - sab pages me same
========================================= */
/* ================================
   Online Update Stm - Page Header
   (Small, no background)
================================ */

#stm-page-header {
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#stm-page-header .stm-header-box {
    padding: 18px 20px;
    text-align: center;
    border: 1px solid #e5ebf3;
    border-radius: 18px 18px 0px 0px;
    background: #fff;
}

#stm-page-header .stm-header-box h1 {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.4;
    font-weight: 800;
    color: #123f78;
}

/* Mobile */
@media (max-width: 520px) {
    #stm-page-header {
        margin-bottom: 8px;
    }

    #stm-page-header .stm-header-box {
        padding: 14px 16px;
        border-radius: 12px 12px 0px 0px;
    }
}

/* About Us button (Disclaimer page) - Disclaimer button jaisa */
.stm-about-button{
    color:#1455a3 !important;
    background:#ffffff;
    border:1px solid #b8d0ef;
}
.stm-about-button:hover{
    color:#084a9e !important;
    background:#f1f6ff;
    border-color:#1769e0;
}
