/* styles.css */

:root {
    --main-font: 'Roboto', sans-serif;
    width: 100vw;
    max-width: 100%;
  }

body {
    font-family: var(--main-font);
    margin: 0;
    padding: 0;
    
}

/*----------------------------------------------------------------*/
/*Navigation Bar*/

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*background-color: #ffffff;*/
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    max-height: 50px; /* Adjust as needed */
    max-width: 250px;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

nav .right-section {
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    /*padding-right: 60px;*/
    /*padding-left: 10px;*/
}

.menu li {
    margin-right: 20px;
}

.menu a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 16px;
    padding: 8px 15px;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #575757;
    color: #ffffff;
    border-radius: 4px;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-left: 15px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ccc;
}

.social-icons img {
    width: 20px;
    height: 20px;
}

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile layout */
@media (max-width: 900px) {
    nav {
        flex-wrap: wrap;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    /* Use nav .right-section to match specificity of the base rule */
    nav .right-section {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        padding: 10px 0 16px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }

    nav .right-section.open {
        display: flex;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 8px;
        padding: 0;
    }

    .menu li {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .menu a {
        display: block;
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .social-icons {
        margin-top: 12px;
    }

    .social-icons a {
        margin-left: 10px;
    }
}

/*----------------------------------------------------------------*/
/*Footer*/

footer {
    text-align: center;
    margin: 20px;
    /*background-color: #f1f1f1;*/
    font-family: var(--main-font);
    color: #000;
}

.footer a, .footer a:visited { color: #000; }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
    display: flex;
    justify-content: center; /* center the li row */
    color: #000;
}
.footer-links li + li::before {
    content: " | ";
    margin: 0 .5rem;
}
.footer-links a { 
    text-decoration: none; 
    color: #000;
}
.footer-links a:hover { text-decoration: underline; }

/*----------------------------------------------------------------*/
/*Sponsor Section*/

.sponsor-logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.sponsor-logo {
    max-width: 200px;
    max-height: 75px;
    flex-basis: 23%; /* 4 logos per row, 23% width per logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-logo img {
    width: 100%;
    height: auto;
    max-width: 200px;
    max-height: 75px;
}

/* Responsive: One logo per row on smaller screens */
@media (max-width: 800px) {
    .sponsor-logo {
        flex-basis: 48%; /* 2 logos per row */
    }
}

@media (max-width: 480px) {
    .sponsor-logo {
        flex-basis: 100%; /* 1 logo per row */
    }
}

/*----------------------------------------------------------------*/
/*Not found message*/

.center-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 24px;
    font-weight: bold;
    color: #dc3545; /* Red color for error */
    text-align: center;
    font-family: Arial, sans-serif;
}


/*----------------------------------------------------------------*/
/*gallery section*/

.gallery-title {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 24px;
}

.keyword-filter {
    text-align: center;
    margin-bottom: 20px;
}

.keyword-filter a {
    margin: 5px;
    padding: 5px 10px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    background-color: #f0f0f0;
}

.keyword-filter a.active {
    background-color: #e0e0e0;
}

.gallery-container {
    max-width: 1200px;
    margin: 20px;
    width: 100%;
    margin-inline: auto;
}

.tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 20px;
}

.tile-container {
    width: calc(25% - 20px);
    margin: 10px;
}

.tile-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.file-name {
    text-align: center;
    margin-top: 5px;
}

@media (max-width: 920px) {
    .tile-container {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .tile-container {
        width: calc(100% - 20px);
    }
}



/*----------------------------------------------------------------*/
/*pagination*/

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
}

.page-link.active {
    background-color: #e0e0e0;
}

/*----------------------------------------------------------------*/
/*Buttons*/

.button-link {
    text-align: center;
    margin-bottom: 20px;
}

.button-link a {
    padding: 10px 20px;
    background-color: #2c88d9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.button-link a:hover {
    background-color: #1c5e91;
    transition: background-color 0.3s ease;
}

/*----------------------------------------------------------------*/
/*Homepage*/

.banner-section {
    width: 100%;
    overflow: hidden; /* hides any overflow from object-fit cropping */
}

.banner-line {
    width: 100%;
    height: 4px;           /* thickness of the line */
    background-color: #2c88d9; /* change color as needed */
}

.banner-section img {
    display: block;
    width: 100%;
    max-height: 500px; /* desktop max height */
    height: auto;
    object-fit: cover;
}

/* On mobile: force exactly 500px height */
@media screen and (max-width: 768px) {
    .banner-section img {
        height: 500px;
        width: 100%;
        max-height: none; /* remove the desktop limit */
        object-fit: cover;
    }
}

/* Content block (logo + text) */
.banner-content {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Logo styling */
.banner-logo img {
    width: 400px;
    height: auto;
    display: block;
    margin: 0 auto; /* Center horizontally */
}

.banner-header {
    font-size: 2rem;
    font-weight: bold;
    margin: 15px auto 0 auto;
    max-width: 600px;
    text-align: center;
    margin-top: 15px;
    color: #000; 
}

.banner-text {
    font-size: 1rem; 
    font-weight: bold;
    margin: 15px auto 0 auto;
    max-width: 600px;
    text-align: center;
    margin-top: 15px;
    color: #000;           
}

.banner-text-normal {
    font-size: 1rem; 
    font-weight: normal;
    margin: 15px auto 0 auto;
    max-width: 600px;
    text-align: center;
    margin-top: 15px;
    color: #000;           
}


/*----------------------------------------------------------------*/
/* Schedule block */

.schedule-page {
    max-width: 1200px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.schedule-page-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
}

/* Year header */

.schedule-year {
    margin-bottom: 24px;
}

.schedule-year-header {
    margin-bottom: 8px;
}

.schedule-year-title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 3px solid #2c88d9; /* matches your blue accent */
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.schedule-year-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: #2c88d9;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Event bars */

.schedule-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-event-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: #f7f7f7;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.schedule-event-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-event-date {
    font-size: 14px;
    font-weight: bold;
}

.schedule-event-location {
    font-size: 14px;
    color: #555;
}

/* Right-hand links inside the bar */

.schedule-event-right {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 10px;
}

.schedule-event-link {
    font-size: 13px;
    padding: 6px 10px;
    text-decoration: none;
    background-color: #2c88d9;
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.schedule-event-link:hover {
    background-color: #1c5e91;
}

/* Mobile layout: stack date/location above links */

@media (max-width: 700px) {
    .schedule-event-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .schedule-event-right {
        margin-left: 0;
    }
}