/*----------------------------------------------------------------------*/
/* Defaults */
/*----------------------------------------------------------------------*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-family: inherit;
    vertical-align: baseline;
    transition: all 0.3s;
    -o-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
}

html {
    font-size: 1rem;
    font-family: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: none;
    color: #212529;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100%;
    height: auto;
    width: 100%;
    position: relative;
}

body::before {
    position: fixed;
    top: 0;
    right: 0;
    background-image: url("../images/asset-1.png");
    background-repeat: no-repeat;
    width: 700px;
    height: 230px;
    content: "";
    opacity: 0.1;
    background-size: 100%;
    z-index: -1;
}

footer,
header,
section {
    display: block;
}

a {
    color: #1c326e;
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #000;
}

p,
ul,
ol {
    margin: 18px 0;
    line-height: 1.7;
}

li {
    list-style: none;
}

hr {
    display: block;
    height: 0;
    line-height: 0;
    border: 0;
    border-top: 1px solid #efefef;
    margin: 15px 0;
    padding: 0;
    clear: both;
    float: none;
}

strong {
    font-weight: 700;
}

img {
    border: 0;
}

.small {
    font-size: 10px;
    letter-spacing: 0;
}

/*----------------------------------------------------------------------*/
/* Layout Structure */
/*----------------------------------------------------------------------*/

.wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* Sidebar */
#sidebar {
    min-width: 300px;
    max-width: 300px;
    width: 30%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    color: #fff;
    background: url(../images/01.jpg);
    background-size: cover;
    transition: all 0.3s;
    -webkit-box-shadow: 0 0 6px rgba(3, 3, 3, 0.6);
    box-shadow: 0 0 6px rgba(3, 3, 3, 0.6);
}

#sidebar:after {
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#sidebar.active {
    margin-left: -250px;
}

/* Main Content Area */
#document-content {
    position: absolute;
    left: 300px;
    padding: 0 50px 800px;
    min-height: 100%;
    height: auto;
    z-index: 1;
    width: calc(100% - 300px);
}

/*----------------------------------------------------------------------*/
/* Sidebar Components */
/*----------------------------------------------------------------------*/

#sidebar .sidebar-header {
    padding: 20px;
}

/* Badge specific to sidebar header */
.sidebar-header .badge {
    font-size: 11px;
    padding: 4px 8px;
}

#sidebar ul {
    margin-top: 0;
    padding: 0;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li {
    position: relative;
    list-style: none;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 0.9em;
    display: block;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    /* Optional: adds slight rounding to menu items */
}

#sidebar ul li.active>a,
a[aria-expanded="true"],
#sidebar ul li:hover>a {
    transition: 0.35s ease left;
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Arrow */
.nav-dropdown::after {
    content: "";
    position: absolute;
    display: block;
    right: 30px;
    left: auto;
    width: 1px;
    color: inherit;
    border-top: 6px solid transparent;
    border-left: 6px solid;
    border-bottom: 6px solid transparent;
    opacity: .4;
    -webkit-transition: .2s opacity;
    transition: .2s opacity;
    transform: translateY(-18px);
    will-change: opacity;
}

/* Dropdown Container */
.dropdown-container {
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 0;
}

/* Scrollable Sidebar Content (if used) */
#sidebar .sidebar-scroll {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow-y: auto;
}

/*----------------------------------------------------------------------*/
/* Content Typography & Components */
/*----------------------------------------------------------------------*/

/* Headings */
#document-content h1 {
    font-size: 30px;
    font-weight: 700;
}

#document-content h2 {
    font-size: 20px;
    font-weight: 100;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cacaca;
}

#document-content h2 b {
    font-weight: bold;
}

#document-content h3 {
    position: relative;
    color: #212529;
    font-size: 30px;
    font-weight: 500;
    /* Overridden below */
    font-weight: bold;
    padding: 0 0 12px 0;
    margin-bottom: 25px;
}

#document-content h3::after {
    position: absolute;
    left: 3px;
    bottom: 0;
    height: 4px;
    content: '';
    width: 150px;
    border-radius: 5px;
    background: #1c326e;
}

#document-content h4 {
    font-size: 18px;
    margin: 18px 0;
    font-weight: 500;
    position: relative;
    padding-left: 18px;
}

#document-content h4::after {
    position: absolute;
    left: 1px;
    top: -8px;
    width: 4px;
    content: "";
    z-index: -1;
    height: 35px;
    border-radius: 5px;
    background: #1c326e;
}

#document-content h5 {
    font-size: 16px;
    margin: 18px 0;
    font-weight: 100;
}

#document-content h6 {
    font-size: 14px;
    margin: 18px 0;
    font-weight: 100;
}

#document-content p {
    margin: 18px 0;
    font-size: 15px;
    line-height: 1.7;
}

