
body {
    font-family: "Mulish", sans-serif;
    font-optical-sizing: auto;
    --background-color-nav-light: #e6edfe;
}

/* Custom Styles of Bootstrap 5 */
.alert-warning {
  --bs-alert-color: #856404;
  --bs-alert-bg: #fff3cd;
  --bs-alert-border-color: #ffc107;
}

.alert-info {
  --bs-alert-color: #0c5460;
  --bs-alert-bg: #d1ecf1;
  --bs-alert-border-color: #17a2b8;
}

/* Header Background Color */
.navbar-light {
  background-color: var(--background-color-nav-light);
}

/* Updated styles for search button */
.btn-outline-secondary {
    --bs-btn-color: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-bg: #6c757d;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
}

/* Sticky Footer */
.min-vh-100 {
  min-height: 100vh;
}

html,
body {
  height: 100%;
}

body > main {
    min-height: calc(100vh - 200px - 90px);
}

/* Additional styles for content pages */
.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #6c757d;
}

.partner-logo {
  max-height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.partner-logo:hover {
  opacity: 1;
}

/* Sidebar navigation enhancements */
.card .btn-link {
  border: none !important;
  box-shadow: none !important;
}

.card .btn-link:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Content cards hover effects */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for content pages */
@media (max-width: 767.98px) {
  .display-5 {
    font-size: 2rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    font-size: 0.9rem;
  }
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}
.sidebar-content {
    padding: 0 1.5rem;
    position: sticky;
    top: 2rem;
}
.nav-section {
    margin-bottom: 1rem;
    font-size: 16px;
}
.nav-section-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 0;
    text-align: left;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
    display: block;
}
.nav-section-toggle:after {
    content: "";
    display: inline-block;
    transition: transform 0.2s ease;
    border-style: solid;
    border-width: 0.15em 0.15em 0 0;
    border-color: black;
    width: 10px;
    height: 10px;
    transform: rotate(135deg);
    margin: 5px;
    float: right;
}

.nav-section-toggle:hover,
.nav-section-toggle.active {
    color: var(--bs-primary);
}

.nav-section-toggle[aria-expanded="true"]:after {
    transform: rotate(315deg);
}
.nav-section-content {
}
.nav-section-content .nav-link {
    display: block;
    line-height: 1.4;
    transition: all 0.2s ease;
    padding: 1rem;
    margin: 0;
}
.nav-section-content .nav-link.active,
.nav-section-content .nav-link:hover {
    background-color: var(--background-color-nav-light);
    font-weight: bold;
}


/* Mega Menu Styles */
.navbar-nav .nav-link {
    display: block;
    color: #6c757d;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.4;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    padding: 0;
    margin: 0;
}
.navbar-nav .nav-link:hover {
    text-decoration: none;
    background-color: rgba(59, 77, 102, 0.05);
    border-bottom: 2px solid black;
}


/* Mega Menu Styles desktop */
@media (min-width: 992px) {
    .navbar-nav > .nav-item > .nav-link {
        padding: 30px 2rem;
    }
    .nav-item.mega-dropdown {
        position: static;
    }
    .mega-dropdown .container {
        padding-right: 30%;
    }
    .mega-dropdown .dropdown-toggle.show {
        border-bottom: 2px solid black;
    }
    .mega-dropdown .dropdown-toggle.show::after {
        transform: rotate(-180deg);
    }
    .mega-dropdown .dropdown-menu.show {
        background-color: var(--background-color-nav-light);
        margin-top: 0;
        width: 100%;
        left: 0;
        right: 0;
        border: none;
        border-top: solid 1px black;
    }
    .mega-dropdown h6 {
        font-size: 24px;
        font-weight: 900;
        margin-bottom: 0.5rem;
        color: black;
    }
    .mega-dropdown .dropdown-item {
        font-size: 18px;
        white-space: wrap;
        margin-bottom: 0.7rem;
    }
}

