/**
 * CONTENTS
 *
 * 1. Pagination Styles
 * 2. Author Styles
 * 3. WPE Dace Block Styles (Fixed Version)
 *    - Base container styles
 *    - Header styles
 *    - Grid system
 *    - Post box styles
 *    - Layout helpers
 *    - Special component styles
 */

/* ==========================================================================
   1. Pagination Styles
   ========================================================================== */
.wpe-page-pagination {
    margin: 2rem 0;
}

.wpe-page-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.wpe-page-pagination .page-numbers li {
    margin: 0;
}

.wpe-page-pagination .page-numbers .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.wpe-page-pagination .page-numbers .page-numbers:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.wpe-page-pagination .page-numbers .page-numbers.current {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}

.wpe-page-pagination .page-numbers .page-numbers.dots {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: default;
}

.wpe-page-pagination .page-numbers .page-numbers.dots:hover {
    background: transparent;
    color: #64748b;
}

.wpe-page-pagination .page-numbers .next.page-numbers,
.wpe-page-pagination .page-numbers .prev.page-numbers {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Pagination hover animation */
.wpe-page-pagination .page-numbers .page-numbers:not(.current, .dots) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wpe-page-pagination .page-numbers .page-numbers:not(.current, .dots):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wpe-page-pagination .page-numbers .page-numbers:not(.dots):active {
    transform: translateY(0);
    transition: transform 0.1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .wpe-page-pagination .page-numbers {
        gap: 0.25rem;
    }

    .wpe-page-pagination .page-numbers .page-numbers {
        min-width: 2rem;
        height: 2rem;
        padding: 0.25rem;
        font-size: 0.875rem;
    }

    .wpe-page-pagination .page-numbers .next.page-numbers,
    .wpe-page-pagination .page-numbers .prev.page-numbers {
        padding: 0.25rem 0.75rem;
    }
}

/* ==========================================================================
   2. Author Styles
   ========================================================================== */
.page-author.-mobile {
    display: none;
}

/* ==========================================================================
   3. WPE Dace Block Styles (Fixed Version)
   ========================================================================== */

/* Base container styles
   ========================================================================== */
.wpe-dace-block {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.wpe-dace-block * {
    box-sizing: border-box;
}

.wpe-dace-block .wpe-dace-block__content {
    width: 100%;
}

/* Background options */
.wpe-dace-block.bg-grey {
    background-color: #f3f3f3;
}

.wpe-dace-block.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Header styles
   ========================================================================== */
.wpe-dace-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.wpe-dace-block__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: bold;
    color: #252122;
}

.wpe-dace-block__button .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.wpe-dace-block__button .button:hover {
    background-color: #333333;
    color: #FFFFFF;
}

/* Grid system
   ========================================================================== */
.wpe-dace-block .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    /* Fixed: Removed negative margins that were creating overflow */
    margin-right: 0;
    margin-left: 0;
    align-items: stretch;
}

/* Base column classes */
.wpe-dace-block [class*="col-"] {
    position: relative;
    padding-right: 15px;
    padding-left: 15px;
    display: flex;
    margin-bottom: 20px;
}

