.header-section.full-bg {
    position: relative;
    height: 60vh;
    width: 100%;
    background-image: url('../images/tempnewsphotos/n1/1.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    margin-top: 0;
}

.header-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 78%;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    padding-left: 6%;
}

.gallery-section {
    margin-top: 5rem;
}

.gallery-title {
    font-size: 40px;
    font-weight: 400;
    font-family: "Roboto Condensed", sans-serif;
    margin-bottom: 2rem;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background-color: #1F2932
}

.gallery-track {
    display: flex;
    gap: 2%;
    overflow: hidden;
    max-width: 100%;
}

.gallery-track img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    filter: grayscale(100%);
}

.gallery-track img:hover {
    filter: grayscale(0%);
}

.gallery-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 1rem;
    z-index: 2;
}

.gallery-arrow span {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 20px;
}

.gallery-arrow.left {
    position: absolute;
    left: 0;
}
.gallery-arrow.left:hover img {
    content: url('../images/buttons/btn_prev_hover.png');
}

.gallery-arrow.right {
    position: absolute;
    right: 0;
}

.gallery-arrow.right:hover img {
    content: url('../images/buttons/btn_next_hover.png');
}

.news-date {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: "Roboto Condensed", serif;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-section h3 {
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.award-block {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.award-block .place {
    font-size: 60px;
    font-weight: 300;
    color: #34424F;
    min-width: 120px;
    margin-right: 3rem;
    font-family: "Roboto Condensed", serif;
}

.award-block .participant {
    font-size: 1rem;
    color: white;
    font-family: "Roboto Condensed", serif;
}

.honor-list {
    list-style-type: none;
    padding-left: 0;
}

.honor-list li {
    margin-top: 3rem;
}

.gratitude {
    margin-top: 2rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Базовый слой */
}

/* Теперь обе линии находятся внутри background-layer */
.bg-lines-news, .content-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* линии фона */
.bg-lines-news div,
.content-lines div {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.border-top-news {
    padding-top: 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.border-bottom-news {
    padding-bottom: 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumbs {
    margin-left: 0;
    padding-left: 6%;
    padding-top: 2%;
    padding-bottom: 3%;
    font-size: 14px;
    font-family: "Roboto Condensed", sans-serif;
    color: rgba(255, 255, 255, 0.8);
    z-index: 100;
    position: relative;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    padding-left: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.breadcrumb-link:hover {
    opacity: 1;
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.4);
    text-overflow: ellipsis;
    overflow: hidden;
}

.participant-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: cover;
    border-radius: 2px;
}

.grading-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-left: 3%;
    padding-right: 3%;
    margin-top: 2rem;
}

.grading-track {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.grading-track::-webkit-scrollbar {
    display: none; /* Chrome */
}

.grade-column {
    min-width: 200px;
    flex-shrink: 0;
}

.grade-title {
    font-size: 60px;
    font-weight: 300;
    color: #34424F;
    font-family: "Roboto Condensed", serif;
    margin-bottom: 1rem;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: white;
    font-family: "Roboto Condensed", serif;
    white-space: nowrap;
}

.participant-item img.flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.gallery-arrow {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.gallery-image {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery-image:hover {
    transform: scale(1.03);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.no-scroll {
    overflow: hidden;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    max-width: 90%;
    max-height: 90%;
    background-color: #1f2932;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 1rem;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.popup-close:hover img {
    content: url('../images/buttons/close_hover.png');
}

.popup-body {
    flex-grow: 1;
    max-height: 75vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image {
    max-width: 100%;
    max-height: 100%;
}

.popup-footer {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 14px;
    color: white;
}

.popup-index {
    cursor: pointer;
    color: white;
}

.popup-index.active {
    color: #365B5E;
}

.bg-lines-news div:nth-child(1) { left: 6% }
.bg-lines-news div:nth-child(2) { left: 77%; }
.bg-lines-news div:nth-child(3) { left: 94%; }

.content-lines div:nth-child(1) { left: 23%; }
.content-lines div:nth-child(2) { left: 50%; }