/* Basic Reset & Global Styles */
/* Owen's Spaghetti code below */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f0f0f0; 
    line-height: 1.6;
}

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

a {
    color: #0056b3; 
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin-bottom: 0.8em;
}

.top-bar {
    background-color: #3c5097; 
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left .site-name-main {
    font-weight: bold;
    margin-right: 10px;
}

.top-bar-left .site-name-sub {
    font-size: 0.9em;
    opacity: 0.8;
}

.top-bar-right a {
    color: #fff;
    margin-left: 20px;
    font-weight: bold;
}
.top-bar-right a:hover {
    text-decoration: none;
    opacity: 0.8;
}
.top-bar-right .fa-chevron-right {
    font-size: 0.8em;
    margin-left: 3px;
}

main {
    padding: 40px 0;
    background-color: #f8f8f8; 
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    display: inline-block; 
}

.logo img {
    display: block;
    width: 350px;  
    max-width: 100%; 
    height: auto; 
}

.search-section h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    font-weight: normal;
    line-height: 1.4;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form input[type="search"] {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-form button[type="submit"] {
    background-color: #FFF92E;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
}
.search-form button[type="submit"] .fa-search {
    margin-left: 8px;
}
.search-form button[type="submit"]:hover {
    background-color: #e6c200; 
}

.search-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    font-size: 0.9em;
    color: #555;
}

.search-filters select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.search-filters .checkbox-label {
    display: flex;
    align-items: center;
}

.search-filters input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #d9534f; 
}

.main-footer {
    background-color: #e9ecef; 
    padding: 40px 0;
    color: #333;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center; 
}

.footer-column h2 {
    font-size: 1.1em;
    color: #3c5097;
    margin-bottom: 15px;
}
.footer-column h3 {
    font-size: 1em;
    color: #3c5097;
    margin-bottom: 10px;
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-column a {
    color: #0056b3;
    display: block; 
    margin-bottom: 5px;
}
.footer-column a:hover {
    color: #003f7f;
}

.footer-column .copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #555;
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5em;
    color: #333;
}
.social-icons a:hover {
    color: #0056b3;
}

