/* UNBC Stephen Website - Main Stylesheet */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-container {
    padding: 0;
    margin: 0;
    max-width: none;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    color: #333;
    border-bottom: 3px solid #006699;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 10px 0 15px 0;
    background-color: #ffffff;
    gap: 20px;
    padding-left: 18%;
    min-height: 100px;
}

.header__banner {
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    padding: 0;
}

.header__banner-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}


.header__logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;   /* <-- CHANGE FROM 0 */
    top: 50%;     /* <-- CHANGE FROM 0 */
    transform: translateY(-50%); /* <-- ADD THIS LINE */
    z-index: 10;
}

.header__menu-icon {
    height: 100px;
    width: 250px;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
}


/* Collapsible navigation styles */
.nav__item--collapsible {
    transition: all 0.3s ease;
}

.nav__item--collapsible.hidden {
    display: none !important;
}

/* Publications styling */
.publications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publications-list__item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #006699;
    border-radius: 4px;
    line-height: 1.6;
}

.publications-list__item:last-child {
    margin-bottom: 0;
}

/* Figure styling */
.figure-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.figure-image {
    max-width: 50%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.figure-image:hover {
    transform: scale(1.05);
}

/* Modal overlay for expanded image */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.image-modal-close:hover {
    color: #fff;
}

.figure-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.figure-caption span[title] {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    color: #006699;
    transition: color 0.2s ease;
}

.figure-caption span[title]:hover {
    color: #004466;
    text-decoration-style: solid;
}

/* Content subtitle styling */
.content__subtitle {
    font-size: 1.3rem;
    color: #006699;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Table styling */
.table-container {
    margin: 2rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.table-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #006699;
}

.table-toggle {
    font-size: 1.2rem;
    color: #006699;
    transition: transform 0.3s ease;
    user-select: none;
}

.table-content {
    padding: 1rem;
    overflow-x: auto;
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.equipment-table caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: #006699;
    margin-bottom: 1rem;
    text-align: left;
}

.equipment-table th {
    background-color: #006699;
    color: #ffffff;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #004466;
}

.equipment-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.equipment-table tbody tr:hover {
    background-color: #f8f9fa;
}

.equipment-table tbody tr:last-child td {
    border-bottom: none;
}

.equipment-table td:nth-child(3),
.equipment-table td:nth-child(4) {
    text-align: center;
    font-weight: 600;
    color: #28a745;
}

.equipment-table td:nth-child(2) {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Navigation */
.nav__list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 2%;
}

.nav__link {
    color: #006699;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav__link:hover {
    background-color: #e8f4f8;
    color: #003366;
}

.nav__link--active {
    background-color: #006699;
    color: white;
}

.header__social {
    margin-left: auto;
}

.header__social-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #003366;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header__social-link:hover {
    background-color: #004d7a;
}

/* Main Content */
.main {
    padding: 20px 0;
    min-height: 60vh;
}

/* Hero Images */
.hero {
    margin-bottom: 30px;
}

.hero__images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.hero__image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #006699;
    border-radius: 4px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

/* Single wide hero image */
.hero__single-image {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.hero__wide-image {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: 50% 25%;
    border: 2px solid #006699;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Content Styles */
.content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.content__title {
    color: #006699;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #006699;
    padding-bottom: 10px;
}

.content__intro {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.content__text {
    margin-bottom: 15px;
    text-align: justify;
}

.content__link {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.content__link:hover {
    color: #006699;
    text-decoration: underline;
}

.content__list {
    margin: 20px 0;
    padding-left: 20px;
}

.content__list-item {
    margin-bottom: 8px;
    color: #333333;
}

/* Territorial Acknowledgement */
.territorial-acknowledgement {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #006699;
    margin: 30px 0;
}

.territorial-acknowledgement__title {
    color: #006699;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.territorial-acknowledgement__text {
    margin-bottom: 10px;
    font-style: italic;
}

/* Contact Section */
.contact {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #006699;
    margin: 30px 0;
}

.contact__title {
    color: #006699;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact__name {
    font-size: 18px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.contact__position,
.contact__affiliation {
    margin-bottom: 8px;
}

.contact__links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.contact__link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #006699;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact__link:hover {
    background-color: #003366;
}

/* Footer */
.footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer__text {
    font-size: 14px;
}

/* Page-specific styles */
.page-title {
    color: #006699;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #006699;
    padding-bottom: 10px;
}

/* People page styles */
.people-section {
    margin-bottom: 30px;
}

.people-section__title {
    color: #006699;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #006699;
    padding-bottom: 5px;
}

.people-list {
    list-style: none;
    padding-left: 20px;
}

.people-list__item {
    margin-bottom: 8px;
    color: #333333;
}

.people-list__item a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.people-list__item a:hover {
    color: #006699;
    text-decoration: underline;
}

/* Goals page styles */
.goals-intro {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.goals-list {
    margin: 20px 0;
    padding-left: 20px;
}

.goals-list__item {
    margin-bottom: 15px;
    color: #333333;
    font-weight: 500;
}

/* Themes page styles */
.themes-intro {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.theme-section {
    margin-bottom: 30px;
}

.theme-section__title {
    color: #006699;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #006699;
    padding-bottom: 5px;
}

.project-list {
    list-style: none;
    padding-left: 20px;
}

.project-list__item {
    margin-bottom: 15px;
}

.project-link {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.project-link:hover {
    color: #006699;
    text-decoration: underline;
}

.project-details {
    display: none;
    background-color: #f8f9fa;
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
    border-left: 3px solid #006699;
}

.project-details--visible {
    display: block;
}

/* Watershed page styles */
.watershed-intro {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.watershed-image {
    text-align: center;
    margin: 30px 0;
}

.watershed-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #006699;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.watershed-image__caption {
    font-size: 12px;
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.highlight {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
}
