.main-footer--wrapper{
    border-top:1px solid var(--colorTxt); 
    padding-block: 63px 24px; 
    display: flex;
    color: var(--colorTxt);
}

.main-footer--logo{
    margin-right: 140px;
    filter: brightness(0) saturate(100%) invert(10%) sepia(34%) saturate(7009%) hue-rotate(232deg) brightness(75%) contrast(120%);
}

.footer-nav--item.nav-address,
.footer-nav--item.nav-contact{
    margin-right: 62px;
}

.footer-nav--item h3{
    margin-bottom: 29px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1;
}

.main-footer address span{
    display: block;
}
.main-footer .contact-texts a{
    display: block;
}

.main-footer--social{
    margin-left: auto;
}

@media screen and (max-width: 1440px) {
    .main-footer--logo{
        margin-right: clamp(3rem, 6.5vw, 100px);
    }
    .footer-nav--item.nav-address,
    .footer-nav--item.nav-contact{
        margin-right: 40px;
    }
}

@media screen and (max-width: 1240px) {
    .main-footer--wrapper{
        display:grid;
        grid-template-columns: repeat(5, auto);
        grid-template-rows: repeat(2, auto);
        gap: 30px 0;
    }
    .main-footer--logo{
        grid-column: 1 / 2;
        margin-right: 0;
    }
    .main-footer--social{
        grid-column: -3 / -1;
    }
    .footer-nav--item.nav-gdpr,
    .footer-nav--item.nav-address,
    .footer-nav--item.nav-contact{
        grid-row: 2 / 3;
    }    
    .footer-nav--item.nav-gdpr{grid-column: 3 / -1;}
    .footer-nav--item.nav-address{grid-column: 2 / 3;}
    .footer-nav--item.nav-contact{grid-column: 1 / 2;}  
}

@media screen and (max-width: 1020px) {
    .main-footer--wrapper{
        padding-top: 42px; 
    }
}
@media screen and (max-width: 820px) {
    .main-footer--wrapper{
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(3, auto);
    }
    .footer-nav--item.nav-gdpr{
        grid-column: 1 / -1;
        grid-row: 3 /4;
        display: grid;
        grid-template-columns: subgrid;
    }
}

@media screen and (max-width: 620px) {
    .main-footer{
        border-top:1px solid var(--colorTxt);
    }
    .main-footer--wrapper{
        border-top:none; 
        padding-block: 32px 30px; 
    }
    .main-footer--logo{
        grid-column: 1 / -1;
    }
    .main-footer--wrapper{
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(3, auto);
    }
    .footer-nav--item.nav-gdpr{
        grid-row: 4 / 5;
    }
    .main-footer--social{
        grid-column: 1 / -1;
        grid-row: 3 / 4;
        margin-left: 0;
    }
    .footer-nav--item.nav-address{
        margin-right: 0;
    }
}

@media screen and (max-width: 490px) {
    .main-footer--wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-nav--item.nav-contact{
        grid-column: 1 / -1;

    } 
    .footer-nav--item.nav-address{
        grid-column: 1 / -1;
        grid-row : 3 /4;
    } 
    .footer-nav--item.nav-gdpr{
        grid-row: 5 / 6;
    }
    .main-footer--social{
        grid-row: 4 / 5;
    }   
    .footer-nav--item.nav-gdpr > *:last-child{
        justify-self: end;
    }
}

@media screen and (max-width: 370px) {
    .footer-nav--item.nav-gdpr{
        display: block;
    }
    .footer-nav--item.nav-gdpr > *:last-child{
        justify-self: start;
    }
}

/* newsletter  & podcast*/

.top-footer-wrapper{
    gap: 29px;
    color: #fff;
    margin-block: clamp(60px, 7vw, 111px) clamp(90px, 8vw, 111px);
}
.top-footer-wrapper .title{
    font-size: 30px;
    line-height: 35px;
    max-width: 395px;
    font-family: 'CFAstyBold';
}

.newsletter{
    background-color: #000451;
    position: relative;
    padding: 52px 42px 2rem 74px;
    container-name: newsletter;
    container-type: inline-size;
    width: 100%;
}

.newsletter .box-line{
    border-bottom: 1px solid #fff;
    flex-grow: 1;
}

#newsletterForm{
    display: flex;
    flex-wrap: wrap;
    --gap: clamp(2rem, 7vw, 128px); 
    gap: 29px var(--gap);
    margin-top: 108px;
    padding-inline: 50px 110px;
}

.input-field{
    width: calc((100% - var(--gap)) / 2);
    border-bottom: 1px solid #fff;
}

.input-field input,
.input-field input::placeholder{
    color: #fff;
    font-family: 'CFAsty';
    font-size: 15px;
    line-height: 35px;
    font-family: 'CFAstyMed';    
}
.input-submit{
    width: 100%;
}
.input-submit input{
    border-bottom: 1px solid #fff;
    color: #fff;
    padding-inline: 0;
    font-family: 'CFAstyMed';
}

.input-check{
    font-size: 13px;
    /* line-height: 35px; */
    position: relative;
    cursor: pointer;
}

/* Hide the default browser checkbox */
.hidden-checkbox {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    pointer-events: auto; /* 🔥 αυτό είναι το fix */
  }

.input-check label::before {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #fff;
  cursor: pointer;
  left:0; top: 0;
}

/* Style the checkmark when the checkbox is checked */
.input-check label::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) scale(0); /* Hide the checkmark initially */
  background-color: var(--colorTxt); /* Color of the checkmark */
  border-radius: 2px;
  transition: transform 0.2s ease-in-out;
}

/* When the hidden checkbox is checked, show the checkmark */
.input-check .hidden-checkbox:checked + label::after {
  transform: translate(-50%, -50%) scale(1); /* Show the checkmark */
}



.input-check label{
    padding-left: 27px;
    display: block;
}

.podcast{
    font-size: 18px;
    padding: 31px 35px 36px;
    width: 471px;
    flex-shrink: 0;
    background-color: var(--colorTxt);
}

.podcast-info{
    margin-top: 23px;
}
.podcast-embed{
    margin-block: 39px 48px;
}

@container newsletter (width < 950px) {
    #newsletterForm{
        padding-inline: 2rem 4rem;
    }
}
@container newsletter (width < 750px) {
    #newsletterForm{
        padding-inline: 0;
        --gap: 2rem;
    }
}
@container newsletter (width < 550px) {
    #newsletterForm{
        padding-inline: 0;
        --gap: 2rem;
        margin-top: 60px;
    }
    .input-field{
        width: 100%;
    }
    .newsletter .box-line{display: none};
}

@media screen and (max-width: 1520px) {
    .newsletter{
        padding-inline: 42px;
    }
}
@media screen and (max-width: 1220px) {
    .top-footer-wrapper{
        gap: 1rem;
    }
    .podcast,
    .newsletter{
        padding-inline: 2rem;
    }
}
@media screen and (max-width: 1020px) {
    .top-footer-wrapper .title{
        font-size: 25px;
        line-height: 30px;
    }
    .podcast{
        width: 400px;
    }
}
@media screen and (max-width: 920px) {
    .top-footer-wrapper{
        flex-direction: column-reverse;
        gap: 62px;
    }
    .podcast{
        width: 100%;
    }
    .newsletter .input-submit input{
        margin-left: auto;
        display: block;
    }
}

@media screen and (max-width: 520px) {
    .podcast, .newsletter{
        padding-inline: 16px;
    }
    .podcast-embed{
        margin-block: 23px 33px;
    }
}