/* Lists in Content */
#document-content ul,
#document-content ol {
    margin-top: 15px;
    margin-bottom: 15px;
}

#document-content ul li,
#document-content ol li {
    font-size: 15px;
    padding-left: 22px;
    line-height: 1.7;
    background: url(../images/right-arrowheads.png);
    background-repeat: no-repeat;
    background-position: top 8px left;
    background-size: 12px;
    list-style: none;
}

/* Nested Lists */
#document-content ul li ul {
    font-size: 15px;
    padding-left: 22px;
    line-height: 27px;
    background-repeat: no-repeat;
    background-position: top 8px left;
    background-size: 12px;
}

/* Specific Menu List Override */
#document-content ul#menu li {
    background-position: top 3px left;
}

/* Definition Lists */
#document-content dl dt {
    padding-top: 12px;
    font-weight: 700;
    font-size: 14px;
}

#document-content dl dd {
    padding-top: 3px;
    margin-left: 18px;
}

/* Tables */
#document-content table {
    border-collapse: collapse;
    width: 100%;
}

#document-content table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
}

#document-content table td {
    padding: 12px;
    text-align: left;
}

/* Images in Content */
#document-content img {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.09), 0 8px 9px 0 rgba(0, 0, 0, 0.09);
    border: 1px solid #f0f0f0;
}

/* Page Headers & Title Numbers */
.title-number {
    color: #fff;
    width: 50px;
    height: 50px;
    font-size: 26px;
    font-weight: 900;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    margin: 0 10px 10px 0;
    display: inline-block;
    vertical-align: middle;
    background: #1c326e;
}

#document-content .sub-content .title-number {
    width: 50px;
    height: 50px;
    font-size: 16px;
    line-height: 50px;
    font-weight: bold;
}

/* Sections */
#document-content section {
    padding-top: 70px;
}

#document-content .sub-content {
    margin-top: 40px;
    margin-left: 30px;
    margin-right: 30px;
    padding-top: 70px;
}

#document-content .sub-content h3 {
    font-size: 26px;
}

/*----------------------------------------------------------------------*/
/* UI Components */
/*----------------------------------------------------------------------*/

/* Cards */
.card {
    border: 1px solid rgba(28, 50, 110, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(28, 50, 110, 0.15);
}

.card-title {
    color: #1c326e;
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.badge.bg-primary {
    background-color: #1c326e !important;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border-left: 4px solid;
    padding: 15px;
    margin-bottom: 20px;
}

.alert h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

.alert-success {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

/* Utilities */
.no-arrow-bg li {
    background: none !important;
    padding-left: 0 !important;
}

/* Code Blocks */
pre {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

#document-content code,
pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #212529;
}

/* Code Copy Button */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: #1c326e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

pre:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: #0f1d3f;
}

.code-copy-btn.copied {
    background: #28a745;
}

/* Accordion */
.accordion-section .panel-default>.panel-heading {
    border: 0;
    border-radius: 5px;
    padding: 0 !important;
    color: #fff;
}

.accordion-section .panel:last-child {
    margin-bottom: 50px;
}

.accordion-section .panel-default .panel-title a {
    position: relative;
    color: #212529;
    display: block;
    padding: 15px;
    font-weight: 500;
    font-size: 1.2rem;
    border-radius: 5px;
    background: rgba(33, 37, 41, 0.1);
    text-decoration: none;
}

.accordion-section .panel-default .panel-title a[aria-expanded="true"] {
    color: #fff;
    background: rgba(33, 37, 41, 1);
}

.accordion-section .panel-default .panel-title a:after {
    position: absolute;
    top: 0;
    right: 15px;
    bottom: 0;
    color: #212529;
    height: 35px;
    margin: auto;
    content: "\f106";
    /* FontAwesome chevron-up */
    font-size: 28px;
    font-style: normal;
    font-family: 'FontAwesome';
    transition: all 0.3s;
    transform: rotate(0);
}

.accordion-section .panel-default .panel-title a[aria-expanded="true"]:after {
    color: #fff;
}

.accordion-section .panel-default .panel-title a.collapsed:after {
    transform: rotate(180deg);
}

.accordion-section .panel-default .panel-body {
    font-size: 1.2rem;
    padding: 15px;
}

/* Sources Table */
.sources-table {
    font-size: 14px;
}

.sources-table thead {
    background: #1c326e;
    color: #fff;
}

.sources-table tbody tr {
    transition: background-color 0.2s ease;
}

.sources-table tbody tr:hover {
    background-color: rgba(28, 50, 110, 0.05);
}

.sources-table a {
    color: #1c326e;
    text-decoration: none;
    font-weight: 500;
}

.sources-table a:hover {
    text-decoration: underline;
}

/* Tool Screenshots (Custom Image Layouts) */
.tool-ss-img {
    position: relative;
    padding: 0 100px;
    min-height: 350px;
}

.tool-ss-left-img {
    padding-left: 50px;
}

.tool-ss-right-img {
    padding-right: 50px;
}

.tool-ss-img:after,
.tool-ss-img:before {
    position: absolute;
    content: '';
}

.tool-ss-left-img::after,
.tool-ss-right-img::after {
    z-index: -1;
    margin: auto;
    opacity: 0.05;
    border-radius: 50%;
    top: -20px;
    width: 150px;
    height: 150px;
    background-color: #1c326e;
}

.tool-ss-left-img:after {
    left: 0;
}

.tool-ss-right-img::after {
    right: 0;
}

.tool-ss-left-img::before,
.tool-ss-right-img::before {
    z-index: -1;
    width: 150px;
    bottom: 20px;
    height: 150px;
    background-repeat: no-repeat;
    background-size: 150px;
    background-image: url('../images/icons/dots.svg');
}

.tool-ss-left-img:before {
    right: 50px;
}

.tool-ss-right-img::before {
    left: 50px;
}

.sub-content .tool-ss-img {
    padding: 0 0;
    margin: 100px 0;
}

/*----------------------------------------------------------------------*/
/* Interactive Elements */
/*----------------------------------------------------------------------*/

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1c326e;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(28, 50, 110, 0.3);
}

.back-to-top:hover {
    background: #0f1d3f;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(28, 50, 110, 0.4);
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*----------------------------------------------------------------------*/
/* Active Navigation States */
/*----------------------------------------------------------------------*/

/* Main navigation active state */
#sidebar ul li a.active {
    background: #1c326e !important;
    color: #fff !important;
}

/* Submenu items active state (FAQ, Prerequisites) */
.dropdown-container li.active>a,
.dropdown-container a.active {
    background: #1c326e !important;
    color: #fff !important;
    padding-left: 10px;
}

/* Parent dropdown active when child is active */
a.nav-dropdown.active {
    background: #1c326e !important;
    color: #fff !important;
}

/* Bootstrap Nav Pills Override */
#sidebar .nav-pills .nav-link.active,
#sidebar .nav-pills .show>.nav-link {
    background: #1c326e;
}

