/* --- Global Reset: Crucial for Preventing Horizontal Scroll --- */
*, *::before, *::after {
    /* Ensures padding and border are included in the element's total width/height. */
    box-sizing: border-box; 
}

/* --- Global Styles and Typography --- */
body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Container to manage the overall width and outer padding */
.site-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0; 
}

/* Styles based on your original classes */
.header-note, .contact-footer {
    background-color: #FFFF99;
    padding: 15px 10px;
    font-size: 12px; 
}

.contact-footer {
    background-color: #FFFF66;
    font-weight: bold;
    font-size: 13px;
    padding: 20px 10px;
    margin-top: 30px;
}

.contact-footer a {
    color: #000000;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

/* Hover state for the footer email link */
.contact-footer a:hover {
    color: #555555;
}

.logo-section {
    padding: 30px 0;
}

.logo-section img {
    max-width: 100%;
    height: auto;
}

/* --- Car Entry Styles (and NEW Other Cars Section) --- */
.car-entry, .other-cars-section {
    padding: 40px 15px; 
    margin: 30px 10px; 
    text-align: center;
    border-radius: 10px;
    background-color: #D7D7D7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.car-info {
    margin-bottom: 20px;
}

.car-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2em;
    color: #000000;
    font-weight: bold;
    margin: 0;
}

/* **KEY CHANGE:** Attribute selector to target titles starting with "My" */
.car-title[title^="My"] {
    font-size: 1.8em; /* Reduced size */
}

.car-subtitle {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1em;
    color: #333333;
    margin: 5px 0 15px 0;
}

.car-status {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    color: #333333;
}

/* --- Rounded Edges and Responsive Images --- */
.car-image-link img, .bucket-list-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hover state for image links */
.car-image-link:hover img {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Bucket List Section --- */
.bucket-list-section {
    background-color: #5F7C8A; 
    padding: 30px 15px 50px 15px;
    margin-top: 30px;
    margin-left: 10px; 
    margin-right: 10px; 
    border-radius: 10px;
}

.bucket-list-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2em; 
    color: #FFFFFF;
    font-weight: bold;
    margin-bottom: 40px;
}

.bucket-list-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.bucket-item {
    background-color: transparent;
    padding: 15px;
    border-radius: 5px;
    flex: 1 1 300px;
    max-width: 380px;
    color: #FFFFFF; 
}

.bucket-item img {
    margin-bottom: 15px;
}

.bucket-item-title {
    font-size: 1.1em;
    font-weight: bold;
    color: inherit; 
    margin: 10px 0 5px 0;
}

.bucket-item-note {
    font-size: 0.9em;
    color: inherit; 
    margin-bottom: 0;
}

/* Style for the link in its new section */
.other-cars-section .other-cars-link {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1em;
    color: #000000;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    font-weight: normal; 
    transition: color 0.2s ease-in-out;
}

/* Hover state for the "All my other cars" link */
.other-cars-section .other-cars-link:hover {
    color: #555555;
    text-decoration: underline; 
}

/* ---