/* ==========================================================================
   TECHIES GATEWAY — GLOBAL DARK MODE LAYER
   Scoped to html.tg-dark-mode so default Light Mode remains 100% untouched.
   Covers CSS variables, every .tg-* section/card/mockup, Bootstrap utilities,
   inner pages, and inline light backgrounds/dark text.
   ========================================================================== */

/* Override Design System CSS Variables in Dark Mode */
html.tg-dark-mode {
    --tg-bg-light: #0b1120;
    --tg-bg-subtle: #0f172a;
    --tg-bg-card: #111827;
    --tg-fg: #f8fafc;
    --tg-fg-muted: #94a3b8;
    --tg-fg-subtle: #64748b;
    --tg-border: rgba(255, 255, 255, 0.1);
    --tg-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --tg-shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
    --tg-shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
}

/* Toggle Button in Navbar */
.tg-theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(248, 250, 252, 0.92);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.22s ease;
    flex-shrink: 0;
    padding: 0;
}

.tg-theme-toggle-btn:hover,
.tg-theme-toggle-btn:focus-visible {
    border-color: #5d16ff;
    color: #5d16ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 22, 255, 0.15);
}

html.tg-dark-mode .tg-theme-toggle-btn {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(244, 197, 66, 0.35);
    color: #fbbf24;
}

