/* GLOBAL */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    color: #1f2937;
}

/* HEADER */
/* SITE LOGO (PHARMABHARAT STYLE) */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 80px; /* Increased from 48px */
    width: auto;
    object-fit: contain;
}

.user-header {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .user-header .logo {
        font-size: 22px;
        font-weight: 600;
    }

    .user-header nav a {
        margin-left: 20px;
        text-decoration: none;
        font-weight: 500;
        color: #374151;
    }

        .user-header nav a:hover {
            color: #2563eb;
        }

/* Main Navigation Links */
.nav-link-main {
    text-decoration: none;
    font-weight: 500;
    color: #374151;
    margin-left: 20px;
    transition: color 0.2s;
}

    .nav-link-main:hover {
        color: #2563eb;
    }

/* CATEGORIES MENU BAR (Like PharmaBharat) */
.categories-menu-bar {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.categories-scroll {
    display: flex;
    align-items: center;
    padding: 0;
    min-width: max-content;
    white-space: nowrap;
}

.category-link {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

    .category-link:hover {
        color: #2563eb;
        background-color: #f3f4f6;
        border-bottom-color: #bfdbfe;
    }

    .category-link.active {
        color: #2563eb;
        border-bottom-color: #2563eb;
        background-color: #eff6ff;
        font-weight: 600;
    }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background-color: #374151;
        transition: all 0.3s;
    }

/* Mobile Navigation */
.mobile-nav {
    padding: 20px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

    .mobile-nav-link:hover {
        background-color: #f9fafb;
        color: #2563eb;
    }

    .mobile-nav-link.active {
        color: #2563eb;
        background-color: #eff6ff;
        font-weight: 600;
    }

.mobile-categories {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.mobile-categories-title {
    padding: 12px 20px;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-category-link {
    display: block;
    padding: 12px 20px 12px 40px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

    .mobile-category-link:hover {
        background-color: #f9fafb;
        color: #2563eb;
    }

    .mobile-category-link.active {
        color: #2563eb;
        background-color: #eff6ff;
        font-weight: 600;
    }

/* CONTENT */
.user-container {
    margin-top: 30px;
    margin-bottom: 40px;
}

/*Job*/
/* ================= PHARMABHARAT STYLE JOB CARD ================= */

.pharma-job-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.pharma-job-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pharma-job-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.pharma-company-name {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 10px;
}

.pharma-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

    .pharma-job-meta span {
        font-size: 14px;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 6px;
    }

.meta-icon {
    width: 16px;
    height: 16px;
}

.pharma-job-date {
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
}

.pharma-job-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.pharma-job-divider {
    margin: 18px 0;
    height: 1px;
    background: #e5e7eb;
}

.pharma-job-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pharma-verified {
    font-size: 14px;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-icon {
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
}

.pharma-actions {
    display: flex;
    gap: 12px;
}

.btn-walkin {
    padding: 8px 14px;
    border-radius: 22px;
    font-size: 14px;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    font-weight: 500;
}

.btn-apply {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-apply:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.apply-now-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-now-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* FOOTER */
.user-footer {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
}
.ad-container {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.ad-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

/* TEST AD (LOCALHOST ONLY) */
.test-ad-container {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.test-ad-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.test-ad-body {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
}

.test-ad-btn {
    margin-top: 10px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

/* ================= GOOGLE ADSENSE AD CONTAINERS ================= */

.google-ad-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    text-align: center;
    overflow: hidden;
}

/* ================= INBUILT TEST ADS (Like Android Test Ads) ================= */

.inbuilt-test-ad {
    border: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.test-ad-banner {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.test-ad-banner-horizontal {
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.test-ad-banner-vertical {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.test-ad-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.test-ad-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    gap: 12px;
}

.test-ad-logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-ad-logo-icon {
    font-size: 20px;
}

.test-ad-title {
    flex: 1;
}

.test-ad-title-text {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.test-ad-subtitle {
    font-size: 11px;
    opacity: 0.9;
}

.test-ad-body {
    flex: 1;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.test-ad-image-placeholder {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    flex-shrink: 0;
}

.test-ad-image-icon {
    font-size: 24px;
    margin-bottom: 4px;
    opacity: 0.6;
}

.test-ad-image-text {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
}

.test-ad-text-content {
    flex: 1;
    text-align: left;
}

.test-ad-headline {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    margin-bottom: 6px;
}

.test-ad-description {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 8px;
}

.test-ad-cta {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.test-ad-footer {
    padding: 8px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-ad-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-ad-position {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive adjustments for test ads */
@media (max-width: 767.98px) {
    .test-ad-body {
        flex-direction: column;
        text-align: center;
    }

    .test-ad-text-content {
        text-align: center;
    }

    .test-ad-image-placeholder {
        width: 100%;
        max-width: 200px;
    }

    .test-ad-banner-vertical {
        min-height: 250px;
    }

    .test-ad-banner-horizontal {
        min-height: 150px;
    }
}

    .google-ad-container[data-position="Top"] {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 24px;
    }

    .google-ad-container[data-position="Sidebar"] {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }

    .google-ad-container[data-position="Inline"] {
        width: 100%;
        max-width: 100%;
        margin: 24px auto;
    }

.top-ad-container {
    width: 100%;
    margin-bottom: 24px;
}

.inline-ad-container {
    width: 100%;
    margin: 24px 0;
}

.sidebar-ads {
    position: sticky;
    top: 100px;
}

.sidebar-ad-item {
    width: 100%;
}

/* Responsive Ad Containers */
@media (max-width: 991.98px) {
    .sidebar-ads {
        position: static;
        margin-top: 30px;
    }

    .google-ad-container[data-position="Sidebar"] {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .pharma-job-top {
        flex-direction: column;
        gap: 16px;
    }

    .pharma-job-logo {
        align-self: flex-start;
    }

    .pharma-job-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pharma-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-walkin,
    .btn-apply {
        width: 100%;
        text-align: center;
    }

    .categories-menu-bar {
        -webkit-overflow-scrolling: touch;
    }

    .category-link {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .user-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .pharma-job-card {
        padding: 16px;
        border-radius: 12px;
    }

    .pharma-job-title {
        font-size: 18px;
    }

    .google-ad-container {
        padding: 8px;
    }
}
/* ===============================
   FIX MENU CLICK ISSUE
================================ */

/* Ensure header is always clickable */
.user-header {
    position: relative;
    z-index: 1000;
    background: #fff;
}

/* Categories menu must stay above content */
.categories-menu-bar {
    position: relative;
    z-index: 1001;
    background: #ffffff;
}

/* Horizontal scroll container */
.categories-scroll {
    position: relative;
    z-index: 1002;
}

/* Make sure links receive clicks */
.category-link {
    position: relative;
    z-index: 1003;
    pointer-events: auto;
}

/* Ads must NEVER block clicks */
.top-ad-container,
.inline-ad-container,
.sidebar-ads {
    position: relative;
    z-index: 1;
}

    /* Safety: prevent invisible overlays */
    .top-ad-container *,
    .inline-ad-container * {
        pointer-events: auto;
    }

/* ===============================
   FORCE CATEGORY MENU CLICK FIX
   (ABSOLUTE BLOCKER REMOVAL)
================================ */

/* Make category menu always clickable */
.categories-menu-bar,
.categories-scroll,
.category-link {
    pointer-events: auto !important;
}

/* Disable click blocking by ads */
.top-ad-container,
.top-ad-container *,
.inline-ad-container,
.inline-ad-container *,
.sidebar-ads,
.sidebar-ads * {
    pointer-events: none !important;
}

    /* Re-enable pointer events ONLY for ad links if needed */
    .sidebar-ads a,
    .inline-ad-container a {
        pointer-events: auto !important;
    }

/* Prevent any invisible overlay */
.user-container,
.row,
.col-lg-8,
.col-lg-4 {
    position: relative;
    z-index: 1;
}

/* Menu must stay above everything */
.user-header {
    position: relative !important;
    z-index: 9999 !important;
}
