/*
=========================================================
 RKMSM DYNAMIC CMS PAGES
 Separate stylesheet for page.blade.php
 Theme: RKMSM New Homepage
 Palette: Navy + Gold + White
=========================================================
*/

:root {
    --rkmsm-page-navy: #001f43;
    --rkmsm-page-navy-dark: #00172f;
    --rkmsm-page-gold: #f4a000;
    --rkmsm-page-gold-dark: #df8e00;
    --rkmsm-page-text: #26364a;
    --rkmsm-page-muted: #667487;
    --rkmsm-page-border: #e6ebf0;
    --rkmsm-page-soft: #f6f8fb;
    --rkmsm-page-white: #ffffff;
    --rkmsm-page-container: 1400px;
}

/* ---------------------------------------------------------
   PAGE BACKGROUND / OUTER WRAPPER
--------------------------------------------------------- */

#contentbodybg {
    width: 100%;
    background: #ffffff;
    padding: 0 0 80px;
    overflow: hidden;
}

#contentbodybg > .container {
    width: min(calc(100% - 72px), var(--rkmsm-page-container));
    max-width: var(--rkmsm-page-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------------------------
   PAGE TITLE / HERO HEADER
--------------------------------------------------------- */

#contentbodybg > .container > #hyphen-dark {
    display: none !important;
}

#contentbodybg > .container > h1 {
    position: relative;
    margin: 0px 0 42px;
    padding: 40px max(50vw, 36px) 40px;
    padding-left: max(calc((100vw - var(--rkmsm-page-container)) / 2), 36px);
    padding-right: max(calc((100vw - var(--rkmsm-page-container)) / 2), 36px);
    background:
        linear-gradient(105deg, rgba(0, 23, 47, .98), rgba(0, 31, 67, .94));
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.4px;
    text-align: left;
    box-shadow: 0 8px 28px rgba(0, 25, 55, .10);
}

#contentbodybg > .container > h1::before {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-bottom: 15px;
    background: var(--rkmsm-page-gold);
}
#contentbodybg > .container > h1:before {
    position: absolute;
    content: "";
    left: -100%;
    /* background: inherit; */
    height: 100%;
    width: 100%;
    top: 0;
    border: none;
}

#contentbodybg > .container > h1::after {
    content: "";
    position: absolute;
    right: max(calc((100vw - var(--rkmsm-page-container)) / 2), 36px);
    bottom: 0;
    width: 145px;
    height: 145px;
    background: var(--rkmsm-page-gold);
}

#contentbodybg > .container > h1:after {
    position: absolute;
    content: "";
    right: -100%;
    /* background: inherit; */
    height: 100%;
    width: 100%;
    top: 0;
    border: none;
}

.hero-content{
    max-width:100%;
}

/* ---------------------------------------------------------
   CONTENT TYPOGRAPHY
--------------------------------------------------------- */

#contentbodybg > .container > h1,
#contentbodybg > .container > .rkmsm-content,
#contentbodybg > .container > *:not(h1):not(#hyphen-dark) {
    font-family: "Poppins", sans-serif !important;
}

#contentbodybg > .container > p,
#contentbodybg > .container > div:not(#hyphen-dark):not(.rkmsm-page-hero) {
    color: var(--rkmsm-page-text);
}

#contentbodybg > .container > p {
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 18px;
}

/* ---------------------------------------------------------
   GENERIC HEADINGS INSIDE CMS HTML
--------------------------------------------------------- */

#contentbodybg > .container h2,
#contentbodybg > .container h3,
#contentbodybg > .container h4,
#contentbodybg > .container h5,
#contentbodybg > .container h6 {
    color: var(--rkmsm-page-navy);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 38px;
    margin-bottom: 16px;
}

#contentbodybg > .container h2 {
    position: relative;
    padding-bottom: 12px;
    font-size: clamp(25px, 2.2vw, 34px);
    border-bottom: 1px solid var(--rkmsm-page-border);
}

#contentbodybg > .container h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: -1px;
    background: var(--rkmsm-page-gold);
}

#contentbodybg > .container h3 {
    font-size: clamp(20px, 1.8vw, 27px);
}

#contentbodybg > .container h4 {
    font-size: 20px;
    color: #16395d;
}

#contentbodybg > .container h5 {
    font-size: 17px;
}

#contentbodybg > .container h6 {
    font-size: 15px;
}

