/* General Body and Font Styling */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* --- Main Header Styling (Double Header) --- */
.main-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-strip {
    height: 5px;
    background-color: #FFFACD;
}

.middle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
}

.middle-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oe-globe-logo {
    height: 45px;
}

.header-tagline {
    font-size: 1.3em; 
    color: #333;
    margin-left: 10px;
    white-space: nowrap;
}

.header-tagline-link {
    text-decoration: none;
    color: inherit;
}

.middle-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* NEW STYLE FOR HEADER DATE */
.last-update-banner {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
}

/* --- Navigation Bar --- */
.bottom-nav-bar {
    background-color: #002147;
    padding: 0 30px;
    height: 55px;
    display: flex;
    align-items: center;
}

.bottom-nav-bar > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.bottom-nav-bar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    padding: 15px 0;
    transition: color 0.2s ease-in-out;
}

.bottom-nav-bar a:hover {
    color: #e0e0e0;
}

/* --- Main Content Area Styling --- */
.page-content {
    padding: 20px 60px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 60px;
}

.content-header {
    margin-bottom: 15px;
}

.content-header h2 {
    font-size: 2.2em;
    color: #002147;
    margin-bottom: 10px;
    text-align: left;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: #00ADDC;
}

.content-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.text-column {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    line-height: 1.6;
    font-size: 1.05em;
    color: #444;
}

.text-column ul {
    list-style: disc;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 20px;
}

.text-column li {
    margin-bottom: 15px;
}

.text-column ul li strong {
    color: #00ADDC;
}

/* NEW: Custom styling for publication links */
.text-column ul li a {
    color: #00ADDC;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.text-column ul li a:hover {
    color: #008fb5; /* A slightly darker shade for hover */
    text-decoration: underline;
}

.text-column .highlight {
    font-weight: bold;
    color: #002147;
}

.image-column {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    text-align: right;
}

.image-chart-intro {
    text-align: left;
    margin-bottom: 15px;
}

.image-chart-intro h3 {
    font-size: 1.15em;
    font-weight: normal;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}

.image-chart-intro p {
    font-size: 0.95em;
    color: #666;
    margin: 0;
}

.image-column img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Table Styling --- */
.table-responsive-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 1em;
    color: #333;
    table-layout: fixed;
    border-top: 2px solid #002147;
    border-bottom: 2px solid #002147;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
    font-family: "Segoe UI", Arial, sans-serif;
}

.data-table th {
    background-color: #002147;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

/* Specific column widths and alignment overrides */
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 8%; white-space: nowrap; } /* Date or Closed On */
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 13%; white-space: normal; } /* Call */
.data-table th:nth-child(3) { width: 54%; text-align: center; } /* Description Header */
.data-table td:nth-child(3) { width: 54%; text-align: left; vertical-align: top; } /* Description Cell */
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 7%; white-space: nowrap; } /* Return */
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 5%; white-space: nowrap; } /* Unit */
.data-table th:nth-child(6), .data-table td:nth-child(6) { width: 5%; white-space: nowrap; } /* Asset */
.data-table th:nth-child(7), .data-table td:nth-child(7) { width: 8%; white-space: nowrap; } /* Status or Opened On */


/* Styling for Hyperlinks in Table Cells */
.data-table a {
    color: #007bff;
    text-decoration: underline;
}
.data-table a:hover {
    color: #0056b3;
}

.table-footer {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    padding-left: 10px;
}
.table-footer p {
    margin: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .content-body {
        flex-direction: column;
        gap: 20px;
    }

    .text-column,
    .image-column {
        max-width: 100%;
        min-width: unset;
        text-align: left;
    }

    .image-column img {
        margin: 0 auto;
    }

    .image-chart-intro {
        text-align: left;
    }

    .page-content {
        padding: 20px 20px;
    }

    .content-header h2 {
        font-size: 1.8em;
    }

    .text-column {
        font-size: 1em;
    }
    
    .data-table {
        font-size: 0.8em;
    }
    .data-table th, .data-table td {
        white-space: normal;
        padding: 5px;
    }
    
    .data-table th:nth-child(n), .data-table td:nth-child(n) {
        width: auto;
    }

    /* --- Hide Description on Mobile --- */
    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        display: none;
    }

    /* --- Team Page Responsive --- */
    .team-member-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-image-container {
        width: 120px; /* Slightly smaller on mobile */
    }
}

/* --- Animation for scrolling --- */
.fade-in-element {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- NEW STYLE FOR INTRO TEXT --- */
.intro-text {
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.5;
    color: #444;
}

.intro-text p {
    margin-top: 0;
    margin-bottom: 10px;
}

.intro-text p a {
    color: #00ADDC;
    font-weight: 600;
    text-decoration: none;
}

.intro-text p a:hover {
    text-decoration: underline;
}

/* --- NEW STYLE FOR CHART CONTAINER --- */
.chart-container {
    width: 100%;
    margin-top: 10px;
}

/* --- NEW: Team Page Styling --- */
.team-member-profile {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.team-member-profile:last-child {
    border-bottom: none; /* Removes border from the last profile */
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-image-container {
    flex: 0 0 150px; /* Do not grow, do not shrink, base width of 150px */
    width: 150px;
}

.profile-image-container img {
    width: 100%;
    height: auto;
    border-radius: 50%; /* Makes the image circular */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-details {
    flex: 1; /* Takes up the remaining space */
}

.profile-details h3 {
    font-size: 1.8em;
    color: #002147;
    margin-top: 0;
    margin-bottom: 5px;
}

.profile-details h4 {
    font-size: 1.2em;
    color: #555;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    font-style: italic;
}

.profile-details p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.profile-details .contact-info {
    margin-top: 20px;
    font-size: 0.95em;
}

.profile-details .contact-info a {
    color: #00ADDC;
    font-weight: 600;
    text-decoration: none;
}

.profile-details .contact-info a:hover {
    text-decoration: underline;
}

.profile-publications-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background-color: #002147;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.profile-publications-btn:hover {
    background-color: #00ADDC;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}