/* Volunteering («Εθελοντισμοί»): the main page, its categories and the actions (volunteering/templates/) */

.vol-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 460px;
    padding: 150px 0 46px;
    background-color: #0b2a45;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.vol-header:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 26, 43, 0.25) 0%, rgba(8, 26, 43, 0.35) 45%, rgba(8, 26, 43, 0.85) 100%);
}

.vol-header-plain {
    min-height: 340px;
    background-image: linear-gradient(135deg, #0b2a45 0%, #13406b 60%, #0062cc 100%);
}

.vol-header-plain:before {
    display: none;
}

.vol-header .container {
    position: relative;
    z-index: 1;
}

.vol-header .vol-header-title {
    max-width: 900px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.15;
}

.vol-header-sub {
    max-width: 760px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

/* the category tabs */
.vol-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 36px;
}

.vol-tab {
    padding: 9px 20px;
    border: 1.5px solid #cfd9e2;
    border-radius: 999px;
    color: #13304a;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vol-tab:hover,
.vol-tab:focus-visible {
    border-color: #0062cc;
    color: #0062cc;
}

.vol-tab.is-active {
    border-color: #0062cc;
    background: #0062cc;
    color: #fff;
}

/* the cards */
.vol-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.vol-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 48, 74, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vol-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(19, 48, 74, 0.16);
}

.vol-card-image {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e8eef3;
}

.vol-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vol-card:hover .vol-card-image img {
    transform: scale(1.05);
}

.vol-card-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8aa0b4;
    font-size: 46px;
}

.vol-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 26px;
}

.vol-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 10px;
    color: #5b6c7c;
    font-size: 13.5px;
    font-weight: 600;
}

.vol-card-meta i {
    margin-right: 3px;
    color: #0062cc;
}

.vol-card-title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.vol-card-title a {
    color: #13304a;
    text-decoration: none;
}

.vol-card-title a:hover,
.vol-card-title a:focus-visible {
    color: #0062cc;
}

.vol-card-text {
    margin: 0;
    color: #4a5b6b;
    font-size: 15px;
    line-height: 1.55;
}

.vol-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: #5b6c7c;
    font-size: 17px;
    text-align: center;
}

/* an action */
/* the theme pads main > section > .container by 100px */
main > .vol-detail > .container {
    padding-top: 50px;
    padding-bottom: 40px;
}

.vol-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 0 0 34px;
}

.vol-fact {
    padding: 20px 22px;
    border-radius: 14px;
    background: #f3f7fa;
}

.vol-fact dt {
    margin: 0 0 6px;
    color: #5b6c7c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.vol-fact dt i {
    margin-right: 4px;
    color: #0062cc;
}

.vol-fact dd {
    margin: 0;
    color: #13304a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.vol-fact dd a {
    color: #0056b3;
}

.vol-map-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}

/* the old site's layout: the facts in a side card, the cover photo as it is beside them, the text under it */
.vol-detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas: "aside cover" "aside text";
    column-gap: 40px;
    align-items: start;
}

.vol-detail-layout .vol-aside { grid-area: aside; }
.vol-detail-layout .vol-cover { grid-area: cover; }
.vol-detail-layout .vol-text { grid-area: text; }

.vol-aside {
    position: sticky;
    top: 130px;
    padding: 6px 24px;
    border-radius: 16px;
    background: #f3f7fa;
}

.vol-aside .vol-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.vol-aside .vol-fact {
    padding: 18px 0;
    border-bottom: 1px solid #dde5ec;
    border-radius: 0;
    background: none;
}

.vol-aside .vol-fact:last-child {
    border-bottom: 0;
}

.vol-cover {
    margin: 0 0 30px;
    overflow: hidden;
    border-radius: 16px;
    background: #eef2f5;
}

.vol-cover a {
    display: block;
    cursor: zoom-in;
}

.vol-cover img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 78vh;
    margin: 0 auto;
}

.vol-text {
    max-width: 820px;
}

.vol-intro {
    color: #13304a;
    font-size: 19px;
    line-height: 1.6;
}

.vol-body {
    color: #4a5b6b;
    font-size: 16.5px;
    line-height: 1.7;
}

/* the Gallery block of the page builder */
main > .vol-detail + .vol-gallery-section > .container,
main > .vol-gallery-section + .vol-gallery-section > .container {
    padding-top: 0;
}

.vol-gallery-title {
    margin: 0 0 24px;
}

.vol-gallery .grid-box {
    display: grid;
    gap: 18px;
}

.vol-gallery .vol-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vol-gallery .vol-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vol-gallery .vol-gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.vol-gallery-item {
    margin: 0;
}

.vol-gallery-item .img-box {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    cursor: zoom-in;
}

.vol-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vol-gallery-item .img-box:hover img,
.vol-gallery-item .img-box:focus-visible img {
    transform: scale(1.05);
}

.vol-gallery-item figcaption {
    margin: 8px 2px 0;
    color: #5b6c7c;
    font-size: 14px;
    line-height: 1.45;
}

.vol-related-title {
    margin: 0 0 30px;
}

@media (max-width: 991.98px) {
    .vol-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "cover" "aside" "text";
    }

    .vol-aside {
        position: static;
        margin-bottom: 30px;
    }

    .vol-grid,
    .vol-gallery .vol-gallery-3,
    .vol-gallery .vol-gallery-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .vol-grid,
    .vol-gallery .vol-gallery-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .vol-gallery .vol-gallery-3,
    .vol-gallery .vol-gallery-4 {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vol-card,
    .vol-card-image img,
    .vol-gallery-item img {
        transition: none;
    }
}