#contentbodybg > .container h2:first-child,
#contentbodybg > .container h3:first-child {
    margin-top: 0;
        color: var(--rkmsm-page-navy) !important;
    border-bottom-color: var(--rkmsm-page-border) !important;
}
h3 {
    color: var(--rkmsm-page-navy) !important;
}
#contentbodybg > .container .doc-category h3
{
    color: #fff !important;
}
.video-card h2, .video-card h5 b {
    color: #fff !important;
}
.gallery-icon
{
    color: #fff;
}
.plo-title {
    background: #FF9800 !important;
}
/* ---------------------------------------------------------
   PARAGRAPHS / INLINE TEXT
--------------------------------------------------------- */

#contentbodybg > .container p {
    margin: 0 0 17px;
    color: var(--rkmsm-page-text);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

#contentbodybg > .container strong,
#contentbodybg > .container b {
    color: var(--rkmsm-page-navy);
    font-weight: 700;
}

#contentbodybg > .container em,
#contentbodybg > .container i {
    line-height: inherit;
}

#contentbodybg > .container small {
    font-size: 12px;
    color: var(--rkmsm-page-muted);
}

/* Preserve alignment coming from existing CMS HTML */
#contentbodybg > .container [align="center"],
#contentbodybg > .container .text-center {
    text-align: center;
}

#contentbodybg > .container [align="right"],
#contentbodybg > .container .text-right {
    text-align: right;
}

#contentbodybg > .container [align="left"],
#contentbodybg > .container .text-left {
    text-align: left;
}

/* ---------------------------------------------------------
   LINKS
--------------------------------------------------------- */

#contentbodybg > .container a {
    color: #07528c;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(7, 82, 140, .25);
    transition: color .2s ease, border-color .2s ease;
}

#contentbodybg > .container a:hover,
#contentbodybg > .container a:focus {
    color: var(--rkmsm-page-gold-dark);
    border-color: var(--rkmsm-page-gold);
}

#contentbodybg > .container a img {
    border: 0;
}

/* ---------------------------------------------------------
   LISTS
--------------------------------------------------------- */

#contentbodybg > .container ul,
#contentbodybg > .container ol {
    margin: 0 0 22px;
    padding-left: 26px;
    color: var(--rkmsm-page-text);
    font-size: 14px;
    line-height: 1.85;
}

#contentbodybg > .container ul {
    list-style: none;
}

#contentbodybg > .container ul > li {
    position: relative;
    margin: 7px 0;
    padding-left: 14px;
}

/*#contentbodybg > .container ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .78em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rkmsm-page-gold);
}*/

#contentbodybg > .container ol {
    padding-left: 30px;
}

#contentbodybg > .container ol > li {
    margin: 7px 0;
    padding-left: 5px;
}

#contentbodybg > .container ol > li::marker {
    color: var(--rkmsm-page-gold-dark);
    font-weight: 700;
}

/* Nested lists */
#contentbodybg > .container li > ul,
#contentbodybg > .container li > ol {
    margin-top: 7px;
    margin-bottom: 5px;
}

/* ---------------------------------------------------------
   BLOCKQUOTES
--------------------------------------------------------- */

#contentbodybg > .container blockquote {
    position: relative;
    margin: 28px 0;
    padding: 25px 30px 25px 58px;
    background: linear-gradient(135deg, #f6f8fb, #ffffff);
    border: 1px solid var(--rkmsm-page-border);
    border-left: 4px solid var(--rkmsm-page-gold);
    border-radius: 8px;
    color: var(--rkmsm-page-navy);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

#contentbodybg > .container blockquote::before {
    content: "“";
    position: absolute;
    left: 19px;
    top: 8px;
    color: var(--rkmsm-page-gold);
    font-family: "Poppins", sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
}

/* ---------------------------------------------------------
   IMAGES
--------------------------------------------------------- */

#contentbodybg > .container img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#contentbodybg > .container > img,
#contentbodybg > .container p > img,
#contentbodybg > .container div > img {
    border-radius: 8px;
}

#contentbodybg > .container img[align="left"] {
    margin: 6px 28px 18px 0;
}

#contentbodybg > .container img[align="right"] {
    margin: 6px 0 18px 28px;
}

#contentbodybg > .container img[align="middle"],
#contentbodybg > .container img[align="center"] {
    margin: 12px auto;
}

/* ---------------------------------------------------------
   HORIZONTAL RULES
--------------------------------------------------------- */

#contentbodybg > .container hr {
    height: 1px;
    margin: 32px 0;
    border: 0;
    background: var(--rkmsm-page-border);
}

/* ---------------------------------------------------------
   TABLES
--------------------------------------------------------- */

#contentbodybg > .container table {
    width: 100% !important;
    max-width: 100%;
    margin: 25px 0 30px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid var(--rkmsm-page-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 25, 55, .06);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

