/* Applies to ALL devices smaller than 768px (typical tablets & phones) */
@media only screen and (max-width: 768px) {
  .rabota6-ad {
    width: 100% !important;
    /* Add other mobile styles here */
  }
}
.rb-registration-form {
  background-color: #264363;
  padding: 20px;
  border-radius: 8px;
  color: #DCAD15;
  max-width: 700px;
  margin: auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: span 2;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #DCAD15;
  font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="file"],
select {
  padding: 6px;
  border-radius: 4px;
  border: none;
  background-color: #ffffff;
  color: #264363;
  font-size: 12px;
}

input::placeholder {
  color: #888;
  opacity: 1;
}

button {
  background-color: #DCAD15;
  color: #264363;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background-color: #e0b91a;
}




.rb-registration-form button {
  background-color: #DCAD15;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

.rb-registration-form button:hover {
  background-color: #c59a12;
}
.rb-registration-form input::placeholder {
    color: #ffffff; /* placeholder text white */
    opacity: 1; /* full opacity */
}

.rabota6-ads-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: left;
    max-width: 1000px; /* Twice the size of .rabota6-ad */
    margin: 0 auto; /* Center the container */
    width: 100%;
}

.rabota6-ad {
    display: flex;
    width: 100%;
    border: 1px solid #ECE51C;
    padding: 5px 5px 2px 5px; /* ⬅ top right bottom left (reduced bottom padding) */
    border-radius: 6px;
    background: #DCAD15;
    box-shadow: 1px 1px 6px rgba(0,0,0,0.08); /* ⬅ softer shadow */
    transition: transform 0.2s ease-in-out;
    align-items: flex-start; /* Not 'left', which is invalid */
    height: 230px; /* ✅ Fixed height to prevent resizing */
    overflow: hidden;
        max-width: 1000px; /* Twice the size of .rabota6-ad */
}
/* Hover scale effect for ads */
.rabota6-ad:hover {
    transform: scale(1.05);
}

/* Image container */
.rabota6-ad-image {
    flex-shrink: 0; /* Prevent image from shrinking */
    width: 300px;   /* Fixed width */
    height: 200px;  /* Fixed height to force shorter image */
}

/* Image itself */
.rabota6-ad-image img {
    width: 100%;
    height: 200px;          /* Fixed height */
    object-fit: cover;      /* Ensures image fills area nicely */
    border-radius: 5px;
}

/* Details container */
.rabota6-ad-details {
    padding-left: 10px;
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title styling */
.rabota6-ad-details h3 a {
    font-size: 16px;
    margin: 0 0 5px;
    height: 40px;            /* Max 2 lines */
    overflow: hidden;
    text-overflow: ellipsis; /* Add "..." if truncated */
}

/* Price styling */
.rabota6-ad-details .ad-price {
    font-size: 18px !important;
    color: #264363;
    font-weight: bold !important;
    margin-top: 2px;       /* Control top spacing */
    margin-bottom: 2px;    /* Control bottom spacing */
}

/* Meta line styling */
.rabota6-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;              /* Reduce gap */
    font-size: 15px;       /* Slightly smaller text */
    color: #264363;
    line-height: 1.2;      /* Reduce line height */
    margin-top: 2px;       
    margin-bottom: 2px;
}

/* Hide category line */
.rabota6-category-line { 
    display: none; 
}

/* ==== Success Message ==== */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* ==== Single Ad View Wrapper ==== */
.rabota6-single-ad-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 3px 0;
}

/* Single ad detail box */
.rabota6-detail-box {
    flex: 1 1 45%;
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    transition: transform 0.2s ease;
}

.rabota6-detail-box:hover {
    transform: translateY(-2px);
}

/* Detail box strong text */
.rabota6-detail-box strong {
    display: block;
    color: #444;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

/* ==== Layout Wrapper ==== */
.rabota6-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.rabota6-main-content {
    flex: 1 1 70%;
    min-width: 300px;
    width: 100%;
}

.rabota6-marketing-sidebar {
    flex: 0 1 28%;
    background-color: #f9fafb;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.rabota6-marketing-sidebar h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #222;
}

.rabota6-marketing-sidebar a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rabota6-marketing-sidebar a:hover,
.rabota6-marketing-sidebar a:focus {
    color: #005177;
    text-decoration: underline;
}

/* ==== Searchbar Wrapper ==== */
.rabota6-searchbar-wrapper {
    max-width: 480px;
    margin: 3px;
    text-align: center;
    padding: 3px;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .rabota6-content-wrapper {
        flex-direction: column;
    }

    .rabota6-main-content,
    .rabota6-marketing-sidebar {
        flex: 1 1 100%;
        width: 100%;
        background-color: #DCAD15; /* yellow */
    }

    .rabota6-marketing-sidebar {
        margin-top: 20px;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 10px 0;
    }

    .rabota6-ad {
        width: 100%;
    }
}

/* Ad form container */
.ad-form-container {
    background-color: #264363; /* desired background */
    padding: 20px;
    border-radius: 8px;
}

/* Ad header */
.rabota6-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    text-decoration: none;
}

