/* Styles for Digiforma surfaces (archive, single, taxonomy). */

html {
    scroll-behavior: smooth;
}

/* ==============================
   HEADER
   ============================== */

.df-page-header {
    position: relative;
	padding: 50px 0 0;
    z-index: 2;
}

.df-banner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5);
}

.df-page-header .df-container {
    padding-bottom: 50px;
}

.df-page-title,
.df-page-total-results {
    text-align: center;
}

.df-page-title {
    margin: 35px 0 16px;
    text-wrap: balance;
}

.df-page-title,
.df-page-total-results,
.df-breadcrumbs,
.df-page-header a,
.df-formations-description {
    color: #fff;
}

.df-brand-numbers {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-wrap: wrap;
    gap: 33px;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.df-brand-number-value {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--df-brand-color);
}

/* ==============================
   CARDS
   ============================== */

.df-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.df-program-duration {
    display: flex;
    gap: 8px;
    align-items: center;
}

.df-post-thumbnail {
    min-height: 75px;
    background: var(--df-light-color); 
}

.df-post-thumbnail img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.df-session-date {
    position: relative;
    display: block;
    width: fit-content;
    border: 3px solid var(--df-brand-color);
    border-radius: var(--df-border-radius-xs);
    padding: 15px 4px 4px 4px;
}

.df-session-date::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0px;
    display: block;
    width: 100%;
    height: 3px;
    background: var(--df-brand-color);
    margin-bottom: 4px;
}

.df-session-date span {
    display: block;
    line-height: 1;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--df-brand-color);
}

.df-session-date__day {
    font-size: 21px;
}

.df-session-date__day:before,
.df-session-date__day:after {
    content: '';
    display: block;
    width: 3px;
    height: 13px;
    border-radius: 50%;
    background: var(--df-brand-color);
    position: absolute;
    top: -7px;
}

.df-session-date__day:before {
    left: 10px;
}

.df-session-date__day:after {
    right: 10px;
}

.df-session-date__month,
.df-session-date__year {
    font-size: 16px;
}

@media (min-width: 768px) {
    .df-post-thumbnail {
        min-height: 210px;
    }
}

@media (max-width: 768px) {
    .df-archive-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ==============================
   GLOBALS
   ============================== */

.df-main hr {
    margin: 12px 0;
    border: none;
    height: 1px;
    background: var(--df-brand-color);
    width: 100%;
    opacity: 0.5;
}