/**
 * OkNaukri Main Custom Theme Stylesheet
 * @package OkNaukri
 * @version 1.0.0
 */

/* =========================================================
   1. ROYAL BLUE NAVIGATION BAR & MOBILE MENU STYLES
   ========================================================= */

.nav-blue-bg {
    background: #0d47a1 !important;
    background: linear-gradient(90deg, #0505a8 0%, #0000d6 45%, #0052d4 100%) !important;
    border-bottom: 2px solid #0022a1 !important;
}

.nav-pill-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
    font-weight: 600 !important;
}

.navbar-dark .navbar-nav .nav-link {
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    transition: all 0.2s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    opacity: 1 !important;
    transform: translateY(-1px);
}

/* Mobile Toggler Explicit Style Fix */
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px;
    height: 36px;
}

.navbar-toggler i {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
}

/* Sub-categories Dropdown Menu Styling */
.navbar-dark .dropdown-menu-dark {
    background-color: #001e80 !important;
    border-radius: 8px;
    margin-top: 6px;
}

.navbar-dark .dropdown-menu-dark .dropdown-item {
    color: #e2e8f0 !important;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.navbar-dark .dropdown-menu-dark .dropdown-item:hover {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    padding-left: 1.25rem;
}

/* =========================================================
   2. HEADER & LOGO BRANDING STYLES
   ========================================================= */

.logo-badge {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.25);
}

.brand-text {
    font-weight: 800 !important;
}

.input-group-modern {
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    border-color: #e2e8f0 !important;
}

.input-group-modern:focus-within {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
}

.max-w-lg {
    max-width: 520px;
}

/* =========================================================
   3. WHITE META TOOLBAR, TYPOGRAPHY & NO-SCROLL AUTO-FIT TABLE
   ========================================================= */

.white-meta-toolbar {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #0d6efd !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.white-meta-toolbar::-webkit-scrollbar {
    display: none;
}
.white-meta-toolbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.white-meta-toolbar .share-icon-link {
    font-size: 0.95rem !important;
    transition: transform 0.15s ease-in-out;
}

.white-meta-toolbar .share-icon-link:hover {
    transform: scale(1.15);
}

.article-body {
    font-size: 0.925rem;
    line-height: 1.65;
    color: #1e293b;
}

.article-body p {
    margin-bottom: 1.1rem;
}

.article-body h2, .article-body h3, .article-body h4 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

/* STRICT NO-SCROLL AUTO-FIT MOBILE TABLE */
.single-post-wrapper,
.article-body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.article-body figure.wp-block-table,
.article-body .table-responsive-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 1rem 0 !important;
    display: block !important;
}

.article-body table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.72rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

