/*
 * Advanced Custom Posts Sidebar Widget
 * Premium modern frontend styling.
 * Motion is intentionally subtle and respects reduced-motion preferences.
 */


/* HR BRIDGE – PROFESSIONAL DESIGN SYSTEM */

:root {
    /* Brand colours */
    --hr-primary: #0647A5;
    --hr-primary-dark: #092D59;
    --hr-cyan: #20A6D2;
    --hr-yellow: #FFC928;
    --hr-coral: #F56B7A;

    /* Typography colours */
    --hr-heading: #172B45;
    --hr-body: #5C6B7C;
    --hr-white: #FFFFFF;

    /* Backgrounds */
    --hr-background: #F5F8FC;
    --hr-card: #FFFFFF;
    --hr-border: #DCE5F0;

    /* Typography */
    --hr-font: 'Manrope', sans-serif;

    --hr-weight-regular: 400;
    --hr-weight-medium: 500;
    --hr-weight-semibold: 600;
    --hr-weight-bold: 700;
    --hr-weight-extrabold: 800;
}

/* Main website typography */
body {
    font-family: var(--hr-font);
    color: var(--hr-body);
    font-weight: 400;
    line-height: 1.7;
}

/* Main headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hr-font);
    color: var(--hr-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

/* Main hero heading */
h1 {
    font-weight: 800;
    letter-spacing: -0.045em;
}

/* Navigation */
.site-header a {
    font-weight: 600;
}

/* Primary buttons */
.hr-primary-btn {
    background: var(--hr-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    transition: all .25s ease;
}

.hr-primary-btn:hover {
    background: var(--hr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 45, 89, .16);
}

/* Professional cards */
.hr-card {
    background: var(--hr-card);
    border: 1px solid var(--hr-border);
    border-radius: 14px;
    transition: all .25s ease;
}

.hr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(23, 43, 69, .09);
    border-color: rgba(6, 71, 165, .22);
}

/* Small accent labels */
.hr-highlight {
    color: var(--hr-primary);
    font-weight: 700;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}



.acpsw-widget,
.acpsw-widget *,
.acpsw-widget *::before,
.acpsw-widget *::after {
    box-sizing: border-box;
}

.acpsw-widget {
    --acpsw-accent: #315efb;
    --acpsw-accent-hover: #244bd4;
    --acpsw-text: #172033;
    --acpsw-muted: #697386;
    --acpsw-border: rgba(21, 34, 56, .09);
    --acpsw-surface: #fff;
    --acpsw-soft: #f6f8fc;
    --acpsw-radius: 16px;
    --acpsw-transition: 240ms cubic-bezier(.2, .75, .25, 1);
    width: 100%;
    padding: 8px;
    color: var(--acpsw-text);
    background: var(--acpsw-surface);
    border: 1px solid var(--acpsw-border);
    border-radius: var(--acpsw-radius);
    box-shadow: 0 5px 22px rgba(20, 35, 65, .055);
    font-family: inherit;
    isolation: isolate;
}

.acpsw-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
    padding: 0 0 12px;
    color: inherit;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.025em;
    border-bottom: 1px solid var(--acpsw-border);
}

.acpsw-heading::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 42px;
    height: 2px;
    content: "";
    background: var(--acpsw-accent);
    border-radius: 10px;
}

.acpsw-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acpsw-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 11px;
    overflow: hidden;
    background: var(--acpsw-surface);
    border: 1px solid transparent;
    border-radius: 13px;
    transition:
        transform var(--acpsw-transition),
        border-color var(--acpsw-transition),
        box-shadow var(--acpsw-transition),
        background-color var(--acpsw-transition);
    animation: acpsw-enter .48s both;
}

.acpsw-item:nth-child(2) { animation-delay: 45ms; }
.acpsw-item:nth-child(3) { animation-delay: 90ms; }
.acpsw-item:nth-child(4) { animation-delay: 135ms; }
.acpsw-item:nth-child(5) { animation-delay: 180ms; }
.acpsw-item:nth-child(n+6) { animation-delay: 210ms; }

