/* Additional Modern Styles for JobsLine Website */

/* ============= General ============= */
:root {
    --primary-color: #2563eb;           /* Bright blue */
    --primary-hover: #1d4ed8;           /* Darker blue for hover states */
    --secondary-color: #64748b;         /* Slate gray */
    --success-color: #10b981;           /* Green */
    --warning-color: #f59e0b;           /* Amber */
    --danger-color: #ef4444;            /* Red */
    --info-color: #3b82f6;              /* Blue */
    --light-color: #f1f5f9;             /* Very light gray */
    --dark-color: #1e293b;              /* Dark slate gray */
    --body-bg: #f8fafc;                 /* Very light blue-gray */
    --card-bg: #ffffff;                 /* White */
    --border-color: #e2e8f0;            /* Light gray */
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    background-color: var(--body-bg);
    color: var(--dark-color);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.highlight {
    color: var(--primary-color);
}

/* ============= Header ============= */
#header-wrapper {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

#logo:hover {
    text-decoration: none;
}

#nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link i {
    margin-right: 5px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* ============= Main Content Area ============= */
#main {
    padding: 30px 0;
}

.main-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.main-content {
    margin-bottom: 30px;
}

/* ============= Cards ============= */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    padding: 15px 20px;
    background-color: rgba(241, 245, 249, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.card-header h1, .card-header h2, .card-header h3 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background-color: rgba(241, 245, 249, 0.5);
    border-top: 1px solid var(--border-color);
}

/* ============= Job Search Form ============= */
.search-form {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-group {
    margin-bottom: 1rem;
    padding-right: 10px;
    padding-left: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--dark-color);
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--secondary-color);
    text-align: center;
    white-space: nowrap;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ============= Buttons ============= */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    color: var(--secondary-color);
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    color: var(--dark-color);
    background-color: var(--light-color);
}

.btn-success {
    color: #fff;
    background-color: var(--success-color);
    border: 1px solid var(--success-color);
}

.btn-success:hover {
    background-color: #0d9669;
    border-color: #0d9669;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0.3rem;
}