/* Mobile first - all columns are 100% width on small screens */
.wpe-dace-block .col-1, .wpe-dace-block .col-2, .wpe-dace-block .col-3, .wpe-dace-block .col-4,
.wpe-dace-block .col-5, .wpe-dace-block .col-6, .wpe-dace-block .col-7, .wpe-dace-block .col-8,
.wpe-dace-block .col-9, .wpe-dace-block .col-10, .wpe-dace-block .col-11, .wpe-dace-block .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Small devices (sm) */
@media (min-width: 576px) {
    .wpe-dace-block .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .wpe-dace-block .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .wpe-dace-block .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .wpe-dace-block .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .wpe-dace-block .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .wpe-dace-block .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .wpe-dace-block .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .wpe-dace-block .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .wpe-dace-block .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .wpe-dace-block .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .wpe-dace-block .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .wpe-dace-block .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Medium devices (md) */
@media (min-width: 768px) {
    .wpe-dace-block .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .wpe-dace-block .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .wpe-dace-block .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .wpe-dace-block .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .wpe-dace-block .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .wpe-dace-block .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .wpe-dace-block .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .wpe-dace-block .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .wpe-dace-block .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .wpe-dace-block .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .wpe-dace-block .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .wpe-dace-block .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large devices (lg) */
@media (min-width: 992px) {
    .wpe-dace-block .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .wpe-dace-block .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .wpe-dace-block .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .wpe-dace-block .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .wpe-dace-block .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .wpe-dace-block .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .wpe-dace-block .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .wpe-dace-block .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .wpe-dace-block .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .wpe-dace-block .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .wpe-dace-block .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .wpe-dace-block .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra large devices (xl) */
@media (min-width: 1200px) {
    .wpe-dace-block .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .wpe-dace-block .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .wpe-dace-block .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .wpe-dace-block .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .wpe-dace-block .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .wpe-dace-block .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .wpe-dace-block .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .wpe-dace-block .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .wpe-dace-block .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .wpe-dace-block .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .wpe-dace-block .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .wpe-dace-block .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Fixed: g-3 properly handles gutters */
.wpe-dace-block .g-3 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.wpe-dace-block .g-3 > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Other grid spacing options */
.wpe-dace-block .g-0 {
    margin-right: 0;
    margin-left: 0;
}

.wpe-dace-block .g-0 > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 0;
}

.wpe-dace-block .g-1 > [class*="col-"] {
    padding-right: 4px;
    padding-left: 4px;
}

.wpe-dace-block .g-2 > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.wpe-dace-block .g-4 > [class*="col-"] {
    padding-right: 16px;
    padding-left: 16px;
}

.wpe-dace-block .g-5 > [class*="col-"] {
    padding-right: 20px;
    padding-left: 20px;
}

/* Post box styles
   ========================================================================== */
.wpe-dace-block .post-box {
    background-color: #fff;
    border-radius: 0px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wpe-dace-block .post-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wpe-dace-block .post-box a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Thumbnail styles */
.wpe-dace-block .post-box_thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wpe-dace-block .post-box_thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wpe-dace-block .post-box:hover .post-box_thumbnail img {
    transform: scale(1.05);
}

/* Different column thumbnail heights */
.col-lg-6 .post-box._grid .post-box_thumbnail {
    height: 300px;
    min-height: 300px;
}

.col-lg-6 .post-box._grid .post-box_thumbnail img {
    height: 300px;
}

.col-lg-4 .post-box._grid .post-box_thumbnail {
    height: 250px;
    min-height: 250px;
}

.col-lg-4 .post-box._grid .post-box_thumbnail img {
    height: 250px;
}

/* Content height adjustments based on thumbnail */
.col-lg-4 .post-box._grid .post-box_content {
    height: calc(100% - 250px);
}

.col-lg-6 .post-box._grid .post-box_content {
    height: calc(100% - 300px);
}

/* Special styles for publications */
.wpe-dace-block .post-box._publication .post-box_thumbnail {
    max-height: 175px;
    min-height: 155px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #ffffff;
    padding-left: 20px;
    padding-top: 20px;
}

.wpe-dace-block .post-box._publication .post-box_thumbnail img {
    position: relative;
    width: auto;
    max-width: 90%;
    max-height: 155px;
    height: auto;
    object-fit: contain;
}

/* Content Styles */
.wpe-dace-block .post-box_content {
    padding: 15px 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wpe-dace-block .post-box_group {
    margin-bottom: 10px;
}

.wpe-dace-block .content-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 8px;
}

.wpe-dace-block .content-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #333;
    transition: color 0.3s ease;
}

.wpe-dace-block .post-box:hover .content-title {
    color: #ff6b35;
}

.wpe-dace-block .content-date {
    font-size: 12px;
    color: #777;
    margin-top: auto;
    letter-spacing: 1px;
}

/* Layout helpers
   ========================================================================== */
.wpe-dace-block .parent_eh {
    display: flex;
    width: 100%;
    margin-bottom: 0;
}

.wpe-dace-block .col-lg-6.parent_eh {
    display: block;
    width: 100%;
}

/* Utility classes */
.wpe-dace-block .mb-2 {
    margin-bottom: 0.5rem;
}

.wpe-dace-block .mb-3 {
    margin-bottom: 1rem !important;
}

.wpe-dace-block .w-100 {
    width: 100%;
}

.wpe-dace-block .text-break {
    word-wrap: break-word;
    word-break: break-word;
}

.wpe-dace-block .img-responsive {
    max-width: 100%;
    height: auto;
}

/* Special component styles
   ========================================================================== */

/* Podcast styles */
.wpe-dace-block .post-box._grid._podcast .post-box_thumbnail {
    height: auto;
}

.wpe-dace-block .post-box._grid._podcast .post-box_thumbnail img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Play button styles */
.wpe-dace-block .play-button {
    width: 46px;
    height: 46px;
    background: #14CE9A;
    border-radius: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpe-dace-block .play-button:hover {
    background: #0fb888;
    transform: translate(-50%, -50%) scale(1.1);
}

.wpe-dace-block .play-button svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: white;
    stroke-width: 2;
    position: relative;
    left: 2px;
}

.wpe-dace-block .post-box._grid._podcast .play-button svg {
    fill: transparent;
    left: 0px;
}

/* Event styles */
.post-box-event .post-box {
    display: flex;
    flex-direction: row;
}

.post-box-event .post-box > a {
    max-width: 200px;
}

.post-box._feature-event._featured {
    display: block;
}

.post-box._feature-event._featured .content-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    line-height: 1.3;
    margin-bottom: 10px;
}

.post-box._feature-event._featured .content-description p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.post-box._feature-event._featured .content-event-meta {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    display: flex;
    margin-bottom: 40px;
}

.post-box._feature-event._featured .event-meta-date,
.post-box._feature-event._featured .event-meta-type {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
    margin-right: 20px;
}

.post-box._feature-event._featured .link-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.post-box._feature-event._featured .link-more:hover {
    text-decoration: underline;
}

.wpe-dace-block .post-box._feature-event._featured .post-box_content {
    float: left;
    width: 50%;
}

.wpe-dace-block .post-box._feature-event._featured > a {
    float: right;
    width: 50%;
    position: relative;
    display: block;
    overflow: hidden;
}

.wpe-dace-block .post-box._feature-event._featured .post-box_thumbnail {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

.wpe-wrapbox{
    margin-left: -10px;
    width: calc(100% + 20px);
}

.content-duration {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.04em !important;
    color: #d1742c !important;
    padding-top:20px !important;
}

.content-description{
    font-size:16px;
    margin-bottom:20px !important;
}


/* Responsive adjustments */
@media (max-width: 767px) {
    .wpe-dace-block__header,
    .wpe-dace-block .row {
        padding-left: 10px;
        padding-right: 10px;
    }

    .wpe-dace-block [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }
}