/*----------------------------------------------------------------------*/
/* Responsive Media Queries */
/*----------------------------------------------------------------------*/

@media only screen and (max-width: 1440px) {
    #document-content img {
        object-fit: cover;
        object-position: top left;
    }

    .tool-ss-img {
        padding-left: 30px;
        padding-right: 20px;
    }

    .tool-ss-left-img::before,
    .tool-ss-right-img::before {
        width: 150px;
        bottom: 150px;
        height: 150px;
        background-size: 270px;
    }

    .tool-ss-right-img::before {
        left: -40px;
    }

    .tool-ss-left-img::before {
        right: -10px;
    }

    .tool-ss-left-img::after {
        left: -20px;
    }

    .tool-ss-left-img::after,
    .tool-ss-right-img::after {
        top: -30px;
        width: 150px;
        height: 150px;
    }

    .tool-ss-right-img::after {
        right: -30px;
    }

    #document-content p,
    #document-content ul li,
    #document-content ol li {
        font-size: 14px;
    }

    #document-content h3 {
        font-size: 24px;
    }

    .title-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
    }

    #document-content section {
        padding-top: 20px;
    }

    .tool-ss-img {
        min-height: 235px;
    }
}

@media only screen and (max-width: 991px) {
    .wrapper {
        display: block;
        overflow-x: hidden;
    }

    #sidebarCollapse {
        top: 30px;
        right: 20px;
        display: block;
    }

    #document-content {
        position: relative;
        left: 0;
        padding: 50px 15px 0;
        width: 100%;
    }

    #sidebar {
        left: 0;
        width: 100%;
        height: auto;
        min-width: auto;
        min-height: auto;
        max-width: inherit;
        max-height: inherit;
        position: relative;
    }

    #sidebar .sidebar-header {
        padding: 15px;
        text-align: left;
    }

    #sidebar .sidebar-header img {
        width: 120px;
    }

    #sidebar .sidebar-scroll {
        height: 320px;
        overflow-y: scroll;
    }

    .sidebar-scroll {
        display: none;
    }

    .show-sidebar {
        display: block;
    }

    #document-content .sub-content {
        margin-left: 0;
        margin-right: 0;
    }

    #document-content img {
        height: auto;
    }

    .accordion-section .container-fluid {
        padding: 0;
    }
}

@media only screen and (max-width: 600px) {
    .accordion-section .panel-default .panel-title a {
        font-size: 14px;
        line-height: 1.5;
        padding-right: 60px;
    }

    #document-content .sub-content h3 {
        font-size: 20px;
        line-height: 1.5;
        padding-bottom: 15px;
    }

    .title-number,
    #document-content .sub-content .title-number {
        display: block;
        margin: 0 0 15px;
    }
}