/*-----------------------------------------------------------------------------------------------------------
# ARTICLE IMPROVEMENTS: Typography, Contrast, Sidebar reserve
# - H1 darker and bolder
# - Body copy darker for better contrast
# - H2/H3 increased top spacing
# - Reserve space for Featured Jobs to prevent CLS
-----------------------------------------------------------------------------------------------------------*/
.entry-title, h1.entry-title { color: #222222 !important; font-weight: 700 !important; }
.entry-content, .entry-content p { color: #222222 !important; }
.entry-content h2, .entry-content h3 { margin-top: 2rem !important; }
#secondary .mb-section--featured-jobs, .mb-section--featured-jobs { min-height: 360px; }
.single-post #secondary { margin-top: 0; padding-top: 0; }
/* .single-post #primary {
    width: calc(100% - 340px) !important;
    max-width: none !important;
    margin-right: 40px !important;
    float: left;
} */

.wrapper, .wrapper.wpb_column, .single .site-content {
    width: 100%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    outline: 0;
    float: none;
    position: relative;
    overflow: hidden;
}

/*-----------------------------------------------------------------------------------------------------------
# INLINE FEATURED ARTICLES - "Also on Mediabistro" Visual Module
# - Grid layout with card design
# - Background color with border for visual prominence
# - Thumbnail images with hover effects
# - Encourages internal clicks
-----------------------------------------------------------------------------------------------------------*/
#inline-featured-articles.ifa-module {
    float: right;
    width: 340px;
    margin-bottom: 22px;
    margin-left: 22px;
    padding: 16px;
    background-color: #f9f9f9;
    border: 2px solid #ef4129;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(239, 65, 41, 0.1);
}

#inline-featured-articles.ifa-module .ifa-title {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 16px 0;
    font-family: "Proxima Nova", "proxima_novabold", "proxima_novaregular", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ef4129;
    padding-bottom: 10px;
}

#inline-featured-articles.ifa-module .ifa-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#inline-featured-articles.ifa-module .ifa-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e4e4e4;
    transition: all 0.3s ease;
    cursor: pointer;
}

#inline-featured-articles.ifa-module .ifa-card:hover {
    border-color: #ef4129;
    box-shadow: 0 4px 12px rgba(239, 65, 41, 0.15);
    transform: translateY(-2px);
}

#inline-featured-articles.ifa-module .ifa-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #e4e4e4;
}

#inline-featured-articles.ifa-module .ifa-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#inline-featured-articles.ifa-module .ifa-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#inline-featured-articles.ifa-module .ifa-title-text {
    font-size: 13px;
    line-height: 1.4;
    color: #333333;
    font-weight: 600;
    font-family: "Proxima Nova", "proxima_novaregular", Helvetica, Arial, sans-serif;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    max-height: 2.8em;
}

#inline-featured-articles.ifa-module .ifa-card:hover .ifa-title-text {
    color: #ef4129;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    #inline-featured-articles.ifa-module {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 22px;
    }
}

/*-----------------------------------------------------------------------------------------------------------
# REGISTRATION FORM STYLING (Applied to Checkout)
-----------------------------------------------------------------------------------------------------------*/

/* Form container */
.mb-form,
.account-section {
    float: left;
    width: 100%;
}

/* Form labels */
.mb-form label,
.account-section label {
    display: block;
    clear: both;
    width: 300px;
    padding-right: 20px;
    font-family: "proxima_novabold", "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 3px;
    color: #4f5458;
}

