
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}


.top-grey {
    height: 10px;
    background-color: #2c2c2c;
}

.top-nav {
    height: 127px;
    background: url('../images/top-bg.jpg') repeat-x;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin-left: auto;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 10px 14px;
    color: #353535;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Dosis', sans-serif;
    border-radius: 5px;
    transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #da1f21;
}


.slider-section {
    position: relative;
    height: 430px;
    background: url('../images/banner-home-bg.png') repeat-x;
}

.slider-container {
    max-width: 1040px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

#slider {
    height: 400px;
    margin-top: 15px;
    border: 8px solid #f4ead7;
    border-radius: 8px;
    overflow: hidden;
}

#slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.main-content {
    min-height: 700px;
    background: url('../images/noise.png') repeat;
    padding: 40px 0;
}

.content-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}


.content-container img {
    max-width: 100%;
    height: auto;
    margin: 22px 0;
    border: 1px solid #efefef;
    background: silver;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.content-container img:hover {
    border-color: #ccc;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    transform: scale(1.02);
}

.content-container p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.content-container p.text {
    font-size: 12px;
    text-align: justify;
}


.results-section,
.events-section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Dosis', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #da1f21;
}

.title-description {
    margin-bottom: 1.5rem;
    font-size: 14px;
    color: #666;
}

.results-grid,
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item,
.event-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.result-item:hover,
.event-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-date,
.event-date {
    width: 100px;
    font-weight: bold;
    color: #da1f21;
    flex-shrink: 0;
}

.result-text,
.event-text {
    flex: 1;
    margin: 0 1rem;
    font-size: 14px;
}

.result-pdf,
.event-pdf {
    flex-shrink: 0;
}

.pdf-link {
    display: inline-block;
    padding: 5px;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pdf-link:hover {
    background: #e0e0e0;
}

.pdf-link img {
    width: 48px;
    height: 48px;
    display: block;
}


.footer {
    height: 200px;
    background: url('../images/bg-footer.jpg') repeat-x;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 0;
    flex: 1;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 8px;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #da1f21;
}

.footer-logo {
    text-align: right;
}

.footer-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}


#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #da1f21;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #b01719;
    transform: translateY(-2px);
}


.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }


.gallery-container {
    width: 100%;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.gallery-grid a {
    display: block;
    line-height: 0;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-grid a:hover {
    transform: scale(1.05);
}

.gallery-grid a img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    max-width: 100% !important;
    box-shadow: none !important;
    transform: none !important;
}


.lightboxOverlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: black;
    opacity: 0.8;
    display: none;
    width: 100%;
    height: 100%;
}

.lightbox {
    position: fixed;
    z-index: 10000;
    width: 100%;
    text-align: center;
    line-height: 0;
    font-weight: normal;
    top: 0;
    left: 0;
}

.lightbox .lb-image {
    display: block;
    height: auto;
    max-width: inherit;
    max-height: none;
    border-radius: 3px;
    border: 4px solid white;
}

.lightbox a img {
    border: none;
}

.lb-outerContainer {
    position: relative;
    background-color: white;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0,0,0,.6);
}

.lb-outerContainer:after {
    content: "";
    display: table;
    clear: both;
}

.lb-loader {
    position: absolute;
    top: 43%;
    left: 0;
    height: 25%;
    width: 100%;
    text-align: center;
    line-height: 0;
}

.lb-cancel {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}

.lb-nav {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10;
}

.lb-container > .lb-nav {
    left: 0;
}

.lb-nav a {
    outline: none;
}

.lb-prev, .lb-next {
    height: 100%;
    cursor: pointer;
    display: block;
}

.lb-nav a.lb-prev {
    width: 34%;
    left: 0;
    float: left;
    opacity: 0;
    transition: opacity 0.6s;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

.lb-nav a.lb-prev:hover {
    opacity: 1;
}

.lb-nav a.lb-next {
    width: 64%;
    right: 0;
    float: right;
    opacity: 0;
    transition: opacity 0.6s;
    background: linear-gradient(to left, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-dataContainer {
    margin: 0 auto;
    padding-top: 5px;
    width: 100%;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
    content: "";
    display: table;
    clear: both;
}

.lb-data {
    padding: 0 4px;
    color: #ccc;
}

.lb-data .lb-details {
    width: 85%;
    float: left;
    text-align: left;
    line-height: 1.1em;
}

.lb-data .lb-caption {
    font-size: 13px;
    font-weight: bold;
    line-height: 1em;
}

.lb-data .lb-caption a {
    color: #4ae;
}

.lb-data .lb-number {
    display: block;
    clear: left;
    padding-bottom: 1em;
    font-size: 12px;
    color: #999;
}

.lb-data .lb-close {
    display: block;
    float: right;
    width: 30px;
    height: 30px;
    text-align: right;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
    font-size: 30px;
    color: white;
    font-weight: bold;
}

.lb-data .lb-close:hover {
    cursor: pointer;
    opacity: 1;
}

.lb-data .lb-close:before {
    content: '×';
}