/* Shared heart/favorite button */
.favorite-button {
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: 2px solid #264363;
    border-radius: 50%;
    padding: 6px 8px;
    color: #264363;
    transition: all 0.3s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Heart icon inside button */
.favorite-button i {
    font-size: 20px;
}

/* Hover state for favorite button */
.favorite-button:hover {
    background-color: #264363;
}

/* Selected (favorited) state */
.favorite-button.selected {
    color: #FF0000;
    border-color: #FF0000;
}

.favorite-button.selected:hover {
    background-color: #FF0000;
    color: #264363;
}

/* Ad title styling */
.ad-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #264363;
    white-space: nowrap;       /* prevent wrapping */
    overflow: hidden;          /* hide overflow */
    text-overflow: ellipsis;   /* add "..." if too long */
    text-decoration: none;
}

.ad-title a {
    text-decoration: none;
}

.ad-title a:hover,
.ad-title a:focus {
    text-decoration: underline;
}

/* Ad date */
.ad-date {
    font-size: 16px;
    color: #264363;
    white-space: nowrap;
}

/* Price line container */
.rabota6-ad-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Price styling */
.ad-price {
    font-size: 18px;
    color: #264363;
    font-weight: bold;
    margin-top: 1px;
    margin-bottom: 1px;
}

/* Favorite icon in ad */
.ad-favorite {
    font-size: 20px;
    cursor: pointer;
}