/* Form inputs, selects, textareas */
.mb-form input[type=text],
.mb-form input[type=subject],
.mb-form input[type=tel],
.mb-form input[type=email],
.mb-form input[type=text],
.mb-form input[type=password],
.mb-form .select2-container,
.account-section input[type=text],
.account-section input[type=subject],
.account-section input[type=tel],
.account-section input[type=email],
.account-section input[type=text],
.account-section input[type=password],
.account-section .select2-container {
    display: block;
    clear: both;
    width: 300px !important;
    padding-right: 20px;
    font-size: 16px;
    margin-bottom: 30px;
    color: #4f5458;
    font-family: "proxima_novaregular", Helvetica, Arial, sans-serif;
    padding: 8px 10px;
    margin-bottom: 30px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Third column layout for 3-column forms */
.third {
    width: 32%;
    margin-right: 2%;
    float: left;
}

.third.last {
    margin-right: 0;
}

/* Form group attached styling */
.form-group-attached {
    margin-bottom: 20px;
}

/*-----------------------------------------------------------------------------------------------------------
# CHECKOUT FORM STYLING (Updated to match registration)
-----------------------------------------------------------------------------------------------------------*/

/* Apply registration form styling to checkout */
.woocommerce-checkout .woocommerce-billing-fields {
    float: left;
    width: 100%;
}

.woocommerce-error a {
    color: #fff;
}
.show-password-input {
    display: none;
}

.cart_item td {
    border-top: 1px solid #ef4129;
    border-bottom: 1px solid #ef4129;
}

.coupon {
    float: right;
    clear: both;
}

.pull-left, .pull-right {
    display: inline;
} 
.pull-right { 
    float: right; 
}  
/* Checkout form input fields - updated to match registration */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    display: block;
    clear: both;
    width: 300px;
    padding: 8px 10px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'proxima_novaregular', Helvetica, Arial, sans-serif;
    color: #4f5458;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 30px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    outline: none;
    border-color: #ef4129;
    box-shadow: 0 0 0 3px rgba(239, 65, 41, 0.1);
    background-color: #ffffff;
}

.woocommerce-checkout input[type="text"]:hover,
.woocommerce-checkout input[type="email"]:hover,
.woocommerce-checkout input[type="tel"]:hover,
.woocommerce-checkout input[type="password"]:hover,
.woocommerce-checkout textarea:hover,
.woocommerce-checkout select:hover {
    border-color: #cccccc;
}

/* Select dropdown styling */
.woocommerce-checkout select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.woocommerce-checkout select option {
    padding: 8px;
    background-color: #ffffff;
    color: #4f5458;
}

/* Placeholder text styling */
.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder {
    color: #999999;
    font-style: italic;
}

/* Form labels - updated to match registration */
.woocommerce-checkout label {
    display: block;
    clear: both;
    width: 300px;
    padding-right: 20px;
    font-family: 'proxima_novabold', 'proxima_novaregular', Helvetica, Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 3px;
    color: #4f5458;
}

/* Required field indicator */
.woocommerce-checkout .required {
    color: #ef4129;
}

/* Form field containers */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    /* width: 48%; */
    float: left;
}

.woocommerce-checkout .form-row-last {
    float: right;
}

.woocommerce-checkout .form-row-wide {
    clear: both;
}

.form-row:nth-child(3n+3) input, .form-row:nth-child(3n+3) label {
    margin:0;
}

.form-row:nth-child(3n+1) input, .form-row:nth-child(3n+1) label {
    float: none;
}

.mb-form label[for=fm_state], .mb-form #s2id_fm_state, .mb-form label[for=billing_state], .mb-form #billing_state, .account-section label[for=fm_state], .account-section #s2id_fm_state, .account-section label[for=billing_state], .account-section #billing_state {
    max-width: 300px;
    width: inherit;
}

/* Error states */
.woocommerce-checkout .woocommerce-invalid input,
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce-checkout .woocommerce-invalid textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.woocommerce-checkout .woocommerce-invalid input:focus,
.woocommerce-checkout .woocommerce-invalid select:focus,
.woocommerce-checkout .woocommerce-invalid textarea:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Success states */
.woocommerce-checkout .woocommerce-validated input,
.woocommerce-checkout .woocommerce-validated select,
.woocommerce-checkout .woocommerce-validated textarea {
    border-color: #28a745;
}

/*-----------------------------------------------------------------------------------------------------------
# COUPON FORM STYLING
-----------------------------------------------------------------------------------------------------------*/

