/* Search page styling */
.search-container.expanded {
    margin-bottom: 2em;
    padding: 1.5em;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 1em;
}

.search-field label,
.filter-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #333;
}

.search-field input[type="text"] {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    font-size: 1em;
}

.filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.filter-field {
    flex: 1;
    min-width: 200px;
}

.filter-field select {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    font-size: 1em;
    background-color: white;
}

.search-buttons {
    display: flex;
    gap: 0.5em;
}

.search-button {
    padding: 0.7em 1.5em;
    background-color: #0645ad;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
}

.search-button:hover {
    background-color: #0b0080;
}

.reset-button {
    padding: 0.7em 1.5em;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reset-button:hover {
    background-color: #eaecf0;
}

.no-results {
    padding: 1.5em;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    text-align: center;
    font-style: italic;
}

.results-count {
    margin-bottom: 1.5em;
    font-weight: bold;
}

.veterans-list.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.search-results .veteran-card {
    margin-bottom: 0;
}

.search-instructions {
    margin-top: 1.5em;
}

.search-instructions h2 {
    font-size: 1.3em;
    margin-bottom: 0.7em;
}

.search-instructions ul {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.search-instructions li {
    margin-bottom: 0.5em;
}

.alert {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 3px;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive adjustments for search page */
@media (min-width: 768px) {
    .search-filters {
        flex-direction: row;
    }
    
    .search-field {
        flex: 1;
        min-width: 200px;
    }
    
    .filter-fields {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .search-field, 
    .filter-field {
        margin-bottom: 1em;
    }
    
    .search-buttons {
        flex-direction: column;
    }
    
    .search-button, 
    .reset-button {
        width: 100%;
    }
}
/* About page styling */
.about-section {
    display: flex;
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #a2a9b1;
}

.about-image {
    flex: 0 0 300px;
    margin-right: 2em;
}

.about-image img {
    max-width: 100%;
    border: 1px solid #a2a9b1;
    padding: 4px;
    background-color: #fff;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-top: 0;
    color: #222;
    font-size: 1.6em;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.3em;
}

.project-section h2 {
    color: #222;
    font-size: 1.6em;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.3em;
}

.project-section h3 {
    color: #222;
    font-size: 1.3em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.project-section p {
    line-height: 1.7;
    margin-bottom: 1em;
}

/* Responsive layout for about page */
@media (max-width: 767px) {
    .about-section {
        flex-direction: column;
    }
    
    .about-image {
        margin-right: 0;
        margin-bottom: 1.5em;
        text-align: center;
    }
    
    .about-image img {
        max-width: 250px;
    }
}
/* Enhanced Wikipedia-style formatting */

/* Improved veteran profile layout */
.veteran-profile {
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
}

/* Profile header section */
.profile-header {
    display: flex;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid #a2a9b1;
}

.profile-photo {
    flex: 0 0 240px;
    margin: 0 1.5em 1em 0;
}

.profile-photo img {
    max-width: 100%;
    border: 1px solid #a2a9b1;
    padding: 4px;
    background-color: #fff;
}

.profile-photo figcaption {
    font-size: 0.9em;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
    color: #54595d;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h3 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.3em;
}

.profile-info dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5em 1em;
    margin: 0;
}

.profile-info dt {
    font-weight: bold;
    color: #54595d;
}

.profile-info dd {
    margin: 0;
}

/* Main content sections */
.profile-content {
    width: 100%;
}

.profile-content section {
    margin-bottom: 2em;
}

.profile-content h2 {
    font-size: 1.5em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-bottom: 0.2em;
    border-bottom: 1px solid #a2a9b1;
}

/* Video container styles */
.video-container {
    margin: 2em 0;
    padding: 1em;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 1em;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #a2a9b1;
}

/* Comments section */
.comments-section {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
}

.comments-section h2 {
    font-size: 1.4em;
    margin-top: 0;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.3em;
}

.comment {
    margin: 1.5em 0;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eaecf0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.comment-author {
    font-weight: bold;
    color: #222;
}

.comment-date {
    color: #72777d;
}

.comment p {
    margin: 0.5em 0;
}

/* Comment form */
.comment-form {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #a2a9b1;
}

.comment-form h3 {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 1em;
}

.form-group {
    margin-bottom: 1em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
}

button.btn {
    padding: 0.6em 1.2em;
    background-color: #0645ad;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
}

button.btn:hover {
    background-color: #0b0080;
}

/* Alerts */
.alert {
    padding: 0.75em 1em;
    margin: 1em 0;
    border-radius: 3px;
}

.alert-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.alert-danger {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Veterans archive listing page */
.veterans-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

.veterans-list .veteran-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.veterans-list .veteran-card-content {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2em 0;
    gap: 0.5em;
}

.pagination a, .pagination span {
    padding: 0.5em 0.8em;
    border: 1px solid #a2a9b1;
    text-decoration: none;
    color: #0645ad;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.pagination span.current {
    background-color: #0645ad;
    color: white;
    border-color: #0645ad;
}

/* Enhanced responsiveness */
@media (min-width: 768px) {
    .veteran-profile {
        flex-direction: row;
    }
    
    .profile-sidebar {
        flex: 0 0 240px;
        margin-right: 2em;
    }
    
    .profile-content {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .profile-header {
        flex-direction: column;
    }
    
    .profile-photo {
        margin-right: 0;
        text-align: center;
    }
    
    .profile-info dl {
        grid-template-columns: 100px 1fr;
    }
    
    .veterans-list {
        grid-template-columns: 1fr;
    }
}

/* Wikipedia-style Table of Conten

ts */
.table-of-contents {
    display: table;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 7px;
    font-size: 95%;
    margin-bottom: 1.5em;
    max-width: 360px;
}

.toc-header {
    font-weight: bold;
    text-align: center;
    font-size: 100%;
    margin-bottom: 0.5em;
}

.table-of-contents ol {
    counter-reset: item;
    list-style-type: none;
    margin: 0;
    padding-left: 0;
}

.table-of-contents ol li {
    display: block;
    padding: 0.2em 0;
}

.table-of-contents ol li:before {
    content: counters(item, ".") ". ";
    counter-increment: item;
}

.table-of-contents a {
    color: #0645ad;
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* Service details formatting */
.service-details {
    margin-bottom: 1em;
}

.service-notes {
    line-height: 1.6;
}

/* Interview metadata and description */
.interview-metadata {
    margin-bottom: 1em;
}

.interview-description {
    margin-bottom: 1.5em;
}

/* Form help text */
.form-help {
    font-size: 0.9em;
    color: #54595d;
    margin-bottom: 1em;
}

/* For when no video or comments are available */
.no-video, .no-comments {
    padding: 1em;
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    text-align: center;
    font-style: italic;
    color: #54595d;
}

/* Comment content container */
.comment-content {
    line-height: 1.5;
}

/* Create space between sections for better readability */
.content h1, .content h2, .content h3 {
    clear: both;
    margin-top: 1.5em;
}

.content h1 {
    margin-top: 0;
}

/* Styling for the first paragraph of biography for emphasis */
#biography p:first-of-type {
    font-size: 1.05em;
}

/* Basic Wikipedia-inspired styling */
body {
    font-family: 'Liberation Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #222;
    background-color: #f8f9fa;
    max-width: 100%;
    overflow-x: hidden;
}

/* Header and navigation */
header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #a2a9b1;
    padding: 0.5em 0;
    position: relative;
}

.site-title {
    margin: 0;
    padding: 0.5em 0;
    text-align: center;
    font-size: 1.8em;
    font-weight: normal;
}

nav.top-nav {
    display: flex;
    justify-content: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #a2a9b1;
}

nav.top-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.top-nav li {
    margin: 0;
    padding: 0;
}

nav.top-nav a {
    display: block;
    padding: 0.5em 1em;
    color: #0645ad;
    text-decoration: none;
}

nav.top-nav a:hover {
    text-decoration: underline;
}

/* Main content */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Sidebar navigation */
.sidebar {
    width: 200px;
    background-color: #f8f9fa;
    border-right: 1px solid #a2a9b1;
    padding: 1em;
}

.sidebar h3 {
    font-size: 1em;
    margin-top: 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #a2a9b1;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin: 0.5em 0;
    padding: 0;
}

.sidebar a {
    color: #0645ad;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Main content area */
.content {
    flex: 1;
    padding: 1em 2em;
}

.content h1 {
    border-bottom: 1px solid #a2a9b1;
    font-size: 1.8em;
    margin-top: 0;
    padding-bottom: 0.3em;
    font-weight: normal;
}

/* Hero section */
.hero {
    display: flex;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #a2a9b1;
}

.hero-image {
    flex: 0 0 250px;
    margin-right: 2em;
}

.hero-image img {
    max-width: 100%;
    border: 1px solid #a2a9b1;
    padding: 4px;
}

.hero-text {
    flex: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 1em;
    background-color: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    font-size: 0.9em;
    color: #666;
}

/* Responsive design */
@media (max-width: 767px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #a2a9b1;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .hero-image {
        margin-right: 0;
        margin-bottom: 1em;
    }
}

/* Additional CSS for the enhanced homepage with thumbnails */

/* Improve veteran card layout */
.veteran-card {
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    padding: 1em;
    margin-bottom: 1.5em;
    background-color: #f8f9fa;
}

.veteran-card-content {
    display: flex;
    margin-bottom: 1em;
}

.veteran-thumbnail {
    flex: 0 0 100px;
    margin-right: 1em;
}

.veteran-thumbnail img {
    max-width: 100%;
    height: auto;
    border: 1px solid #a2a9b1;
    padding: 2px;
    background: white;
}

.veteran-info {
    flex: 1;
}

.veteran-info h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.veteran-info h3 a {
    color: #0645ad;
    text-decoration: none;
}

.veteran-info h3 a:hover {
    text-decoration: underline;
}

.veteran-info p {
    margin: 0.5em 0;
}

/* Video thumbnail preview */
.veteran-video-preview {
    margin-top: 0.5em;
}

.video-thumbnail {
    position: relative;
    display: block;
    max-width: 300px;
}

.video-thumbnail img {
    width: 100%;
    border: 1px solid #a2a9b1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
}

.play-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
}

/* Browse all section */
.browse-all {
    margin-top: 2em;
    text-align: center;
    padding: 1.5em;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
}

.browse-links {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.browse-button {
    display: inline-block;
    padding: 0.75em 1.5em;
    background-color: #0645ad;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
}

.browse-button:hover {
    background-color: #0b0080;
}

/* Make search box more prominent */
.search-container {
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #f6f6f6;
    border: 1px solid #ddd;
    display: flex;
}

.search-container input[type="text"] {
    padding: 0.5em;
    flex: 1;
    border: 1px solid #a2a9b1;
    font-size: 1.1em;
}

.search-container button {
    padding: 0.5em 1em;
    background-color: #0645ad;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.search-container button:hover {
    background-color: #0b0080;
}

/* Featured veterans section */
.featured-veterans {
    margin-top: 2em;
}

/* Make it responsive */
@media (max-width: 767px) {
    .veteran-card-content {
        flex-direction: column;
    }
    
    .veteran-thumbnail {
        margin-right: 0;
        margin-bottom: 1em;
        text-align: center;
    }
    
    .veteran-thumbnail img {
        max-width: 120px;
    }
}