/* City display */
.rabota6-ad-city {
    width: 100%;
    font-size: 16px;
    margin-top: 4px;
    color: #264363;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination styling */
.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.pagination a,
.pagination span {
    color: #264363;
    background-color: #ECE51C;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #DCAD15;
    color: white;
}

/* Contact form */
.rabota6-contact-form {
    max-width: 600px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    padding: 30px;
    font-family: 'Segoe UI', sans-serif;
    border: 1px solid #e5e5e5;
}

.rabota6-contact-form p {
    margin-bottom: 20px;
}

.rabota6-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* ==== Contact Form Inputs ==== */
.rabota6-contact-form input[type="text"],
.rabota6-contact-form input[type="email"],
.rabota6-contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.rabota6-contact-form input:focus,
.rabota6-contact-form textarea:focus {
    border-color: #0089e0;
    outline: none;
    background: #fff;
}

.rabota6-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.rabota6-contact-form button {
    background-color: #0089e0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rabota6-contact-form button:hover {
    background-color: #0073c1;
}

.rabota6-contact-success {
    max-width: 600px;
    margin: 20px auto;
    background: #eaffea;
    border-left: 5px solid #3cb43c;
    padding: 15px 20px;
    border-radius: 5px;
    color: #2c7c2c;
    font-weight: 500;
}

/* ==== Location Icon ==== */
.location-icon {
  color: #264363;
  margin-right: 6px;
}

/* ==== Ad Details ==== */
.rabota6-ad-details {
    padding-left: 10px;
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-title {
    margin-bottom: 4px;
    font-size: 20px;
    color: #264363;
}

.ad-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limit to 3 lines */
    -webkit-box-orient: vertical;
}

.rabota6-ad-details .ad-content {
    font-size: 14px;
    color: #264363;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.rabota6-ad-details h3 {
    font-size: 16px;
    margin: 0 0 3px;
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==== Promotion Options ==== */
.promotion-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    height: 250px;               /* fixed height */
    box-sizing: border-box;
}

.promotion-option:last-child {
    border-bottom: none;
}

.promotion-option img {
    width: 300px;
    height: auto;               
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    flex-shrink: 0;             
}

.promotion-option div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* ==== Highlight / Top Ads ==== */
.highlight-top {
    background-color: #7E0000;
    border: 2px solid #a382ff;
    padding: 10px;
    border-radius: 8px;
}

.ad-highlight {
    border: 2px solid gold;
    background-color: #7E0000;
}

.ad-top {
    order: -1;
    border: 4px solid #8B0000;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.ad-badge {
    font-weight: bold;
    color: white;
    background: red;
    padding: 3px 6px;
    border-radius: 4px;
}

.badge-top {
    background-color: gold;
    color: black;
    padding: 4px 8px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
    border-radius: 4px;
}

/* Highlight-specific overrides */
.rabota6-ad.ad-highlight,
.rabota6-ad.ad-highlight * {
    color: #ffffff !important;
}

.rabota6-ad.ad-highlight a {
    color: white !important;
    text-decoration: underline !important;
}

/* Badges inside city */
.rabota6-ad-city .badge-promote {
    background-color: #8B0000;
    color: white;
    padding: 3px 8px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.85rem;
    position: static;
    margin-left: auto;
}

/* ==== Mobile Responsive (≤768px) ==== */
@media only screen and (max-width: 768px) {

  .rabota6-content-wrapper {
    width: 100% !important;
    max-width: 480px !important;
    padding: 0 12px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .rabota6-ad {
    width: 100% !important;
    margin-bottom: 12px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: row !important;
  }

  .rabota6-ad.ad-top {
    background: #DCAD15 !important;
    border: 4px solid #8B0000 !important;
    color: #264363 !important;
    order: -1 !important;
  }

  .rabota6-ad.ad-highlight {
    background: #7E0000 !important;
    border-left: 4px solid gold !important;
  }

  .rabota6-ad-image {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
  }

  .rabota6-ad-details {
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .badge-promote {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #ffcc00 !important;
    color: #7E0000 !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    z-index: 2 !important;
    text-transform: uppercase !important;
  }

  .rabota6-ad.ad-highlight *:not(.badge-promote),
  .rabota6-ad.ad-top *:not(.badge-promote) {
    color: white !important;
  }
}
/* ===== Base Wrapper ===== */
.rabota6-lang-switcher,
.rabota6-language-switcher,
.language-switcher-container {
    background: #8B0000; /* Dark red theme */
    padding: 10px 0;
    border-radius: 5px;
    margin: 10px 0;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: #fff;
}

/* ===== Custom Language Links ===== */
.custom-language-links,
.rabota6-language-switcher .custom-language-links {
    display: inline-block;
    vertical-align: middle;
}

.custom-language-links .lang-link,
.rabota6-language-switcher .lang-link {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    transition: all 0.3s ease;
    background: transparent;
}

.custom-language-links .lang-link:hover,
.rabota6-language-switcher .lang-link:hover,
.custom-language-links .lang-link.active,
.rabota6-language-switcher .lang-link.active {
    background: #fff;
    color: #8B0000;
    border-color: #fff;
}

/* ===== Google Translate Container ===== */
#google_translate_element {
    display: inline-block !important;
    margin: 0 20px 0 0 !important;
    vertical-align: middle;
    float: none !important;
    width: auto !important;
    overflow: visible !important;
}

/* ===== Force Visibility (Desktop & Mobile) ===== */
.language-switcher,
.language-switcher select {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.language-switcher select {
    max-width: 100% !important;
    font-size: 16px !important;
}

/* ===== Google Translate Internal Cleanup ===== */
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    font-size: 14px !important;
    white-space: normal !important;
    overflow: visible !important;
    font-family: inherit !important;
}
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid #fff !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
}
.goog-te-gadget-icon {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ===== Layout Container (Astra, etc.) ===== */
.language-switcher-container .ast-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .language-switcher-container,
    .rabota6-lang-switcher,
    .rabota6-language-switcher {
        width: 100%;
        padding: 12px;
        margin: 8px 0;
    }

    #google_translate_element {
        display: block !important;
        width: 100% !important;
        margin: 10px 0 !important;
        text-align: left !important;
    }

    .language-switcher select {
        width: 100% !important;
        padding: 10px;
        font-size: 18px !important;
    }

    .custom-language-links .lang-link {
        display: inline-block;
        margin: 4px;
        padding: 8px 12px;
    }
}
/* Fix white background on mobile Google Translate dropdown */
.goog-te-gadget-simple {
  background-color: #8B0000 !important; /* your theme dark red */
  border: none !important;
  color: #fff !important;
}

.goog-te-gadget-simple span,
.goog-te-gadget-simple a {
  color: #fff !important;
}

