/**
 * Usit WAT Plugin - Frontend Styles
 * Version: 3.1.0
 *
 * Beautiful, theme-independent design for all CPTs
 */

/* ===================================
   GENERAL STYLES
   =================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.wrapper {
    width: 100%;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

#main-content {
    width: 100%;
}

p {
    text-align: left;
    color: #4d4d4d;
    margin-bottom: 1em;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* ===================================
   POSITION FILTERS
   =================================== */

#filters,
#old-filters {
    padding: 32px 0;
}

#filters select,
#old-filters select {
    border-radius: 4px;
    border: 1px solid #908e8e;
    padding: 5px 20px 5px 5px;
    font-size: 13px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="%23333" d="M0 0l6 8 6-8z"/></svg>') no-repeat right 10px center;
    background-color: #fff;
    margin-right: 15px;
    min-width: 150px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

#filters select:focus,
#old-filters select:focus {
    outline: none;
    border-color: #c0263a;
}

.filters {
    padding-left: 0 !important;
}

.reset-button {
    border-radius: 4px;
    border: 1px solid #C0263A;
    padding: 5px 10px;
    text-align: center;
    text-transform: uppercase;
    background-color: #C0263A;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.reset-button:hover,
.reset-button:focus {
    background-color: #fff;
    color: #C0263A;
    text-decoration: none;
}

.anchor-id-fix {
    position: absolute;
    top: -280px;
}

/* ===================================
   POSITION CARDS
   =================================== */

.more-positions-container {
    margin-top: 20px;
}

.position-card {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.position-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Heading (Red bar with position name, employer, price) */
.more-positions-container .row.heading-position {
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    padding: 25px 20px;
    margin: 0;
    border-radius: 0;
}

.more-positions-container .heading-position h2 {
    margin: 0;
    font-size: 28px !important;
    color: #fff;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.more-positions-container .heading-position .col-sm-12 h2 {
    text-align: center;
}

.more-positions-container .heading-position span.price {
    font-size: 42px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -1px;
}

.more-positions-container .heading-position span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
}

/* Content (White middle section with details) */
.more-positions-container .row.content-position {
    padding: 30px 20px;
    background: #fff;
    margin: 0;
}

.content-position .row > div {
    padding-top: 15px;
}

.content-position .thumbnail-fix {
    padding-bottom: 0;
    padding-top: 0;
    padding-left: 0 !important;
}

.content-position .thumbnail-fix .row > div {
    padding-top: 0;
}

.content-position .description {
    padding-bottom: 16px;
}

.content-position strong {
    color: #333;
    font-weight: 700;
    font-size: 14px;
}

.content-position .row {
    margin-bottom: 12px;
}

.content-position .row:last-child {
    margin-bottom: 0;
}

/* Footer (Gray bar with location, event, view details) */
.more-positions-container .row.footer-position {
    background: linear-gradient(135deg, #e8f0f5 0%, #d4e3ed 100%);
    margin: 0;
    padding: 20px;
    border-radius: 0;
}

.more-positions-container .row.footer-position h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0;
    font-size: 18px !important;
    line-height: 1.4;
    display: inline-block;
    margin: 0;
    font-weight: 700;
    color: #2c3e50;
}

.more-positions-container .row.footer-position .et-pb-icon {
    color: rgb(205, 36, 63);
    display: inline-block;
    font-size: 30px;
    padding-right: 8px;
    vertical-align: sub;
}

.more-positions-container .row.footer-position h4 a {
    color: #c0263a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.more-positions-container .row.footer-position h4 a:hover,
.more-positions-container .row.footer-position h4 a:focus {
    color: #8b1b2a;
    text-decoration: none;
    transform: translateX(4px);
}

.more-positions-container .row.footer-position .et-pb-icon.et_pb_animation_top {
    vertical-align: middle;
    font-size: 16px;
    padding-right: 0;
}

.more-positions-container .row.footer-position .text-center,
.more-positions-container .row.footer-position .text-right {
    text-align: left;
}

.employer-details-link {
    font-weight: 700;
    background: #c0263a;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(192, 38, 58, 0.2);
}

.employer-details-link:hover {
    background: #8b1b2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 38, 58, 0.3);
}

/* Thumbnails */
.more-positions-container .attachment-post-thumbnail {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* No results message */
.no-result {
    padding: 40px 20px;
    display: block;
    font-size: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #c0263a;
    font-weight: 700;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ===================================
   SINGLE POSITION PAGE
   =================================== */

.page-title-container h1 span {
    display: block;
    font-size: 15px;
    text-transform: none;
}

.page-title-container {
    margin-bottom: 30px;
}

span.location {
    position: relative;
    padding-left: 20px;
    display: inline-block;
}

span.location:before {
    content: '';
    display: block;
    width: 13px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20"><path fill="%23c0263a" d="M6.5 0C2.9 0 0 2.9 0 6.5c0 4.9 6.5 13.5 6.5 13.5S13 11.4 13 6.5C13 2.9 10.1 0 6.5 0zm0 9c-1.4 0-2.5-1.1-2.5-2.5S5.1 4 6.5 4 9 5.1 9 6.5 7.9 9 6.5 9z"/></svg>') no-repeat left center;
}

.employes-content p {
    text-align: left;
}

.employes-content > .et_pb_section > .et_pb_row {
    width: 100%;
}

/* ===================================
   EMPLOYERS PAGE
   =================================== */

.employers-container .employers-row {
    padding-top: 20px;
    padding-bottom: 30px;
    border-top: 1px solid #c9cac3;
}

.employers-container .employers-row h2 {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 15px;
}

.employers-container .employers-row h2 a {
    font-size: 20px;
    color: #703771;
    text-decoration: none;
}

.employers-container .employers-row h2 a:hover {
    text-decoration: underline;
}

.employers-container .employers-row .location {
    margin-bottom: 25px;
    display: block;
}

.employers-container .employers-row .employes-content {
    margin-bottom: 25px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (min-width: 1281px) {
    .container {
        width: 1280px;
        max-width: 1280px;
    }
}

@media (max-width: 1199px) {
    .more-positions-container .heading-position > div > h2,
    .more-positions-container .heading-position > div {
        padding: 0;
    }

    .content-position .thumbnail-fix,
    .content-position .thumbnail-fix .row > div {
        padding-right: 0;
    }

    .content-position .thumbnail-fix {
        overflow: hidden;
    }

    .more-positions-container .attachment-post-thumbnail {
        max-width: 100%;
        height: auto;
    }

    .more-positions-container .row.content-position {
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        padding-bottom: 15px;
    }

    .more-positions-container .row.footer-position .text-center,
    .more-positions-container .row.footer-position .text-right,
    .more-positions-container .row.footer-position {
        text-align: left;
    }

    .more-positions-container .row.footer-position h4 {
        font-size: 21px !important;
    }

    .more-positions-container .row.heading-position {
        padding-top: 10px;
    }

    .more-positions-container .heading-position .col-sm-12 h2 {
        text-align: left;
    }

    .more-positions-container .heading-position h2 {
        font-size: 25px !important;
        line-height: 31px;
    }

    .more-positions-container .heading-position span.price {
        font-size: 39px;
        line-height: 44px;
    }

    .more-positions-container .col-sm-6 {
        width: 100%;
    }

    .employer-details-link {
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }

    #old-filters select,
    #filters select {
        width: 100% !important;
        max-width: 270px;
        margin-bottom: 15px;
    }

    .employes-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    #filter,
    .anchor-id-fix {
        position: absolute;
        top: -180px;
    }

    .more-positions-container .heading-position h2 {
        font-size: 20px !important;
        line-height: 26px;
    }

    .more-positions-container .heading-position span.price {
        font-size: 32px;
        line-height: 36px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Hidden elements */
#width_tmp_select,
#width_tmp_select_position,
#width_tmp_select_events,
#width_tmp_select_states,
#width_tmp_select_locations {
    display: none;
}

/* ===================================
   SINGLE EMPLOYER PAGE
   =================================== */

.usit-employer-header {
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(192, 38, 58, 0.2);
}

.usit-employer-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.usit-employer-logo {
    flex-shrink: 0;
}

.usit-employer-logo img {
    max-width: 180px;
    height: auto;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.usit-employer-info {
    flex: 1;
}

.usit-employer-title {
    color: #fff;
    font-size: 42px;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usit-employer-location {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-icon {
    font-size: 20px;
}

.usit-employer-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.usit-employer-content p:last-child {
    margin-bottom: 0;
}

.usit-positions-section {
    margin-top: 60px;
}

.usit-section-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c0263a;
    font-weight: 700;
}

.usit-no-positions {
    background: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.usit-no-positions p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Page Title Container */
.page-title-container {
    margin-bottom: 40px;
}

.page-title-container h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-title-container .description {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ===================================
   RESPONSIVE - EMPLOYER PAGE
   =================================== */

@media (max-width: 768px) {
    .usit-employer-header {
        padding: 25px;
    }

    .usit-employer-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .usit-employer-logo img {
        max-width: 140px;
    }

    .usit-employer-title {
        font-size: 28px;
    }

    .usit-employer-location {
        justify-content: center;
        font-size: 16px;
    }

    .usit-employer-content {
        padding: 25px;
    }

    .usit-section-title {
        font-size: 24px;
    }

    .page-title-container h1 {
        font-size: 28px;
    }

    .page-title-container .description {
        font-size: 16px;
    }
}

/* ===================================
   ARCHIVE PAGES
   =================================== */

.usit-archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #c0263a;
}

.usit-archive-header h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 800;
}

.usit-archive-header .description {
    font-size: 20px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* States & Locations Grid */
.usit-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.usit-state-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.usit-state-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.usit-state-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.usit-state-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.usit-state-card:hover .usit-state-thumbnail img {
    transform: scale(1.05);
}

.usit-state-content {
    padding: 25px;
}

.usit-state-title {
    font-size: 26px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.usit-state-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.usit-state-title a:hover {
    color: #c0263a;
}

.usit-state-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.usit-state-meta {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.usit-positions-count {
    font-size: 16px;
    color: #666;
}

.usit-positions-count strong {
    font-size: 28px;
    color: #c0263a;
    display: block;
    margin-bottom: 5px;
    font-weight: 800;
}

.usit-state-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(192, 38, 58, 0.2);
}

.usit-state-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 38, 58, 0.3);
    text-decoration: none;
    color: #fff;
}

/* Events Grid */
.usit-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.usit-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.usit-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.usit-event-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
}

.usit-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.usit-event-card:hover .usit-event-thumbnail img {
    transform: scale(1.05);
    opacity: 1;
}

.usit-event-content {
    padding: 30px;
}

.usit-event-title {
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.usit-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.usit-event-title a:hover {
    color: #c0263a;
}

.usit-event-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.usit-event-meta {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    text-align: center;
}

.usit-event-button {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(192, 38, 58, 0.2);
}

.usit-event-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 38, 58, 0.3);
    text-decoration: none;
    color: #fff;
}

/* Position Types Grid */
.usit-postype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.usit-postype-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.usit-postype-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.usit-postype-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    padding: 10px;
}

.usit-postype-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.usit-postype-title {
    font-size: 22px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.usit-postype-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.usit-postype-title a:hover {
    color: #c0263a;
}

.usit-postype-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.usit-postype-count {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.usit-postype-count strong {
    font-size: 24px;
    color: #c0263a;
    display: block;
    margin-bottom: 5px;
    font-weight: 800;
}

.usit-postype-link {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(192, 38, 58, 0.2);
}

.usit-postype-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(192, 38, 58, 0.3);
    text-decoration: none;
    color: #fff;
}

/* Employers Grid */
.usit-employers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.usit-employer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.usit-employer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.usit-employer-card-inner {
    padding: 30px;
}

.usit-employer-logo-small {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usit-employer-logo-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.usit-employer-card-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-align: center;
}

.usit-employer-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.usit-employer-card-title a:hover {
    color: #c0263a;
}

.usit-employer-location-small {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.usit-employer-excerpt-small {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    font-size: 14px;
}

.usit-employer-card-meta {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.usit-positions-badge strong {
    font-size: 28px;
    color: #c0263a;
    display: block;
    margin-bottom: 5px;
    font-weight: 800;
}

.usit-employer-card-button {
    display: block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(192, 38, 58, 0.2);
}

.usit-employer-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 38, 58, 0.3);
    text-decoration: none;
    color: #fff;
}

.usit-no-results {
    background: #fff;
    padding: 80px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.usit-no-results p {
    font-size: 20px;
    color: #666;
    margin: 0;
}

/* ===================================
   RESPONSIVE - ARCHIVES
   =================================== */

@media (max-width: 768px) {
    .usit-archive-header h1 {
        font-size: 32px;
    }

    .usit-archive-header .description {
        font-size: 16px;
    }

    .usit-states-grid,
    .usit-events-grid,
    .usit-postype-grid,
    .usit-employers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .usit-event-thumbnail {
        height: 180px;
    }

    .usit-event-content,
    .usit-employer-card-inner {
        padding: 20px;
    }
}

/* ===================================
   SINGLE CPT PAGES (Position Types, Events, States, Locations)
   =================================== */

/* Single Position Type */
.usit-postype-header {
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(192, 38, 58, 0.2);
}

.usit-postype-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.usit-postype-icon-large {
    flex-shrink: 0;
}

.usit-postype-icon-large img {
    max-width: 140px;
    height: auto;
    background: #fff;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.usit-postype-info {
    flex: 1;
}

.usit-postype-header .usit-postype-title {
    color: #fff;
    font-size: 42px;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usit-postype-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.usit-postype-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.usit-postype-content p:last-child {
    margin-bottom: 0;
}

/* Single Event */
.usit-event-header-single {
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(192, 38, 58, 0.2);
}

.usit-event-header-single .usit-event-header-content {
    display: flex;
    align-items: center;
    gap: 0;
}

.usit-event-image-large {
    flex-shrink: 0;
    width: 350px;
}

.usit-event-image-large img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.usit-event-info {
    flex: 1;
    padding: 40px;
}

.usit-event-title {
    color: #fff;
    font-size: 42px;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usit-event-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.usit-event-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.usit-event-content p:last-child {
    margin-bottom: 0;
}

/* Single State */
.usit-state-header-single {
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(192, 38, 58, 0.2);
}

.usit-state-header-single .usit-state-header-content {
    display: flex;
    align-items: center;
    gap: 0;
}

.usit-state-image-large {
    flex-shrink: 0;
    width: 400px;
}

.usit-state-image-large img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.usit-state-info {
    flex: 1;
    padding: 40px;
}

.usit-state-title {
    color: #fff;
    font-size: 48px;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usit-state-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.usit-state-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.usit-state-content p:last-child {
    margin-bottom: 0;
}

/* Single Location */
.usit-location-header-single {
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(192, 38, 58, 0.2);
}

.usit-location-header-single .usit-location-header-content {
    display: flex;
    align-items: center;
    gap: 0;
}

.usit-location-image-large {
    flex-shrink: 0;
    width: 400px;
}

.usit-location-image-large img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.usit-location-info {
    flex: 1;
    padding: 40px;
}

.usit-location-title {
    color: #fff;
    font-size: 48px;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usit-location-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.usit-location-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.usit-location-content p:last-child {
    margin-bottom: 0;
}

/* Section Titles for Single Pages */
.usit-section-title .usit-count {
    color: #666;
    font-size: 24px;
    font-weight: 400;
    margin-left: 10px;
}

/* ===================================
   RESPONSIVE - SINGLE CPT PAGES
   =================================== */

@media (max-width: 768px) {
    .usit-postype-header,
    .usit-event-header-single,
    .usit-state-header-single,
    .usit-location-header-single {
        padding: 25px;
    }

    .usit-postype-header-content,
    .usit-event-header-single .usit-event-header-content,
    .usit-state-header-single .usit-state-header-content,
    .usit-location-header-single .usit-location-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .usit-postype-icon-large img {
        max-width: 100px;
    }

    .usit-event-image-large,
    .usit-state-image-large,
    .usit-location-image-large {
        width: 100%;
    }

    .usit-event-image-large img,
    .usit-state-image-large img,
    .usit-location-image-large img {
        height: 200px;
    }

    .usit-event-info,
    .usit-state-info,
    .usit-location-info {
        padding: 25px;
    }

    .usit-postype-header .usit-postype-title,
    .usit-event-title,
    .usit-state-title,
    .usit-location-title {
        font-size: 28px;
    }

    .usit-postype-content,
    .usit-event-content,
    .usit-state-content,
    .usit-location-content {
        padding: 25px;
    }

    .usit-section-title .usit-count {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ===================================
   PAGINATION
   =================================== */

.pagination,
.posts-pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 30px 0;
    padding: 30px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.posts-pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination .page-numbers:hover,
.posts-pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    background: #c0263a;
    color: #fff;
    border-color: #c0263a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 38, 58, 0.2);
}

.pagination .page-numbers.current,
.posts-pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: linear-gradient(135deg, #c0263a 0%, #8b1b2a 100%);
    color: #fff;
    border-color: #c0263a;
    box-shadow: 0 4px 12px rgba(192, 38, 58, 0.3);
    cursor: default;
}

.pagination .page-numbers.dots,
.posts-pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
    color: #999;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.posts-pagination .page-numbers.prev,
.posts-pagination .page-numbers.next,
.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    font-weight: 700;
    padding: 0 20px;
}

/* WordPress default pagination classes */
.nav-links .prev.page-numbers:before {
    content: '← ';
    margin-right: 5px;
}

.nav-links .next.page-numbers:after {
    content: ' →';
    margin-left: 5px;
}

/* ===================================
   THEME OVERRIDES & FIXES
   =================================== */

/* Fix Divi theme's pseudo-element line (that vertical separator line) */
/* Apply to ALL custom post type pages (archive and single) - ALL screen sizes */
.post-type-archive-positions #main-content .container:before,
.post-type-archive-employers #main-content .container:before,
.post-type-archive-states #main-content .container:before,
.post-type-archive-locations #main-content .container:before,
.post-type-archive-events #main-content .container:before,
.post-type-archive-positiontype #main-content .container:before,
.single-positions #main-content .container:before,
.single-employers #main-content .container:before,
.single-states #main-content .container:before,
.single-locations #main-content .container:before,
.single-events #main-content .container:before,
.single-positiontype #main-content .container:before,
.et_right_sidebar.post-type-archive-positions #main-content .container:before,
.et_right_sidebar.post-type-archive-employers #main-content .container:before,
.et_right_sidebar.post-type-archive-states #main-content .container:before,
.et_right_sidebar.post-type-archive-locations #main-content .container:before,
.et_right_sidebar.post-type-archive-events #main-content .container:before,
.et_right_sidebar.post-type-archive-positiontype #main-content .container:before,
.et_right_sidebar.single-positions #main-content .container:before,
.et_right_sidebar.single-employers #main-content .container:before,
.et_right_sidebar.single-states #main-content .container:before,
.et_right_sidebar.single-locations #main-content .container:before,
.et_right_sidebar.single-events #main-content .container:before,
.et_right_sidebar.single-positiontype #main-content .container:before {
    display: none !important;
    content: none !important;
    /* Override any positioning properties that might be set */
    right: auto !important;
    left: auto !important;
    width: 0 !important;
    height: 0 !important;
}

/* Extra override for larger screens where Divi might add the line */
@media (min-width: 981px) {
    .et_right_sidebar #main-content .container:before,
    .et_right_sidebar.post-type-archive-positions #main-content .container:before,
    .et_right_sidebar.post-type-archive-employers #main-content .container:before,
    .et_right_sidebar.post-type-archive-states #main-content .container:before,
    .et_right_sidebar.post-type-archive-locations #main-content .container:before,
    .et_right_sidebar.post-type-archive-events #main-content .container:before,
    .et_right_sidebar.post-type-archive-positiontype #main-content .container:before,
    .et_right_sidebar.single-positions #main-content .container:before,
    .et_right_sidebar.single-employers #main-content .container:before,
    .et_right_sidebar.single-states #main-content .container:before,
    .et_right_sidebar.single-locations #main-content .container:before,
    .et_right_sidebar.single-events #main-content .container:before,
    .et_right_sidebar.single-positiontype #main-content .container:before {
        display: none !important;
        content: none !important;
        right: auto !important;
        left: auto !important;
        width: 0 !important;
        height: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Ensure full-width container (no sidebar) */
.post-type-archive-positions #main-content .container,
.post-type-archive-employers #main-content .container,
.post-type-archive-states #main-content .container,
.post-type-archive-locations #main-content .container,
.post-type-archive-events #main-content .container,
.post-type-archive-positiontype #main-content .container,
.single-positions #main-content .container,
.single-employers #main-content .container,
.single-states #main-content .container,
.single-locations #main-content .container,
.single-events #main-content .container,
.single-positiontype #main-content .container {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Override theme sidebar constraints */
.post-type-archive-positions #left-area,
.post-type-archive-employers #left-area,
.post-type-archive-states #left-area,
.post-type-archive-locations #left-area,
.post-type-archive-events #left-area,
.post-type-archive-positiontype #left-area,
.single-positions #left-area,
.single-employers #left-area,
.single-states #left-area,
.single-locations #left-area,
.single-events #left-area,
.single-positiontype #left-area {
    width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination,
    .posts-pagination,
    .nav-links {
        gap: 6px;
        margin: 30px 0 20px 0;
        padding: 20px 0;
    }

    .pagination .page-numbers,
    .posts-pagination .page-numbers,
    .nav-links .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0 12px;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next,
    .posts-pagination .page-numbers.prev,
    .posts-pagination .page-numbers.next,
    .nav-links .page-numbers.prev,
    .nav-links .page-numbers.next {
        padding: 0 15px;
    }
}
