/* venture-atlanta-schedule  v1.4.0  Avenir design pass */
/* =============== LAYOUT =============== */
.va-schedule {
    display: grid;
    grid-template-columns: 370px 1fr;
    gap: 32px;
    font-family: Avenir, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
}

@media (max-width: 1199px) {
    .va-schedule { grid-template-columns: 320px 1fr; gap: 24px; }
}
@media (max-width: 1023px) {
    .va-schedule { grid-template-columns: 280px 1fr; gap: 20px; }
}
@media (max-width: 767px) {
    .va-schedule { grid-template-columns: 1fr; gap: 16px; }
}

/* =============== SIDEBAR =============== */
.va-schedule .va-schedule__sidebar {
    background-color: #F8F8F8;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 24px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sticky sidebar on desktop only — single-column mobile layout (<768px) leaves
 * the sidebar above the cards, where sticky would cause it to overlap content. */
@media (min-width: 768px) {
    .va-schedule .va-schedule__sidebar {
        position: sticky;
        top: var(--va-sticky-offset, 100px);
    }
}

.va-schedule .va-schedule__count {
    color: #014318;
    font-family: Avenir, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 40.927px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

/* ----- Search ----- */
.va-schedule .va-schedule__search-wrap { position: relative; }
.va-schedule .va-schedule__search-wrap::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 18C11.775 17.9996 13.4988 17.4054 14.897 16.312L19.293 20.708L20.707 19.294L16.311 14.898C17.405 13.4997 17.9996 11.7754 18 10C18 5.589 14.411 2 10 2C5.589 2 2 5.589 2 10C2 14.411 5.589 18 10 18ZM10 4C13.309 4 16 6.691 16 10C16 13.309 13.309 16 10 16C6.691 16 4 13.309 4 10C4 6.691 6.691 4 10 4Z' fill='%23E8E8E8'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}
.va-schedule .va-schedule__search {
    width: 100%;
    padding: 10px 18px 10px 44px;
    border-radius: 999px;
    border: 1px solid #E8E8E8;
    background: transparent;
    color: #666;
    font-family: Avenir, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 40.927px;
    letter-spacing: 1.96px;
    text-transform: uppercase;
    outline: none;
}
.va-schedule .va-schedule__search:focus { border-color: #6A6A6A; }

/* ----- Filter groups ----- */
.va-schedule .va-schedule__filter-group { border: unset; padding-top: 0; }
.va-schedule .va-schedule__filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: unset;
    color: #000;
    font-family: Avenir, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 3.36px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}
.va-schedule .va-schedule__filter-group button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    color: #B6B6B6;
    transition: color 150ms ease;
}
.va-schedule .va-schedule__toggle.is-open { color: #323232; }

/* ----- Filter options ----- */
.va-schedule .va-schedule__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.va-schedule .va-schedule__options[hidden] { display: none !important; }
.va-schedule .va-schedule__options label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    font-family: Avenir, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 3.36px;
    cursor: pointer;
}

/* ----- Custom checkbox ----- */
.va-schedule .va-schedule__options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #E8E8E8;
    background: #F8F8F8;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    transition: background 120ms ease, border-color 120ms ease;
}
.va-schedule .va-schedule__options input[type="checkbox"]:checked {
    background: #323232;
    border-color: #323232;
}
.va-schedule .va-schedule__options input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.va-schedule .va-schedule__options input[type="checkbox"][data-placeholder] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ----- Download button ----- */
.va-schedule .va-schedule__download-btn {
    margin-top: 8px;
    background: transparent;
    color: #6A6A6A;
    border: 1px solid #6A6A6A;
    font-family: Avenir, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 2.24px;
    text-transform: uppercase;
    border-radius: 75px;
    width: fit-content;
    padding: 14px 24px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
}
.va-schedule .va-schedule__download-btn:hover {
    background: #6A6A6A;
    color: #fff;
}

/* =============== MAIN / GRID =============== */
.va-schedule .va-schedule__main { min-width: 0; }