/* Try to fix the iframe background */
.goog-te-menu-frame {
  background-color: #8B0000 !important;
  border: none !important;
}

/* For some browsers, deeper targeting (iframe inner content) */
.goog-te-menu2 {
  background-color: #8B0000 !important;
  color: #fff !important;
}

/* Force the translate dropdown text to be visible on dark red */
.goog-te-menu2 * {
  color: #fff !important;
}




.rabota6-content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 2500px;
        width: 100%;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Desktop widget */
.google-translate-wrapper-desktop {
  display: inline-block;
  vertical-align: middle;
  margin-left: 20px;
}

/* Mobile widget */
#google_translate_element_mobile_container {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
}

/* Clean up widget UI */
.goog-logo-link,
.goog-te-gadget-icon {
  display: none !important;
}

.goog-te-gadget {
  font-size: 14px !important;
  display: inline-block !important;
  vertical-align: middle;
}

/* ===== Mobile Google Translate Overrides ===== */
@media (max-width: 768px) {
    /* Ensure container is visible and wide enough */
    #google_translate_element_mobile_container {
        display: inline-flex !important;
        width: auto !important;
        min-width: 120px !important; /* adjust as needed */
        text-align: left !important;
    }

    /* Force the select dropdown to appear correctly */
    #google_translate_element_mobile_container select {
        display: inline-block !important;
        width: auto !important;
        min-width: 100px !important;
        font-size: 16px !important;
        color: #000 !important;
    }

    /* Remove Google’s hidden overlay */
    #google_translate_element_mobile_container .goog-te-gadget-simple {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background-color: transparent !important;
        border: none !important;
    }

    /* Hide Google logo/icon */
    #google_translate_element_mobile_container .goog-logo-link,
    #google_translate_element_mobile_container .goog-te-gadget-icon {
        display: none !important;
    }

    /* Optional: increase spacing from other elements */
    #google_translate_element_mobile_container {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
}

/* ===== Mobile Google Translate Fix for small widths ===== */
@media (max-width: 480px) {
    #google_translate_element_mobile_container {
        display: inline-flex !important;
        min-width: 150px !important; /* prevents Google from hiding it */
        width: auto !important;
        text-align: left !important;
    }

    #google_translate_element_mobile_container select {
        display: inline-block !important;
        width: 100% !important;
        min-width: 140px !important; /* must be wide enough for dropdown */
        font-size: 16px !important;
        color: #000 !important;
    }

    #google_translate_element_mobile_container .goog-te-gadget-simple {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background-color: transparent !important;
        border: none !important;
    }

    #google_translate_element_mobile_container .goog-logo-link,
    #google_translate_element_mobile_container .goog-te-gadget-icon {
        display: none !important;
    }
}







#left-banner, #right-banner {
    width: 239px; /* fixed width for banners */
    flex-shrink: 0;
     margin-top: 0;
    padding-top: 0;
}

.rabota6-main-content {
    flex: 1 1 auto; /* fills remaining space */
    min-width: 900px; /* prevents overflow */
    max-width: 1200px; /* optional */
    padding: 0 15px;
    box-sizing: border-box;
}

#left-banner img, #right-banner img {
    width: 100%; 
    height: auto;
    display: block;
    margin-top: 0;
    padding-top: 0;
    
}

/* Responsive: hide side banners */
@media (max-width: 767px) {
    #left-banner, #right-banner {
        display: none !important;
    }
    .rabota6-main-content {
        max-width: 100%;
        padding: 0 10px;
    }
}
#left-banner, #right-banner { width: 239px; }
.rabota6-main-content { flex: 1; max-width: 936px; }

#right-banner .banner-right{
    width: 239px; /* fixed width for banners */
    flex-shrink: 0;
     margin-top: 0;
    padding-top: 0;
    display: flex;           /* allows flex alignment inside */
    flex-direction: column;  /* stack any internal content vertically */
    justify-content: flex-start; /* push content to top */
    margin: 0;
    padding: 0;
}

#right-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

#right-banner a, 
#right-banner a img {
    display: block;       /* makes both link and image block elements */
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: top;  /* ensures no inline spacing */
}
/* Hide banners on mobile */
@media only screen and (max-width: 768px) {
    #left-banner,
    #right-banner {
        display: none !important;
    }
}

/* Hide banners on mobile */
@media only screen and (max-width: 768px) {
    #left-banner,
    #right-banner {
        display: none !important;
    }

    /* Unhide only the top banner */
    #top-banner {
        display: block !important;
    }
}