.acpsw-item:hover {
    z-index: 1;
    transform: translateY(-3px);
    background: var(--acpsw-surface);
    border-color: rgba(49, 94, 251, .17);
    box-shadow: 0 10px 26px rgba(25, 45, 85, .09);
}

.acpsw-thumb {
    position: relative;
    display: block;
    flex: 0 0 34%;
    max-width: 34%;
    overflow: hidden;
    background: var(--acpsw-soft);
    border-radius: 10px;
    outline-offset: 3px;
    transform: translateZ(0);
}

.acpsw-thumb::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 48%, rgba(14,25,48,.08));
    opacity: .55;
    transition: opacity var(--acpsw-transition);
}

.acpsw-image {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: inherit;
    transform: scale(1.001);
    transition: transform 520ms cubic-bezier(.2, .7, .25, 1), filter var(--acpsw-transition);
}

.acpsw-item:hover .acpsw-image,
.acpsw-thumb:focus-visible .acpsw-image {
    transform: scale(1.055);
    filter: saturate(1.06);
}

.acpsw-item:hover .acpsw-thumb::after { opacity: .18; }

.acpsw-content {
    flex: 1;
    min-width: 0;
    padding: 1px 1px 2px;
}

.acpsw-title {
    margin: 0 0 6px;
    color: inherit;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.38;
    letter-spacing: -.018em;
}

.acpsw-title a {
    color: inherit;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(var(--acpsw-accent), var(--acpsw-accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color var(--acpsw-transition), background-size var(--acpsw-transition);
}

.acpsw-title a:hover,
.acpsw-title a:focus-visible {
    color: #0249AC;
    background-size: 100% 1px;
}

.acpsw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin: 0 0 7px;
    color: #0249AC;
    font-size: .75rem;
    line-height: 1.45;
    font-weight:600;
}

.acpsw-meta > * {
    display: inline-flex;
    align-items: center;
}

.acpsw-meta > * + *::before {
    width: 3px;
    height: 3px;
    margin-right: 9px;
    content: "";
    background: currentColor;
    border-radius: 50%;
    opacity: .65;
}

.acpsw-excerpt {
    margin: 0 0 9px;
    color: var(--acpsw-muted);
    font-size: .86rem;
    line-height: 1.58;
}

.acpsw-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 6px 11px;
    color: #fff;
    background: #FC6575;
    border: 1px solid #FC6575;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(49, 94, 251, .16);
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform var(--acpsw-transition),
        background-color var(--acpsw-transition),
        border-color var(--acpsw-transition),
        box-shadow var(--acpsw-transition);
}

.acpsw-read-more::after {
    content: "→";
    font-size: 1rem;
    line-height: .8;
    transition: transform var(--acpsw-transition);
}

.acpsw-read-more:hover,
.acpsw-read-more:focus-visible {
    color: #fff;
    background: var(--acpsw-accent-hover);
    border-color: var(--acpsw-accent-hover);
    box-shadow: 0 6px 14px rgba(49, 94, 251, .23);
    transform: translateY(-1px);
    text-decoration: none;
}

.acpsw-read-more:hover::after,
.acpsw-read-more:focus-visible::after { transform: translateX(3px); }

.acpsw-title a:focus-visible,
.acpsw-thumb:focus-visible,
.acpsw-read-more:focus-visible,
.acpsw-pagination a:focus-visible {
    outline: 2px solid var(--acpsw-accent);
    outline-offset: 3px;
}

.acpsw-vertical .acpsw-item {
    display: block;
}

.acpsw-vertical .acpsw-thumb {
    width: 100%;
    max-width: none;
    margin: 0 0 11px;
}

