/* Global styles for Digiforma plugin. Loaded on all pages. */

/* ==============================
   CONTAINER
   ============================== */

.df-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.df-archive-item {
    position: relative;    
    box-shadow: 2px 2px 10px 0px var(--df-brand-color);
    background: #fff;
    border-radius: var(--df-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.df-archive-content {
    padding: 24px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}


.df-archive-item a::before {
    content: '';
    position: absolute;
    z-index: 9;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.df-archive-title {
    position: static;
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
}

.df-archive-title a {
    text-decoration: none;
}

.df-archive-content p:last-child {
    margin-top: auto;
    text-align: center;
}

.df-archive-subtitle {
    line-height: 1.2;
}

.df-archive-subtitle,
.df-archive-duration,
.df-post-sessions {
    font-size: 1rem;
}

.df-post-sessions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.df-post-session {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.df-program-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.df-archive-tags {
    position: absolute;
    top: 16px;
    left: 16px;
}

.df-program-tags .df-tag {
    background-color: var(--df-brand-color);
    color: var(--white, #fff);
    padding: 4px 8px;
    border-radius: var(--df-border-radius-xs);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.df-post-session .df-post-session-dates .df-session-date {
    width: 100%;
    min-width: 80px;
}

.df-post-sessions-title {
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}

.df-post-session-remote,
.df-post-session-place {
    display: block;
    width: 100%;
    line-height: 1;
    background-color: var(--df-brand-color);
    padding: 4px 6px 6px;
    border-bottom-left-radius: var(--df-border-radius-xs);
    border-bottom-right-radius: var(--df-border-radius-xs);
    border: 3px solid var(--df-brand-color);
    border-top: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: var(--df-brand-text, #fff);
}

.df-post-session:has(.df-post-session-remote,.df-post-session-place) .df-post-session-dates {
    width: 100%;
}

.df-post-session:has(.df-post-session-remote,.df-post-session-place) .df-session-date {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
}

/* ==============================
   BUTTONS
   ============================== */

.df-button {
    display: inline-block;
    padding: 8px 24px;
    border: 2px solid var(--df-brand-color);
    cursor: pointer;
    color: var(--white, #fff);
    background-color: var(--df-brand-color);
    border-radius: var(--df-border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    transition: background-color 0.3s ease;
}

.df-archive-item:hover .df-button,
.df-button:hover {
    background-color: var(--white, #fff);
    border-color: var(--df-brand-color);
    color: var(--df-brand-color);
}

[hidden] {
    display: none !important;
}

/* ==============================
   ALERTS
   ============================== */

.df-alert {
    padding: 5px 5px 5px 20px;
    background: #FFF;
    margin: 20px 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.df-alert.df-alert--error {
    border-left: 4px solid red;
}

/* ==============================
   CARDS
   ============================== */

.df-card-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.df-card-grid-container .df-card {
    border-radius: var(--df-border-radius);
}

@media (min-width: 768px) {
    .df-card-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1230px) {
    .df-card-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}