/* Table of Contents Sidebar */
.toc-sidebar {
    padding: 2rem 1.5rem;
}

.toc-content {
    position: sticky;
    top: 2rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.toc-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toc-nav .toc-list {
    padding-left: 0;
    margin: 0;
    border-left: solid 1px silver;
}
.toc-nav li {
    list-style: none;
    padding: 0 0.75rem;
}
.toc-nav a {
    display: block;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
    padding: 0.5rem 0.75rem;
    margin-left: calc(-0.75rem + -2px);
    transition: all 0.2s ease;
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--bs-primary);
    text-decoration: none;
    border-left-color: var(--bs-primary);
    background-color: rgba(59, 77, 102, 0.1);
}
/* Footer Styles */
body > footer {
}
body > footer h4 {
    font-size: 24px;
    margin-bottom: 1.5rem;
    font-weight: bold;
}
body > footer .contact-info {
    font-size: 24px;
    line-height: 1.6;
}
body > footer .contact-info a {
    display: inline-block;
    color: black;
    text-decoration: none;
    margin-right: 1.5rem;
}
body > footer .contact-info .fa {
    font-size: 30px;
}
body > footer .contact-info a:hover {
    text-decoration: underline;
}
body > footer .partners-text {
    font-size: 18px;
    margin-bottom: 1rem;
    text-align: right;
}

/* Breadcrumb */
/*
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

*/

/* Main Content */
.main-content {
    padding: 2rem 1.5rem;
    font-size: 18px;
    line-height: 2.2rem;
}
.main-content h1,
.main-content h2,
.main-content h3 {
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.main-content h4,
.main-content h5,
.main-content h6 {
    margin-bottom: 1rem;
}
.main-content h1 {
    font-size: 36px;
    font-weight: 900;
}
.main-content h2 {
    font-size: 34px;
    font-weight: 900;
}
.main-content h3 {
    font-size: 28px;
    font-weight: 900;
}
.main-content h6 {
    font-size: 18px;
}
.main-content hr {
    border-top-width: 2px;
    opacity: 1;
}
/* Details and Summary Styles */
.main-content details {
    margin-bottom: 1.5rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.5rem 1rem 1rem;
}
.main-content details summary {
    list-style: none;
    margin: 0 -1rem;
    padding: 0 1rem;
    border-bottom: 1px solid transparent;
}
.main-content details summary::-webkit-details-marker,
.main-content details summary::marker {
    display: none;
}
.main-content details summary::after {
    content: "";
    display: inline-block;
    border-style: solid;
    border-width: 0.15em 0.15em 0 0;
    border-color: black;
    width: 10px;
    height: 10px;
    transform: rotate(135deg);
    margin: 10px;
    float: right;
}
.main-content details[open] summary {
    border-bottom-color: #ced4da;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: bold;
}
.main-content details[open] summary::after {
    transform: rotate(315deg);
}
/* Special Widget Card */
.main-content .card.special-widget {
    border: 2px solid var(--bs-primary);
    margin-bottom: 1rem;
}
.main-content .card.special-widget:hover {
    transform: none;
    box-shadow: none;
}
.main-content .card.special-widget .card-header {
    background-color: transparent;
}
.main-content .card.special-widget .special-icon {
    margin-right: 0.5rem;
}
.main-content .card.special-widget .card-body p:last-child {
    margin-bottom: 0;
}
.main-content .card.special-widget.border-success .card-header {
    color: var(--bs-success);
    border-bottom-color: var(--bs-success);
}
.main-content .card.special-widget.border-danger .card-header {
    color: var(--bs-danger);
    border-bottom-color: var(--bs-danger);
}
.main-content .card.special-widget.border-warning .card-header {
    color: var(--bs-warning);
    border-bottom-color: var(--bs-warning);
}
.main-content .card.special-widget.border-info .card-header {
    color: var(--bs-info);
    border-bottom-color: var(--bs-info);
}
.main-content .card.special-widget.border-primary .card-header {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
}


