body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.header-image-container {
    width: 100%;
    max-width: 1200px; /* Matches suggested image width */
    margin: 0 auto;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    max-height: 300px; /* Maximum height for desktop */
    object-fit: cover; /* Ensures image fills container without distortion */
    display: block; /* Removes inline-block spacing */
}

h1 {
    color: #2c3e50;
    margin: 15px 0 10px;
    font-size: 2.5em;
}

.intro-text {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #555;
    font-size: 1.1em;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

.record-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.2s;
}

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

.record-card h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-top: 0;
}

.record-content p {
    margin: 12px 0;
    font-size: 1.05em;
}

.record-card button {
    background: #1e88e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s, transform 0.2s;
}

.record-card button:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.search-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-container h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-top: 0;
}

#search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.05em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search-input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 8px rgba(30, 136, 229, 0.2);
    outline: none;
}

#search-results {
    margin-top: 20px;
}

.result-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: #777;
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .header-image {
        max-height: 200px; /* Smaller height for tablets */
    }
    h1 {
        font-size: 2em;
    }
    .intro-text {
        font-size: 1em;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .header-image {
        max-height: 150px; /* Even smaller for mobile */
    }
    h1 {
        font-size: 1.8em;
    }
    .container {
        padding: 10px;
    }
    .record-card, .search-container {
        padding: 15px;
    }
}