/* Make coupon form float right */
.checkout_coupon,
.checkout_coupon.gray-background {
    float: right !important;
    clear: both;
    width: 376px;
    padding: 0 20px 20px;
}

.checkout_coupon.gray-background input[type=text] {
    width: 241px;
}

/* Checkout form rows - updated for 3-column layout like registration */
.checkout-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.checkout-row .form-row {
    flex: 1;
    margin-bottom: 0 !important;
}

.checkout-row-1 .form-row {
    flex: 1;
}

/* Make row 1 use third columns like registration */
.checkout-row-1 {
    display: flex;
    gap: 2%;
    margin-bottom: 20px;
    align-items: flex-start;
}

.checkout-row-1 .form-row {
    flex: 0 0 32%;
    margin-bottom: 0 !important;
}

.checkout-row-2 .form-row {
    flex: 1;
}

/* Make row 2 also use third columns */
.checkout-row-2 {
    display: flex;
    gap: 2%;
    margin-bottom: 20px;
    align-items: flex-start;
}

.checkout-row-2 .form-row {
    flex: 0 0 32%;
    margin-bottom: 0 !important;
}

.checkout-row-3 .form-row {
    width: 100%;
}

/* Responsive adjustments for checkout rows */
@media (max-width: 768px) {
    .checkout-row,
    .checkout-row-1,
    .checkout-row-2 {
        flex-direction: column;
        gap: 10px;
    }

    .checkout-row .form-row,
    .checkout-row-1 .form-row,
    .checkout-row-2 .form-row {
        width: 100%;
        flex: none;
    }

    .woocommerce-checkout input[type="text"],
    .woocommerce-checkout input[type="email"],
    .woocommerce-checkout input[type="tel"],
    .woocommerce-checkout input[type="password"],
    .woocommerce-checkout textarea,
    .woocommerce-checkout select,
    .mb-form input[type=text],
    .mb-form input[type=email],
    .mb-form input[type=tel],
    .account-section input[type=text],
    .account-section input[type=email],
    .account-section input[type=tel] {
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
    }

    .woocommerce-checkout label,
    .mb-form label,
    .account-section label {
        width: 100%;
    }
}

/*-----------------------------------------------------------------------------------------------------------
# DASHBOARD NAVIGATION STYLING
-----------------------------------------------------------------------------------------------------------*/

/* Desktop Navigation */
.dashboard-page-nav.wide-page-row {
    margin-bottom: 20px;
}

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-nav .nav-item {
    flex: 1;
    min-width:135px;
}

.dashboard-nav .nav-item a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #4f5458;
    font-family: "proxima_novabold", "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border-right: 1px solid #e1e1e1;
    position: relative;
}

.dashboard-nav .nav-item:last-child a {
    border-right: none;
}

.dashboard-nav .nav-item a:hover {
    background: #ef4129;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 65, 41, 0.3);
}

.dashboard-nav .nav-item a:active {
    transform: translateY(0);
}

/* Mobile Navigation */
.dashboard-nav-small {
    display: none;
    margin-top: 15px;
}

.dashboard-nav-small .select2-container {
    width: 100% !important;
    max-width: 400px;
}

.dashboard-nav-small .select2-container--default .select2-selection--single {
    height: 48px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    font-family: "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #4f5458;
    padding: 0 15px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.dashboard-nav-small .select2-container--default .select2-selection--single:hover {
    border-color: #cccccc;
}

.dashboard-nav-small .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #ef4129;
    box-shadow: 0 0 0 3px rgba(239, 65, 41, 0.1);
    outline: none;
}

.dashboard-nav-small .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #4f5458;
    line-height: 44px;
    padding: 0;
    font-weight: 500;
}

.dashboard-nav-small .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999999;
    font-style: italic;
}

.dashboard-nav-small .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 15px;
    top: 2px;
}

.dashboard-nav-small .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #666 transparent transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    height: 0;
    left: 50%;
    margin-left: -6px;
    margin-top: -3px;
    position: absolute;
    top: 50%;
    width: 0;
}