.article-body table thead,
.article-body table tr:first-child th,
.article-body table thead tr th {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 6px 4px !important;
    border: 1px solid #0b5ed7 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.article-body table td,
.article-body table tbody tr td {
    padding: 6px 4px !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.article-body table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

/* CLEAN NEXT/PREVIOUS BUTTONS */
.post-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background-color: #f1f5f9;
    color: #1e293b !important;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.post-navigation a:hover {
    background-color: #0d6efd;
    color: #ffffff !important;
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

/* =========================================================
   4. SIDEBAR WIDGETS & GRID TILES (EDUCATION/LOCATION)
   ========================================================= */

aside .card, aside .widget {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-bottom: 1rem !important;
    background: #ffffff;
}

.widget-header {
    background: linear-gradient(90deg, #0d6efd 0%, #0052d4 100%) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px;
}

#updateTabs .nav-link {
    background-color: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
}

#updateTabs .nav-link.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
}

.mock-btn {
    display: inline-block;
    padding: 5px 12px;
    background-color: #ffffff;
    color: #0d6efd !important;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.mock-btn:hover {
    background-color: #0d6efd;
    color: #ffffff !important;
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

.edu-tile {
    display: block;
    padding: 8px 4px;
    background-color: #f1f1ff;
    color: #1e1b4b !important;
    border: 1px solid #e0e0fe;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.edu-tile:hover {
    background-color: #7c3aed;
    color: #ffffff !important;
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.loc-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7px 4px;
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.loc-tile .loc-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.loc-tile .loc-count {
    font-size: 0.65rem;
    color: #9a3412;
    margin-top: 2px;
}

.loc-tile:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    transform: translateY(-2px);
}

.loc-tile:hover .loc-name,
.loc-tile:hover .loc-count {
    color: #ffffff !important;
}

.text-xxs { font-size: 0.68rem !important; }
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   5. AI ASSISTANT WIDGET & FLOATING CHAT BUTTON
   ========================================================= */

.bg-gradient-ai {
    background: linear-gradient(135deg, #311075 0%, #581c87 100%) !important;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

#ok-floating-ai-btn {
    position: fixed;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #581c87 0%, #311075 100%) !important;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 0 !important;
    transition: transform 0.2s ease-in-out;
}

#ok-floating-ai-btn i {
    font-size: 1.1rem !important;
    color: #ffffff !important;
}

#ok-ai-chat-box {
    width: 330px;
    bottom: 75px;
    right: 20px;
    max-width: calc(100vw - 40px);
    border-radius: 12px !important;
}

/* =========================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 991.98px) {
    #masthead .d-flex {
        justify-content: center !important;
    }
    
    .navbar-brand {
        margin: 0 auto !important;
        text-align: center;
    }

    #oknaukriNavbar {
        background-color: #0505a8 !important;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 767.98px) {
  #ok-floating-ai-btn {
    bottom: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
  }

  #ok-ai-chat-box {
    bottom: 65px;
    right: 15px;
  }
}

@media (max-width: 576px) {
    .white-meta-toolbar {
        padding: 0.35rem 0.5rem !important;
        gap: 0.25rem !important;
    }

    .article-body table {
        font-size: 0.68rem !important;
    }
    
    .article-body table th,
    .article-body table td {
        padding: 5px 2px !important;
    }
}
/* =========================================================
   STICKY HEADER & SIDEBAR Z-INDEX OVERLAP FIX
   ========================================================= */

/* Fix 1: Ensure Header/Navbar always stays ON TOP of everything */
#masthead,
.nav-blue-bg,
.navbar,
header,
.sticky-top-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important; /* High Z-Index so content passes UNDER header */
}

/* Fix 2: Sidebar Sticky Position & Z-Index Control */
.sticky-sidebar-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 85px !important; /* Space below sticky header */
    z-index: 10 !important; /* Lower than header z-index */
}

/* Ensure no inner widget overlaps header */
aside#secondary,
aside .card {
    z-index: 1 !important;
}
/* =========================================================
   FEATURED IMAGE & FOLLOW US STRIP STYLING
   ========================================================= */

.post-featured-image img {
    max-height: 420px;
    object-fit: cover;
}

.follow-us-strip {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.follow-link {
    transition: transform 0.15s ease-in-out;
}

.follow-link:hover {
    transform: translateY(-1px);
    color: #0d6efd !important;
}

@media (max-width: 576px) {
    .follow-us-strip {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    .follow-us-strip .fs-6 {
        font-size: 0.85rem !important;
    }
}
/* =========================================================
   ACCESSIBILITY CONTRAST FIXES (LIGHTHOUSE 100/100)
   ========================================================= */
/* =========================================================
   FOOTER LINKS WHITE TEXT & SKY BLUE HOVER
   ========================================================= */

/* Sky blue icon color */
.text-sky-blue {
    color: #0dcaf0 !important;
}

/* Base link color: Pure White */
.footer-custom-link {
    color: #ffffff !important;
    transition: color 0.2s ease-in-out;
}

/* Hover effect: Sky Blue */
.footer-custom-link:hover {
    color: #0dcaf0 !important;
}
/* =========================================================
   SLEEK & READABLE TAB NAVIGATION (INCREASED FONT SIZE)
   ========================================================= */

/* Tab Container Horizontal Scroll */
.card-header .nav-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.card-header .nav-pills::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

/* Tab Button Updated Font Size & Spacing */
.card-header .nav-pills .nav-link {
    font-size: 0.82rem !important; /* Font size bada kar diya gaya hai */
    padding: 6px 14px !important;  /* Balanced padding for better readability */
    white-space: nowrap !important;
    border-radius: 6px !important;
    font-weight: 700 !important;   /* Thoda bold look for clean highlight */
}

.card-header .nav-pills .nav-item {
    flex: 0 0 auto !important;
}

/* Tab Icon Size Fix */
.card-header .nav-pills .nav-link i {
    font-size: 0.85rem !important;
}