/* ==============================================================
   Kashmir Today - Editorial Newsroom Theme Enhancements
   ============================================================== */

:root {
    --ghost-accent-color: #b91c1c;
    --kt-crimson: #b91c1c;
    --kt-crimson-dark: #991b1b;
    --kt-crimson-light: #fef2f2;
    --kt-border-color: #e5e7eb;
    --kt-border-dark: #111827;
    --kt-text-main: #111827;
    --kt-text-muted: #6b7280;
    --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 1. TOP UTILITY BAR (Live Date, Location, Edition) */
.kt-topbar {
    border-bottom: 1px solid var(--kt-border-color);
    background-color: #ffffff;
    font-size: 1.25rem;
    color: var(--kt-text-muted);
    padding: 7px 0;
}
.kt-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 max(4vmin, 20px);
}
.kt-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.kt-topbar-date {
    color: var(--kt-text-main);
    font-weight: 600;
}
.kt-topbar-edition {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
}
.kt-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 2. EDITORIAL MASTHEAD BRANDING */
.gh-navigation.is-stacked {
    border-bottom: 2px solid var(--kt-border-dark);
}
.gh-navigation.is-stacked .gh-navigation-brand {
    flex-direction: column;
    justify-content: center;
    padding: 22px 0 16px;
    height: auto !important;
    min-height: unset !important;
}
.gh-navigation-logo.is-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 4.5vw, 4.6rem) !important;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #111827 !important;
    line-height: 1.05;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.gh-navigation-logo.is-title:hover {
    opacity: 0.9;
}
.kt-masthead-tagline {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
    margin-top: 6px;
}

/* 3. CATEGORY NAVIGATION BAR */
.gh-navigation.is-stacked .gh-navigation-menu {
    border-top: 1px solid var(--kt-border-color);
    border-bottom: 1px solid var(--kt-border-color);
    margin: 0 !important;
    padding: 10px 0;
    height: auto !important;
    position: relative;
}
.gh-navigation.is-stacked .gh-navigation-menu:before,
.gh-navigation.is-stacked .gh-navigation-menu:after {
    display: none !important;
}
.gh-navigation-menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.gh-navigation-menu li a {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1f2937;
    position: relative;
    padding: 4px 2px;
    transition: color 0.15s ease;
}
.gh-navigation-menu li a:hover,
.gh-navigation-menu li.nav-current a {
    color: var(--kt-crimson);
}
.gh-navigation-menu li.nav-current a:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--kt-crimson);
}

/* Subscribe button in masthead */
.gh-button {
    background-color: var(--kt-crimson) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 4px !important;
    padding: 0.6em 1.2em !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.gh-button:hover {
    background-color: var(--kt-crimson-dark) !important;
}

/* 4. MAGAZINE HOMEPAGE LAYOUT */
.gh-header.is-magazine {
    border-bottom: 1px solid var(--kt-border-color);
    padding-bottom: 40px;
    margin-bottom: 30px;
}
.gh-container-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #111827;
}
.gh-container-title:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--kt-crimson);
}

/* Post Cards */
.gh-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gh-card-tag {
    color: var(--kt-crimson) !important;
    font-family: var(--font-sans);
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 6px !important;
}
.gh-card-title {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}
.gh-card:hover .gh-card-title {
    color: var(--kt-crimson);
}
.gh-card-excerpt {
    color: #4b5563;
    font-size: 1.45rem;
    line-height: 1.55;
    margin-top: 8px;
}
.gh-card-meta {
    font-size: 1.25rem;
    color: #6b7280;
    margin-top: 10px;
}
.gh-card-image img {
    border-radius: 4px;
    transition: filter 0.2s ease;
}
.gh-card:hover .gh-card-image img {
    filter: brightness(0.96);
}

/* 5. ARTICLE DETAIL PAGE (post.hbs) */
.gh-article-tag {
    background-color: var(--kt-crimson-light);
    color: var(--kt-crimson) !important;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}
.gh-article-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 4.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.18;
    color: #111827;
    margin-bottom: 16px;
}
.gh-article-excerpt {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #4b5563;
    font-weight: 450;
    margin-bottom: 24px;
}
.gh-article-meta {
    border-top: 1px solid var(--kt-border-color);
    border-bottom: 1px solid var(--kt-border-color);
    padding: 12px 0;
    margin-bottom: 24px;
}
.gh-article-author-name a {
    color: #111827;
    font-weight: 700;
}
.gh-article-meta-date {
    color: #6b7280;
    font-weight: 500;
}

