/* =====================
   RESET
   ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================
   HIDE SCROLLBAR GLOBALLY
   ===================== */
html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE / Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;                /* Chrome / Safari */
}

/* =====================
   BODY — sticky footer
   ===================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f5f5;
    font-family: Georgia, serif;
}

/* =====================
   HEADER
   ===================== */
.main-header {
    background: #000;
    color: #fff;
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.badge {
    background: #007bff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #ccc;
}

/* =====================
   CATEGORY NAV
   ===================== */
.category-nav {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 10px 20px;
    gap: 6px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-menu li a {
    text-decoration: none;
    color: blue;
    font-size: 0.9rem;
    padding: 4px 6px;
    white-space: nowrap;
}

.nav-menu li a:hover {
    text-decoration: underline;
}

/* =====================
   MAIN LAYOUT GRID
   Left Ad | Content | Right Ad
   ===================== */
.layout-grid {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 310px;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    margin: 24px auto;
    padding: 0 16px;
    align-items: start;
    flex: 1;
}

/* =====================
   AD SIDEBARS
   ===================== */
.ad-sidebar {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    min-width: 0;
    /* Sticky so ad stays while scrolling */
    position: sticky;
    top: 75px;
}

/* Force iframes inside sidebars to never overflow */
.ad-sidebar iframe,
.ad-sidebar > div,
.ad-sidebar > ins {
    max-width: 100% !important;
    display: block;
}

/* =====================
   CONTENT AREA (MIDDLE)
   ===================== */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    width: 100%;
}

/* =====================
   HERO
   ===================== */
.hero {
    text-align: center;
    padding: 18px 10px 8px;
}

.hero h1 {
    font-size: 1.8rem;
    color: #111;
}

/* =====================
   JOB GRID / JOB CARDS
   ===================== */
.job-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.job-card {
    border: 1px solid #ddd;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.job-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.job-card h2,
.job-card h3 {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 4px;
}

.job-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 5px;
}

.job-card button {
    margin-top: 12px;
    padding: 8px 18px;
    background: blue;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.job-card button:hover {
    background: darkblue;
}

/* =====================
   PAGE CONTAINER
   (About / Privacy pages)
   ===================== */
.page-container {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
}

.page-container h1 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #111;
}

.page-container h3 {
    margin-top: 20px;
    font-size: 1.15rem;
    color: #222;
}

.page-container p {
    margin-top: 10px;
    color: #444;
    line-height: 1.7;
}

/* =====================
   BOTTOM AD
   ===================== */
.bottom-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    overflow: hidden;
    width: 100%;
}

.bottom-ad iframe {
    max-width: 100%;
    display: block;
}

/* =====================
   NATIVE AD (full-width banner)
   ===================== */
.native-ad-container {
    grid-column: 1 / -1;
    margin: 5px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.native-ad-container div,
.native-ad-container ins,
.native-ad-container iframe {
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* =====================
   MODAL
   ===================== */
#ad-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ad-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ad-modal-content h3 {
    color: #333;
    margin-bottom: 10px;
}

/* =====================
   SPINNER
   ===================== */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================
   FOOTER
   ===================== */
.main-footer {
    background: #000;
    color: #fff;
    padding: 28px 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.main-footer p {
    font-size: 0.9rem;
    color: #bbb;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #007bff;
}

/* =====================
   MOBILE-ONLY AD
   ===================== */
.mobile-only-ad {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

/* =====================
   FOOTER AD
   ===================== */
.footer-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}

/* =====================
   RESPONSIVE — TABLET (≤ 1100px)
   Hide sidebars, single column
   ===================== */
@media (max-width: 1100px) {
    .layout-grid {
        grid-template-columns: 1fr;
        margin: 14px auto;
        gap: 14px;
    }

    .ad-sidebar {
        display: none;
    }

    .bottom-ad {
        display: flex;
    }

    .page-container {
        max-width: 100%;
    }
}

/* =====================
   RESPONSIVE — MOBILE (≤ 768px)
   ===================== */
@media (max-width: 768px) {
    .footer-ad {
        display: none;
    }

    .mobile-only-ad {
        display: flex;
    }

    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .bottom-ad iframe {
        max-width: 320px !important;
    }
}

/* =====================
   RESPONSIVE — SMALL (≤ 600px)
   ===================== */
@media (max-width: 600px) {
    .layout-grid {
        padding: 0 10px;
    }

    .page-container {
        padding: 15px;
    }

    .page-container h1 {
        font-size: 1.4rem;
    }

    .page-container h3 {
        font-size: 1rem;
    }

    .hero {
        padding: 14px 8px 6px;
    }
}