/* ----- Date tabs ----- */
.va-schedule .va-schedule__date-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.va-schedule .va-schedule__date-tab {
    background: transparent;
    border: 1px solid #6A6A6A;
    border-radius: 75px;
    padding: 4px 18px;
    font-family: 'AvenirLTStd', Avenir, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 40.927px;
    letter-spacing: 2.24px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.va-schedule .va-schedule__date-tab:not(.is-active) { color: #6A6A6A; }
.va-schedule .va-schedule__date-tab:hover {
    border: 1px solid #6A6A6A;
    background-color: #6A6A6A;
    color: #fff !important;
}
.va-schedule .va-schedule__date-tab.is-active {
    border-radius: 75px;
    border: 1px solid #6A6A6A;
    background: #6A6A6A;
    color: #fff;
}

/* ----- Day header ----- */
.va-schedule .va-schedule__day { margin-bottom: 32px; }
.va-schedule .va-schedule__day-header {
    color: #014318;
    font-family: Avenir, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 3.36px;
    text-transform: uppercase;
    border-radius: 10px;
    border: 1px solid #F8F8F8;
    background: #F8F8F8;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* ----- Cards grid ----- */
.va-schedule .va-schedule__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1199px) { .va-schedule .va-schedule__cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .va-schedule .va-schedule__cards { grid-template-columns: 1fr; } }

.va-schedule .va-schedule__card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.va-schedule .va-schedule__card-img {
    aspect-ratio: 16/9;
    background-image: url("../images/card-orange.png?v=2");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* 1 = orange, 2 = blue, 3 = green (matches cycle in groupByDay).
 * The ?v=N query string forces the browser to refetch when image bytes change —
 * url() in CSS isn't covered by wp_enqueue_style's cache-busting. Bump the
 * number any time you replace a card-*.png file. */
.va-schedule .va-schedule__card-img[data-gradient="1"] { background-image: url("../images/card-orange.png?v=2"); }
.va-schedule .va-schedule__card-img[data-gradient="2"] { background-image: url("../images/card-blue.png?v=2"); }
.va-schedule .va-schedule__card-img[data-gradient="3"] { background-image: url("../images/card-green.png?v=2"); }

.va-schedule .va-schedule__card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.va-schedule .va-schedule__card-time {
    color: #014318;
    font-family: Avenir, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 2.88px;
    text-transform: uppercase;
}
.va-schedule .va-schedule__card-title {
    color: #323232;
    font-family: Avenir, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.54px;
    margin: 0;
}
.va-schedule .va-schedule__card-desc { font-size: 13px; line-height: 1.4; color: #555; margin: 0; flex: 1; }
.va-schedule .va-schedule__card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ----- Tags -----
 * Each tag carries a [data-tag="<slug>"] attribute derived from the tag name.
 * Style per tag with attribute selectors, e.g.:
 *   .va-schedule__tag[data-tag="founders"] { background: #ff6a00; color: #fff; }
 */
.va-schedule .va-schedule__tag {
    font-family: Avenir, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 1.68px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cfcfcf;
    color: #555;
    text-transform: uppercase;
}

/* =============== PAGINATION =============== */
.va-schedule .va-schedule__pagination { display: flex; justify-content: flex-start; gap: 24px; padding: 24px 0; }
.va-schedule .va-schedule__pagination button {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 600;
    cursor: pointer;
    color: #323232;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 150ms ease;
}
.va-schedule .va-schedule__pagination button:not([disabled]) { background: #F9F9F9; }
.va-schedule .va-schedule__pagination button[disabled] { opacity: 0.35; cursor: not-allowed; background: transparent; }
.va-schedule .va-schedule__pagination-icon { width: 12px; height: 12px; flex-shrink: 0; color: currentColor; }
.va-schedule .va-schedule__pagination button[data-page-dir="prev"] .va-schedule__pagination-icon { transform: scaleX(-1); }

.va-schedule .va-schedule__empty { padding: 48px; text-align: center; color: #888; }

/* =============== CLICKABLE CARD =============== */
.va-schedule.va-schedule--clickable-cards .va-schedule__card { cursor: pointer; transition: transform 150ms ease, box-shadow 150ms ease; }
.va-schedule.va-schedule--clickable-cards .va-schedule__card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }

/* =============== MODAL =============== */
.va-schedule .va-schedule__modal {
    position: fixed;
    inset: 0;
    z-index: 222203;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.va-schedule .va-schedule__modal[hidden] { display: none !important; }

.va-schedule .va-schedule__modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    cursor: pointer;
}

.va-schedule .va-schedule__modal-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    animation: va-modal-in 200ms ease-out;
}
@keyframes va-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.va-schedule .va-schedule__modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.va-schedule .va-schedule__modal-close:hover { background: #fff; }

.va-schedule .va-schedule__modal-img {
    aspect-ratio: 16/4;
    background-image: url("../images/modal-orange.png?v=2");
    background-size: 105%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px 16px 0 0;
}
.va-schedule .va-schedule__modal-img[data-gradient="1"] { background-image: url("../images/modal-orange.png?v=2"); }
.va-schedule .va-schedule__modal-img[data-gradient="2"] { background-image: url("../images/modal-blue.png?v=2"); }
.va-schedule .va-schedule__modal-img[data-gradient="3"] { background-image: url("../images/modal-green.png?v=2"); }

.va-schedule .va-schedule__modal-body {
    padding: unset;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: unset;
}

.va-schedule .va-schedule__modal-main {
    padding: 24px;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.va-schedule .va-schedule__modal-aside {
    padding: 24px;
    padding-bottom: 48px;
    border-left: 1px solid #E8E8E8;
    background: #F8F8F8;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.va-schedule .va-schedule__modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.va-schedule .va-schedule__modal-tags:empty { display: none; }

.va-schedule .va-schedule__modal-title {
    font-family: Avenir, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.96px;
    margin: 4px 0 0;
    color: #1a1a1a;
}

.va-schedule .va-schedule__modal-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.va-schedule .va-schedule__modal-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
}
.va-schedule .va-schedule__modal-meta-row[hidden] { display: none; }
.va-schedule .va-schedule__modal-meta-icon,
.va-schedule .va-schedule__modal-meta-label {
    color: #014318;
    font-family: Avenir, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 2.88px;
    text-transform: uppercase;
}
.va-schedule .va-schedule__modal-meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.va-schedule .va-schedule__modal-meta-value {
    color: #1E1E1E;
    font-family: Mulish, Avenir, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.va-schedule .va-schedule__modal-section { display: flex; flex-direction: column; gap: 10px; }
.va-schedule .va-schedule__modal-section[hidden] { display: none; }
.va-schedule .va-schedule__modal-section-title {
    color: #014318;
    font-family: Avenir, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 40.927px;
    letter-spacing: 2.52px;
    text-transform: uppercase;
    margin: 0;
}
.va-schedule .va-schedule__modal-aside .va-schedule__modal-section:not(:first-child) .va-schedule__modal-section-title {
    font-size: 12px;
}

.va-schedule .va-schedule__modal-desc {
    font-size: 15px;
    line-height: 1.55;
    color: #444;
    margin: 0;
}
.va-schedule .va-schedule__modal-desc:empty { display: none; }

/* RSVP — visual placeholder only (non-clickable per spec) */
.va-schedule .va-schedule__modal-rsvp {
    align-self: flex-start;
    margin-top: 14px;
    color: #6A6A6A;
    padding: 4px 18px;
    font-family: Avenir, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 40.927px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    border: 1px solid #6A6A6A;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    pointer-events: none;
    display: inline-block;
}
.va-schedule .va-schedule__modal-rsvp:hover { background: unset !important; }

/* Speakers */
.va-schedule .va-schedule__modal-speakers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.va-schedule .va-schedule__modal-speaker { display: flex; flex-direction: column; gap: 8px; }
.va-schedule .va-schedule__modal-speaker-photo {
    aspect-ratio: 18/11;
    background: #d9d9d9;
    border-radius: 10px;
}
.va-schedule .va-schedule__modal-speaker-photo[data-img] {
    background-size: cover;
    background-position: center;
}
.va-schedule .va-schedule__modal-speaker-name {
    color: #444442;
    font-family: Mulish, Avenir, sans-serif;
    font-size: 18.514px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}
.va-schedule .va-schedule__modal-speaker-link {
    color: #1a1a1a;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.va-schedule .va-schedule__modal-speaker-link svg { width: 100%; height: 100%; }

/* Sponsors */
.va-schedule .va-schedule__modal-sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}
.va-schedule .va-schedule__modal-sponsor {
    height: 44px;
    min-width: 120px;
    padding: 8px 18px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.04em;
}

/* Modal mobile */
@media (max-width: 768px) {
    .va-schedule .va-schedule__modal { padding: 12px; }
    .va-schedule .va-schedule__modal-body { grid-template-columns: 1fr; }
    .va-schedule .va-schedule__modal-aside { border-left: none; border-top: 1px solid #E8E8E8; }
    .va-schedule .va-schedule__modal-title { font-size: 22px; }
    .va-schedule .va-schedule__modal-rsvp { font-size: 16px; padding: 4px 16px; letter-spacing: 2px; }
}

body.va-schedule-modal-open { overflow: hidden; }

/* =============== TWEAKS =============== */
.va-schedule__main .va-schedule__date-tabs {
    margin-bottom: 50px;
}

.va-schedule .va-schedule__options label {
    /* Figma exports tracking as %, where 100% = 1em. -3% → -0.03em. */
    letter-spacing: -0.03em;
}

.va-schedule .va-schedule__pagination button {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.01;
    /* 14% → 0.14em (CSS doesn't accept % for letter-spacing). */
    letter-spacing: 0.14em;
    font-family: Avenir, sans-serif;
    padding: 16px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.va-schedule .va-schedule__pagination button span {
    line-height: 1.05;
    position: relative;
    top: 1px;
}

.va-schedule .va-schedule__pagination button svg {
    display: flex;
}

.va-schedule .va-schedule__card-tags {
    gap: 8px;
}

/* Modal main column — title + description override the global modal-section styles */
.va-schedule .va-schedule__modal-main .va-schedule__modal-section-title {
    color: var(--Base-Off-Black, #1E1E1E);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 2.04;
    letter-spacing: 2.8px;
}

.va-schedule .va-schedule__modal-main .va-schedule__modal-desc {
    color: var(--Base-Off-Black, #1E1E1E);
    font-family: Mulish;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
