/*   
 * Template Name: PrettyDocs - Bootstrap 4 Template for documentations
 * Version: 2.3
 * Author: Xiaoying Riley
 * Copyright: 3rd Wave Media
 * Twitter: @3rdwave_themes
 * License: Creative Commons Attribution 3.0 License
 * Website: http://themes.3rdwavemedia.com/
*/
/* ======= Base ======= */
:root {
  --primary-color: #40babd;
  --primary-hover: #35a2a5;
  --primary-soft: rgba(64, 186, 189, 0.1);
  --secondary-color: #3aa7aa;
  --text-color: #334155;
  --heading-color: #0f172a;
  --text-muted: #64748b;
  --background-light: #f8fafc;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background-light);
}

html,
body {
  height: 100%;
}

.page-wrapper {
  min-height: 100%;
  /* equal to footer height */
  margin-bottom: -50px;
}

.page-wrapper:after {
  content: "";
  display: block;
  height: 50px;
}

/* Removed fixed height to allow footer to expand based on content */

p {
  line-height: 1.5;
}

a {
  color: #3aa7aa;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

a:hover {
  text-decoration: underline;
  color: #339597;
}

a:focus {
  text-decoration: none;
}

code {
  background: #222;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  padding: 2px 8px;
  padding-top: 4px;
  display: inline-block;
}

.btn,
a.btn {
  transition: var(--transition-normal);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  /* default border */
}

.btn .svg-inline--fa,
a.btn .svg-inline--fa {
  margin-right: 5px;
  position: relative;
  top: -1px;
}

.btn:focus,
a.btn:focus {
  box-shadow: none;
  outline: none;
}

.btn:hover,
a.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn:active,
a.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary,
a.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.hover,
.btn-primary:not(:disabled):not(.disabled):active:focus,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
a.btn-primary.active,
a.btn-primary.hover,
a.btn-primary:not(:disabled):not(.disabled):active:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white) !important;
  box-shadow: var(--shadow-md);
}

.btn-green,
a.btn-green {
  background: #75c181;
  border-color: #75c181;
  color: var(--white) !important;
}

.btn-green:hover,
.btn-green:focus,
.btn-green:active,
.btn-green.active,
.btn-green.hover,
a.btn-green:hover,
a.btn-green:focus,
a.btn-green:active,
a.btn-green.active,
a.btn-green.hover {
  background: #63b971;
  border-color: #63b971;
  color: var(--white) !important;
}

.body-green .btn-green,
.body-green a.btn-green {
  color: var(--white) !important;
}

.body-green .btn-green:hover,
.body-green .btn-green:focus,
.body-green .btn-green:active,
.body-green .btn-green.active,
.body-green .btn-green.hover,
.body-green a.btn-green:hover,
.body-green a.btn-green:focus,
.body-green a.btn-green:active,
.body-green a.btn-green.active,
.body-green a.btn-green.hover {
  color: var(--white) !important;
}

.btn-blue,
a.btn-blue {
  background: #58bbee;
  border-color: #58bbee;
  color: var(--white) !important;
}

.btn-blue:hover,
.btn-blue:focus,
.btn-blue:active,
.btn-blue.active,
.btn-blue.hover,
a.btn-blue:hover,
a.btn-blue:focus,
a.btn-blue:active,
a.btn-blue.active,
a.btn-blue.hover {
  background: #41b2ec;
  border-color: #41b2ec;
  color: var(--white) !important;
}

.btn-orange,
a.btn-orange {
  background: #F88C30;
  border-color: #F88C30;
  color: var(--white) !important;
}

.btn-orange:hover,
.btn-orange:focus,
.btn-orange:active,
.btn-orange.active,
.btn-orange.hover,
a.btn-orange:hover,
a.btn-orange:focus,
a.btn-orange:active,
a.btn-orange.active,
a.btn-orange.hover {
  background: #f77e17;
  border-color: #f77e17;
  color: var(--white) !important;
}

.btn-red,
a.btn-red {
  background: #f77b6b;
  border-color: #f77b6b;
  color: var(--white) !important;
}

.btn-red:hover,
.btn-red:focus,
.btn-red:active,
.btn-red.active,
.btn-red.hover,
a.btn-red:hover,
a.btn-red:focus,
a.btn-red:active,
a.btn-red.active,
a.btn-red.hover {
  background: #f66553;
  border-color: #f66553;
  color: var(--white) !important;
}

.btn-pink,
a.btn-pink {
  background: #EA5395;
  border-color: #EA5395;
  color: var(--white) !important;
}

.btn-pink:hover,
.btn-pink:focus,
.btn-pink:active,
.btn-pink.active,
.btn-pink.hover,
a.btn-pink:hover,
a.btn-pink:focus,
a.btn-pink:active,
a.btn-pink.active,
a.btn-pink.hover {
  background: #e73c87;
  border-color: #e73c87;
  color: var(--white) !important;
}

.btn-purple,
a.btn-purple {
  background: #8A40A7;
  border-color: #8A40A7;
  color: var(--white) !important;
}

.btn-purple:hover,
.btn-purple:focus,
.btn-purple:active,
.btn-purple.active,
.btn-purple.hover,
a.btn-purple:hover,
a.btn-purple:focus,
a.btn-purple:active,
a.btn-purple.active,
a.btn-purple.hover {
  background: #7b3995;
  border-color: #7b3995;
  color: var(--white) !important;
}

.btn-cta {
  padding: 7px 15px;
}

.search-btn {
  height: 40px;
}

.search-btn .svg-inline--fa {
  top: 0;
  margin-right: 0;
}