#contentbodybg > .container table caption {
    caption-side: top;
    padding: 0 0 10px;
    color: var(--rkmsm-page-navy);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

#contentbodybg > .container table thead th,
#contentbodybg > .container table th {
    padding: 13px 15px;
    color: #ffffff !important;
    background: var(--rkmsm-page-navy) !important;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
}

#contentbodybg > .container table tbody td {
    padding: 12px 15px;
    color: var(--rkmsm-page-text);
    background: #ffffff;
    border-top: 1px solid var(--rkmsm-page-border);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    line-height: 1.6;
    vertical-align: middle;
}

#contentbodybg > .container table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

#contentbodybg > .container table tbody tr:hover td {
    background: #fff8e9;
}

#contentbodybg > .container table td a,
#contentbodybg > .container table th a {
    word-break: break-word;
}

#contentbodybg > .container table img {
    max-width: 180px;
    height: auto;
    margin: 4px 0;
    border-radius: 5px;
}

/* ---------------------------------------------------------
   PRE / CODE
--------------------------------------------------------- */

#contentbodybg > .container pre {
    max-width: 100%;
    margin: 25px 0;
    padding: 18px 20px;
    overflow-x: auto;
    background: var(--rkmsm-page-navy-dark);
    color: #ffffff;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.6;
}

#contentbodybg > .container code {
    padding: 2px 5px;
    background: #f0f3f6;
    color: #a03b00;
    border-radius: 4px;
    font-size: .9em;
}

/* ---------------------------------------------------------
   DOWNLOAD / DOCUMENT LINKS
   Only applies to common document links and does not alter
   normal links.
--------------------------------------------------------- */

#contentbodybg > .container a[href$=".pdf"],
#contentbodybg > .container a[href$=".doc"],
#contentbodybg > .container a[href$=".docx"],
#contentbodybg > .container a[href$=".xls"],
#contentbodybg > .container a[href$=".xlsx"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 4px 4px 0;
    padding: 9px 14px;
    color: var(--rkmsm-page-navy);
    background: #f7f9fb;
    border: 1px solid var(--rkmsm-page-border);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

#contentbodybg > .container a[href$=".pdf"]:hover,
#contentbodybg > .container a[href$=".doc"]:hover,
#contentbodybg > .container a[href$=".docx"]:hover,
#contentbodybg > .container a[href$=".xls"]:hover,
#contentbodybg > .container a[href$=".xlsx"]:hover {
    color: var(--rkmsm-page-navy);
    background: #fff7e6;
    border-color: var(--rkmsm-page-gold);
}

/* ---------------------------------------------------------
   FORMS INSIDE CMS CONTENT
--------------------------------------------------------- */

#contentbodybg > .container form {
    margin: 25px 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid var(--rkmsm-page-border);
    border-radius: 9px;
    box-shadow: 0 5px 20px rgba(0, 25, 55, .06);
}

#contentbodybg > .container label {
    display: block;
    margin: 0 0 6px;
    color: var(--rkmsm-page-navy);
    font-size: 13px;
    font-weight: 600;
}

#contentbodybg > .container input,
#contentbodybg > .container select,
#contentbodybg > .container textarea {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    background: #ffffff;
    color: var(--rkmsm-page-text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#contentbodybg > .container textarea {
    min-height: 120px;
    resize: vertical;
}

#contentbodybg > .container input:focus,
#contentbodybg > .container select:focus,
#contentbodybg > .container textarea:focus {
    border-color: var(--rkmsm-page-gold);
    box-shadow: 0 0 0 3px rgba(244, 160, 0, .12);
}

#contentbodybg > .container button,
#contentbodybg > .container input[type="submit"],
#contentbodybg > .container input[type="button"] {
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--rkmsm-page-gold);
    color: #1b2a3a;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

#contentbodybg > .container button:hover,
#contentbodybg > .container input[type="submit"]:hover,
#contentbodybg > .container input[type="button"]:hover {
    background: var(--rkmsm-page-gold-dark);
    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   RESPONSIVE EMBEDS / VIDEO
--------------------------------------------------------- */

#contentbodybg > .container iframe,
#contentbodybg > .container video {
    max-width: 100%;
    border-radius: 8px;
}

#contentbodybg > .container iframe {
    max-width: 100%;
}

/* ---------------------------------------------------------
   BOOTSTRAP / LEGACY WIDTH OVERRIDES
   Helps old CMS HTML fit the new responsive layout without
   changing the actual database content.
--------------------------------------------------------- */

