/* ==================== */
/* RAYFORCE-RS CUSTOM STYLES */
/* Rust-themed colors with RayforceDB navy */
/* ==================== */

/* Rust brand colors + Rayforce navy */
:root {
    --md-primary-fg-color: #04233b;
    --md-primary-fg-color--light: #0a3a5c;
    --md-primary-fg-color--dark: #021828;
    --md-accent-fg-color: #f74c00;

    /* Rust orange tones */
    --rust-orange: #f74c00;
    --rust-orange-light: #ff6b2b;
    --rust-orange-dark: #c53d00;
    
    /* Rayforce navy tones */
    --ray-navy: #04233b;
    --ray-navy-light: #0a3a5c;
    --ray-navy-dark: #021828;
    
    /* Custom variables for UI elements */
    --accent-primary: #f74c00;
    --accent-hover: #ff6b2b;
    --bg-tertiary: #e0e0e0;
    --text-secondary: #757575;
    --text-tertiary: #9e9e9e;
}

:root>* {
    --md-code-hl-number-color: #f74c00;
    --md-code-hl-special-color: #04233b;
    --md-code-hl-function-color: #0a3a5c;
    --md-code-hl-constant-color: #f74c00;
    --md-code-hl-keyword-color: #04233b;
    --md-code-hl-string-color: #2e7d32;
    --md-code-hl-name-color: #04233b;
    --md-code-hl-operator-color: #f74c00;
    --md-code-hl-punctuation-color: #757575;
    --md-code-hl-comment-color: #9e9e9e;
    --md-code-hl-generic-color: #04233b;
}

/* Dark mode code highlighting - brighter colors */
[data-md-color-scheme="slate"]>* {
    --md-code-hl-number-color: #ff8c5a;
    --md-code-hl-special-color: #ff6b2b;
    --md-code-hl-function-color: #dcdcaa;
    --md-code-hl-constant-color: #ff8c5a;
    --md-code-hl-keyword-color: #569cd6;
    --md-code-hl-string-color: #ce9178;
    --md-code-hl-name-color: #9cdcfe;
    --md-code-hl-operator-color: #ff6b2b;
    --md-code-hl-punctuation-color: #d4d4d4;
    --md-code-hl-comment-color: #6a9955;
    --md-code-hl-generic-color: #d4d4d4;
}

/* Header styling */
.md-header {
    background-color: #04233b;
    color: #ffffff;
}

/* Tab styling */
.md-tabs {
    background-color: transparent;
    border: none;
    padding: 0.5rem 0;
    box-shadow: none;
}