html.tg-dark-mode .tg-theme-toggle-btn:hover,
html.tg-dark-mode .tg-theme-toggle-btn:focus-visible {
    border-color: #fbbf24;
    color: #fde68a;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

/* --------------------------------------------------------------------------
   1. GLOBAL BASE SURFACES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
html.tg-dark-mode,
html.tg-dark-mode body {
    background-color: #0b1120 !important;
    color: #e2e8f0 !important;
}

html.tg-dark-mode main,
html.tg-dark-mode section:not(.tg-footer-section):not(.tg-cta-banner-section):not(.tg-cta-banner-box),
html.tg-dark-mode .bg-white,
html.tg-dark-mode .bg-light,
html.tg-dark-mode .tg-about-section,
html.tg-dark-mode .tg-services-section,
html.tg-dark-mode .tg-workflow-section,
html.tg-dark-mode .tg-testi-section,
html.tg-dark-mode .tg-locations-section,
html.tg-dark-mode .tg-metrics-section,
html.tg-dark-mode .tg-skills-section,
html.tg-dark-mode .tg-faq-section,
html.tg-dark-mode .tg-quote-section,
html.tg-dark-mode .tg-info-banner-section,
html.tg-dark-mode .tg-uk-industry-section,
html.tg-dark-mode .tg-us-hero-section,
html.tg-dark-mode .tg-about-hero-section,
html.tg-dark-mode .tg-blog-hero,
html.tg-dark-mode .tg-submit-page-hero,
html.tg-dark-mode .tg-404-hero,
html.tg-dark-mode .tg-article-header,
html.tg-dark-mode .tg-service-details-wrap,
html.tg-dark-mode .tg-service-main-content,
html.tg-dark-mode .tg-service-sidebar,
html.tg-dark-mode .tg-tech-showcase-wrap {
    background-color: #0b1120 !important;
    background-image: none !important;
    color: #e2e8f0 !important;
}

html.tg-dark-mode .tg-workflow-section,
html.tg-dark-mode .tg-locations-section,
html.tg-dark-mode .tg-faq-section {
    background-color: #0f172a !important;
}

html.tg-dark-mode h1,
html.tg-dark-mode h2,
html.tg-dark-mode h3,
html.tg-dark-mode h4,
html.tg-dark-mode h5,
html.tg-dark-mode h6,
html.tg-dark-mode .tg-hero-title,
html.tg-dark-mode .tg-section-title,
html.tg-dark-mode .tg-quote-title,
html.tg-dark-mode .tg-card-title,
html.tg-dark-mode .tg-service-title,
html.tg-dark-mode .tg-step-title,
html.tg-dark-mode .tg-feature-card-title,
html.tg-dark-mode .tg-it-card-title,
html.tg-dark-mode .tg-loc-card-title,
html.tg-dark-mode .tg-assurance-title,
html.tg-dark-mode .tg-uk-industry-title,
html.tg-dark-mode .tg-about-hero-title,
html.tg-dark-mode .tg-us-hero-title,
html.tg-dark-mode .tg-service-heading,
html.tg-dark-mode .tg-metric-number,
html.tg-dark-mode .text-dark,
html.tg-dark-mode strong {
    color: #f8fafc !important;
}

html.tg-dark-mode .tg-gradient-text,
html.tg-dark-mode .tg-gradient-text-alt {
    -webkit-text-fill-color: transparent !important;
}

html.tg-dark-mode p,
html.tg-dark-mode li,
html.tg-dark-mode .tg-hero-desc,
html.tg-dark-mode .tg-section-desc,
html.tg-dark-mode .tg-quote-desc,
html.tg-dark-mode .tg-card-desc,
html.tg-dark-mode .tg-service-desc,
html.tg-dark-mode .tg-step-desc,
html.tg-dark-mode .tg-feature-card-desc,
html.tg-dark-mode .tg-it-card-desc,
html.tg-dark-mode .tg-loc-card-desc,
html.tg-dark-mode .tg-assurance-desc,
html.tg-dark-mode .tg-uk-industry-desc,
html.tg-dark-mode .tg-testi-quote,
html.tg-dark-mode .tg-service-lead-text,
html.tg-dark-mode .tg-about-hero-desc,
html.tg-dark-mode .tg-us-hero-desc,
html.tg-dark-mode .text-muted,
html.tg-dark-mode .text-secondary {
    color: #94a3b8 !important;
}

/* --------------------------------------------------------------------------
   2. HEADER, GLASS NAVBAR, DROPDOWNS & MOBILE DRAWER
   -------------------------------------------------------------------------- */
html.tg-dark-mode .tg-main-header,
html.tg-dark-mode .header.sticky-active.is-scrolled .tg-main-header,
html.tg-dark-mode .header.sticky-active.active .tg-main-header,
html.tg-dark-mode .header.sticky-active.sticky .tg-main-header {
    background: rgba(11, 17, 32, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

html.tg-dark-mode .tg-dock-nav {
    background: rgba(30, 41, 59, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.tg-dark-mode .tg-main-header .primary-header,
html.tg-dark-mode .tg-main-header .primary-header-inner {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html.tg-dark-mode .tg-dock-menu > li > a,
html.tg-dark-mode .tg-dock-nav ul.tg-dock-menu > li > a {
    color: #e2e8f0 !important;
}

html.tg-dark-mode .tg-dock-nav ul.tg-dock-menu > li > a:hover,
html.tg-dark-mode .tg-dock-nav ul.tg-dock-menu > li.menu-item-has-children:hover > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

html.tg-dark-mode .tg-dock-nav ul.tg-dock-menu li.menu-item-has-children .tg-mega-dropdown,
html.tg-dark-mode .tg-mega-dropdown,
html.tg-dark-mode .tg-dropdown-menu,
html.tg-dark-mode .tg-mobile-drawer {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65) !important;
    color: #e2e8f0 !important;
}

html.tg-dark-mode .tg-mega-grid li a {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.tg-dark-mode .tg-mega-grid li a:hover {
    background: #273549 !important;
    border-color: rgba(124, 58, 237, 0.45) !important;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.45) !important;
}

html.tg-dark-mode .tg-mega-item,
html.tg-dark-mode .tg-drop-title,
html.tg-dark-mode .tg-mobile-nav-link {
    color: #f1f5f9 !important;
}

html.tg-dark-mode .tg-drop-desc {
    color: #94a3b8 !important;
}

html.tg-dark-mode .tg-mega-item:hover,
html.tg-dark-mode .tg-mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

html.tg-dark-mode .tg-dropdown-banner {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.tg-dark-mode .mobile-side-menu-toggle {
    color: #f8fafc !important;
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html.tg-dark-mode .header-logo img {
    filter: brightness(1.1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

/* --------------------------------------------------------------------------
   3. HERO SECTION & ORBIT VISUALS (COMPATIBLE WITH CHRISTMAS THEME)
   -------------------------------------------------------------------------- */
html.tg-dark-mode .tg-hero-section {
    background:
        radial-gradient(circle at 85% 15%, rgba(93, 22, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(6, 182, 212, 0.10) 0%, transparent 40%),
        #0b1120 !important;
}

html.tg-dark-mode.xmas-theme .tg-hero-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(22, 91, 51, 0.24) 0%, transparent 46%),
        radial-gradient(circle at 88% 15%, rgba(200, 16, 46, 0.18) 0%, transparent 44%),
        radial-gradient(circle at 52% 88%, rgba(244, 197, 66, 0.10) 0%, transparent 48%),
        #0b1120 !important;
}

html.tg-dark-mode .tg-service-badge,
html.tg-dark-mode .tg-pill-badge,
html.tg-dark-mode .tg-quote-badge,
html.tg-dark-mode .tg-uk-section-pill,
html.tg-dark-mode .tg-breadcrumb-pill {
    background: rgba(30, 41, 59, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
    color: #e2e8f0 !important;
}

html.tg-dark-mode .tg-btn-secondary {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html.tg-dark-mode .tg-btn-secondary:hover {
    background: #334155 !important;
}

html.tg-dark-mode .tg-hero-trust {
    color: #cbd5e1 !important;
}

html.tg-dark-mode .tg-nucleus-card,
html.tg-dark-mode .tg-node-card {
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

html.tg-dark-mode .tg-orbit-ring {
    border-color: rgba(148, 163, 184, 0.18) !important;
}

/* --------------------------------------------------------------------------
   4. ALL CARDS, MOCKUPS, BENTO GRIDS, TESTIMONIALS, LOCATIONS & ACCORDIONS
   -------------------------------------------------------------------------- */
html.tg-dark-mode .card,
html.tg-dark-mode .tg-service-card,
html.tg-dark-mode .tg-feature-card,
html.tg-dark-mode .tg-feature-bento-card,
html.tg-dark-mode .tg-it-service-card,
html.tg-dark-mode .tg-step-card,
html.tg-dark-mode .tg-testi-card,
html.tg-dark-mode .tg-testimonial-card,
html.tg-dark-mode .tg-quote-card,
html.tg-dark-mode .tg-blog-card,
html.tg-dark-mode .tg-project-card,
html.tg-dark-mode .tg-pricing-card,
html.tg-dark-mode .tg-stat-card,
html.tg-dark-mode .tg-metric-card,
html.tg-dark-mode .tg-info-card,
html.tg-dark-mode .tg-assurance-card,
html.tg-dark-mode .tg-market-card,
html.tg-dark-mode .tg-uk-industry-card,
html.tg-dark-mode .tg-loc-card-inner,
html.tg-dark-mode .tg-contact-agency-card,
html.tg-dark-mode .tg-service-sidebar-widget,
html.tg-dark-mode .tg-tech-stack-bento,
html.tg-dark-mode .tg-tech-category-block,
html.tg-dark-mode .tg-map-showcase,
html.tg-dark-mode .tg-syllabus-card,
html.tg-dark-mode .tg-fan-card,
html.tg-dark-mode .accordion-item {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

/* Inner graphic boxes, mockup canvases, browser windows, pills & tags */
html.tg-dark-mode .tg-step-graphic-box,
html.tg-dark-mode .tg-service-visual-box,
html.tg-dark-mode .tg-card-inner-box,
html.tg-dark-mode .tg-mini-browser-box,
html.tg-dark-mode .tg-mini-design-box,
html.tg-dark-mode .tg-mini-figma-canvas,
html.tg-dark-mode .tg-mini-phone-box,
html.tg-dark-mode .tg-mini-seo-box,
html.tg-dark-mode .tg-mini-window-preview,
html.tg-dark-mode .tg-mini-meeting-card,
html.tg-dark-mode .tg-browser-body,
html.tg-dark-mode .tg-browser-bar,
html.tg-dark-mode .tg-browser-sidebar,
html.tg-dark-mode .tg-browser-content,
html.tg-dark-mode .tg-win-content,
html.tg-dark-mode .tg-win-bar,
html.tg-dark-mode .tg-design-canvas,
html.tg-dark-mode .tg-web-canvas,
html.tg-dark-mode .tg-seo-canvas,
html.tg-dark-mode .tg-unified-canvas,
html.tg-dark-mode .tg-cloud-preview-box,
html.tg-dark-mode .tg-figma-preview-box,
html.tg-dark-mode .tg-mobile-preview-box,
html.tg-dark-mode .tg-logo-tile,
html.tg-dark-mode .tg-map-frame {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

html.tg-dark-mode .tg-service-tag,
html.tg-dark-mode .tg-card-tag-item,
html.tg-dark-mode .tg-it-tag-item,
html.tg-dark-mode .tg-tech-badge-item,
html.tg-dark-mode .tg-tech-item-badge,
html.tg-dark-mode .tg-cap-pill,
html.tg-dark-mode .tg-card-badge-pill,
html.tg-dark-mode .tg-browser-url,
html.tg-dark-mode .tg-win-url,
html.tg-dark-mode .tg-feature-index-pill,
html.tg-dark-mode .tg-service-cat-badge {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

html.tg-dark-mode .tg-loc-card-btn,
html.tg-dark-mode .tg-uk-industry-action-btn,
html.tg-dark-mode .tg-service-btn-arrow {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Tabs & Accordions */
html.tg-dark-mode .tg-sol-tab:not(.active),
html.tg-dark-mode .tg-sup-tab:not(.active),
html.tg-dark-mode .tg-mis-tab:not(.active),
html.tg-dark-mode .tg-about-tabs-nav .nav-link:not(.active) {
    background: #111827 !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.tg-dark-mode .accordion-button {
    background-color: #111827 !important;
    color: #f8fafc !important;
}

html.tg-dark-mode .accordion-button:not(.collapsed) {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

html.tg-dark-mode .accordion-button::after {
    filter: invert(1) brightness(1.8);
}

html.tg-dark-mode .accordion-body {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   5. TABLES, FORMS, INPUTS & GLOBAL WHATSAPP MODAL
   -------------------------------------------------------------------------- */
html.tg-dark-mode .table,
html.tg-dark-mode table {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.tg-dark-mode .table th,
html.tg-dark-mode .table td {
    background-color: #111827 !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.tg-dark-mode .tg-query-modal-card,
html.tg-dark-mode .modal-content {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

html.tg-dark-mode .tg-query-modal-title,
html.tg-dark-mode .tg-form-label {
    color: #f8fafc !important;
}

html.tg-dark-mode .tg-query-modal-subtitle,
html.tg-dark-mode .tg-modal-privacy-note {
    color: #94a3b8 !important;
}

html.tg-dark-mode .tg-query-modal-close {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #e2e8f0 !important;
}

html.tg-dark-mode input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html.tg-dark-mode textarea,
html.tg-dark-mode select,
html.tg-dark-mode .tg-input,
html.tg-dark-mode .tg-form-input,
html.tg-dark-mode .tg-form-control,
html.tg-dark-mode .form-control,
html.tg-dark-mode .form-select {
    background-color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #f8fafc !important;
}

html.tg-dark-mode input::placeholder,
html.tg-dark-mode textarea::placeholder {
    color: #94a3b8 !important;
}

/* --------------------------------------------------------------------------
   6. OVERRIDE INLINE WHITE/LIGHT BACKGROUNDS & DARK TEXT ON INNER PAGES
   -------------------------------------------------------------------------- */
html.tg-dark-mode [style*="background: #fff"],
html.tg-dark-mode [style*="background:#fff"],
html.tg-dark-mode [style*="background: #ffffff"],
html.tg-dark-mode [style*="background:#ffffff"],
html.tg-dark-mode [style*="background-color: #fff"],
html.tg-dark-mode [style*="background-color:#fff"],
html.tg-dark-mode [style*="background-color: #ffffff"],
html.tg-dark-mode [style*="background-color:#ffffff"],
html.tg-dark-mode [style*="background: #f8fafc"],
html.tg-dark-mode [style*="background:#f8fafc"],
html.tg-dark-mode [style*="background-color: #f8fafc"],
html.tg-dark-mode [style*="background: #f1f5f9"],
html.tg-dark-mode [style*="background:#f1f5f9"],
html.tg-dark-mode [style*="background-color: #f1f5f9"] {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.tg-dark-mode [style*="color: #0f172a"],
html.tg-dark-mode [style*="color:#0f172a"],
html.tg-dark-mode [style*="color: #1e293b"],
html.tg-dark-mode [style*="color:#1e293b"],
html.tg-dark-mode [style*="color: #09090b"],
html.tg-dark-mode [style*="color:#09090b"],
html.tg-dark-mode [style*="color: #334155"],
html.tg-dark-mode [style*="color:#334155"] {
    color: #f8fafc !important;
}

html.tg-dark-mode [style*="color: #475569"],
html.tg-dark-mode [style*="color:#475569"],
html.tg-dark-mode [style*="color: #64748b"],
html.tg-dark-mode [style*="color:#64748b"] {
    color: #94a3b8 !important;
}

/* Internship plain red notice readability in Dark Mode */
html.tg-dark-mode .tg-intern-warning-banner,
html.tg-dark-mode a[href*="internship"][style*="color: #dc2626"] {
    color: #f87171 !important;
}

/* --------------------------------------------------------------------------
   7. SPECIFIC SECTION & INNER PAGE FIXES (ABOUT, STEPS, CTA, MAP, INTERNSHIP,
      PROJECTS & BLOGS)
   -------------------------------------------------------------------------- */

/* Image 1: About Visual Frame & Tabs Bar */
html.tg-dark-mode .tg-about-visual {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html.tg-dark-mode .tg-about-tabs-nav {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html.tg-dark-mode .tg-about-tabs-nav .nav-link {
    color: #cbd5e1 !important;
}
html.tg-dark-mode .tg-about-tabs-nav .nav-link.active {
    background: #5d16ff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(93, 22, 255, 0.35) !important;
}

/* Image 2: How We Work Step 1 & Step 4 Mockups */
html.tg-dark-mode .tg-mini-meeting-pill,
html.tg-dark-mode .tg-mini-meeting-card span,
html.tg-dark-mode .tg-step-graphic-box .badge,
html.tg-dark-mode .tg-step-graphic-box [style*="background: #fff"],
html.tg-dark-mode .tg-step-graphic-box [style*="background: #eef2ff"],
html.tg-dark-mode .tg-step-graphic-box [style*="background: #f1f5f9"] {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
html.tg-dark-mode .tg-mini-meeting-title {
    color: #f8fafc !important;
}
html.tg-dark-mode .tg-mini-launch-badge {
    background: #064e3b !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #ecfdf5 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
html.tg-dark-mode .tg-mini-launch-badge * {
    color: #d1fae5 !important;
}

/* Image 3: CTA Banner Outer Section */
html.tg-dark-mode .tg-cta-banner-section {
    background: #0b1120 !important;
    background-color: #0b1120 !important;
}

/* Image 5: Map Showcase Address Header */
html.tg-dark-mode .tg-map-header,
html.tg-dark-mode .tg-map-badge,
html.tg-dark-mode .tg-map-pulse-wrap,
html.tg-dark-mode .tg-map-perks {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Image 6 & 7: Internship Page Cards, Pills & Application Form */
html.tg-dark-mode .tg-intern-section,
html.tg-dark-mode .tg-intern-section-alt,
html.tg-dark-mode .tg-syllabus-page,
html.tg-dark-mode .tg-projects-section {
    background: #0b1120 !important;
    background-color: #0b1120 !important;
}
html.tg-dark-mode .tg-domain-bento,
html.tg-dark-mode .tg-domain-bento:hover,
html.tg-dark-mode .tg-bento-card,
html.tg-dark-mode .tg-bento-card:hover,
html.tg-dark-mode .tg-apply-card,
html.tg-dark-mode .tg-pillar-card,
html.tg-dark-mode .tg-stack-card,
html.tg-dark-mode .tg-phase-block,
html.tg-dark-mode .tg-proj-card {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}
html.tg-dark-mode .tg-bento-title {
    color: #f8fafc !important;
}
html.tg-dark-mode .tg-bento-desc,
html.tg-dark-mode .tg-bento-desc strong {
    color: #cbd5e1 !important;
}
html.tg-dark-mode .tg-bento-tag,
html.tg-dark-mode .tg-bento-badge,
html.tg-dark-mode .tg-bento-cat-badge,
html.tg-dark-mode .tg-bento-btn-detail,
html.tg-dark-mode .tg-highlight-chip,
html.tg-dark-mode .tg-day-item,
html.tg-dark-mode .tg-day-num,
html.tg-dark-mode .tg-proj-tag {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}
html.tg-dark-mode .tg-bento-btn-apply-outline,
html.tg-dark-mode .tg-bento-footer-link {
    color: #a78bfa !important;
}

/* Image 8: Projects Portfolio Cards, Filters, Pagination & Mockup Frame */
html.tg-dark-mode .projects-section {
    background: #0b1120 !important;
}
html.tg-dark-mode .tg-card,
html.tg-dark-mode .tg-card:hover,
html.tg-dark-mode .tg-card-body,
html.tg-dark-mode .tg-card-footer,
html.tg-dark-mode .tg-mockup-frame {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}
html.tg-dark-mode .tg-mockup-bar,
html.tg-dark-mode .tg-mockup-url,
html.tg-dark-mode .tg-mockup-badge,
html.tg-dark-mode .tg-btn-view-details,
html.tg-dark-mode .tg-btn-ext-link,
html.tg-dark-mode .tg-page-btn,
html.tg-dark-mode .search-box,
html.tg-dark-mode .filter-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}
html.tg-dark-mode .tg-location-strip {
    color: #94a3b8 !important;
}

/* Image 9 & 10: Blogs Listing, Blog View, Featured Card, Topic Pills & Trending Tags */
html.tg-dark-mode .tg-featured-card,
html.tg-dark-mode .tg-featured-card:hover,
html.tg-dark-mode .tg-featured-content,
html.tg-dark-mode .tg-post-card,
html.tg-dark-mode .tg-post-card:hover,
html.tg-dark-mode .tg-blog-lead-box,
html.tg-dark-mode .tg-card-body-wrap,
html.tg-dark-mode .tg-company-card,
html.tg-dark-mode .tg-reactions-box,
html.tg-dark-mode .comment-card-box,
html.tg-dark-mode .tg-sidebar-widget {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}
html.tg-dark-mode .tg-prose {
    color: #cbd5e1 !important;
}
html.tg-dark-mode .tg-share-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}
html.tg-dark-mode .tg-featured-title,
html.tg-dark-mode .tg-featured-title a,
html.tg-dark-mode .tg-post-title,
html.tg-dark-mode .tg-post-title a,
html.tg-dark-mode .tg-author-name {
    color: #f8fafc !important;
}
html.tg-dark-mode .tg-featured-excerpt,
html.tg-dark-mode .tg-post-excerpt,
html.tg-dark-mode .tg-post-date {
    color: #94a3b8 !important;
}
html.tg-dark-mode .tg-cat-pill,
html.tg-dark-mode .tg-cat-pill:hover,
html.tg-dark-mode .tg-trend-tag,
html.tg-dark-mode .tg-trend-tag:hover,
html.tg-dark-mode .tg-cat-pill .badge-count,
html.tg-dark-mode .tg-search-input {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}
html.tg-dark-mode .tg-cat-pill.active {
    background: #5d16ff !important;
    border-color: #5d16ff !important;
    color: #ffffff !important;
}
html.tg-dark-mode .tg-cat-pill.active .badge-count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   8. SUBTLE DARK BORDERS, SECTION DIVIDERS & PROGRESS BAR TRACKS
   -------------------------------------------------------------------------- */
html.tg-dark-mode section,
html.tg-dark-mode hr,
html.tg-dark-mode .border,
html.tg-dark-mode .border-top,
html.tg-dark-mode .border-bottom,
html.tg-dark-mode .border-start,
html.tg-dark-mode .border-end,
html.tg-dark-mode .tg-service-card,
html.tg-dark-mode .tg-service-footer,
html.tg-dark-mode .tg-loc-card-wrapper,
html.tg-dark-mode .tg-loc-card-inner,
html.tg-dark-mode .tg-tech-stack-bento,
html.tg-dark-mode .tg-tech-category-block,
html.tg-dark-mode .tg-info-card,
html.tg-dark-mode .tg-assurance-card,
html.tg-dark-mode .tg-contact-agency-card,
html.tg-dark-mode .tg-step-card,
html.tg-dark-mode .tg-testi-card,
html.tg-dark-mode .tg-quote-card,
html.tg-dark-mode .tg-metric-card,
html.tg-dark-mode .tg-feature-bento-card,
html.tg-dark-mode .tg-it-service-card,
html.tg-dark-mode .tg-skills-grid > div,
html.tg-dark-mode .tg-info-banner-section .container > div,
html.tg-dark-mode .tg-skills-section .container > div {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html.tg-dark-mode hr {
    background-color: rgba(148, 163, 184, 0.14) !important;
    opacity: 1 !important;
}

/* Skill Meter Progress Track (Image 4) */
html.tg-dark-mode .tg-meter-bar-bg {
    background: rgba(148, 163, 184, 0.16) !important;
}

/* Service & Feature Icon Boxes */
html.tg-dark-mode .tg-service-icon-wrap,
html.tg-dark-mode .tg-feature-icon-box,
html.tg-dark-mode .tg-it-icon-wrap,
html.tg-dark-mode .tg-loc-icon-box,
html.tg-dark-mode .tg-uk-industry-icon-box,
html.tg-dark-mode .tg-bento-icon-wrap {
    border-color: rgba(148, 163, 184, 0.18) !important;
}