/* Social Share Bar */
.kt-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin: 16px 0 24px;
    border-bottom: 1px solid var(--kt-border-color);
    flex-wrap: wrap;
}
.kt-share-label {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-right: 4px;
}
.kt-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    transition: opacity 0.2s ease, transform 0.1s ease;
}
.kt-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.kt-share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.kt-share-whatsapp { background-color: #25D366; }
.kt-share-telegram { background-color: #229ED9; }
.kt-share-x { background-color: #000000; }
.kt-share-facebook { background-color: #1877F2; }
.kt-share-copy {
    background-color: #4b5563;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Article Content Body */
.gh-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 24px;
}
.gh-content blockquote {
    border-left: 4px solid var(--kt-crimson);
    background: #fbfbfb;
    padding: 16px 24px;
    margin: 28px 0;
    font-style: italic;
    font-size: 1.85rem;
    color: #374151;
    border-radius: 0 4px 4px 0;
}
.gh-content blockquote cite {
    display: block;
    font-style: normal;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-top: 8px;
}
.gh-content figure figcaption {
    font-size: 1.35rem;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Reading Progress Bar */
#kt-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--kt-crimson);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* 6. PROFESSIONAL MULTI-COLUMN NEWS FOOTER */
.kt-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 24px;
    margin-top: 60px;
    border-top: 4px solid var(--kt-crimson);
}
.kt-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 max(4vmin, 20px);
}
.kt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
    .kt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .kt-footer-grid {
        grid-template-columns: 1fr;
    }
}
.kt-footer-col h4 {
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}
.kt-footer-col h4:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--kt-crimson);
}
.kt-footer-col p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 16px;
}
.kt-footer-logo {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}
.kt-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kt-footer-links li {
    margin-bottom: 10px;
}
.kt-footer-links a {
    color: #cbd5e1 !important;
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.15s ease;
}
.kt-footer-links a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
.kt-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.kt-footer-social a {
    color: #cbd5e1;
    background: rgba(255,255,255,0.08);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.kt-footer-social a:hover {
    background: var(--kt-crimson);
    color: #ffffff;
}
.kt-footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.kt-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 1.3rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==============================================================
   PAGINATION ENHANCEMENTS
   ============================================================== */
.kt-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0 20px;
    margin: 40px auto 0;
    max-width: var(--container-width);
    border-top: 2px solid #111827;
    position: relative;
    width: 100%;
}
.kt-pagination-left,
.kt-pagination-right {
    flex: 1;
}
.kt-pagination-right {
    text-align: right;
}
.kt-pagination-center {
    flex: 2;
    text-align: center;
}
.kt-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #111827 !important;
    border: 1px solid #d1d5db;
    padding: 10px 18px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.kt-pagination-btn:hover {
    background-color: var(--kt-crimson);
    border-color: var(--kt-crimson);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.2);
}
.kt-pagination-btn svg {
    transition: transform 0.2s ease;
}
.kt-pagination-prev:hover svg {
    transform: translateX(-2px);
}
.kt-pagination-next:hover svg {
    transform: translateX(2px);
}
.kt-pagination-info {
    font-family: var(--font-sans);
    font-size: 1.45rem;
    color: #4b5563;
    letter-spacing: 0.02em;
}
.kt-pagination-info strong {
    color: #111827;
    font-weight: 700;
}
@media (max-width: 600px) {
    .kt-pagination {
        flex-direction: column;
        gap: 16px;
    }
    .kt-pagination-left,
    .kt-pagination-right,
    .kt-pagination-center {
        width: 100%;
        text-align: center;
    }
    .kt-pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================================
   7. DARK MODE THEME SYSTEM
   ============================================================== */

:root {
    --kt-dark-bg: #0b0f19;
    --kt-dark-surface: #111827;
    --kt-dark-surface-elevated: #1a2333;
    --kt-dark-border: #1e293b;
    --kt-dark-border-subtle: #293548;
    --kt-dark-text-primary: #f8fafc;
    --kt-dark-text-secondary: #94a3b8;
    --kt-dark-text-muted: #64748b;
    --kt-crimson-vibrant: #ef4444;
    --kt-crimson-glow: rgba(239, 68, 68, 0.15);
}

/* Smooth transition when toggling */
body,
.kt-topbar,
.gh-navigation,
.gh-card,
.kt-footer,
.kt-pagination-btn,
.gh-content blockquote {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Dark Mode Overrides on html.dark */
html.dark {
    color-scheme: dark;
    --background-color: var(--kt-dark-bg) !important;
    --color-primary-text: var(--kt-dark-text-primary);
    --color-secondary-text: var(--kt-dark-text-secondary);
    --color-border: var(--kt-dark-border);
    --color-lighter-gray: #161f30;
    --color-darker-gray: #f8fafc;
}

html.dark body {
    background-color: var(--kt-dark-bg) !important;
    color: var(--kt-dark-text-primary) !important;
}

/* 7.1 TOP UTILITY BAR (Dark Mode) */
html.dark .kt-topbar {
    background-color: var(--kt-dark-bg);
    border-bottom: 1px solid var(--kt-dark-border);
    color: var(--kt-dark-text-secondary);
}
html.dark .kt-topbar-date {
    color: var(--kt-dark-text-primary);
}
html.dark .kt-topbar-edition {
    background-color: #1e293b;
    color: #cbd5e1;
}
html.dark .kt-topbar-right a {
    color: var(--kt-dark-text-secondary) !important;
}
html.dark .kt-topbar-right a:hover {
    color: var(--kt-dark-text-primary) !important;
}
html.dark .kt-topbar-right a[data-portal="signup"] {
    color: var(--kt-crimson-vibrant) !important;
}

/* 7.2 HEADER & NAVIGATION (Dark Mode) */
html.dark .gh-navigation {
    background-color: var(--kt-dark-bg) !important;
    color: var(--kt-dark-text-primary);
}
html.dark .gh-navigation.is-stacked {
    border-bottom: 2px solid var(--kt-dark-border);
}
html.dark .gh-navigation-logo.is-title {
    color: #ffffff !important;
}
html.dark .kt-masthead-tagline {
    color: var(--kt-dark-text-muted);
}
html.dark .gh-navigation.is-stacked .gh-navigation-menu {
    border-top: 1px solid var(--kt-dark-border);
    border-bottom: 1px solid var(--kt-dark-border);
}
html.dark .gh-navigation-menu li a {
    color: #cbd5e1;
}
html.dark .gh-navigation-menu li a:hover,
html.dark .gh-navigation-menu li.nav-current a {
    color: var(--kt-crimson-vibrant);
}
html.dark .gh-navigation-menu li.nav-current a:after {
    background-color: var(--kt-crimson-vibrant);
}
html.dark .gh-icon-button {
    color: var(--kt-dark-text-primary);
}
html.dark .gh-navigation-members a:not(.gh-button) {
    color: var(--kt-dark-text-secondary);
}
html.dark .gh-navigation-members a:not(.gh-button):hover {
    color: #ffffff;
}

/* 7.3 HOMEPAGE & MAGAZINE LAYOUT (Dark Mode) */
html.dark .gh-header.is-magazine {
    border-bottom: 1px solid var(--kt-dark-border);
}
html.dark .gh-container-title {
    color: #ffffff;
    border-bottom: 2px solid var(--kt-dark-border);
}
html.dark .gh-container-title:after {
    background-color: var(--kt-crimson-vibrant);
}
html.dark .gh-card-title {
    color: #f8fafc;
}
html.dark .gh-card:hover .gh-card-title {
    color: var(--kt-crimson-vibrant);
}
html.dark .gh-card-tag {
    color: var(--kt-crimson-vibrant) !important;
}
html.dark .gh-card-excerpt {
    color: var(--kt-dark-text-secondary);
}
html.dark .gh-card-meta {
    color: var(--kt-dark-text-muted);
}
html.dark .gh-card-image img {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 7.4 ARTICLE DETAIL PAGE (Dark Mode) */
html.dark .gh-article-tag {
    background-color: var(--kt-crimson-glow);
    color: #fca5a5 !important;
}
html.dark .gh-article-title {
    color: #ffffff;
}
html.dark .gh-article-excerpt {
    color: #cbd5e1;
}
html.dark .gh-article-meta {
    border-top: 1px solid var(--kt-dark-border);
    border-bottom: 1px solid var(--kt-dark-border);
}
html.dark .gh-article-author-image a {
    background-color: #1e293b;
    border-color: var(--kt-dark-bg);
}
html.dark .gh-article-author-image svg {
    fill: #94a3b8;
    color: #94a3b8;
}
html.dark .gh-article-author-name,
html.dark .gh-article-author-name a {
    color: #ffffff !important;
}
html.dark .gh-article-meta-content,
html.dark .gh-article-meta-date,
html.dark .gh-article-meta-length {
    color: var(--kt-dark-text-secondary) !important;
}
html.dark .kt-share-bar {
    border-bottom: 1px solid var(--kt-dark-border);
}
html.dark .kt-share-label {
    color: var(--kt-dark-text-muted);
}
html.dark .kt-share-copy {
    background-color: #334155;
    color: #f8fafc;
}
html.dark .kt-share-copy:hover {
    background-color: #475569;
}
html.dark .gh-content p {
    color: #cbd5e1;
}
html.dark .gh-content h1,
html.dark .gh-content h2,
html.dark .gh-content h3,
html.dark .gh-content h4,
html.dark .gh-content h5,
html.dark .gh-content h6 {
    color: #f8fafc;
}
html.dark .gh-content a {
    color: #60a5fa;
}
html.dark .gh-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}
html.dark .gh-content strong,
html.dark .gh-content b {
    color: #ffffff;
}
html.dark .gh-content blockquote {
    background-color: #111827;
    border-left: 4px solid var(--kt-crimson-vibrant);
    color: #e2e8f0;
}
html.dark .gh-content blockquote cite {
    color: var(--kt-dark-text-muted);
}
html.dark .gh-content figure figcaption {
    color: var(--kt-dark-text-muted);
}
html.dark .gh-content hr {
    border-color: var(--kt-dark-border);
}
html.dark .gh-content pre {
    background-color: #070b14;
    border: 1px solid var(--kt-dark-border);
}
html.dark .gh-content code {
    background-color: #1e293b;
    color: #f8fafc;
}
html.dark .gh-author-social-link {
    color: var(--kt-dark-text-secondary);
}
html.dark .gh-author-social-link:hover {
    color: #ffffff;
}

/* 7.5 ARCHIVE & CATEGORY PAGES (Dark Mode) */
html.dark .gh-archive-inner {
    border-bottom-color: var(--kt-dark-border);
}
html.dark .gh-archive-wrapper .gh-article-title {
    color: #ffffff;
}
html.dark .gh-archive-wrapper .gh-article-excerpt {
    color: var(--kt-dark-text-secondary);
}

/* 7.6 PAGINATION (Dark Mode) */
html.dark .kt-pagination {
    border-top: 2px solid var(--kt-dark-border);
}
html.dark .kt-pagination-btn {
    background-color: #111827;
    color: #e2e8f0 !important;
    border-color: var(--kt-dark-border-subtle);
}
html.dark .kt-pagination-btn:hover {
    background-color: var(--kt-crimson-vibrant);
    border-color: var(--kt-crimson-vibrant);
    color: #ffffff !important;
}
html.dark .kt-pagination-info {
    color: var(--kt-dark-text-secondary);
}
html.dark .kt-pagination-info strong {
    color: #ffffff;
}

/* 7.7 FORMS & PORTAL (Dark Mode) */
html.dark .gh-form {
    background-color: #161f30;
    border: 1px solid var(--kt-dark-border);
}
html.dark .gh-form-input {
    color: #ffffff;
}
html.dark .gh-form-input::placeholder {
    color: #64748b;
}
html.dark .gh-comments {
    border-top: 1px solid var(--kt-dark-border);
}
html.dark .gh-read-more {
    border-top: 1px solid var(--kt-dark-border);
}
html.dark .gh-read-more-title {
    color: #ffffff;
}

/* 7.8 FOOTER (Dark Mode refinement) */
html.dark .kt-footer {
    background-color: #060911;
    border-top-color: var(--kt-crimson-vibrant);
}
html.dark .kt-footer-grid {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
html.dark .kt-footer-bottom {
    color: #475569;
}

/* 7.9 THEME TOGGLE BUTTON STYLING */
.kt-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--kt-border-color);
    border-radius: 20px;
    padding: 3px 10px;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--kt-text-muted);
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}
.kt-theme-toggle:hover {
    border-color: var(--kt-crimson);
    color: var(--kt-crimson);
    background: rgba(185, 28, 28, 0.04);
}
.kt-theme-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}
.kt-sun-icon {
    display: none;
}
.kt-moon-icon {
    display: inline-block;
}
.kt-toggle-label-dark {
    display: none;
}
.kt-toggle-label-light {
    display: inline;
}