[data-md-color-scheme="default"] .md-tabs {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Hide tabs on home page */
body:has(.hero-section) .md-tabs {
    display: none !important;
}

.md-tabs__link {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.6rem 1.2rem;
    margin: 0 0.25rem;
    border-radius: 8px 8px 0 0;
    display: inline-block;
}

.md-tabs__link:hover {
    opacity: 1;
    background-color: rgba(247, 76, 0, 0.2);
}

.md-tabs__link--active {
    opacity: 1;
}

[data-md-color-scheme="default"] .md-tabs__link {
    color: #4a5568 !important;
    opacity: 0.9;
    background-color: transparent;
}

[data-md-color-scheme="default"] .md-tabs__link:hover {
    color: #04233b !important;
    opacity: 1;
    background-color: rgba(247, 76, 0, 0.1);
}

body:has(.hero-section) [data-md-color-scheme="default"] .md-tabs__link {
    color: rgba(255, 255, 255, 0.8) !important;
}

body:has(.hero-section) [data-md-color-scheme="default"] .md-tabs__link:hover {
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(247, 76, 0, 0.3);
}

[data-md-color-scheme="default"] .md-tabs__link--active {
    background-color: #f74c00;
    color: white !important;
    font-weight: 700;
    opacity: 1;
    box-shadow: 0 -2px 8px rgba(247, 76, 0, 0.2);
}

[data-md-color-scheme="slate"] .md-tabs {
    background-color: transparent;
}

[data-md-color-scheme="slate"] .md-tabs__link {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-md-color-scheme="slate"] .md-tabs__link:hover {
    color: #f74c00 !important;
    background-color: rgba(247, 76, 0, 0.1);
}

[data-md-color-scheme="slate"] .md-tabs__link--active {
    background-color: rgba(247, 76, 0, 0.2);
    color: #f74c00 !important;
    font-weight: 700;
    box-shadow: 0 -2px 8px rgba(247, 76, 0, 0.15);
}

/* Search box styling */
.md-search__input {
    background-color: rgba(255, 255, 255, 0.1);
}

.md-search__input:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Code block styling */
.highlight {
    background-color: #fafafa;
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
    --md-default-bg-color: #04233b;
    --md-code-bg-color: #021828;
    --md-code-hl-background-color: #0a3a5c;
    --md-primary-fg-color: #f74c00;
    --md-primary-fg-color--light: #ff6b2b;
    --md-primary-fg-color--dark: #c53d00;
    --md-accent-fg-color: #ff6b2b;

    --accent-primary: #f74c00;
    --accent-hover: #ff6b2b;
    --bg-tertiary: rgba(255, 255, 255, 0.15);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
}

[data-md-color-scheme="slate"] .md-header {
    background-color: #021828;
}

/* Global button styling */
.md-typeset .md-button,
.md-button,
a.md-button {
    border-radius: 50px !important;
    transition: all 0.3s ease;
    padding: 0.55rem 1.4rem;
}

.md-typeset .md-button--primary,
.md-button--primary,
a.md-button--primary {
    background-color: #f74c00 !important;
    border-color: #f74c00 !important;
    color: #ffffff !important;
}

.md-typeset .md-button--primary:hover,
.md-button--primary:hover,
a.md-button--primary:hover {
    background-color: #ff6b2b !important;
    border-color: #ff6b2b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 76, 0, 0.4);
}

.md-typeset .md-button:not(.md-button--primary),
.md-button:not(.md-button--primary),
a.md-button:not(.md-button--primary) {
    border: 2px solid #04233b !important;
    color: #04233b !important;
    background-color: transparent !important;
}

.md-typeset .md-button:not(.md-button--primary):hover,
.md-button:not(.md-button--primary):hover,
a.md-button:not(.md-button--primary):hover {
    background-color: #04233b !important;
    border-color: #04233b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==================== */
/* ADMONITION STYLING   */
/* ==================== */

.md-typeset .admonition {
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.95);
}

.md-typeset .admonition-title {
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0;
}

/* Note - Blue */
.md-typeset .admonition.note,
.md-typeset details.note {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

.md-typeset .admonition.note>.admonition-title,
.md-typeset details.note>summary {
    background-color: rgba(33, 150, 243, 0.15);
    color: #1565C0;
}

/* Warning - Rust Orange */
.md-typeset .admonition.warning,
.md-typeset details.warning {
    border-color: #f74c00;
    background-color: rgba(247, 76, 0, 0.1);
}

.md-typeset .admonition.warning>.admonition-title,
.md-typeset details.warning>summary {
    background-color: rgba(247, 76, 0, 0.15);
    color: #c53d00;
}

/* Tip - Green */
.md-typeset .admonition.tip,
.md-typeset .admonition.hint,
.md-typeset details.tip,
.md-typeset details.hint {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.md-typeset .admonition.tip>.admonition-title,
.md-typeset .admonition.hint>.admonition-title,
.md-typeset details.tip>summary,
.md-typeset details.hint>summary {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
}

/* Example - Rust Orange */
.md-typeset .admonition.example,
.md-typeset details.example {
    border-color: #f74c00;
    background-color: rgba(247, 76, 0, 0.08);
}

.md-typeset .admonition.example>.admonition-title,
.md-typeset details.example>summary {
    background-color: rgba(247, 76, 0, 0.12);
    color: #c53d00;
}

/* Dark mode admonitions */
[data-md-color-scheme="slate"] .md-typeset .admonition {
    background-color: rgba(10, 58, 92, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning,
[data-md-color-scheme="slate"] .md-typeset details.warning {
    border-color: #ff6b2b;
    background-color: rgba(247, 76, 0, 0.2);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning>.admonition-title,
[data-md-color-scheme="slate"] .md-typeset details.warning>summary {
    background-color: rgba(247, 76, 0, 0.25);
    color: #ff6b2b;
}

/* Navigation refinements */
.md-nav__item .md-nav__link--active {
    color: var(--md-primary-fg-color);
    font-weight: bold;
}

/* Table improvements */
.md-typeset table:not([class]) th {
    background-color: var(--md-primary-fg-color);
    color: var(--md-primary-bg-color);
}

.md-typeset table:not([class]) {
    font-size: 0.75rem;
}

/* Hide site name next to logo in header */
.md-header__title {
    visibility: hidden;
    width: 0;
    margin: 0;
    padding: 0;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    transform: scale(1.5);
    transform-origin: center;
}

/* ==================== */
/* HERO SECTION STYLES  */
/* ==================== */

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #fef7f3 50%, #ffffff 100%);
    margin: 0;
    margin-top: -1.5rem;
    padding: 2rem 2rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.md-main__inner {
    margin-top: 0;
}

.md-content__inner {
    margin-top: 0;
    padding-top: 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(247, 76, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(4, 35, 59, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Light/dark logo switching */
.light-only {
    display: inline-block;
}

.dark-only {
    display: none;
}

[data-md-color-scheme="slate"] .light-only {
    display: none;
}

[data-md-color-scheme="slate"] .dark-only {
    display: inline-block;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.hero-section h1 {
    color: #04233b !important;
    font-size: 2.4rem;
    font-weight: 300;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    border: none;
}

.hero-section .headerlink,
.hero-section a.headerlink,
.hero-section h1 .headerlink,
.hero-section h1 a.headerlink {
    display: none !important;
}

.hero-section h1 strong {
    color: #f74c00;
    font-weight: 700;
}

.hero-section p {
    color: #555;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}

.hero-btn {
    margin: 0.25rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-section .md-button--primary {
    background-color: #f74c00;
    border-color: #f74c00;
    color: #ffffff;
}

.hero-section .md-button--primary:hover {
    background-color: #ff6b2b;
    border-color: #ff6b2b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 76, 0, 0.4);
}

.hero-section .md-button:not(.md-button--primary) {
    background-color: transparent;
    border: 2px solid #04233b;
    color: #04233b;
}

.hero-section .md-button:not(.md-button--primary):hover {
    background-color: #04233b;
    border-color: #04233b;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero socials container */
.hero-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin: 1rem 0;
}

.hero-socials p {
    display: flex;
    gap: 1.2rem;
    margin: 0;
}

.hero-socials a {
    color: #04233b;
    opacity: 0.5;
    font-size: 1.3rem;
    transition: all 0.25s ease;
}

.hero-socials a:hover {
    opacity: 1;
    color: #f74c00;
    transform: translateY(-2px);
}

[data-md-color-scheme="slate"] .hero-socials a {
    color: rgba(255, 255, 255, 0.6);
}

[data-md-color-scheme="slate"] .hero-socials a:hover {
    color: #f74c00;
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Rust badge styling */
.rust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f74c00 0%, #ff6b2b 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(247, 76, 0, 0.3);
}

.rust-badge svg {
    width: 16px;
    height: 16px;
}

/* ==================== */
/* FEATURES SECTION     */
/* ==================== */

.features-section {
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    color: #04233b;
    margin-bottom: 3rem;
}

.features-section h2 strong {
    color: #f74c00;
    font-weight: 700;
}

.features-section .grid.cards {
    gap: 1.5rem;
}

.features-section .grid.cards>ul>li {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.features-section .grid.cards>ul>li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(4, 35, 59, 0.1);
    border-color: #f74c00;
}

.feature-icon {
    color: #f74c00 !important;
    font-size: 2rem !important;
}

/* ==================== */
/* CODE DEMO SECTION    */
/* ==================== */

.code-demo-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fef7f3 50%, #ffffff 100%);
    padding: 4rem 2rem;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
    overflow: hidden;
}

.code-demo-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(247, 76, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(4, 35, 59, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.code-demo-header,
.code-tabs {
    position: relative;
    z-index: 1;
}

.code-demo-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.code-demo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f74c00 0%, #ff6b2b 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.code-demo-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #04233b;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.code-demo-header h2 strong {
    color: #f74c00;
    font-weight: 700;
}

.code-demo-header p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.code-tabs {
    max-width: 1000px;
    margin: 0 auto;
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.code-tab-list {
    display: flex;
    background: #252530;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    gap: 0;
}

.code-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.code-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.code-tab.active {
    color: #f74c00;
    border-bottom-color: #f74c00;
}

.code-panels {
    position: relative;
}

.code-panel {
    display: none;
}

.code-panel.active {
    display: block;
}

.code-block {
    position: relative;
    background: #1e1e2e;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    font-family: 'JetBrains Mono', 'Source Code Pro', 'SF Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
    white-space: pre;
    overflow-x: auto;
    background: transparent;
}

.code-block code {
    display: block;
    color: inherit;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    white-space: pre;
    overflow-x: auto;
}

/* Rust-style syntax highlighting */
.code-block code .code-comment {
    color: #6a9955;
    font-style: italic;
}

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

.code-block code .code-number {
    color: #b5cea8;
}

.code-block code .code-keyword {
    color: #569cd6;
    font-weight: 500;
}

.code-block code .code-func {
    color: #dcdcaa;
    font-weight: 500;
}

.code-block code .code-type {
    color: #4ec9b0;
}

.code-block code .code-macro {
    color: #f74c00;
    font-weight: 500;
}

.code-block code .code-attr {
    color: #9cdcfe;
}

.code-block code .code-lifetime {
    color: #569cd6;
}

/* Light mode code adjustments */
[data-md-color-scheme="default"] .code-tabs {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="default"] .code-tab-list {
    background: #f5f5f5;
    border-bottom-color: #e0e0e0;
}

[data-md-color-scheme="default"] .code-tab {
    color: #666;
}

[data-md-color-scheme="default"] .code-tab:hover {
    color: #04233b;
    background: rgba(4, 35, 59, 0.05);
}

[data-md-color-scheme="default"] .code-tab.active {
    color: #f74c00;
    border-bottom-color: #f74c00;
}

[data-md-color-scheme="default"] .code-block {
    background: #1e1e2e;
}

/* Dark mode styling */
[data-md-color-scheme="slate"] .code-demo-section {
    background: linear-gradient(135deg, #021828 0%, #04233b 50%, #021828 100%);
}

[data-md-color-scheme="slate"] .code-demo-section::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(247, 76, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 76, 0, 0.08) 0%, transparent 50%);
}

[data-md-color-scheme="slate"] .code-demo-header h2 {
    color: #ffffff !important;
}

[data-md-color-scheme="slate"] .code-demo-header p {
    color: rgba(255, 255, 255, 0.85);
}

/* ==================== */
/* CTA SECTION          */
/* ==================== */

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #04233b;
    margin-bottom: 1rem;
}

.cta-section h2 strong {
    color: #f74c00;
    font-weight: 700;
}

.cta-section p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .md-button {
    margin: 0.5rem;
    border-radius: 50px;
    padding: 0.8rem 2rem;
}

.cta-section .md-button--primary {
    background-color: #f74c00;
    border-color: #f74c00;
}

.cta-section .md-button--primary:hover {
    background-color: #ff6b2b;
    border-color: #ff6b2b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 76, 0, 0.4);
}

/* ==================== */
/* HERO TICKER / MARQUEE */
/* ==================== */

.hero-ticker {
    position: relative;
    margin-top: auto;
    margin-bottom: 0;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
    background: linear-gradient(90deg, #04233b 0%, #0a3a5c 50%, #04233b 100%);
    overflow: hidden;
    padding: 0.5rem 0;
}

.hero-ticker__content {
    display: flex;
    gap: 2rem;
    animation: ticker 25s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.hero-ticker__content span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

[data-md-color-scheme="slate"] .hero-ticker {
    background: linear-gradient(90deg, rgba(2, 24, 40, 0.95) 0%, rgba(10, 58, 92, 0.95) 50%, rgba(2, 24, 40, 0.95) 100%);
}

/* ==================== */
/* DARK MODE OVERRIDES  */
/* ==================== */

[data-md-color-scheme="slate"] .hero-section {
    background: linear-gradient(135deg, #021828 0%, #04233b 50%, #021828 100%);
}

[data-md-color-scheme="slate"] .hero-section::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(247, 76, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 76, 0, 0.08) 0%, transparent 50%);
}

[data-md-color-scheme="slate"] .hero-section h1 {
    color: #ffffff !important;
}

[data-md-color-scheme="slate"] .hero-section p {
    color: rgba(255, 255, 255, 0.85);
}

[data-md-color-scheme="slate"] .hero-section .md-button--primary {
    background-color: #f74c00;
    border-color: #f74c00;
    color: #ffffff;
}

[data-md-color-scheme="slate"] .hero-section .md-button--primary:hover {
    background-color: #ff6b2b;
    border-color: #ff6b2b;
    box-shadow: 0 4px 12px rgba(247, 76, 0, 0.4);
}

[data-md-color-scheme="slate"] .hero-section .md-button:not(.md-button--primary) {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

[data-md-color-scheme="slate"] .hero-section .md-button:not(.md-button--primary):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

[data-md-color-scheme="slate"] .features-section h2,
[data-md-color-scheme="slate"] .code-demo-section h2,
[data-md-color-scheme="slate"] .cta-section h2 {
    color: #ffffff;
}

[data-md-color-scheme="slate"] .features-section .grid.cards>ul>li {
    background: #0a3a5c;
    border-color: #0a3a5c;
}

[data-md-color-scheme="slate"] .features-section .grid.cards>ul>li:hover {
    border-color: #f74c00;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

[data-md-color-scheme="slate"] .cta-section p {
    color: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="slate"] .md-typeset .md-button--primary,
[data-md-color-scheme="slate"] .md-button--primary,
[data-md-color-scheme="slate"] a.md-button--primary {
    background-color: #f74c00 !important;
    border-color: #f74c00 !important;
    color: #ffffff !important;
}

[data-md-color-scheme="slate"] .md-typeset .md-button--primary:hover,
[data-md-color-scheme="slate"] .md-button--primary:hover,
[data-md-color-scheme="slate"] a.md-button--primary:hover {
    background-color: #ff6b2b !important;
    border-color: #ff6b2b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(247, 76, 0, 0.4);
}

[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary),
[data-md-color-scheme="slate"] .md-button:not(.md-button--primary),
[data-md-color-scheme="slate"] a.md-button:not(.md-button--primary) {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    background-color: transparent !important;
}

[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary):hover,
[data-md-color-scheme="slate"] .md-button:not(.md-button--primary):hover,
[data-md-color-scheme="slate"] a.md-button:not(.md-button--primary):hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ==================== */
/* FOOTER STYLING       */
/* ==================== */

.md-footer {
    background-color: #04233b;
    color: rgba(255, 255, 255, 0.7);
}

.md-footer-meta {
    background-color: #021828;
}

.md-footer__link {
    color: rgba(255, 255, 255, 0.7);
}

.md-footer__link:hover {
    color: #f74c00;
}

.md-footer-nav,
.md-footer-nav__link,
.md-footer-nav__link--prev,
.md-footer-nav__link--next {
    display: none !important;
}

.md-footer-meta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.md-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.md-copyright__logo {
    display: flex;
    align-items: center;
}

.md-copyright__logo img {
    height: 28px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.25s;
}

.md-copyright__logo img:hover {
    opacity: 1;
}

.md-copyright__highlight {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.md-social {
    display: flex;
    align-items: center;
}

.md-social__link {
    color: rgba(255, 255, 255, 0.7);
}

.md-social__link:hover {
    color: #f74c00;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem 4rem 1rem;
    }

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

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0.5rem auto;
    }

    .code-demo-section {
        padding: 2rem 1rem;
    }

    .code-demo-header h2 {
        font-size: 1.8rem;
    }

    .code-tab-list {
        flex-wrap: wrap;
    }

    .code-tab {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .code-block pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* ==================== */
/* API TABLES           */
/* ==================== */

.type-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.type-table th {
    background: linear-gradient(135deg, #04233b 0%, #0a3a5c 100%);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.type-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.type-table tr:hover {
    background-color: rgba(247, 76, 0, 0.05);
}

.type-table code {
    background: rgba(247, 76, 0, 0.1);
    color: #c53d00;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

[data-md-color-scheme="slate"] .type-table td {
    border-bottom-color: #0a3a5c;
}

[data-md-color-scheme="slate"] .type-table tr:hover {
    background-color: rgba(247, 76, 0, 0.1);
}

[data-md-color-scheme="slate"] .type-table code {
    background: rgba(247, 76, 0, 0.2);
    color: #ff6b2b;
}