.sub-footer {
    background-color: #3c5097;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.sub-footer nav a {
    color: #fff;
    margin: 0 15px;
    font-size: 0.9em;
}
.sub-footer nav a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-left, .top-bar-right {
        margin-bottom: 5px;
    }
    .top-bar-right a {
        margin: 0 10px;
    }

    .search-section h1 {
        font-size: 1.6em;
    }

    .search-form {
        flex-direction: column;
    }
    .search-form input[type="search"],
    .search-form button[type="submit"] {
        border-radius: 4px;
        margin-bottom: 10px;
        border-right: 1px solid #ccc; 
    }
    .search-form button[type="submit"] {
        margin-bottom: 0;
    }

    .search-filters {
        flex-direction: column;
        align-items: flex-start; 
        margin-left: auto;
        margin-right: auto;
        max-width: 300px;
    }
    .search-filters select {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .footer-column {
        margin-bottom: 20px;
    }
    .footer-links-social {
        text-align: center; 
    }
    .footer-column a {
        display: inline-block; 
        margin: 5px 5px;
    }
    .social-icons a {
         margin: 0 10px;
    }
    .footer-column .copyright {
        text-align: center;
    }

    .sub-footer nav a {
        display: block;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .top-bar-left .site-name-sub {
        display: block;
        margin-top: 3px;
    }
    .search-section h1 {
        font-size: 1.4em;
    }
}
/* LOGIN */
.login-page-main {
    padding: 40px 20px;
    background-color: #f0f0f0; 
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: calc(100vh - 200px); 
}

.login-content-area {
    background-color: #fff; 
    padding: 30px 40px;
    border: 1px solid #e0e0e0; 
    border-radius: 5px;
    max-width: 500px; 
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    text-align: left;
}

.login-branding {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee; 
    padding-bottom: 25px;
}

.login-form-logo {
    width: 70px; 
    height: auto;
    margin-right: 20px;
}

.login-form-title-text {
    font-size: 1.8em; 
    color: #3c5097; 
    font-weight: 600; 
    line-height: 1.2;
}

.login-instructions {
    margin-bottom: 25px;
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.actual-login-form .form-field {
    margin-bottom: 20px;
}

.actual-login-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #333;
}

.actual-login-form input[type="text"],
.actual-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.btn-logon {
    background-color: #FFF92E; 
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block; 
    text-align: center;
}

.btn-logon:hover {
    background-color: #e6c200; 
}

.login-form-links {
    margin-top: 25px;
    margin-bottom: 25px;
}

.login-form-links a {
    display: block; 
    color: #0056b3; 
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.login-form-links a:hover {
    text-decoration: underline;
}

.login-form-links i {
    margin-right: 8px;
    color: #0056b3; 
    width: 20px; 
    text-align: center;
}

.login-form-separator {
    border: 0;
    border-top: 1px solid #eee; 
    margin: 25px 0;
}

.login-form-footer-info {
    font-size: 0.85em;
    color: #666;
    text-align: left;
}

.login-form-footer-info p {
    margin-bottom: 6px;
}

.login-form-footer-info a {
    color: #0056b3;
    text-decoration: none;
}

.login-form-footer-info a:hover {
    text-decoration: underline;
}

@media (max-width: 540px) {
    .login-content-area {
        padding: 20px;
        margin: 0 10px; 
    }

    .login-branding {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .login-form-logo {
        margin-bottom: 15px; 
    }
    .login-form-title-text {
        font-size: 1.6em;
    }
}

/* CALANDAR */

.calendar-page-main {
    padding: 40px 20px;
    background-color: 
    min-height: calc(100vh - 230px); 
    display: flex; 
    align-items: flex-start;
    justify-content: center; 
}

.calendar-content-area {
    background-color: #fff;
    padding: 30px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    max-width: 900px; 
    width: 100%; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left; 
    margin-top: 20px;
    margin-bottom: 20px; 
}

.calendar-content-area h1 {
    font-size: 2em;
    color: #3c5097; 
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.calendar-intro {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

.calendar-image-container {
    margin-bottom: 30px;
    text-align: center; 
}

.calendar-image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd; 
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.official-calendar-link {
    text-align: center;
    font-size: 1.1em;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee; 
}

.official-calendar-link a {
    color: #0056b3;
    font-weight: bold;
}

.official-calendar-link a:hover {
    text-decoration: underline;
    color: #003f7f;
}

@media (max-width: 960px) { 
    .calendar-content-area {
        max-width: 100%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .calendar-content-area h1 {
        font-size: 1.6em;
    }
    .calendar-intro, .official-calendar-link {
        font-size: 1em;
    }
}

@media (max-width: 540px) {
    .calendar-content-area h1 {
        font-size: 1.4em;
    }
     .calendar-page-main {
        padding: 20px 10px;
    }
    .calendar-content-area {
        padding: 20px 15px;
    }
}
/* SEARCH */

.search-results-main {
    background-color: #f9f9f9;
    padding: 30px 20px;
    min-height: calc(100vh - 230px); 
}

.search-header {
    background-color: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 30px;
}

.search-header .search-form {
    max-width: none; /* Override homepage max-width */
    margin-bottom: 15px;
}
.search-header .search-filters {
    margin-top: 15px;
}

/* Summary and sorting bar */
.results-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 15px;
}

.summary-text {
    font-size: 1em;
    color: #333;
}

.summary-text strong {
    color: #000;
}

.sort-options label {
    margin-right: 8px;
    font-size: 0.9em;
    color: #555;
}

.sort-options select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9em;
}

/* Results Grid Layout */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding-top: 10px;
}

.result-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.result-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.result-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.result-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: #f0f0f0;
    display: block;
}

.result-card h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    padding: 15px 10px;
}


.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
}

.pagination a, .pagination span {
    display: block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0056b3;
    background-color: #fff;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.pagination .current-page {
    background-color: #3c5097;
    color: #fff;
    border-color: #3c5097;
    font-weight: bold;
    cursor: default;
}

.pagination .page-disabled {
    color: #aaa;
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-summary-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .result-card h3 {
        font-size: 0.9em;
        padding: 10px 5px;
    }
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}