.acpsw-vertical .acpsw-image {
    height: auto;
    max-height: 230px;
    aspect-ratio: 16 / 9;
}

.acpsw-vertical .acpsw-content { padding: 0 1px 2px; }

.acpsw-compact {
    padding: 13px;
    border-radius: 13px;
}

.acpsw-compact .acpsw-list { gap: 6px; }

.acpsw-compact .acpsw-item {
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
}

.acpsw-compact .acpsw-thumb {
    flex-basis: 76px;
    max-width: 76px;
    border-radius: 8px;
}

.acpsw-compact .acpsw-image { height: 66px; }
.acpsw-compact .acpsw-title { margin-bottom: 4px; font-size: .9rem; }
.acpsw-compact .acpsw-meta { margin-bottom: 4px; font-size: .7rem; }
.acpsw-compact .acpsw-excerpt { margin-bottom: 6px; font-size: .79rem; }
.acpsw-compact .acpsw-read-more { min-height: 28px; padding: 5px 9px; font-size: .74rem; }

.acpsw-dark {
    --acpsw-text: #f3f5fa;
    --acpsw-muted: #b3bdce;
    --acpsw-border: rgba(255,255,255,.11);
    --acpsw-surface: #171d2a;
    --acpsw-soft: #222b3b;
    --acpsw-accent: #83a1ff;
    --acpsw-accent-hover: #6c8df3;
    color: var(--acpsw-text);
    background: var(--acpsw-surface);
    border-color: var(--acpsw-border);
    box-shadow: 0 8px 26px rgba(0,0,0,.18);
}

.acpsw-dark .acpsw-item { background: transparent; }
.acpsw-dark .acpsw-item:hover {
    background: rgba(255,255,255,.035);
    border-color: rgba(131,161,255,.24);
    box-shadow: 0 10px 26px rgba(0,0,0,.2);
}
.acpsw-dark .acpsw-read-more {
    color: #10192c;
    background: var(--acpsw-accent);
    border-color: var(--acpsw-accent);
}
.acpsw-dark .acpsw-read-more:hover { color: #10192c; background: var(--acpsw-accent-hover); }

.acpsw-empty {
    margin: 0;
    padding: 13px;
    color: var(--acpsw-muted);
    background: var(--acpsw-soft);
    border: 1px dashed var(--acpsw-border);
    border-radius: 10px;
    font-size: .88rem;
}

.acpsw-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.acpsw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 5px 9px;
    color: var(--acpsw-text);
    background: var(--acpsw-soft);
    border: 1px solid var(--acpsw-border);
    border-radius: 8px;
    font-size: .8rem;
    text-decoration: none;
    transition: color var(--acpsw-transition), background-color var(--acpsw-transition), border-color var(--acpsw-transition), transform var(--acpsw-transition);
}

.acpsw-pagination a.page-numbers:hover {
    color: #fff;
    background: var(--acpsw-accent);
    border-color: var(--acpsw-accent);
    transform: translateY(-1px);
}

.acpsw-pagination .page-numbers.current {
    color: #fff;
    background: var(--acpsw-accent);
    border-color: var(--acpsw-accent);
    font-weight: 700;
}

@keyframes acpsw-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .acpsw-widget { padding: 13px; border-radius: 13px; }
    .acpsw-heading { margin-bottom: 12px; font-size: 1.03rem; }
    .acpsw-list { gap: 8px; }
    .acpsw-item { gap: 10px; padding: 8px; }
    .acpsw-horizontal .acpsw-thumb { flex-basis: 30%; max-width: 30%; }
    .acpsw-image { height: 90px; }
    .acpsw-title { font-size: .92rem; }
    .acpsw-excerpt { font-size: .82rem; }
}

@media (hover: none) {
    .acpsw-item:hover { transform: none; box-shadow: none; }
    .acpsw-item:hover .acpsw-image { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .acpsw-widget *,
    .acpsw-widget *::before,
    .acpsw-widget *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