.dashboard-nav-small .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #666 transparent;
    border-width: 0 6px 6px 6px;
}

.dashboard-nav-small .select2-dropdown {
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: -2px;
}

.dashboard-nav-small .select2-container--default .select2-results__option {
    padding: 12px 15px;
    font-family: "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #4f5458;
    background: #fff;
    transition: background 0.2s ease;
}

.dashboard-nav-small .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #ef4129;
    color: #fff;
}

.dashboard-nav-small .select2-container--default .select2-results__option[aria-selected=true] {
    background: #f8f8f8;
    color: #4f5458;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-nav {
        display: none;
    }

    .dashboard-nav-small {
        display: block;
    }

    .dashboard-nav .nav-item {
        flex: 1 1 100%;
        border-bottom: 1px solid #e1e1e1;
    }

    .dashboard-nav .nav-item:last-child a {
        border-right: none;
        border-bottom: none;
    }

    .dashboard-nav .nav-item a {
        border-right: none;
        text-align: left;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-nav .nav-item a {
        font-size: 13px;
        padding: 10px 12px;
    }

    .dashboard-nav-small .select2-container--default .select2-selection--single {
        height: 44px;
        font-size: 15px;
    }

    .dashboard-nav-small .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 40px;
    }
}

/* Form Content Styling */
.form-content {
    margin-top: 15px !important;
    padding: 20px !important;
    background: #f9f9f9 !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.form-content h3 {
    margin-top: 0;
    color: #4f5458;
    font-family: "proxima_novabold", "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
}

.form-content .form-group {
    margin-bottom: 15px;
}

.form-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4f5458;
    font-family: "proxima_novabold", "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.form-content input[type="text"],
.form-content input[type="date"],
.form-content input[type="number"],
.form-content select,
.form-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #4f5458;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-content input[type="text"]:focus,
.form-content input[type="date"]:focus,
.form-content input[type="number"]:focus,
.form-content select:focus,
.form-content textarea:focus {
    outline: none;
    border-color: #ef4129;
    box-shadow: 0 0 0 2px rgba(239, 65, 41, 0.1);
}

.form-content .submit-row {
    text-align: right;
    margin-top: 20px;
}

.form-content input[type="submit"] {
    background: #ef4129;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: "proxima_novabold", "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-content input[type="submit"]:hover {
    background: #d63a2a;
}

/* Mobile Form Content */
@media (max-width: 768px) {
    .form-content {
        margin: 10px 0 !important;
        padding: 15px !important;
    }

    .form-content h3 {
        font-size: 16px;
    }
}

/*-----------------------------------------------------------------------------------------------------------
# DASHBOARD ANNOUNCEMENTS & PRIORITIES STYLING
-----------------------------------------------------------------------------------------------------------*/

/* My Work Priorities Title */
.dashboard-page-announcements.wide-page-row {
    margin-bottom: 15px;
    padding: 0;
}

.dashboard-page-announcements .title {
    font-family: "proxima_novabold", "proxima_novaregular", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #4f5458;
    margin: 0;
    padding: 15px 0;
    border-bottom: 2px solid #ef4129;
    display: inline-block;
    line-height: 1.2;
}

/* Priority Dashboard Container */
.dashboard-page-priority.wide-page-row {
    margin-bottom: 30px;
    padding: 20px 0;
}

.priority-dashboard-content {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-page-announcements .title {
        font-size: 20px;
        padding: 12px 0;
    }

    .priority-dashboard-content {
        padding: 15px;
        margin-top: 10px;
    }
}

/* ======================================================
   Category Archive Page — Header, Description & Cards
   ====================================================== */

/* Fix: parent theme floats h1.archive-title left, causing
   description text to wrap inline next to the title.
   Override to block so header stacks properly. */
#main.archive header.page-header h1.archive-title,
#main.archive header.page-header h2.archive-title {
    float: none !important;
    display: block;
    margin: 0 0 10px !important;
    line-height: 1.15;
}