#contentbodybg > .container [width] {
    max-width: 100%;
}

#contentbodybg > .container table[width] {
    width: 100% !important;
}

#contentbodybg > .container td[width],
#contentbodybg > .container th[width] {
    max-width: 100%;
}

#contentbodybg > .container [style*="font-family"],
#contentbodybg > .container [style*="font-size"] {
    font-family: "Poppins", sans-serif !important;
}

#contentbodybg > .container [style*="color:"] {
    /* Preserve semantic content while allowing the new theme
       to remain visually consistent. */
}

/* ---------------------------------------------------------
   OPTIONAL SIDEBAR SUPPORT
   If page.blade.php is later given a sidebar wrapper,
   these classes are already ready to use.
--------------------------------------------------------- */

.rkmsm-dynamic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 34px;
    align-items: start;
}

.rkmsm-dynamic-main {
    min-width: 0;
}

.rkmsm-dynamic-sidebar {
    position: sticky;
    top: 105px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--rkmsm-page-border);
    border-radius: 9px;
    box-shadow: 0 5px 20px rgba(0, 25, 55, .06);
}

.rkmsm-dynamic-sidebar h3 {
    margin: 0 0 15px;
    padding-bottom: 11px;
    color: var(--rkmsm-page-navy);
    border-bottom: 2px solid var(--rkmsm-page-gold);
    font-family: "Poppins", sans-serif;
    font-size: 19px;
}

.rkmsm-dynamic-sidebar a {
    display: block;
    padding: 9px 0;
    color: var(--rkmsm-page-text);
    border-bottom: 1px solid var(--rkmsm-page-border);
    font-size: 12px;
    font-weight: 500;
}

.rkmsm-dynamic-sidebar a:hover {
    padding-left: 5px;
    color: var(--rkmsm-page-gold-dark);
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 991px) {

    #contentbodybg {
        padding-bottom: 55px;
    }

    #contentbodybg > .container {
        width: min(calc(100% - 0px), var(--rkmsm-page-container));
    }

    #contentbodybg > .container > h1 {
        margin-left: calc((100% - 100vw) / 2);
        margin-right: calc((100% - 100vw) / 2);
        padding: 42px 18px 42px;
        padding-left: 18px;
        padding-right: 18px;
        font-size: 32px;
    }

    #contentbodybg > .container p {
        font-size: 14px;
        line-height: 1.8;
    }

    #contentbodybg > .container h2 {
        font-size: 25px;
        margin-top: 32px;
    }

    #contentbodybg > .container h3 {
        font-size: 21px;
    }

    #contentbodybg > .container blockquote {
        padding: 22px 22px 22px 48px;
        font-size: 16px;
    }

    #contentbodybg > .container table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
    }

    #contentbodybg > .container table thead,
    #contentbodybg > .container table tbody,
    #contentbodybg > .container table tr {
        min-width: 620px;
    }

    .rkmsm-dynamic-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rkmsm-dynamic-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {

    #contentbodybg > .container {
        width: calc(100% - 0);
    }

    #contentbodybg > .container > h1 {
        margin-left: calc((100% - 100vw) / 2);
        margin-right: calc((100% - 100vw) / 2);
        padding: 34px 14px;
        font-size: 27px;
    }

    #contentbodybg > .container > h1::before {
        width: 42px;
        margin-bottom: 11px;
    }

    #contentbodybg > .container p,
    #contentbodybg > .container ul,
    #contentbodybg > .container ol {
        font-size: 13.5px;
    }

    #contentbodybg > .container table {
        font-size: 12px;
    }

    #contentbodybg > .container table th,
    #contentbodybg > .container table td {
        padding: 10px 11px;
    }

    #contentbodybg > .container img[align="left"],
    #contentbodybg > .container img[align="right"] {
        float: none !important;
        display: block;
        margin: 15px auto;
    }
}

/* ---------------------------------------------------------
   PRINT
--------------------------------------------------------- */

@media print {

    #contentbodybg > .container > h1 {
        margin: 0 0 30px;
        padding: 20px 0;
        color: #000;
        background: none;
        box-shadow: none;
    }

    #contentbodybg > .container > h1::before,
    #contentbodybg > .container > h1::after {
        display: none;
    }

    #contentbodybg > .container a {
        color: #000;
        border: 0;
    }
}
.premium-green-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #191918, #3d3a31) !important;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgb(216 216 216 / 60%) !important;
 }
 .premium-green-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(13, 13, 13, 0.85) !important;
    background: linear-gradient(135deg, #000, #3d3a31) !important;
    color: #ffffff;
}