/**
 * Desktop Professional Light Theme
 * Corporate light layout on screens ≥992px — mobile keeps existing dark/premium styling.
 */

@media (min-width: 992px) {
    body.gt-theme-active,
    body.theme-jad,
    body.theme-default,
    body.theme-ocean,
    body.theme-royal,
    body.theme-curved {
        --gt-bg: #F4F5F7;
        --gt-surface: #FFFFFF;
        --gt-surface-elevated: #F0F1F4;
        --gt-card: #FFFFFF;
        --gt-text: #1A1D26;
        --gt-text-secondary: #4B5563;
        --gt-text-muted: #9CA3AF;
        --primary-dark: #F4F5F7;
        --secondary-dark: #FFFFFF;
        --accent-white: #1A1D26;
        --muted-gray: #6B7280;
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(0, 0, 0, 0.08);
        --glass-glow: rgba(0, 0, 0, 0.02);

        background-color: var(--gt-bg) !important;
        color: var(--gt-text) !important;
    }

    /* Remove dark ambient overlays */
    body::before {
        background:
            radial-gradient(ellipse at 10% 0%, color-mix(in srgb, var(--gt-primary, #C41E3A) 4%, transparent) 0%, transparent 45%),
            radial-gradient(ellipse at 90% 100%, rgba(0, 0, 0, 0.02) 0%, transparent 50%) !important;
        opacity: 1 !important;
    }

    .theme-orb,
    .ocean-bubble,
    .ocean-waves,
    .royal-particle {
        display: none !important;
    }

    /* Navbar */
    .main-navbar {
        background: rgba(255, 255, 255, 0.97) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04) !important;
        backdrop-filter: blur(12px);
    }

    .main-navbar.scrolled {
        background: rgba(255, 255, 255, 0.99) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
    }

    .navbar-brand {
        color: #1A1D26 !important;
    }

    .navbar-brand span,
    .brand-badge {
        color: var(--gt-primary, #C41E3A) !important;
    }

    .nav-link {
        color: #4B5563 !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--gt-primary, #C41E3A) !important;
        background: color-mix(in srgb, var(--gt-primary, #C41E3A) 8%, transparent) !important;
    }

    .nav-link.active::after {
        background: linear-gradient(to right, var(--gt-primary, #C41E3A), color-mix(in srgb, var(--gt-primary, #C41E3A) 60%, #fff)) !important;
    }

    .dropdown-menu,
    .nav-dropdown-menu {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    }

    .dropdown-item {
        color: #4B5563 !important;
    }

    .dropdown-item:hover {
        background: color-mix(in srgb, var(--gt-primary, #C41E3A) 6%, transparent) !important;
        color: var(--gt-primary, #C41E3A) !important;
    }

    /* Cards & job listings */
    body.gt-theme-active .glass-card,
    body.gt-theme-active .job-card,
    body.gt-theme-active .card,
    body.gt-theme-active .premium-card,
    .job-card,
    .glass-card {
        background: var(--gt-card, #FFFFFF) !important;
        border: 1px solid color-mix(in srgb, var(--gt-primary, #C41E3A) 14%, transparent) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, calc(var(--gt-shadow, 0.06) * 2)), 0 1px 3px rgba(0, 0, 0, calc(var(--gt-shadow, 0.06))) !important;
        backdrop-filter: none !important;
        color: var(--gt-text, #1A1D26) !important;
    }

    body.gt-theme-active .job-card:hover,
    .job-card:hover,
    .glass-card:hover {
        border-color: color-mix(in srgb, var(--gt-primary, #C41E3A) 25%, transparent) !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-2px);
    }

    body.gt-theme-active .job-card.featured,
    .job-card.featured {
        background: linear-gradient(135deg, color-mix(in srgb, var(--gt-primary, #C41E3A) 4%, #fff), #fff) !important;
        border-color: color-mix(in srgb, var(--gt-primary, #C41E3A) 20%, transparent) !important;
    }

    /* Typography */
    body.gt-theme-active h1,
    body.gt-theme-active h2,
    body.gt-theme-active h3,
    body.gt-theme-active h4,
    h1, h2, h3, h4,
    .section-title {
        color: #1A1D26 !important;
    }

    body.gt-theme-active p,
    body.gt-theme-active .text-muted,
    p {
        color: #4B5563 !important;
    }

    .hero-title {
        color: #1A1D26 !important;
        text-shadow: none !important;
        text-align: center !important;
    }

    .hero-subtitle {
        color: #6B7280 !important;
        text-align: center !important;
    }

    .hero-inner,
    .hero-content,
    .hero-search-block {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .search-container {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .section-title::before {
        background: linear-gradient(180deg, var(--gt-primary, #C41E3A), color-mix(in srgb, var(--gt-primary, #C41E3A) 50%, #fff)) !important;
    }

    /* Forms & search */
    body.gt-theme-active .form-control,
    body.gt-theme-active .search-input,
    body.gt-theme-active input[type="text"],
    body.gt-theme-active input[type="search"],
    body.gt-theme-active select {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.12) !important;
        color: #1A1D26 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) inset;
    }

    body.gt-theme-active .form-control:focus {
        border-color: var(--gt-primary, #C41E3A) !important;
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--gt-primary, #C41E3A) 15%, transparent) !important;
    }

    /* Buttons — corporate red accent */
    body.gt-theme-active .btn-primary,
    body.gt-theme-active .btn-gold,
    body.gt-theme-active .btn-warning {
        background: linear-gradient(135deg, var(--gt-gradient-start, #C41E3A), var(--gt-gradient-end, #9B1830)) !important;
        color: #FFFFFF !important;
    }

    .job-card .btn-call-hr,
    .job-actions .btn-call-hr {
        background: linear-gradient(145deg, #FFFFFF 0%, #F8F9FB 100%) !important;
        color: #1A1D26 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        display: inline-flex !important;
        visibility: visible !important;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 1) inset,
            0 4px 14px rgba(0, 0, 0, 0.08) !important;
    }

    .job-card .btn-call-hr:hover,
    .job-actions .btn-call-hr:hover {
        background: #FFFFFF !important;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 1) inset,
            0 6px 20px rgba(0, 0, 0, 0.12) !important;
    }

    .job-card .btn-call-hr i,
    .job-actions .btn-call-hr i {
        color: #1A1D26 !important;
    }

    .job-card .btn-apply-quick {
        color: #1A1D26 !important;
        background: #F3F4F6 !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    body.gt-glass .glass-card,
    body.gt-glass .navbar,
    body.gt-glass .mobile-bottom-nav {
        backdrop-filter: none !important;
        background: #FFFFFF !important;
    }

    /* Footer stays glass dark on desktop — see global-theme.css */

    /* Modals */
    body.gt-theme-active .modal-content {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        color: #1A1D26 !important;
    }

    /* Premium marquee */
    .premium-marquee {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.06) !important;
    }

    /* Hero banner overlay — lighter on desktop */
    .hero-banner-bg [style*="linear-gradient"] {
        background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.35) 50%, rgba(244,245,247,0.85) 100%) !important;
    }

    /* JAD premium sections */
    .jad-premium-zone {
        background:
            radial-gradient(ellipse 70% 40% at 50% 0%, color-mix(in srgb, var(--gt-primary) 6%, transparent) 0%, transparent 55%),
            linear-gradient(180deg, #F4F5F7 0%, #FFFFFF 100%) !important;
    }

    .jad-premium-zone-glow {
        opacity: 0.35 !important;
    }

    .jad-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.07) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    }

    .jad-card::before {
        opacity: 1;
    }

    .jad-section-title,
    .jad-filters-title,
    .jad-why-card h3,
    .jad-premium-text h3,
    .jad-premium-banner-visible .jad-premium-title,
    .jad-download-card h3,
    .jad-testimonial-author strong,
    .jad-faq-q {
        color: #1A1D26 !important;
        -webkit-text-fill-color: #1A1D26 !important;
    }

    .jad-section-sub,
    .jad-filters-count,
    .jad-filter-field label,
    .jad-why-card p,
    .jad-premium-text p,
    .jad-premium-banner-visible .jad-premium-subtitle,
    .jad-download-lead,
    .jad-download-sub,
    .jad-testimonial-body p,
    .jad-faq-a,
    .jad-testimonial-author span,
    .jad-download-features span {
        color: #6B7280 !important;
    }

    .jad-why-num {
        color: color-mix(in srgb, var(--gt-primary) 10%, transparent) !important;
    }

    .jad-why-section {
        background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--gt-primary) 4%, transparent) 50%, transparent 100%) !important;
    }

    .jad-hero-premium {
        border-radius: 16px;
        margin: 0 16px 16px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }

    .jad-hero-bg {
        filter: brightness(0.75);
    }

    .jad-hero-overlay {
        background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(196,30,58,0.2) 100%) !important;
    }

    .jad-hero-title {
        color: #FFFFFF !important;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    .jad-hero-sub {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .jad-download-card {
        background: linear-gradient(135deg, #FFFFFF, #F8F9FB) !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    .jad-testimonial-author {
        border-top-color: rgba(0, 0, 0, 0.06) !important;
    }

    .jad-why-icon {
        background: color-mix(in srgb, var(--gt-primary) 10%, transparent) !important;
    }

    .jad-filter-card {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    .jad-filter-card.active {
        background: linear-gradient(145deg, color-mix(in srgb, var(--gt-primary) 6%, transparent) 0%, #FFFFFF 100%) !important;
        border-color: color-mix(in srgb, var(--gt-primary) 35%, transparent) !important;
    }

    .jad-filter-card-value,
    .jad-filter-card-label {
        color: #1A1D26 !important;
    }

    .jad-filter-card.active .jad-filter-card-value {
        color: var(--gt-primary) !important;
    }

    .jad-filter-card-desc {
        color: #6B7280 !important;
    }

    .jad-filter-card-icon {
        background: color-mix(in srgb, var(--gt-primary) 8%, transparent) !important;
    }

    .jad-brand-card img {
        filter: grayscale(20%) !important;
    }

    .jad-premium-img::after {
        background: linear-gradient(90deg, transparent 30%, #FFFFFF 100%) !important;
    }

    .jad-premium-banner-visible {
        background: linear-gradient(155deg, #ffffff 0%, #f8fafc 100%) !important;
    }

    .jad-premium-banner-visible .jad-premium-cta,
    .jad-premium-banner-visible .jad-premium-cta span,
    .jad-premium-banner-visible .jad-premium-cta i {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    body.gt-theme-active .job-card,
    .jad-card.job-card-enhanced {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.07) !important;
    }

    /* Scrollbar */
    ::-webkit-scrollbar-track {
        background: #F0F1F4;
    }

    ::-webkit-scrollbar-thumb {
        background: #D1D5DB;
    }

    /* Tables */
    body.gt-theme-active table tbody tr:nth-child(even) {
        background: #F9FAFB !important;
    }

    /* Visitor counter & social */
    .visitor-counter {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.06) !important;
        color: #1A1D26 !important;
    }

    .social-icon {
        background: #F3F4F6 !important;
        color: #4B5563 !important;
        border-color: rgba(0, 0, 0, 0.06) !important;
    }

    .social-icon:hover {
        background: var(--gt-primary, #C41E3A) !important;
        color: #FFFFFF !important;
    }

    /* Sidebar & filter panels */
    .sidebar-section,
    .premium-ads-panel,
    .filter-panel,
    .search-filters {
        background: #FFFFFF !important;
        border-color: rgba(0, 0, 0, 0.07) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    }

    /* Training carousel cards */
    .training-carousel-card,
    .training-ad-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.07) !important;
    }

    /* Company logo placeholders */
    .company-logo {
        background: #F3F4F6 !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    /* Top bar — keep branded accent */
    .top-bar {
        background: linear-gradient(135deg, var(--gt-primary, #C41E3A), var(--gt-secondary, #9B1830)) !important;
    }

    /* Links */
    body.gt-theme-active a:not(.btn):not(.auth-btn):not(.nav-link):not(.drawer-menu-link):not(.dropdown-item) {
        color: var(--gt-primary, #C41E3A);
    }

    body.gt-theme-active a:not(.btn):not(.auth-btn):not(.nav-link):not(.drawer-menu-link):not(.dropdown-item):hover {
        color: var(--gt-secondary, #9B1830);
    }

    body.gt-theme-active .main-navbar .nav-link,
    body.gt-theme-active .desktop-nav .nav-link {
        color: #4b5563 !important;
        -webkit-text-fill-color: #4b5563 !important;
    }

    body.gt-theme-active .main-navbar .nav-link:hover,
    body.gt-theme-active .main-navbar .nav-link.active,
    body.gt-theme-active .desktop-nav .nav-link:hover,
    body.gt-theme-active .desktop-nav .nav-link.active {
        color: var(--gt-primary, #C41E3A) !important;
        -webkit-text-fill-color: var(--gt-primary, #C41E3A) !important;
    }

    body.gt-theme-active .auth-btn-register,
    body.gt-theme-active .nav-auth-section .auth-btn-register,
    body.gt-theme-active .hero-cta-row .auth-btn-register {
        color: var(--gt-button-text, #111) !important;
        -webkit-text-fill-color: var(--gt-button-text, #111) !important;
    }

    /* Employer dashboard — dark panels keep light text; light panels keep dark text */
    .employer-dashboard .emp-hero-card,
    .employer-dashboard .emp-dark-panel {
        background: linear-gradient(135deg, #1f2937, #111827) !important;
        border-color: rgba(245, 158, 11, 0.25) !important;
        color: #e8eaed !important;
    }

    .employer-dashboard .emp-dark-panel h1,
    .employer-dashboard .emp-dark-panel h2,
    .employer-dashboard .emp-dark-panel h3,
    .employer-dashboard .emp-dark-panel h4,
    .employer-dashboard .emp-dark-panel h5,
    .employer-dashboard .emp-dark-panel h6,
    .employer-dashboard .emp-hero-card h1,
    .employer-dashboard .emp-hero-card h2,
    .employer-dashboard .emp-hero-card h3,
    .employer-dashboard .emp-hero-card h4,
    .employer-dashboard .emp-hero-card h5,
    .employer-dashboard .emp-hero-card h6 {
        color: #f9fafb !important;
    }

    .employer-dashboard .emp-dark-panel p,
    .employer-dashboard .emp-dark-panel small,
    .employer-dashboard .emp-dark-panel .text-muted,
    .employer-dashboard .emp-hero-card p,
    .employer-dashboard .emp-hero-card small,
    .employer-dashboard .emp-hero-card .text-muted {
        color: #9ca3af !important;
    }

    .employer-dashboard .emp-dark-panel strong,
    .employer-dashboard .emp-dark-panel span:not([style*="color"]) {
        color: inherit;
    }

    .employer-dashboard .emp-dark-card {
        background: #1a1d26 !important;
        border-color: rgba(197, 164, 110, 0.35) !important;
        color: #e8eaed !important;
    }

    .employer-dashboard .emp-dark-card > div:first-child,
    .employer-dashboard .emp-dark-card .emp-dark-card-title {
        color: #f3f4f6 !important;
    }

    .employer-dashboard .emp-sidebar-nav a {
        color: #374151 !important;
    }

    .employer-dashboard .emp-sidebar-nav a:hover {
        color: var(--gt-primary, #C41E3A) !important;
    }

    .employer-dashboard .emp-sidebar-nav a i {
        color: inherit !important;
    }

    .employer-dashboard .stat-label {
        color: #6b7280 !important;
    }

    .employer-dashboard .glass-card h5,
    .employer-dashboard .glass-card h6 {
        color: #1a1d26 !important;
    }

    .employer-dashboard .data-table th,
    .employer-dashboard .data-table td {
        color: #1a1d26 !important;
    }

    .employer-dashboard .empty-state h5 {
        color: #1a1d26 !important;
    }

    .employer-dashboard .empty-state p {
        color: #6b7280 !important;
    }

    /* Employer subscription — premium dark panels, always readable on light desktop theme */
    .employer-subscription .plan-card {
        background: linear-gradient(165deg, #1e2129 0%, #14161c 100%) !important;
        border-color: rgba(251, 191, 36, 0.28) !important;
        color: #f9fafb !important;
    }

    .employer-subscription .plan-name,
    .employer-subscription .plan-name * {
        color: #f9fafb !important;
        -webkit-text-fill-color: #f9fafb !important;
    }

    .employer-subscription .plan-desc,
    .employer-subscription .feat-list li,
    .employer-subscription .price-block .duration {
        color: #d1d5db !important;
        -webkit-text-fill-color: #d1d5db !important;
    }

    .employer-subscription .price-block .mrp-label {
        color: #9ca3af !important;
        -webkit-text-fill-color: #9ca3af !important;
    }

    .employer-subscription .price-block .mrp-value {
        color: #6b7280 !important;
        -webkit-text-fill-color: #6b7280 !important;
        text-decoration-color: #ef4444 !important;
    }

    .employer-subscription .price-block .amount {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .employer-subscription .price-block .amount.gold {
        color: #fbbf24 !important;
        -webkit-text-fill-color: #fbbf24 !important;
    }

    .employer-subscription .price-block .save-badge,
    .employer-subscription .price-block .save-badge .save-pct,
    .employer-subscription .price-block .save-badge i {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .employer-subscription .subs-hero h1 {
        color: #f59e0b !important;
        -webkit-text-fill-color: #f59e0b !important;
        background: none !important;
    }

    .employer-subscription .subs-hire-toggle {
        background: linear-gradient(145deg, #f8fafc, #eef2f7) !important;
        border-color: rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), inset 0 1px 0 #fff !important;
    }

    .employer-subscription .subs-hire-btn:not(.active) {
        color: #6b7280 !important;
        -webkit-text-fill-color: #6b7280 !important;
    }

    .employer-subscription .subs-hire-btn.active {
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
    }

    .employer-subscription .subs-hire-btn:not(.active) .subs-hire-icon {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
    }

    .employer-subscription .subs-hero p,
    .employer-subscription .subs-footer p,
    .employer-subscription .subs-footer .trust-row span {
        color: #6b7280 !important;
        -webkit-text-fill-color: #6b7280 !important;
    }

    .employer-subscription .employer-reviews-section .reviews-heading h2 {
        color: #1a1d26 !important;
        -webkit-text-fill-color: #1a1d26 !important;
    }

    .employer-subscription .employer-review-card {
        background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
        border-color: rgba(251, 191, 36, 0.35) !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
    }

    .employer-subscription .employer-review-card .review-quote {
        color: #4b5563 !important;
        -webkit-text-fill-color: #4b5563 !important;
    }

    .employer-subscription .employer-review-card .review-name {
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
    }

    .employer-subscription .employer-review-card .review-meta {
        color: #6b7280 !important;
        -webkit-text-fill-color: #6b7280 !important;
    }
}