/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* 1. Changed background from gray to white */
    background-color: #fff;
}

/* === BANNER STYLES (FOR INDEX PAGE) === */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/background.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.banner .profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.banner h1 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.banner p {
    margin: 5px 0;
    font-size: 1.1em;
    color: #ccc;
}

.banner .social-icons {
    margin-top: 20px;
}

.banner .social-icons a svg {
    height: 1.8em;
    width: auto;
    vertical-align: middle;
    fill: white;
}

.banner .social-icons a {
    display: inline-block;
    margin: 0 12px; /* Adds horizontal space between icons */
}
/* === STANDALONE NAV BAR (FOR INDEX PAGE) === */
nav.main-nav {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
}

nav.main-nav a {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    font-size: 1.2em;
}

nav.main-nav a:hover {
    background-color: #f8f8f8;
    color: #007BFF;
}


/* === LIGHT HEADER (FOR OTHER PAGES) === */
.light-header {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.light-header .lab-name {
    font-size: 1.5em;
    font-weight: bold;
}

.light-header .lab-name a {
    color: white;
    text-decoration: none;
}

.light-header nav a {
    color: #ccc;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 1.1em;
}

.light-header nav a:hover {
    color: white;
}


/* === GENERAL CONTENT STYLES === */
main {
    max-width: 1200px; /* Increased max-width for the grid */
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: none;
}

/* This targets the main content area on pages WITHOUT the grid */
main:not(.container) {
    max-width: 800px;
}
/* === UPDATED NEWS SECTION STYLE === */
#news ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
    border: none; /* Remove the box border */
    max-height: 250px; /* Optional: adjust scroll height */
    overflow-y: auto;
}

#news li {
    padding: 12px 0;
    border-bottom: 0px solid #eee; /* Clean separator line */
    display: flex;
    align-items: center;
}

/* Add a decorative icon before each news item */
#news li::before {
    content: '◈'; /* You can use any emoji or character */
    margin-right: 15px;
    font-size: 0.8em;
}

/* Style the last item without a bottom border */
#news li:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 20px;
}
/* === NEW STYLES FOR RESEARCH PAGE TABS === */

.tab-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 20px auto;
    border-bottom: 1px solid #eee;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 700px;
    gap: 10px;
}

.tab-button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1em;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    text-align: center;
    white-space: nowrap;
}

.tab-button:hover {
    color: #007BFF;
}

.tab-button.active {
    color: #333;
    font-weight: bold;
    border-bottom: 3px solid #007BFF;
}

.tab-panel {
    display: none; /* Hide all panels by default */
    padding: 0px 0;
    border-top: 1px solid #eee;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.tab-panel.active {
    display: block; /* Show only the active panel */
}

.research-columns {
    display: flex;
    gap: 20px; /* Space between columns */
    margin-top: 0px;
}

.column {
    flex: 1; /* Each column takes up equal space */
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.column img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

/* === NEW STYLES FOR CONTENT LINKS === */

/* Style for links within the main content area */
main a {
    color: #007BFF; /* A standard, vibrant blue */
    text-decoration: none; /* Removes the default underline */
    transition: color 0.2s ease; /* Adds a smooth color change effect */
}

/* Style for when you move the mouse over the link */
main a:hover {
    color: #FFC107; /* A bright, vibrant yellow */
    text-decoration: none; /* Adds an underline on hover for clarity */
}

/* === NEW STYLES FOR SHARES PAGE === */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.container header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.container header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 50px;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-btn:hover {
    background-color: #eef2f5;
    color: #000;
}

/* This targets ONLY the filter buttons on the Shares page */
.filter-tabs .tab-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* This targets ONLY the navigation tabs on the Research page */
.tab-buttons .tab-button.active {
    color: #333;
    font-weight: bold;
    border-bottom: 3px solid #007BFF;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    opacity: 1;
}

.card.hidden {
    display: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: #eef2f5;
    color: #555;
}
.card-tag.event {
    background-color: #e0eaff;
    color: #0056b3;
}

.card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.card-excerpt, .card-meta {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.card-cta {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}
.card-cta:hover {
    text-decoration: underline;
}

.card-image-container {
    position: relative;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 70px;
    pointer-events: none;
    backdrop-filter: blur(3px);
}