.form-control {
  box-shadow: none;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-family: var(--font-family);
  background: var(--white);
  transition: var(--transition-normal);
}

.form-control::-webkit-input-placeholder {
  color: #afb3bb;
}

.form-control:-moz-placeholder {
  color: #afb3bb;
}

.form-control::-moz-placeholder {
  color: #afb3bb;
}

.form-control:-ms-input-placeholder {
  color: #afb3bb;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(64, 186, 189, 0.1);
  outline: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="submit"],
input[type="button"],
textarea,
select {
  appearance: none;
  /* for mobile safari */
  -webkit-appearance: none;
}

/* ====== Header ====== */
.header {
  background: rgba(255, 255, 255, 0.9);
  color: var(--heading-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header a {
  color: #2c3e50;
}

.header .container {
  position: relative;
}

.branding {
  text-transform: uppercase;
  margin-bottom: 10px;
}

.branding .logo {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 0;
}

.branding .logo a {
  text-decoration: none;
}

.branding .text-highlight {
  color: #40babd;
}

.body-green .branding .text-highlight {
  color: #75c181;
}

.body-blue .branding .text-highlight {
  color: #58bbee;
}

.body-orange .branding .text-highlight {
  color: #F88C30;
}

.body-red .branding .text-highlight {
  color: #f77b6b;
}

.body-pink .branding .text-highlight {
  color: #EA5395;
}

.body-purple .branding .text-highlight {
  color: #8A40A7;
}

.branding .text-bold {
  font-weight: 800;
  color: #fff;
}

.branding .icon {
  font-size: 24px;
  color: #40babd;
}

.body-green .branding .icon {
  color: #75c181;
}

.body-blue .branding .icon {
  color: #58bbee;
}

.body-orange .branding .icon {
  color: #F88C30;
}

.body-red .branding .icon {
  color: #f77b6b;
}

.body-pink .branding .icon {
  color: #EA5395;
}

.body-purple .branding .icon {
  color: #8A40A7;
}

.breadcrumb {
  background: none;
  margin-bottom: 0;
  padding: 0;
}

.breadcrumb li {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li.active {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li a:hover {
  color: #fff;
}

.breadcrumb>li+li:before {
  color: rgba(0, 0, 0, 0.4);
}

.search-form {
  position: relative;
}

.search-form .search-input {
  font-size: 14px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  border-radius: 20px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  padding-top: 4px;
}

.search-form .search-input:focus {
  border-color: #616670;
}

.search-form .search-btn {
  color: #797f8b;
  background: none;
  border: none;
  position: absolute;
  right: 5px;
  top: 0px;
  margin-right: 0;
}

.search-form .search-btn:active,
.search-form .search-btn:focus,
.search-form .search-btn:hover {
  outline: none !important;
  color: #31343a;
}

.top-search-box {
  position: absolute;
  right: 15px;
  top: 15px;
}

/* ====== Footer ====== */
.footer {
  background: var(--heading-color);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 0;
  min-height: auto;
  width: 100%;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-normal);
}

.footer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer a:hover {
  color: #40babd;
}

.footer .fa-heart {
  color: #EA5395;
}

@media (max-width: 575.98px) {
  .top-search-box {
    width: 100%;
    position: static;
    margin-top: 15px;
  }
}

/* ======= Doc Styling ======= */
.doc-wrapper {
  padding: 45px 0;
  background: #f9f9fb;
}

.doc-body {
  position: relative;
}

.doc-header {
  margin-bottom: 30px;
}

.doc-header .doc-title {
  color: #40babd;
  margin-top: 0;
  font-size: 36px;
}

.body-green .doc-header .doc-title {
  color: #75c181;
}

.body-blue .doc-header .doc-title {
  color: #58bbee;
}

.body-orange .doc-header .doc-title {
  color: #F88C30;
}

.body-red .doc-header .doc-title {
  color: #f77b6b;
}

.body-pink .doc-header .doc-title {
  color: #EA5395;
}

.body-purple .doc-header .doc-title {
  color: #8A40A7;
}

.doc-header .icon {
  font-size: 30px;
}

.doc-header .meta {
  color: #a2a6af;
}

.doc-section {
  padding-top: 15px;
  padding-bottom: 15px;
}

.section-title {
  color: var(--heading-color);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.section-title i {
  color: var(--primary-color);
  font-size: 0.9em;
}

.doc-section .section-title {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: bold;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.section-subtitle {
  font-size: 20px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.doc-section h1 {
  font-size: 24px;
  font-weight: bold;
}

.doc-section h2 {
  font-size: 22px;
  font-weight: bold;
}

.doc-section h3 {
  font-size: 20px;
  font-weight: bold;
}

.doc-section h4 {
  font-size: 18px;
  font-weight: bold;
}

.doc-section h5 {
  font-size: 16px;
  font-weight: bold;
}

.doc-section h6 {
  font-size: 14px;
  font-weight: bold;
}

.section-block {
  padding-top: 15px;
  padding-bottom: 15px;
}

.section-block .block-title {
  margin-top: 0;
}

.section-block .list>li {
  margin-bottom: 10px;
}

.section-block .list ul>li {
  margin-top: 5px;
}

.question {
  font-weight: 400 !important;
  color: #3aa7aa;
}

.question .body-green {
  color: #63b971;
}

.body-blue .question {
  color: #41b2ec;
}

.body-orange .question {
  color: #f77e17;
}

.body-pink .question {
  color: #e73c87;
}

.body-purple .question {
  color: #7b3995;
}

.question .svg-inline--fa {
  -webkit-opacity: 0.6;
  -moz-opacity: 0.6;
  opacity: 0.6;
  position: relative;
  top: -2px;
}

.question .badge {
  font-size: 11px;
  vertical-align: middle;
}

.answer {
  color: #616670;
}

.code-block {
  margin-top: 30px;
  margin-bottom: 30px;
}

.callout-block {
  padding: 30px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  position: relative;
  margin-bottom: 30px;
}

.callout-block a {
  color: rgba(0, 0, 0, 0.55) !important;
}

.callout-block a:hover {
  color: rgba(0, 0, 0, 0.65) !important;
}

.callout-block .icon-holder {
  font-size: 30px;
  position: absolute;
  left: 30px;
  top: 30px;
  color: rgba(0, 0, 0, 0.25);
}

.callout-block .content {
  margin-left: 60px;
}

.callout-block .content p:last-child {
  margin-bottom: 0;
}

.callout-block .callout-title {
  margin-top: 0;
  margin-bottom: 5px;
  color: rgba(0, 0, 0, 0.65);
}

.callout-info {
  background: #58bbee;
  color: #fff;
}

.callout-success {
  background: #75c181;
  color: #fff;
}

.callout-warning {
  background: #F88C30;
  color: #fff;
}

.callout-danger {
  background: #f77b6b;
  color: #fff;
}

.table>thead>tr>th {
  border-bottom-color: #8bd6d8;
}

.body-green .table>thead>tr>th {
  border-bottom-color: #bbe1c1;
}

.body-blue .table>thead>tr>th {
  border-bottom-color: #b5e1f7;
}

.body-orange .table>thead>tr>th {
  border-bottom-color: #fbc393;
}

.body-pink .table>thead>tr>th {
  border-bottom-color: #f5aecd;
}

.body-purple .table>thead>tr>th {
  border-bottom-color: #b87fce;
}

.table-bordered>thead>tr>th {
  border-bottom-color: inherit;
}

.table-striped>tbody>tr:nth-of-type(odd) {
  background-color: #f5f5f5;
}

.screenshot-holder {
  margin-top: 15px;
  margin-bottom: 15px;
  position: relative;
  text-align: center;
}

.screenshot-holder img {
  border: 1px solid #f0f0f0;
}

.screenshot-holder .mask {
  display: block;
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
}

.screenshot-holder .mask .svg-inline--fa {
  color: #fff;
  font-size: 42px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -21px;
  margin-top: -21px;
}

.screenshot-holder:hover .mask {
  visibility: visible;
}

.jumbotron h1 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 30px;
}

.author-profile {
  margin-top: 30px;
}

.author-profile img {
  width: 100px;
  height: 100px;
}

.speech-bubble {
  background: #fff;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  padding: 30px;
  margin-top: 20px;
  margin-bottom: 30px;
  position: relative;
}

.speech-bubble .speech-title {
  font-size: 16px;
}

.jumbotron .speech-bubble p {
  font-size: 14px;
  font-weight: normal;
  color: #616670;
}

.speech-bubble:before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 50%;
  top: -10px;
  margin-left: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
}

.theme-card {
  text-align: center;
  border: 1px solid #e3e3e3;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  position: relative;
  height: 100%;
}

.theme-card .card-block {
  padding: 15px;
}

.theme-card .mask {
  display: block;
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
}

.theme-card .mask .icon {
  color: #fff;
  font-size: 42px;
  margin-top: 25%;
}

.theme-card:hover .mask {
  visibility: visible;
}

/* Color Schemes */
.body-green .header {
  border-color: #75c181;
}

.body-green a {
  color: #75c181;
}

.body-green a:hover {
  color: #52b161;
}

.body-blue .header {
  border-color: #58bbee;
}

.body-blue a {
  color: #58bbee;
}

.body-blue a:hover {
  color: #2aa8e9;
}

.body-orange .header {
  border-color: #F88C30;
}

.body-orange a {
  color: #F88C30;
}

.body-orange a:hover {
  color: #ed7108;
}

.body-pink .header {
  border-color: #EA5395;
}

.body-pink a {
  color: #EA5395;
}

.body-pink a:hover {
  color: #e42679;
}

.body-purple .header {
  border-color: #8A40A7;
}

.body-purple a {
  color: #8A40A7;
}

.body-purple a:hover {
  color: #6c3282;
}

.body-red .header {
  border-color: #f77b6b;
}

.body-red a {
  color: #f77b6b;
}

.body-red a:hover {
  color: #f4503b;
}

/* Sidebar */
.doc-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sticky {
  position: -webkit-sticky;
  position: -moz-sticky;
  position: -ms-sticky;
  position: -o-sticky;
  position: sticky;
  top: 0;
}

.doc-menu {
  list-style: none;
}

.doc-menu .nav-link {
  margin-bottom: 5px;
  display: block;
  padding: 5px 15px;
  color: #616670;
}

.doc-menu .nav-link:hover,
.doc-menu .nav-link:focus {
  color: #494d55;
  text-decoration: none;
  background: none;
}

.doc-menu .nav-link.active {
  background: none;
  color: #40babd;
  font-weight: 600;
}

.body-green .doc-menu .nav-link.active {
  color: #75c181;
  border-color: #75c181;
}

.body-blue .doc-menu .nav-link.active {
  color: #58bbee;
  border-color: #58bbee;
}

.body-orange .doc-menu .nav-link.active {
  color: #F88C30;
  border-color: #F88C30;
}

.body-red .doc-menu .nav-link.active {
  color: #f77b6b;
  border-color: #f77b6b;
}

.body-pink .doc-menu .nav-link.active {
  color: #EA5395;
  border-color: #EA5395;
}

.body-purple .doc-menu .nav-link.active {
  color: #8A40A7;
  border-color: #8A40A7;
}

.doc-sub-menu {
  list-style: none;
  padding-left: 0;
}

.doc-sub-menu .nav-link {
  margin-bottom: 10px;
  font-size: 12px;
  display: block;
  color: #616670;
  padding: 0;
  padding-left: 34px;
  background: none;
}

.doc-sub-menu .nav-link:first-child {
  padding-top: 5px;
}

.doc-sub-menu .nav-link:hover {
  color: #494d55;
  text-decoration: none;
  background: none;
}

.doc-sub-menu .nav-link:focus {
  background: none;
}

.doc-sub-menu .nav-link.active {
  background: none;
  color: #40babd;
}

.body-green .doc-sub-menu .nav-link.active {
  color: #75c181;
}

.body-blue .doc-sub-menu .nav-link.active {
  color: #58bbee;
}

.body-orange .doc-sub-menu .nav-link.active {
  color: #F88C30;
}

.body-red .doc-sub-menu .nav-link.active {
  color: #f77b6b;
}

.body-pink .doc-sub-menu .nav-link.active {
  color: #EA5395;
}

.body-purple .doc-sub-menu .nav-link.active {
  color: #8A40A7;
}

/*
.affix-top {
  position: absolute;
  top: 15px;
}

.affix {
  top: 15px;
}

.affix, 
.affix-bottom {
  width: 230px;
}

.affix-bottom {
  position: absolute;
}
*/
/* ===== Promo block ===== */
.promo-block {
  background: #3aa7aa;
}

.body-green .promo-block {
  background: #63b971;
}

.body-blue .promo-block {
  background: #41b2ec;
}

.body-orange .promo-block {
  background: #f77e17;
}

.body-pink .promo-block {
  background: #e73c87;
}

.body-purple .promo-block {
  background: #7b3995;
}

.promo-block a {
  color: rgba(0, 0, 0, 0.6);
  font-weight: bold;
}

.promo-block a:hover {
  color: rgba(0, 0, 0, 0.7);
}

.promo-block .promo-block-inner {
  padding: 45px;
  color: #fff;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

.promo-block .promo-title {
  font-size: 20px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 45px;
}

.promo-block .promo-title .svg-inline--fa {
  color: rgba(0, 0, 0, 0.6);
}

.promo-block .figure-holder-inner {
  background: #fff;
  margin-bottom: 30px;
  position: relative;
  text-align: center;
}

.promo-block .figure-holder-inner img {
  border: 5px solid #fff;
}

.promo-block .figure-holder-inner .mask {
  display: block;
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  text-decoration: none;
}

.promo-block .figure-holder-inner .mask .svg-inline--fa {
  color: #fff;
  font-size: 36px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -18px;
  margin-top: -18px;
}

.promo-block .figure-holder-inner .mask .svg-inline--fa.pink {
  color: #EA5395;
}

.promo-block .figure-holder-inner:hover .mask {
  visibility: visible;
}

.promo-block .content-holder-inner {
  padding-left: 15px;
  padding-right: 15px;
}

.promo-block .content-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
}

.promo-block .highlight {
  color: rgba(0, 0, 0, 0.6);
}

.promo-block .btn-cta {
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff !important;
  margin-bottom: 15px;
}

.promo-block .btn-cta:hover {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff !important;
}

/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
  .jumbotron {
    padding: 30px 15px;
  }

  .jumbotron h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .jumbotron p {
    font-size: 18px;
  }

  .hero-text h1.tagline {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .promo-block .promo-block-inner {
    padding: 30px 15px;
  }

  .promo-block .content-holder-inner {
    padding: 0;
  }

  .promo-block .promo-title {
    margin-bottom: 30px;
  }
}

/* Small devices (tablets, 768px and up) */
/* Medium devices (desktops, 992px and up) */
/* Large devices (large desktops, 1200px and up) */
.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.sticky:before,
.sticky:after {
  content: '';
  display: table;
}

/* ======= Landing Page ======= */
.landing-page .header {
  background: #494d55;
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0;
}

.landing-page .header a {
  color: #fff;
}

.landing-page .branding {
  text-transform: uppercase;
  margin-bottom: 20px;
}

.landing-page .branding .logo {
  font-size: 38px;
  margin-top: 0;
  margin-bottom: 0;
}

.landing-page .branding .text-bold {
  font-weight: 800;
  color: #fff;
}

.landing-page .branding .icon {
  font-size: 32px;
  color: #40babd;
}

.landing-page .tagline {
  font-weight: 600;
  font-size: 20px;
}

.landing-page .tagline p {
  margin-bottom: 5px;
}

.landing-page .tagline p:last-child {
  margin-bottom: 0;
}

.landing-page .tagline .text-highlight {
  color: #266f71;
}

.landing-page .fa-heart {
  color: #EA5395;
}

.landing-page .cta-container {
  margin-top: 30px;
}

.landing-page .social-container .twitter-tweet {
  display: inline-block;
  margin-right: 5px;
  position: relative;
}

.landing-page .social-container .fb_iframe_widget {
  display: inline-block;
  position: relative;
  top: 3px;
}

.cards-section {
  padding: 60px 0;
  background: #f9f9fb;
}

.cards-section .title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.cards-section .intro {
  margin: 0 auto;
  max-width: 800px;
  margin-bottom: 60px;
  color: #616670;
}

.cards-section .cards-wrapper {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.cards-section .item {
  margin-bottom: 30px;
}

.cards-section .item .icon-holder {
  margin-bottom: 15px;
}

.cards-section .item .icon {
  font-size: 36px;
}

.cards-section .item .title {
  font-size: 16px;
  font-weight: 600;
}

.cards-section .item .intro {
  margin-bottom: 15px;
}

.cards-section .item-inner {
  padding: 45px 30px;
  background: #fff;
  position: relative;
  border: 1px solid #f0f0f0;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  height: 100%;
}

.cards-section .item-inner .link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.cards-section .item-inner:hover {
  background: #f5f5f5;
}

.cards-section .item-primary .item-inner {
  border-top: 3px solid #40babd;
}

.cards-section .item-primary .item-inner:hover .title {
  color: #2d8284;
}

.cards-section .item-primary .icon {
  color: #40babd;
}

.cards-section .item-green .item-inner {
  border-top: 3px solid #75c181;
}

.cards-section .item-green .item-inner:hover .title {
  color: #48a156;
}

.cards-section .item-green .icon {
  color: #75c181;
}

.cards-section .item-blue .item-inner {
  border-top: 3px solid #58bbee;
}

.cards-section .item-blue .item-inner:hover .title {
  color: #179de2;
}

.cards-section .item-blue .icon {
  color: #58bbee;
}

.cards-section .item-orange .item-inner {
  border-top: 3px solid #F88C30;
}

.cards-section .item-orange .item-inner:hover .title {
  color: #d46607;
}

.cards-section .item-orange .icon {
  color: #F88C30;
}

.cards-section .item-red .item-inner {
  border-top: 3px solid #f77b6b;
}

.cards-section .item-red .item-inner:hover .title {
  color: #f33a22;
}

.cards-section .item-red .icon {
  color: #f77b6b;
}

.cards-section .item-pink .item-inner {
  border-top: 3px solid #EA5395;
}

.cards-section .item-pink .item-inner:hover .title {
  color: #d61a6c;
}

.cards-section .item-pink .icon {
  color: #EA5395;
}

.cards-section .item-purple .item-inner {
  border-top: 3px solid #8A40A7;
}

.cards-section .item-purple .item-inner:hover .title {
  color: #5c2b70;
}

.cards-section .item-purple .icon {
  color: #8A40A7;
}

@media (max-width: 575.98px) {
  .main-search-box {
    width: 100%;
  }

  .main-search-box .search-form .search-input {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .cards-section .item-inner {
    padding: 30px 15px;
  }
}

@media (min-width: 576px) {
  .main-search-box .search-form .search-input {
    width: 400px;
  }
}

@media (min-width: 768px) {
  .main-search-box .search-form .search-input {
    width: 560px;
  }
}

/* ======= Custom Styles for Optimized Pages ======= */

/* Header Styles */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav .nav-upgrade-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.main-nav .nav-upgrade-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-full);
  background: var(--background-light);
  cursor: pointer;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.1;
  padding: 0.5rem 1rem;
  transition: var(--transition-normal);
  position: relative;
}

.main-nav .nav-upgrade-trigger:hover,
.main-nav .nav-upgrade-trigger:focus,
.main-nav .nav-upgrade-group.open .nav-upgrade-trigger {
  color: var(--white);
  text-decoration: none;
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.main-nav .nav-upgrade-trigger:focus {
  outline: none;
}

.main-nav .nav-upgrade-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(64, 186, 189, 0.2);
}

.main-nav .nav-upgrade-trigger::after {
  display: none;
}

.main-nav .nav-upgrade-trigger-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.main-nav .nav-upgrade-trigger-label i {
  color: var(--primary-color);
  font-size: 0.9em;
}

.main-nav .nav-upgrade-group:hover .nav-upgrade-trigger-label i,
.main-nav .nav-upgrade-group:focus-within .nav-upgrade-trigger-label i,
.main-nav .nav-upgrade-group.open .nav-upgrade-trigger-label i {
  color: inherit;
}

.main-nav .nav-upgrade-caret {
  font-size: 0.75rem;
  color: inherit;
  transition: transform 0.2s ease;
}

.main-nav .nav-upgrade-subitems {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 340px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(64, 186, 189, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(44, 62, 80, 0.14);
  padding: 0.6rem;
  z-index: 1100;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  backdrop-filter: blur(6px);
}

.main-nav .nav-upgrade-group:hover .nav-upgrade-subitems,
.main-nav .nav-upgrade-group:focus-within .nav-upgrade-subitems,
.main-nav .nav-upgrade-group.open .nav-upgrade-subitems {
  display: grid;
}

.main-nav .nav-upgrade-subitems::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(64, 186, 189, 0.18);
  border-top: 1px solid rgba(64, 186, 189, 0.18);
  transform: rotate(45deg);
}

.main-nav .nav-upgrade-group:hover .nav-upgrade-caret,
.main-nav .nav-upgrade-group:focus-within .nav-upgrade-caret,
.main-nav .nav-upgrade-group.open .nav-upgrade-caret {
  transform: rotate(180deg);
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: var(--transition-normal);
  position: relative;
}

.main-nav a:hover {
  color: #40babd;
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #40babd;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c3e50;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: #40babd;
}

.mobile-menu-toggle:focus {
  outline: none;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.logo-icon {
  font-size: 2rem;
  color: white;
  margin-right: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

.logo-icon-hidden {
  display: none !important;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  background-color: var(--primary-color);
  color: var(--white) !important;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: 0 4px 14px 0 rgba(64, 186, 189, 0.39);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(64, 186, 189, 0.45);
  text-decoration: none;
  color: var(--white) !important;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: radial-gradient(circle at top right, rgba(64, 186, 189, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(64, 186, 189, 0.03), transparent 40%),
    var(--white);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1.tagline {
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.feature-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.feature-item i {
  color: #40babd;
}

/* Use Cases Section */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.use-case-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.use-case-card.primary {
  background: linear-gradient(135deg, #40babd 0%, #35a2a5 100%);
  color: var(--white);
}

.use-case-card.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
}

.use-case-card.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: var(--white);
}

.use-case-card.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
}

.use-case-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.use-case-card h3 i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.use-case-list {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
}

.use-case-list li {
  padding: 0.75rem 0;
  color: #6e7381;
  font-style: italic;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.1rem;
  line-height: 1.8;
}

.use-case-list li:last-child {
  border-bottom: none;
}

.use-case-list li i {
  color: #40babd;
  margin-right: 0.5rem;
}

/* Instructions Section */
.instructions {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 2.5rem 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.instructions ol {
  margin-left: 0;
  padding-left: 1.25rem;
}

.instructions li {
  margin: 1.5rem 0;
  line-height: 1.8;
  color: var(--text-color);
}

.qr-code-container {
  text-align: center;
  margin: 2rem 0;
}

.qr-code-container img {
  max-width: 200px;
  width: 158px;
  height: 158px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* QR code in flex layout (next to text) */
.instructions li .qr-code-container {
  margin: 0;
}

/* Browser address bar example */
.browser-example {
  text-align: center;
  margin: 1.5rem 0;
}

.browser-example img {
  max-width: 100%;
  height: auto;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

/* Code Blocks — dark editor look inspired by VS Code / GitHub Dark */
.code-block {
  background: #0d1117;
  color: #e6edf3;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border: 1px solid #30363d;
}

.code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.92rem;
  line-height: 1.75;
  background: transparent;
  color: #e6edf3;
  padding: 0;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.code-block pre {
  margin: 0;
}

.code-block pre code {
  display: block;
  color: #e6edf3;
}

/* Let Prism handle syntax colors — only define fallbacks for un-highlighted code */
.code-block code .keyword {
  color: #ff7b72;
}

.code-block code .string {
  color: #a5d6ff;
}

.code-block code .function {
  color: #d2a8ff;
}

.code-block code .comment {
  color: #8b949e;
  font-style: italic;
}

.code-block code .number {
  color: #79c0ff;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

/* Limit table width on desktop for better readability */
@media (min-width: 992px) {
  .table-container {
    display: block;
  }

  .table-container table {
    max-width: 900px;
    width: 100%;
    margin: 0;
  }
}

.table-container table thead {
  background: #40babd;
  color: white;
}

.table-container table th,
.table-container table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.table-container table tbody tr:hover {
  background: #f8f9fa;
}

.table-container table tbody tr:last-child td {
  border-bottom: 1px solid #dee2e6;
}

.table-container .code-block {
  margin: 0.5rem 0;
}

/* FAQ Section */
.faq-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.faq-list li {
  margin: 1rem 0;
}

.faq-list a {
  color: #40babd;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.faq-list a:hover {
  color: #3aa7aa;
  text-decoration: underline;
}

.faq-list a i {
  margin-right: 0.5rem;
}

/* Footer */
.footer-content {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #40babd;
  text-decoration: none;
}

.footer-links a img {
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .footer {
    padding: 15px 0;
  }

  .footer-content {
    font-size: 0.85rem;
    padding: 0 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .footer-links a {
    font-size: 0.8rem;
    justify-content: center;
  }
}

/* Documentation Page Styles */
.doc-sub-menu {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.doc-sub-menu .nav-link {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-list .feature-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.features-list .feature-item i {
  color: #40babd;
  margin-top: 0.25rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #40babd;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  color: #40babd;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #3aa7aa;
}

.faq-toggle {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  color: #6e7381;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  margin-top: 1rem;
}

.faq-item p {
  margin: 0;
  line-height: 1.8;
}

.breadcrumb-nav {
  margin-top: 1rem;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
  color: white;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: white;
  font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: rgba(255, 255, 255, 0.6);
  margin-right: 0.5rem;
}

.branding .logo {
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

.text-highlight {
  color: #ffd700;
}

.text-bold {
  font-weight: 700;
}

/* Utility Classes */
.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }

  .logo-img {
    height: 35px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    box-shadow: none;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-top 0.3s ease;
    width: 100%;
    z-index: 1000;
  }

  .main-nav.active {
    max-height: 80vh;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .main-nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background-color: #f8f9fa;
    color: #40babd;
  }

  .main-nav .nav-upgrade-group {
    width: 100%;
    gap: 0.35rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav .nav-upgrade-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .main-nav .nav-upgrade-trigger::after {
    display: none;
  }

  .main-nav .nav-upgrade-subitems {
    width: 100%;
    display: none;
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
    z-index: auto;
  }

  .main-nav .nav-upgrade-group:hover .nav-upgrade-subitems {
    display: none;
  }

  .main-nav .nav-upgrade-group.open .nav-upgrade-subitems,
  .main-nav .nav-upgrade-group:focus-within .nav-upgrade-subitems {
    display: grid;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1.tagline {
    font-size: 2rem;
  }

  .use-cases {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .features {
    justify-content: center;
  }

  .doc-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }

  .doc-title {
    font-size: 2rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.section {
  animation: fadeIn 0.6s ease-out;
  padding: 3rem 0;
}

/* Extra spacing for donate section */
#donate.section {
  margin-top: 2rem;
  padding-top: 4rem;
}

/* ======= Share Buttons ======= */
.share-buttons {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-decoration: none;
}

.share-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.share-btn.wechat {
  background: #07c160;
}

.share-btn.weibo {
  background: #e6162d;
}

.share-btn.wechat:hover {
  background: #06ad56;
}

.share-btn.weibo:hover {
  background: #d01428;
}

.share-tooltip {
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.share-btn:hover .share-tooltip {
  opacity: 1;
}

@media (max-width: 768px) {
  .share-buttons {
    right: 10px;
  }

  .share-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* ======= WeChat QR Modal ======= */
.wechat-qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.wechat-qr-modal.active {
  display: flex;
}

.wechat-qr-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 300px;
  box-shadow: var(--shadow-lg);
}

.wechat-qr-content img {
  width: 200px;
  height: 200px;
  margin: 20px 0;
}

.wechat-qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-muted);
}

/* ======= Service Tabs ======= */
.service-tabs {
  background: var(--background-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
}

.tab-header {
  display: flex;
  gap: 6px;
  background: transparent;
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex: 1;
  justify-content: center;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(64, 186, 189, 0.08);
}

.tab-btn.active {
  color: var(--primary-color);
  font-weight: 600;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Ensure external upgrade tabs never show as active */
.tab-btn[data-tab="email"].active,
.tab-btn[data-tab="wecom"].active {
  color: var(--text-muted);
  font-weight: 500;
  border-bottom-color: transparent;
  background: none;
}

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

@media (max-width: 768px) {
  .service-tabs {
    margin-bottom: 1.5rem;
  }

  .tab-header {
    flex-direction: row;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
    border-radius: 8px 8px 0 0;
  }

  .tab-btn {
    width: auto;
    border-bottom: 3px solid transparent;
    border-left: none;
    justify-content: center;
    padding: 1rem 0.75rem;
    min-height: 56px;
    font-size: 0.9rem;
    position: relative;
    -webkit-tap-highlight-color: rgba(64, 186, 189, 0.2);
  }

  .tab-btn:active {
    background: rgba(64, 186, 189, 0.1);
    transform: scale(0.98);
  }

  .tab-btn.active {
    border-left: none;
    border-bottom-color: var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
  }

  .tab-btn i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .tab-btn span {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .tab-btn {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tab-btn[data-tab="email"],
  .tab-btn[data-tab="wecom"] {
    position: relative;
  }

  .tab-btn[data-tab="email"] .tab-external-icon,
  .tab-btn[data-tab="wecom"] .tab-external-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.65rem;
    opacity: 0.8;
    color: var(--primary-color);
  }
}

.tab-external-icon {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  opacity: 0.7;
}

/* ======= Upgrade Link ======= */
.upgrade-link:hover {
  background: linear-gradient(135deg, #3aa7aa 0%, #40babd 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 186, 189, 0.4) !important;
  color: var(--white) !important;
  text-decoration: none;
}

.upgrade-link:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .upgrade-notice {
    padding: 0.875rem !important;
  }

  .upgrade-link {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* ======= Push Type Tabs ======= */
.push-type-tabs {
  background: var(--background-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.push-tab-header {
  display: flex;
  gap: 6px;
  background: transparent;
}

.push-tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.push-tab-btn:hover {
  color: var(--primary-color);
  background: rgba(64, 186, 189, 0.08);
}

.push-tab-btn.active {
  color: var(--primary-color);
  font-weight: 600;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.push-tab-btn i {
  font-size: 1rem;
}

.push-tab-content {
  display: none;
  padding: 2rem;
}

.push-tab-content.active {
  display: block;
}

.push-tab-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.push-tab-col h4 {
  color: var(--heading-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.push-tab-col h4 i {
  color: var(--primary-color);
}

.push-tab-col p,
.push-tab-col ul {
  color: var(--text-muted);
  line-height: 1.6;
}

.push-tab-col ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

@media (max-width: 992px) {
  .push-tab-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .push-tab-content {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-top: 6px;
    border: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .push-tab-header {
    flex-direction: row;
  }

  .push-tab-btn {
    padding: 1rem 0.75rem;
    min-height: 56px;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .push-tab-btn i {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .push-tab-btn span {
    font-size: 0.85rem;
  }

  .push-tab-content {
    padding: 1rem 0.75rem;
  }

  .push-tab-content .code-block {
    margin-left: -0.75rem !important;
    margin-right: -0.75rem !important;
    border-radius: 0;
  }
}

/* ======= Language Example Tabs ======= */
.lang-example-tabs {
  --lang-accent: #3b82f6;
  --lang-accent-strong: #2563eb;
  --lang-accent-rgb: 59, 130, 246;
  margin-top: 0.75rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.lang-example-tabs[data-http-method="POST"] {
  --lang-accent: #f97316;
  --lang-accent-strong: #ea580c;
  --lang-accent-rgb: 249, 115, 22;
}

.lang-example-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 12px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  border-radius: 10px 10px 0 0;
}

.lang-example-topbar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.lang-example-method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 22px;
  padding: 0 0.5rem;
  border-radius: 4px;
  background: var(--lang-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.lang-example-topbar-text {
  color: #e6edf3;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.2;
}

.lang-example-copy-btn {
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e6edf3;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.lang-example-copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #3f444c;
}

.lang-example-copy-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--lang-accent-rgb), 0.35);
}

.lang-example-copy-btn.copied {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.35);
}

.lang-example-copy-btn.copy-error {
  color: #ffa198;
  border-color: rgba(255, 161, 152, 0.35);
}

.lang-example-endpoint {
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #8b949e;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
}

.lang-example-note {
  margin: 0;
  padding: 0.75rem 12px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  color: #8b949e;
  font-size: 0.85rem;
  line-height: 1.5;
}

.lang-example-note i {
  color: var(--lang-accent);
  margin-right: 0.35rem;
}

.lang-example-note code {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.8em;
  line-height: 1.2;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e6edf3;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

.lang-tab-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 8px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.lang-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #8b949e;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.lang-tab-btn:hover {
  color: #e6edf3;
  background: rgba(255, 255, 255, 0.06);
}

.lang-tab-btn.active {
  color: #e6edf3;
  border-color: #30363d;
  background: #0d1117;
  box-shadow: none;
  font-weight: 600;
}

.lang-tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--lang-accent-rgb), 0.4);
}

.lang-tab-content {
  display: none;
  padding: 0;
  background: transparent;
}

.lang-tab-content.active {
  display: block;
}

.lang-tab-content .code-block {
  margin: 0;
  border-radius: 0 0 10px 10px;
  border-top: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .main-nav .nav-upgrade-trigger {
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #2c3e50;
    transform: none;
  }

  .main-nav .nav-upgrade-trigger:hover,
  .main-nav .nav-upgrade-trigger:focus,
  .main-nav .nav-upgrade-group.open .nav-upgrade-trigger {
    background: rgba(64, 186, 189, 0.05);
    color: #40babd;
    box-shadow: none;
    transform: none;
  }

  .main-nav .nav-upgrade-subitems::before {
    display: none;
  }

  .lang-example-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.875rem;
    gap: 0.55rem;
  }

  .lang-example-copy-btn {
    align-self: flex-start;
  }

  .lang-example-endpoint {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    border-radius: 4px;
  }

  .lang-example-note {
    padding: 0.65rem 10px;
    font-size: 0.8rem;
  }

  .code-block {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }

  .code-block code {
    font-size: 0.85rem;
  }

  .lang-tab-header {
    padding: 8px 6px 6px;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lang-tab-btn {
    font-size: 0.78rem;
    padding: 5px 8px;
    flex: 0 0 auto;
  }

  .lang-tab-content {
    padding: 0;
  }
}

/* ======= Email Upgrade Entry ======= */
.email-upgrade-entry {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  max-width: 380px;
  margin-left: 0;
  margin-right: auto;
}

.email-upgrade-entry:hover {
  box-shadow: 0 2px 8px rgba(64, 186, 189, 0.12);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.email-upgrade-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.email-upgrade-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.email-upgrade-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.15rem;
}

.email-upgrade-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.email-upgrade-title {
  font-size: 0.9rem;
  color: var(--heading-color);
  font-weight: 600;
}

.email-upgrade-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #40babd 0%, #3aa7aa 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.8rem;
  transition: var(--transition-normal);
  box-shadow: 0 1px 4px rgba(64, 186, 189, 0.2);
  white-space: nowrap;
}

.email-upgrade-link:hover {
  background: linear-gradient(135deg, #3aa7aa 0%, #359a9d 100%);
  box-shadow: 0 2px 8px rgba(64, 186, 189, 0.35);
  transform: translateX(2px);
}

.email-upgrade-link i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.email-upgrade-link:hover i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .email-upgrade-entry {
    margin-top: 1rem;
    padding: 0.75rem;
    max-width: 100%;
  }

  .email-upgrade-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .email-upgrade-icon {
    font-size: 1rem;
  }

  .email-upgrade-text {
    width: 100%;
  }

  .email-upgrade-link {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 0.875rem;
  }
}

/* ======= Navigation Menu Adjustments ======= */
.main-nav a i:first-child {
  margin-right: 0.5rem;
  font-size: 0.9em;
  width: 1em;
  text-align: center;
}

.main-nav .nav-upgrade-trigger-label i:first-child {
  margin-right: 0.4rem;
  width: 1em;
  text-align: center;
}

.main-nav .nav-upgrade-link i:first-child {
  margin-right: 0.4rem;
}

.main-nav .nav-upgrade-link i.fa-external-link-alt {
  margin-left: 0.25rem;
  margin-right: 0;
}

.main-nav .nav-upgrade-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color) !important;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(64, 186, 189, 0.1) 0%, rgba(64, 186, 189, 0.05) 100%);
  padding: 0.5rem 0.875rem !important;
  border-radius: 6px;
  border: 1px solid rgba(64, 186, 189, 0.2);
  transition: var(--transition-normal);
  white-space: nowrap;
}

.main-nav .nav-upgrade-link:hover {
  color: var(--white) !important;
  background: linear-gradient(135deg, #40babd 0%, #3aa7aa 100%);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(64, 186, 189, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.main-nav .nav-upgrade-link::after {
  display: none;
}

.main-nav .nav-upgrade-link i {
  color: inherit;
}

@media (max-width: 768px) {
  .main-nav .nav-upgrade-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-bottom: none !important;
    padding: 0.625rem 0.5rem !important;
    font-size: 0.85rem;
  }

  .main-nav a i:first-child {
    font-size: 0.85em;
    margin-right: 0.4rem;
  }

  .main-nav .nav-upgrade-trigger-label i:first-child {
    font-size: 0.85em;
    margin-right: 0.35rem;
  }
}

/* ======= Donate QR Code ======= */
.donate-qr {
  max-width: 300px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.donate-qr:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .instructions {
    padding: 1.25rem 0.75rem;
    margin: 1.5rem 0;
  }

  .instructions ol {
    padding-left: 1.25rem;
  }

  .instructions li {
    margin: 1.25rem 0;
  }

  /* Make code blocks and tabs use more width by reducing side constraints */
  .instructions .code-block,
  .instructions .lang-example-tabs {
    margin-left: -1.25rem;
    margin-right: -0.75rem;
    border-radius: 0;
    width: auto;
  }
}