/* ============= Job Card ============= */
.job-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.job-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.job-card-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.job-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.job-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.job-location {
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.job-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.job-card-body {
    padding: 15px 20px;
}

.job-description {
    font-size: 0.95rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.job-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(241, 245, 249, 0.5);
}

.job-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.job-date i {
    margin-right: 5px;
}

.apply-button {
    text-align: right;
}

/* ============= Pagination ============= */
.pagination-container {
    margin: 30px 0;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pagination-info {
    text-align: center;
    color: var(--secondary-color);
}

.pagination-previous,
.pagination-next {
    flex: 0 0 auto;
}

.pagination-jump {
    margin-top: 15px;
}

.jump-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jump-form label {
    margin-right: 10px;
    margin-bottom: 0;
    font-weight: 600;
}

/* ============= Sidebar ============= */
.sidebar-content {
    margin-bottom: 30px;
}

.sidebar-content .card {
    margin-bottom: 20px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.category-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
    text-decoration: none;
}

.category-link i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.tip-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tip-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tip-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.tip-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* ============= Welcome Page Styles ============= */
.welcome-message {
    margin-bottom: 30px;
}

.welcome-message .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 20px;
}

.cta-button {
    margin: 30px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

.category-box {
    display: block;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-box:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.about-section {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.features {
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* ============= Footer ============= */
#footer-wrapper {
    background-color: var(--dark-color);
    color: #e2e8f0;
    padding: 50px 0 20px;
}

.footer-categories {
    margin-bottom: 30px;
}

.footer-categories h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links .link-list li {
    margin-bottom: 8px;
}

.footer-links .link-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-links .link-list a:hover {
    color: white;
    text-decoration: none;
}

.copyright-section {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-section p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    text-decoration: none;
}

.copyright-section a:hover {
    color: white;
    text-decoration: none;
}

.api-attribution {
    margin-top: 20px;
    text-align: center;
}

.api-attribution a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.api-attribution a:hover {
    color: white;
}

.api-attribution span {
    margin-right: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
}

/* ============= Responsive Adjustments ============= */
@media (max-width: 992px) {
    .main-row .sidebar,
    .main-row .main-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-group.col-md-4,
    .form-group.col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    #header {
        flex-direction: column;
        text-align: center;
    }
    
    #logo {
        margin-bottom: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    #nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }
    
    #nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .form-group.col-md-4,
    .form-group.col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-info {
        order: -1;
    }
    
    .pagination-jump {
        width: 100%;
    }
    
    .footer-links div[class^="col-"] {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .job-card-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .apply-button {
        width: 100%;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Error Messages */
.error-message {
    color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 30px;
}

.no-results i {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-results .lead {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.suggestions h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.suggestions ul {
    padding-left: 20px;
}

.suggestions li {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-md-right { text-align: right; }
.text-muted { color: var(--secondary-color); }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.d-none { display: none; }
.d-md-block { display: block; }

/* Fix for the main layout - simplified approach */

/* Reset the layout to the basics */
#main .container .row.main-row {
  display: block;
  width: 100%;
  clear: both;
  overflow: hidden; /* Clearfix */
}

/* Simple two-column layout */
#main .container .row.main-row .sidebar {
  width: 33.333%;
  float: left;
  box-sizing: border-box;
  padding-right: 15px;
}

#main .container .row.main-row .main-content {
  width: 66.667%;
  float: left;
  box-sizing: border-box;
  padding-left: 15px;
}

/* Basic mobile breakpoint */
@media (max-width: 767px) {
  #main .container .row.main-row .sidebar,
  #main .container .row.main-row .main-content {
    width: 100%;
    float: none;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Show content first on mobile */
  #main .container .row.main-row .sidebar {
    margin-top: 20px;
  }
}


/* Minimal Ad Container Fixes */

/* Banner ad container */
.banner-ad-container {
  width: 100%;
  margin: 15px auto;
  text-align: center;
  overflow: hidden;
  clear: both;
}

/* Ensure ads don't break layout */
ins.adsbygoogle {
  box-sizing: border-box;
}

/* Card styles for consistency */
.card {
  margin-bottom: 20px;
}

.card-header {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.card-body {
  padding: 15px;
}

/* Site-wide container fixes */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Column fixes */
.categories-card .col-6 {
  width: 50%;
  float: left;
}

/* Clear floats */
.categories-card .row::after {
  content: "";
  display: table;
  clear: both;
}

/* Force the main row to use flexbox properly */
#main .container .row.main-row {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

/* Fix sidebar width */
#main .container .row.main-row .sidebar,
#main .container .row.main-row .col-md-4 {
  width: 33.333% !important;
  float: none !important;
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  box-sizing: border-box !important;
  padding: 0 15px !important;
}

/* Fix main content width */
#main .container .row.main-row .main-content,
#main .container .row.main-row .col-md-8 {
  width: 66.667% !important;
  float: none !important;
  flex: 0 0 66.667% !important;
  max-width: 66.667% !important;
  box-sizing: border-box !important;
  padding: 0 15px !important;
}

/* Mobile breakpoint - stack columns */
@media (max-width: 767px) {
  #main .container .row.main-row {
    flex-direction: column !important;
  }
  
  #main .container .row.main-row .sidebar,
  #main .container .row.main-row .col-md-4,
  #main .container .row.main-row .main-content,
  #main .container .row.main-row .col-md-8 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
  }
}

/* Ad Display Fixes */
ins.adsbygoogle {
  box-sizing: border-box !important;
}

.ad-card.card {
  margin-bottom: 20px !important;
  overflow: hidden !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ad-card.card .card-body {
  padding: 0 !important;
}


/* Footer Width Fix */

/* Make footer take full width */
#footer-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 20px 0 !important;
  clear: both !important;
}

#footer-wrapper .container {
  width: 100% !important;
  max-width: 1200px !important; /* Match your site's container width */
  margin: 0 auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
}

#footer-wrapper .row {
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

/* Footer column fixes - ensure proper display */
#footer-wrapper .2u {
  box-sizing: border-box !important;
  padding: 0 15px !important;
}

