.title-year
{
    font-family: "Playfair Display"!important;
    font-size: 160px;
    font-weight: 500;
    line-height: 109%;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    margin-top: 46px;
    margin-bottom: 193px;
    position: relative;
}
.title-year:not(:first-child)::before
{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-92%);
    width: 1.5px;
    height: 98px;
    background-color: #B3AE90;
}
.title-year:not(:first-child)::after
{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(5px); 
    width: 8px;
    height: 8px;
    background-color: #B3AE90;
    border-radius: 50%;
}

.distinctii-grid
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    position: relative
}
.distinctii-grid:not(:last-child)
{
    margin-bottom: 96px;
}
.distinctii-grid::before
{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-108%);
    width: 1.5px;
    height: 98px;
    background-color: #B3AE90;
}
.distinctii-grid::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-110px);
    width: 8px;
    height: 8px;
    background-color: #B3AE90;
    border-radius: 50%;
}

.flip-container
{
    width: 25%;
	max-width: 400px;
    position: relative;
    min-height: 360px;
    perspective: 1000px;
    /* border: 1px solid black; */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* For motion effect */
.flip-container.invisible
{
    transform: translateY(100px);
    opacity: 0;
}
/* End:: for motion effect */

.flip-container:hover .flip-inner
{
/*     transform: rotateY(180deg); */
}
.flip-container:hover .flip-back
{
	opacity: 1;
}

.flip-inner
{
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    box-sizing: border-box;
}

.flip-front, .flip-back
{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    padding: 24px 14px 32px;
    background-color: #FFFEF7;
    border: 1px solid #ECECEC;
	}
.flip-back
{
/*     transform: rotateY(180deg); */
	opacity: 0;
    padding: 10px;
	transition: 0.5s ease-out opacity;
}

.distinctie
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
	position: relative;
}

.distinctie-text
{
    margin: 0;
    padding: 0;
    padding-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    row-gap: 15px;
}
.distinctie-tara
{
    font-family: "Playfair Display"!important;
    font-size: 36px;
    font-weight: 500!important;
    line-height: 109%;
    text-transform: uppercase;
    margin-bottom: 0!important;
    color: #000;
}
.distinctie-nivel
{
    font-family: "Playfair Display"!important;
    font-size: 24px;
    font-weight: 800!important;
    line-height: 109%;
    text-transform: uppercase;
    margin: 0;
    color: #FFA527;
}
.distinctie-titlu
{
    font-family: "Inter"!important;
    font-size: 20px;
    font-weight: 400!important;
    line-height: 111%;
    margin: 0;
    color: #575151;
}
.distinctie-tara, .distinctie-nivel, .distinctie-titlu
{
    text-align: center;
}

.distinctie-medalie
{
    display: flex;
    justify-content: center;
    object-fit: contain;
    height: 139px!important;
    padding: 0px 22px;
}
.distinctie-imagine-vin
{
    height: 100%!important;
/*     filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); */
	padding: 20px;
	z-index: 1;
}

.distinctie-back-text-container
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}
.distinctie-back-text-container .fit-text
{
	font-family: Bebas Neue;
	font-weight: 500!important;
	line-height: 78%;
	text-transform: uppercase;
	text-align: center;
	
	white-space: normal!important;
	margin-top: 20px;
	margin-bottom: 0px;
	z-index: 0;
	color: #F6F5ED;
}

@media screen and (max-width: 1024px)
{
    .title-year
    {
        font-size: 128px;
        margin-top: 36px;
        margin-bottom: 173px;
    }
    .title-year:not(:first-child)::before
    {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-85%);
        width: 1.5px;
        height: 98px;
        background-color: #B3AE90;
    }
    .title-year:not(:first-child)::after
    {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(14px); 
        width: 8px;
        height: 8px;
        background-color: #B3AE90;
        border-radius: 50%;
    }
    .flip-container
    {
        width: 33.33%;
        min-height: 341px;
    }
    .flip-front, .flip-back
    {
        padding: 24px 15px 22px;
    }

    .distinctie-text
    {
        height: 50%;
        /* justify-content: space-between; */
        row-gap: 5px;
    }

    .distinctie-medalie
    {
        height: 131px!important;
    }
    .distinctii-grid:not(:last-child)
    {
        margin-bottom: 94px;
    }
    .distinctii-grid::before
    {
        transform: translateX(-50%) translateY(-136%);
    }
    .distinctii-grid::after {

        transform: translateX(-50%) translateY(-142px); 
    }
}
@media screen and (max-width: 767px)
{
    .grup-distinctii
    {
        background-color: #F6F5F0;
        padding: 0px 40px 66px;
    }
    .title-year
    {
        font-size: 64px;
        margin-top: 0;
        padding-top: 33px;
        margin-bottom: 99px;
    }
    .title-year:not(:first-child)::before
    {
        transform: translateX(-50%) translateY(-38%);
        height: 53px;
    }
    .title-year:not(:first-child)::after
    {
        transform: translateX(-50%) translateY(28px); 
    }
    .distinctii-grid
    {
        row-gap: 4px;
    }

    .flip-container
    {
        width: 100%;
        min-height: 360px;
    }
    .flip-front, .flip-back
    {
        padding: 27px 15px 28px;
    }
    .distinctie-text
    {
        height: 50%;
        /* justify-content: space-between; */
        row-gap: 15px;
    }
    
    .distinctie-medalie
    {
        height: 139px!important;
    }
    .distinctii-grid:not(:last-child)
    {
        margin-bottom: 54px;
    }
    .distinctii-grid::before
    {
        height: 54px;
        transform: translateX(-50%) translateY(-136%);
    }
    .distinctii-grid::after {

        transform: translateX(-50%) translateY(-78px); 
    }
}