/* Tighten the archive page-header area */
#main.archive header.page-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #ebebeb;
    margin-bottom: 32px;
    overflow: hidden; /* clear internal floats */
}

/* Category description block */
.category-description {
    display: block;
    float: none;
    clear: both;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 20px;
    max-width: 760px;
}

.category-description p {
    margin: 0 0 10px;
}

.category-description p:last-child {
    margin-bottom: 0;
}

/* Parent-link style on secondary categories */
#main.archive header.page-header h1.archive-title a {
    color: #333;
    text-decoration: none;
}

#main.archive header.page-header h1.archive-title a:hover {
    color: #E82100;
    text-decoration: none;
}

/* Sub-terms navigation — pill-button style */
#main.archive .sub-terms {
    display: flex !important;
    float: none;
    clear: both;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* Hide the "|" separator pseudo-element from the parent theme */
#main.archive .sub-terms .term:before {
    display: none;
}

#main.archive .sub-terms .term {
    display: inline-block;
}

#main.archive .sub-terms .term a {
    display: inline-block;
    padding: 5px 16px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    font-family: "proxima_novaregular", Helvetica, Arial, sans-serif;
    color: #555;
    text-decoration: none;
    background: #fff;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

#main.archive .sub-terms .term a:hover,
#main.archive .sub-terms .term a.active {
    background: #E82100;
    border-color: #E82100;
    color: #fff;
}

/* Hide the laptop-only dropdown — pills replace it */
#main.archive .sub-terms .laptop-only {
    display: none !important;
}

/* ======================================================
   Archive Article Cards
   ====================================================== */

/* --- Hero / first article (archive-first) --- */
.post.archive-first {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 36px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.post.archive-first:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transform: translateY(-2px);
}

.post.archive-first .post-image {
    overflow: hidden;
}

.post.archive-first .post-image img {
    transition: transform 0.4s ease;
}

.post.archive-first:hover .post-image img {
    transform: scale(1.04);
}

.post.archive-first .post-details {
    background: #fff;
    padding: 22px 24px 24px !important;
}

.post.archive-first .entry-title {
    font-size: 26px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.post.archive-first .entry-title a {
    color: #1a1a1a;
}

.post.archive-first .entry-title a:hover {
    color: #E82100;
    text-decoration: none !important;
}

.post.archive-first .entry-sub-title {
    font-size: 15px !important;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post.archive-first .entry-content,
.post.archive-first .entry-content p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #555 !important;
}

/* --- Grid cards (archive-grid) --- */
.post.archive-grid {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    margin-bottom: 28px !important;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.post.archive-grid:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.post.archive-grid .post-image {
    overflow: hidden;
}

.post.archive-grid .post-image img {
    transition: transform 0.4s ease;
}

.post.archive-grid:hover .post-image img {
    transform: scale(1.05);
}

/* Padding inside the card below the image */
.post.archive-grid .entry-header,
.post.archive-grid .entry-content {
    padding: 14px 16px 0 !important;
}

.post.archive-grid .entry-header {
    padding-top: 14px !important;
}

/* Add bottom padding to the last content area in each card */
.post.archive-grid .entry-header:last-child {
    padding-bottom: 18px !important;
}

.post.archive-grid .entry-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin: 0 0 14px !important;
}

.post.archive-grid .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post.archive-grid .entry-title a:hover {
    color: #E82100;
    text-decoration: none !important;
}

/* Category label pill on image */
.post.archive-first #primary-category,
.post.archive-grid #primary-category {
    background: #E82100 !important;
    border-radius: 3px;
    padding: 4px 8px 3px !important;
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* ======================================================
   Responsive adjustments
   ====================================================== */
@media only screen and (max-width: 767px) {
    #main.archive header.page-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .category-description {
        font-size: 15px;
        margin-bottom: 16px;
    }

    #main.archive .sub-terms {
        gap: 6px;
    }

    #main.archive .sub-terms .term a {
        font-size: 12px;
        padding: 4px 12px;
    }

    .post.archive-grid {
        margin-bottom: 20px !important;
    }
}