/* ===================================
   EVENTS PAGE LOOP BLOCK STYLES
   =================================== */

.wp-block-acf-atax-events-page-loop .events-page-section {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.events-page-container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
    font-family: 'Montserrat', sans-serif;
}

.events-page-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 48px;
}
.events-page-main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #354477;
    margin: 0;
}
.events-page-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #354477;
    margin: 0;
    max-width: 600px;
    margin: auto;
}

.events-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.events-item--past { opacity: 0.8; pointer-events: none; filter: saturate(0); }
.events-past-title { text-align: center; color: #354477; font-weight: 700; margin: 28px 0 12px; }
.events-card {
    display: flex;
    background: #F4F4F4;
    gap: 24px;
}
.events-left {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}
.events-bottom-row { 
    display: flex; 
    align-items: baseline; 
    gap: 12px; 
    flex-wrap: wrap; 
    flex-direction: column;
}
.events-title { 
    margin: 0px;
    font-size: 26px;
    color: #354477;
}
.events-speaker { 
    margin: 0px;
    font-size: 16px;
    color: #354477;
}
.events-right {
    position: relative;
    flex: 1;
    min-height: 220px;
}
.events-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.events-date {
    position: absolute;
    top: 0px;
    right: 64px;
    background: #EDEFF4;
    color: #354477;
    border-radius: 0px 0px 8px 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.events-weekday { 
    font-size: 14px; 
    font-weight: 700; 
}
.events-day { 
    font-size: 32px; 
    font-weight: 700; 
    line-height: 1; 
}
.events-month { 
    font-size: 14px; 
}
.events-top-row { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 8px; 
    color: #354477; 
    font-weight: 600; 
}
.events-meta-line { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.events-icon { 
    width: 10px; 
    height: 13px; 
    display: inline-block; 
}
.events-location-link { 
    color: #354477; 
    text-decoration: none; 
    font-weight: 700;
}
.events-location-link:hover { 
    text-decoration: underline; 
}
.events-stars {
    color: #FFC845;
    display: flex;
    gap: 4px;
}
.events-quote {
    font-size: 16px;
    line-height: 1.6;
    color: #354477;
}
.events-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}
.events-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.events-name {
    font-weight: 700;
    color: #354477;
}
.events-position {
    color: #666;
    font-size: 16px;
}
.events-divider {
    display: inline-block;
    width: 1px;
    height: 40px;
    background: #354477;
    margin: 0 24px;
}
.events-logo {
    height: 40px;
}

.events-bottom {
    background: #354477;
    color: #fff;
    padding: 48px 96px;
    border-radius: 0px 0px 8px 8px;
}
.events-desc {
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
}
.events-cta { margin-top: 16px; }
.events-link-cta {
    color: #FFC845;
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}
.events-link-cta:hover { 
    color: #ffffff;
    text-decoration: underline; 
}
.events-link-arrow {
    width: 14px;
    height: 14px;
    background-image: url('../../assets/images/chevronrightyellow.svg');
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}

@media (max-width: 1600px) {
    .wp-block-acf-atax-events-page-loop .events-page-section { padding: 70px 20px; gap: 36px; }
    .events-page-container { gap: 40px; }
    .events-left { padding: 28px; }
}
@media (max-width: 1150px) {
    .wp-block-acf-atax-events-page-loop .events-page-section { padding: 60px 20px; gap: 32px; }
    .events-card { flex-direction: column; }
    .events-right { min-height: 180px; }
    .events-date { right: 20px; }
}
@media (max-width: 767px) {
    .wp-block-acf-atax-events-page-loop .events-page-section { padding: 60px 16px 30px 16px; }
    .events-page-main-title { font-size: 36px; }
    .events-left { padding: 20px; gap: 24px; padding-bottom: 0px; }
    .events-top-row { gap: 6px; }
    .events-bottom-row { gap: 8px; }
    .events-title { font-size: 22px; }
    .events-speaker { font-size: 15px; }
    .events-right { min-height: 140px; }
    .events-image { height: 180px; }
    .events-date { top: 0; right: 16px; padding: 6px 8px; }
    .events-day { font-size: 26px; }
    .events-weekday, .events-month { font-size: 12px; }
    .events-bottom { padding: 28px 16px; }
    .events-page-header { padding-bottom: 0px; }
}

.events-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.pagination-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}
.pagination-list .page-item { display: inline-flex; }
.pagination-list .page-item.ellipsis { color: #354477; opacity: 0.7; }
.pagination-list .page-link {
    color: #354477;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pagination-list .page-link.current {
    background: #FFC845;
    color: #354477;
    border-radius: 999px;
    width: 36px;
    height: 36px;
}
.pagination-list .page-item.page-arrow .page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #354477;
}
.pagination-list .page-item.page-arrow.disabled {
    opacity: 1;
    pointer-events: none;
}
.pagination-list .page-item:not(.page-arrow) .page-link {
    width: 36px;
    height: 36px;
    border-radius: 999px;
}
.pagination-list .page-item:not(.page-arrow) .page-link:not(.current):hover {
    background: #FFC845;
    color: #354477;
}
.pagination-list .page-link.current:hover {
    background: #FFC845;
    color: #354477;
}
.arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
}
.arrow-left { background-image: url('../../assets/images/arrowleft.svg'); }
.arrow-right { background-image: url('../../assets/images/arrowright.svg'); }