/* Dark Mode State for Toggle */
html.dark .kt-theme-toggle {
    border-color: var(--kt-dark-border-subtle);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}
html.dark .kt-theme-toggle:hover {
    border-color: var(--kt-crimson-vibrant);
    color: var(--kt-crimson-vibrant);
    background: rgba(239, 68, 68, 0.1);
}
html.dark .kt-sun-icon {
    display: inline-block;
    color: #fbbf24;
}
html.dark .kt-moon-icon {
    display: none;
}
html.dark .kt-toggle-label-dark {
    display: inline;
}
html.dark .kt-toggle-label-light {
    display: none;
}

/* Responsive Toggle Variants */
.kt-brand-theme-toggle {
    display: none;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}
.kt-menu-theme-toggle {
    display: none;
}

@media (max-width: 767px) {
    #gh-navigation .gh-navigation-brand {
        grid-template-columns: 1fr auto auto auto !important;
        gap: 8px;
        align-items: center;
    }
    .kt-brand-theme-toggle {
        display: inline-flex;
    }
    .kt-menu-theme-toggle {
        display: inline-flex;
        margin-top: 14px;
        padding: 8px 16px;
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .kt-topbar-edition {
        display: none;
    }
    .kt-topbar-right a:not([data-portal="signup"]) {
        display: none;
    }
    .kt-topbar-right span:not(.kt-theme-toggle *) {
        display: none;
    }
}
