/* General Layout */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* Header Styles */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Main Content */
main {
    padding: 20px;
    background-color: #fff;
    margin-top: 20px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    margin-top: 30px; /* Reduce the space from the main content */
    position: relative;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Search Bar Section */
.search {
    text-align: center;
    margin-bottom: 30px;
}

.search input {
    width: 50%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.search input:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Featured Locomotives Section */
.featured {
    text-align: center;
}

.featured .cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.featured .card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.featured .card:hover {
    transform: translateY(-5px);
}

.featured .card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.featured .card p {
    font-size: 16px;
    margin-bottom: 15px;
}

.featured .card a {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
}

.featured .card a:hover {
    color: #333;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 8px;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

td {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

table caption {
    font-size: 1.5em;
    margin: 10px 0;
}

table a {
    text-decoration: none;
    color: #333;
}