/* Clear any floats before the footer */
#main::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* Fix container structure */
body {
  min-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fix main container */
.container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Fix page structure wrappers */
#main-wrapper, 
#header-wrapper, 
#banner-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Clear floats properly */
.container::after,
.row::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* Fix any copyright section */
#copyright {
  width: 100% !important;
  text-align: center !important;
  margin: 20px 0 10px 0 !important;
  padding: 15px 0 0 0 !important;
  border-top: 1px solid rgba(0,0,0,0.1) !important;
}

/* Simplified Pagination Styles (Without Visual Page Numbers) */

/* Page Jump Input */
.page-jump-form {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.page-jump-container {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.page-jump-input {
  width: 50px;
  height: 30px;
  padding: 0 8px;
  margin: 0 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.page-jump-button {
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 14px;
}

.page-jump-button:hover {
  background-color: #0056b3;
}

/* Overall pagination container */
.pagination-container {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

/* Existing pagination styles enhancement */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-previous,
.pagination-next {
  flex: 0 0 auto;
}

.pagination-info {
  flex: 1 1 auto;
  text-align: center;
}

.pagination-jump {
  flex: 1 1 auto;
  text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .pagination {
    flex-direction: column;
    gap: 15px;
  }
  
  .pagination-previous,
  .pagination-next,
  .pagination-info,
  .pagination-jump {
    width: 100%;
    text-align: center;
  }
}
/* Mobile Portrait Width Fix - Add to modern-styles.css */
/* Remove or replace the previous portrait mode fix with this cleaner version */

/* Target only portrait orientation on mobile devices */
@media (max-width: 767px) and (orientation: portrait) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  /* Make containers use more of the screen width */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }
  
  /* Fix row margins */
  .row, .main-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  
  /* Make columns use full width with minimal padding */
  .col,
  [class*="col-"],
  .sidebar,
  .main-content,
  .col-md-4,
  .col-md-8,
  .4u,
  .8u {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Make all cards and sections use full width */
  .card,
  section,
  .sidebar-content,
  .right-content,
  .job-card,
  .search-form,
  .job-search-section,
  .categories-card,
  .tips-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all elements use border-box sizing */
  * {
    box-sizing: border-box !important;
  }
}
/* Add top margin to cards for all layouts - Add to modern-styles.css */

/* Add top margin to all these cards in all layouts */
.categories-card,
.tips-card,
.job-search-section {
  margin-top: 20px !important;
}

/* Optional: If you want all cards to have consistent top margin */
.card {
  margin-top: 20px !important;
}

/* Mobile Landscape Width Fix - Add to modern-styles.css */

/* Target landscape orientation on mobile/tablet devices */
@media (max-width: 991px) and (orientation: landscape) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  /* Make containers use more of the screen width */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  
  /* Fix row margins */
  .row, .main-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  
  /* Make columns use full width */
  .col,
  [class*="col-"],
  .sidebar,
  .main-content,
  .col-md-4,
  .col-md-8,
  .4u,
  .8u {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Make all cards and sections use full width */
  .card,
  section,
  .sidebar-content,
  .right-content,
  .job-card,
  .search-form,
  .job-search-section,
  .categories-card,
  .tips-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Special handling for ad cards */
  .ad-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
  }
  
  .ad-card .card-body {
    width: 100% !important;
    padding: 10px !important;
    text-align: center !important;
  }
  
  /* Ensure all elements use border-box sizing */
  * {
    box-sizing: border-box !important;
  }
}