/* FONT FACES */
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-ThinItalic.ttf') format('truetype'); font-weight: 100; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-ExtraLightItalic.ttf') format('truetype'); font-weight: 200; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-SemiBoldItalic.ttf') format('truetype'); font-weight: 600; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-ExtraBoldItalic.ttf') format('truetype'); font-weight: 800; font-style: italic; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-BlackItalic.ttf') format('truetype'); font-weight: 900; font-style: italic; }

/* BODY */
body {
    font-family: 'Raleway', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.main-content {
    flex: 1;
}

/* PAGE HEADER */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 80px 40px 60px;
    padding-top: 110px;
    text-align: center;
    color: white;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: -20px; /* compensate for blur edge fade */
    background: url('../images/header_2.avif');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 0;
}
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #00569d80;
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin: 0;
    margin-top: 20px;
    opacity: 0.95;
}

/* NEWS SECTION */
.news-section {
    padding: 80px 40px;
    background: #fff;
    min-height: 60vh;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.no-news {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.news-item {
    margin-bottom: 0;
    border-bottom: 2px solid #333;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
}

.news-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    color: #333;
    line-height: 1.4;
    font-family: 'Raleway', Arial, sans-serif;
    flex: 1;
}

.news-date-inline {
    font-weight: normal;
    font-size: 0.78em;
    margin-right: 12px;
    opacity: 0.65;
}

.news-toggle {
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.news-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(.25,0,.2,1);
}

.news-content-inner {
    padding: 0 24px 25px 24px;
}

.news-content-inner p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-family: 'Raleway', Arial, sans-serif;
}

.news-content-inner p:last-child {
    margin-bottom: 0;
}

.news-content-inner ul,
.news-content-inner ol {
    margin: 15px 0;
    padding-left: 30px;
}

.news-content-inner li {
    margin: 8px 0;
    line-height: 1.6;
    font-family: 'Raleway', Arial, sans-serif;
}

.news-content-inner a {
    color: #00579D;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.news-content-inner a:hover {
    border-bottom-color: #00579D;
}

.news-content-inner h1,
.news-content-inner h2,
.news-content-inner h3,
.news-content-inner h4,
.news-content-inner h5,
.news-content-inner h6 {
    margin: 20px 0 10px;
    color: #00579D;
    font-family: 'Raleway', Arial, sans-serif;
}

.news-content-inner img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

/* NEWS IMAGES GRID */
.news-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 24px 28px;
}

.news-img-thumb {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
    flex: 0 0 auto;
    outline: none;
}

.news-img-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.22s ease;
    pointer-events: none;
}

.news-img-thumb:hover::after {
    background: rgba(255, 255, 255, 0.22);
}

.news-img-thumb img {
    display: block;
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin: 0;
    transition: transform 0.3s ease;
    user-select: none;
}

.news-img-thumb:hover img {
    transform: scale(1.06);
}

/* LIGHTBOX */
@keyframes lb-fade-in  { from { opacity: 0; }                    to { opacity: 1; } }
@keyframes lb-fade-out { from { opacity: 1; }                    to { opacity: 0; } }
@keyframes lb-img-in   { from { opacity: 0; transform: scale(0.96); }  to { opacity: 1; transform: scale(1); } }
@keyframes lb-img-prev { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lb-img-next { from { opacity: 0; transform: translateX(40px);  } to { opacity: 1; transform: translateX(0); } }

.news-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 12, 0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-lightbox.open {
    display: flex;
    animation: lb-fade-in 0.2s ease forwards;
}

.news-lightbox.closing {
    display: flex;
    animation: lb-fade-out 0.18s ease forwards;
}

.lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 82vh;
    flex-shrink: 0;
}

.lightbox-img-wrap img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    user-select: none;
    display: block;
}

.lightbox-img-wrap img.anim-in   { animation: lb-img-in   0.22s ease forwards; }
.lightbox-img-wrap img.anim-prev { animation: lb-img-prev 0.22s ease forwards; }
.lightbox-img-wrap img.anim-next { animation: lb-img-next 0.22s ease forwards; }

/* top bar */
.lightbox-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    z-index: 10001;
}

.lightbox-counter {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    user-select: none;
}

.lightbox-close {
    position: static;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.15s;
    z-index: 10001;
}

.lightbox-close:hover { color: #fff; }

/* prev / next */
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 20px 14px;
    transition: color 0.15s, background 0.15s;
    z-index: 10000;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-prev.hidden,
.lightbox-next.hidden {
    opacity: 0;
    pointer-events: none;
}

/* caption */
.lightbox-caption {
    margin-top: 14px;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.38);
    text-align: center;
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

/* filmstrip */
.lightbox-filmstrip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    z-index: 10001;
}

.lb-film-thumb {
    width: 52px;
    height: 36px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.38;
    border: 2px solid transparent;
    transition: opacity 0.18s, border-color 0.18s;
    flex-shrink: 0;
    user-select: none;
}

.lb-film-thumb:hover { opacity: 0.75; }

.lb-film-thumb.active {
    opacity: 1;
    border-color: #fff;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
    padding: 12px 18px;
    background: white;
    color: #00579D;
    text-decoration: none;
    border: 2px solid #00579D;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: #00579D;
    color: white;
}

.pagination-number.active {
    background: #00579D;
    color: white;
    cursor: default;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 10px 8px;
    color: #333;
    font-weight: 600;
}

.pagination-info {
    text-align: center;
    color: #333;
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px 50px;
    }

    .page-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .news-section {
        padding: 40px 20px;
    }

    .news-header {
        padding: 20px 0;
    }

    .news-title {
        font-size: 18px;
        padding-right: 8px;
    }

    .news-date-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .news-content-inner {
        padding: 0 8px 20px 8px;
    }

    .news-images {
        padding: 0 8px 20px;
        gap: 8px;
    }

    .news-img-thumb img {
        width: 120px;
        height: 82px;
    }

    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }

    .pagination {
        gap: 6px;
    }

    .pagination-btn,
    .pagination-number {
        padding: 8px 12px;
        font-size: 13px;
    }

    .pagination-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .news-title {
        font-size: 16px;
    }

    .pagination-number {
        padding: 6px 10px;
        font-size: 12px;
    }
}
