:root {
    --hero-green: #1e7a07;
    --hero-card: #788a64;
    --hero-link-hover: #c5d626;
    --hero-gap: 1rem;
}

body {
    background-color: #b5b5b5 !important;
}

.hero-custom-container {
    position: relative;
    overflow: visible;
    color: #fff;
    text-align: center;
    margin-bottom:300px;
}

.hero-bg-img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-upper-content {
    position: absolute;
    top: 210px;
    left: 50%;
    z-index: 2;
    width: 90%;
    transform: translateX(-50%);
}

.hero-title {
    margin-bottom: -0.4em;
}

.hero-subtitle {
    margin-bottom: 2em;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.hero-btn {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0.75em 1.5em;
    border-radius: 5px;
    background-color: var(--hero-green);
    color: #fff;
    text-decoration: none;
}

.hero-cards-grid {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 10;
    display: flex;
    gap: var(--hero-gap);
    justify-content: space-between;
    width: min(90%, 1200px);
    transform: translate(-50%, calc(100% - 10px));
}

.hero-card {
    box-sizing: border-box;
    width: calc((100% - (2 * var(--hero-gap))) / 3);
    padding: 1.5em;
    border-radius: 10px;
    background-color: var(--hero-card);
    box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
    color: #fff;
    text-decoration: none;
}

.hero-card:hover {
    color: #a8a4a4;
}

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.card-title {
    margin-bottom: 0.5em;
    font-size: 1.2em;
}

.card-img,
.card-double-img img {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.card-img {
    margin: 0 auto;
    padding: 10px;
}

.card-double-img {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.card-double-img > a {
    flex: 1 1 0;
    min-width: 0;
}

.card-double-img img {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
}

.publication-popup-link {
    display: block;
}

.publication-popup-link img {
    cursor: zoom-in;
}

.events-list {
    width: 100%;
    overflow: auto;
    text-align: left;
    overflow-wrap: anywhere;
}

.event-item {
    margin-bottom: 2px;
}

.event-link {
    color: #fff;
}

.event-link:hover {
    color: var(--hero-link-hover);
}

.hero-5x1000 {
    margin-top: 1em;
    color: #df2e0f;
    font-size: 1.2em;
    font-weight: bold;
}

.event-title {
    color: #fffc48;
    font-size: large;
}

.hero-header {
    width: 100%;
    background-position: center;
    background-size: cover;
}

.hero-header::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgb(0 0 0 / 30%);
    content: '';
}

.hero-header .content {
    position: relative;
    z-index: 2;
    color: rgb(213, 225, 228);
}

body.view-article #hero-custom-container,
body.view-article .grid-child.container-top-a,
body.view-article .grid-child.container-top-b {
    display: none !important;
}

.hero-custom-container a {
    text-decoration: none;
}

.card-inner a {
    color: inherit;
}

@media (max-width: 1200px) and (min-width: 901px) {
    .hero-cards-grid {
        bottom: 0;
    }
    
    .hero-header::before
 {
   
 background-color: rgb(255 255 255 / 0%) !important; 
  
}
}

@media (max-width: 900px) {
    .hero-upper-content {
        position: absolute;
        top: 20px;
        left: 50%;
        width: 90%;
        padding: 20px;
        transform: translateX(-50%);
    }

    .hero-cards-grid {
        position: relative;
        bottom: auto;
        left: 0;
        flex-direction: column;
        width: 100%;
        margin-top: -10px;
        margin-bottom: 0 !important;
        padding: 20px;
        transform: none;
    }

    .hero-card {
        width: 100%;
    }

    .hero-custom-container {
        color: #aaa;
    }
        .hero-header::before
 {
   
 background-color: rgb(255 255 255 / 0%) !important; 
  
}

.hero-title {
    margin-bottom: 1em;
}
.hero-subtitle {
  color: rgb(219, 34, 34);
  font-size: 1.5em !important;
}
}

@media (max-width: 480px) {
    .card-double-img {
        gap: 0.35rem;
    }
}
