.top-image {
    max-width: 1460px;
    min-height: 300px;
    height: 45vh;
    max-height: 400px;
    margin-top: 0px;
    width: 100vw;
}

@keyframes fadeCycleBg {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

.top-image::before,
.top-image::after {
    content: '';
    position: absolute;
    left: 45%;
    width: 55%;
    height: 100%;
    background-position: left bottom;
    background-size: cover;
    opacity: 0;
    animation: fadeCycleBg 20s infinite;
}

.top-image::before {
    background-image: url(../images/backgrounds/Mariupol_stella_bg.png);
    animation-delay: 0s;
}

.top-image::after {
    background-image: url(../images/backgrounds/building_bg2.png);
    animation-delay: 10s;
    background-position: right top;
    background-size: contain;
}

.logo-wrapper {
    width: 35%;
}

.big-logo {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  animation: fadeCycle 45s infinite;
  margin-left: 20px;
}

.logo-uk { background-image: url('../images/big-logo-uk.png'); animation-delay: 0s; }
.logo-el { background-image: url('../images/big-logo-el.png'); animation-delay: 15s; }
.logo-en { background-image: url('../images/big-logo-en.png'); animation-delay: 30s; }

@keyframes fadeCycle {
  0% { opacity: 0; }
  5% { opacity: 1; }   /* плавно з’являється */
  30% { opacity: 1; }  /* тримається видимою */
  35% { opacity: 0; }  /* плавно зникає */
  100% { opacity: 0; }
}

.image-container {
    width: 100%;
    top: -5%;
}

.image-container img {
    width: 100%;
    border-radius: 1.5rem;
}

.about-column-text {
    color: var(--logo-blue);
}

.courses-banner {
    background-image: url(../images/decorations/fgtu-book.png);
}

.forms-banner {
    background-image: url(../images/decorations/fgtu-forms.png);
}

.azov-greeks-banner {
    background-image: url(../images/decorations/azovgreeks.png);
    background-size: auto 100%;
}

.memory-banner {
    background-image: url(../images/decorations/fgtu-sunflower.png);
}

.news-header-columns {
    width: 100%;
    padding: 10px 0px;
    display: inline-flex;
    gap: 2rem;
}

.news-header-columns .column {
    width: 50% !important;
}

.news-header-columns .column-right {
    justify-content: end;
}

.partner-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 0;
    width: 100%;
}

.partner {
    background-color: white;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--accent-color);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .top-image {
        min-height: 300px;
        height: 40vh;
        max-height: 500px;
    }
}

@media (max-width: 750px) {
    .content {
        gap: 1.5rem;
    }
    
    .image-container {
        top: 0;
        margin: 0;
    }
    
    .image-container img {
        width: calc(100vw - 40px);
        border-radius: 1.5rem;
    }
    
    .partner-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .azov-greeks-banner {
        background-position: bottom right -5%;
    }
}

@media (max-width: 600px) {
    .azov-greeks-banner {
        background-position: bottom right -10%;
    }
}

@media (max-width: 440px) {
    .news-header-columns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-header-columns .column {
        width: 100% !important;
    }
    
    .news-header-columns .column-right {
        justify-content: start;
    }
    
    .news-header {
        font-size: 1.7rem !important;
    }
    
    .list {
        margin-bottom: 10px;
    }
    
    .partner-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