.rabota6, 
.rabota6-ads-container {
  position: relative;
  z-index: 1; /* keep low */
}

/* MOBILE HEADER ICON NAV */
@media (max-width: 768px) {
  .header-emoji-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;      /* optional */
    padding: 10px 0;
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
  }

  .header-emoji-menu a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;   /* icon width */
    height: 40px;  /* icon height */
  }

  .header-emoji-menu a img {
    max-width: 100%;
    max-height: 100%;
    display: block;
  }
}

.rabota6-language-bar {
    margin-left: auto;        /* pushes it to the right */
    display: flex;
    align-items: center;
}
/* ========================
   Rabota Page Icons – Mobile Only
   ======================== */

/* HIDE ALL ICONS BY DEFAULT (desktop + tablet) */
.rabota-page-icons {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* SHOW ONLY ON MOBILE PHONES (<=600px) */
@media (max-width: 600px) {

    /* Show the container on mobile */
    .rabota-page-icons {
        display: flex;
    }

    /* Hide individual icons initially */
    .rabota-page-icons > div {
        display: none;
        align-items: center;
        gap: 8px;
    }

    /* Set image size */
    .rabota-page-icons img {
        width: 22px;
        height: 22px;
        display: block;
    }

    /* =======================
       Show correct icon per page
       ======================= */

    /* Home page – page ID 16 */
    body.page-id-16 .icon-home {
        display: flex;
    }

    /* New ad page – page ID 14 */
    body.page-id-14 .icon-new-ad {
        display: flex;
    }

    /* Profile page – page ID 230 */
    body.page-id-230 .icon-account {
        display: flex;
    }
}
/* Hide on desktop */
.rabota-page-icons {
    display: none;
}

/* Show only on mobile */
@media (max-width: 600px) {
    .rabota-page-icons {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .rabota-page-icons img {
        width: 22px;
        height: 22px;
    }

    /* Page-specific icon display */
    body.page-id-16 .icon-home { display: flex !important; }
    body.page-id-14 .icon-new-ad { display: flex !important; }
    body.page-id-230 .icon-account { display: flex !important; }
}

.rabota6-under-header {
    width: 100%;
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
}

.rabota6-under-header .rabota6-language-bar {
    max-width: 1200px; /* match Astra container */
    margin: 0 auto;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* FORCE show mobile icons (override Yellow Pencil) */
.rabota-page-icons {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 9999 !important;
}
.your-filter-selector {
  position: fixed !important;
  z-index: 2147483647 !important;
}
.rabota6_ads_container,
.rabota6_main_content {
  margin-top: 90px !important;
}
.rabota6_ads_container,
.rabota6_main_content {
  position: relative !important;
  z-index: 1 !important;
  transform: none !important;
}
.rabota6-search-filters {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 10000 !important;
}
@media (max-width: 768px) {

  .rabota6-main-content {
    margin-top: 110px !important;
  }

  /* Optional safety if wrapper interferes */
  .rabota6-ads-container {
    position: relative !important;
    z-index: 1 !important;
  }

}

/* FORCE NORMAL FLOW – NO OVERLAY */
.rabota6-main-content,
.rabota6-ads-container {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: auto !important;
}

/* ENSURE FILTERS STAY ABOVE IN FLOW */
.rabota6-search-filters {
  position: relative !important;
  z-index: 2 !important;
}
@media (max-width: 768px) {
  .rabota6-main-content,
  .rabota6-ads-container {
    position: static !important;
  }
}
/* Hide top banner on desktop only */
@media screen and (min-width: 1024px) {
  .top-banner {
    display: none;
  }
}

/* =========================
   Pagination – WordPress
   ========================= */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Hover */
.pagination-wrapper .page-numbers:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Active page */
.pagination-wrapper .page-numbers.current {
    background: #111;
    color: #fff;
    border-color: #111;
    cursor: default;
}

/* Prev / Next */
.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
    font-weight: 600;
}

/* Disabled links */
.pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .pagination-wrapper .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    position: relative;
    overflow: visible;
}
.main-content,
.entry-content {
    overflow: visible;
}
/* Container styling */
.wp-paginate {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  font-family: Arial, sans-serif;
}

/* Page numbers */
.wp-paginate a {
  padding: 8px 12px;
  margin: 0 4px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

/* Active page */
.wp-paginate .current {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
}

/* Hover effect */
.wp-paginate a:hover {
  background: #0073aa;
  color: #fff;
}

