/* style.css */

/* Ensure body and html elements do not overflow the viewport */
html, body {
    overflow-x: hidden; /* Prevent horizontal overflow */
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

/* General Heading Styles */
h1, h2, h3, h4, h5 {
    font-family: 'Arial', sans-serif;
    margin: 0.5em 0;
}

h1 {
    font-size: 2.5em;
    font-weight: bold;
}

h2 {
    font-size: 2em;
    font-weight: bold;
}

h3 {
    font-size: 1.75em;
    font-weight: semi-bold;
}

h4 {
    font-size: 1.5em;
    font-weight: normal;
}

h5 {
    font-size: 1.25em;
    font-weight: normal;
}

/* Default Paragraph Style */
p {
    font-size: 1em;
    line-height: 1.6;
    margin: 1em 0;
    color: #333;
}

a:link, a:visited {
    color: #FFD700; /* Bright luxury gold for links */
    text-decoration: none; /* Ensure there's no underline */
}

a:hover {
    color: #D3AF37; /* Metallic gold on hover */
    text-decoration: underline; /* Optional: underline on hover */
}

a:active {
    color: #D3AF37; /* Keep the same colour when the link is active */
    text-decoration: none;
}

.spacing-10 {
    padding-bottom: 10px;
}

.spacing-15 {
    padding-bottom: 15px;
}

.spacing-20 {
    padding-bottom: 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align footer content to the top */
}

header {
    background: #ffffff; /* White background for clean gold+white theme */
    color: #000000; /* Black text for contrast */
    padding: 10px 0;
    border-bottom: 2px solid #FFD700; /* Gold border to define the header */
}

.header .btn {
    background-color: #FFD700; /* Bright luxury gold button */
    color: #000000; /* Black text for contrast */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none; /* Remove any underline */
    font-weight: bold;
    display: inline-block; /* Ensure it doesn't stretch */
}

.header .btn:hover {
    background-color: #EFBF04; /* Slightly different gold on hover */
    color: #000000; /* Keep black text on hover */
    text-decoration: none; /* No underline on hover */
}

.logo img {
    height: 50px;
}

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

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: #000000 !important; /* Black text for white background */
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background: #FFD700 !important; /* Bright gold hover */
    color: #000000 !important; /* Black text on gold background */
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure the dropdown width adjusts to fit the text */
nav .dropdown-content {
    white-space: nowrap; /* Prevent text from wrapping */
    width: auto; /* Allow the width to adjust automatically */
    min-width: max-content; /* Ensure the width is at least as wide as the content */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 2px solid #FFD700;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    margin-top: 10px; /* Added margin-top for gap */
}

.dropdown-content a {
    color: #000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #FFD700;
    color: #000000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown .arrow {
    margin-left: 5px;
    font-size: 12px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle img {
    width: 30px;
    height: 30px;
}

/* Styles for Get Quotation Button */
.btn-get-quote {
    background-color: #FFD700; /* Bright luxury gold */
    color: #000000; /* Black text for contrast */
    padding: 10px 20px; /* Button padding */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline from text */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.btn-get-quote:hover {
    background-color: #EFBF04; /* Slightly different gold on hover */
    color: #000000; /* Keep black text */
}

@media (max-width: 768px) {
    .btn-get-quote {
        display: block;
        margin-top: 10px; /* Add some space on mobile */
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 115px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.mobile-nav.open {
    display: block;
}

/* Adding padding to the left for dropdown links in mobile menu */
.mobile-nav ul li.mobile-dropdown .mobile-dropdown-content a {
    padding-left: 35px; /* Added padding to the left for dropdown links */
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
}

.mobile-nav ul li a:hover {
    background-color: #f9f9f9;
}

.mobile-dropdown-content {
    display: none;
}

.mobile-dropdown:hover .mobile-dropdown-content {
    display: block;
}

/* Mobile dropdown content hidden by default */
.mobile-dropdown-content {
    display: none;
}

/* Display dropdown content when open class is added */
.mobile-dropdown-content.open {
    display: block;
}

/* Style for gradient text and background */
.highlight {
    position: relative;
    display: inline-block;
    color: #000;
    z-index: 1;
    background: linear-gradient(90deg, #ffffff, #FFD700);
    -webkit-background-clip: text;
}

.highlight::before {
    content: '';
    position: absolute;
    top: -2px; /* Adjust for desired spacing above */
    left: -4px; /* Adjust for desired spacing on the left */
    right: -4px; /* Adjust for desired spacing on the right */
    bottom: -2px; /* Adjust for desired spacing below */
    background: linear-gradient(90deg, #ffffff, #FFD700);
    z-index: -1;
    border-radius: 4px; /* Optional: Add border-radius for rounded corners */
}

.promo-highlight {
    background: linear-gradient(to right, #FFD700, #EFBF04);
    color: #000000;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.promo-highlight h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.promo-highlight p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.promo-highlight .btn, .benefits .btn {
    background-color: #ffffff; /* White background for contrast */
    color: #000000; /* Black text */
    border: 2px solid #FFD700; /* Gold border */
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
    display: inline-block;
    cursor: pointer;
}

.promo-highlight .btn:hover, .benefits .btn:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #000000;
    transform: scale(1.05); /* Slight increase to indicate hover */
}

.intro-consignment {
    background-color: #ffffff; /* Match the background color of your site */
    padding: 0 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.intro-consignment h2 {
    color: #000000;
    margin-bottom: 30px;
}

.intro-consignment p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px; /* Restrict the width for better readability */
}

/* For Benefits of Car Consignment Section */
.benefits-consignment {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 0; /* Remove bottom margin */
    border-bottom: none; /* Ensure no border at the bottom */
}

.benefits-consignment h2 {
    color: #000000;
    font-size: 24px;
    margin-bottom: 30px;
}

.benefit-wrapper {
    display: flex;
    justify-content: space-around; /* Ensure spacing between columns */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0; /* Remove any margin */
    padding-top: 20px;
}

.benefit-item {
    width: 30%; /* Three items in a row */
    min-width: 250px; /* Minimum width to maintain layout */
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow */
    border: 2px solid #FFD700; /* Bright gold border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px; /* Add space between the boxes */
}

.benefit-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3); /* Enhanced gold shadow on hover */
}

.benefit-icon {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

.benefits-consignment p {
    color: #666;
}

/* For Special Promotion Section */
.promotion-consignment {
    background-color: #FFF9E6; /* Very light gold background */
    padding: 40px 20px;
    text-align: center;
    margin-top: 0; /* Remove margin to avoid white line */
    word-wrap: break-word; /* Add this line to allow words to break and wrap */
    overflow-wrap: break-word; /* Ensure long words break */
}

.promo-image {
    width: 100%;
    max-width: 500px; /* Limit the maximum width */
    height: auto;
    margin-bottom: 20px;
}

.promotion-consignment h2 {
    color: #000000;
    font-size: 24px;
    margin-bottom: 40px;
}

.promotion-consignment p {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.promotion-consignment .fine-print {
    font-size: 12px;
    color: #777;
    margin-bottom: 20px;
}

.promotion-consignment .fine-print a {
    color: #555; /* Slightly darker grey than the fine print text */
    text-decoration: underline;
    font-weight: normal; /* Normal weight to keep it subtle */
}

.promotion-consignment .fine-print a:hover {
    color: #333; /* Darker grey on hover for better visibility */
    text-decoration: none;
}

.btn-special {
    background-color: #FFD700;
    color: #000000;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-special:hover {
    background-color: #EFBF04;
}

.hero {
    background: linear-gradient(to right, #FFD700, #EFBF04);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    background-image: url('porsche-911.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: space-between;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    gap: 20px; /* Add a 20px gap between hero-text and hero-image */
}

.hero-content .form-container input,
.hero-content .form-container button {
    width: 100% !important; /* Ensure input fields and button are the same width */
    max-width: 500px !important; /* Set a max width */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

#quote-form button {
    font-size: 20px; /* Adjust the font size as needed */
    padding: 15px 20px; /* Adjust the padding as needed */
    outline: none; /* Remove the black outline */
    border: none; /* Remove the border */
}

.hero-text {
    text-align: left;
    flex: 1; /* Ensure the hero-text takes up the necessary space */
    max-width: 50%; /* Ensure the text does not exceed 40% width */
}

.hero-text h1 {
    margin-top: 0; /* Adjust the value as needed */
    font-size: 1.5em;
}

/* Increase the gap between the paragraph of text and the input fields */
.hero-text p {
    margin-bottom: 30px; /* Adjust the value as needed to increase the gap */
    color: #fff;
}

.hero-image {
    max-width: 50%; /* Ensure the image does not exceed 50% width */
    width: 100%;
    flex: 1; /* Ensure the hero-text takes up the necessary space */
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
}

.hero-img-mobile {
    display: none;
}

.hero form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    width: 100%;
}

.hero input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.hero button {
    background: #FFD700;
    color: #000000;
    padding: 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
    width: 100%;
}

.hero button:hover {
    background: #EFBF04;
}

.steps {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
}

.steps h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.steps p {
    font-size: 1.2em;
}

.steps-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .step-item {
        flex: 1 1 100%; /* Make each item take full width on small screens */
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    border: 2px solid #FFD700; /* Bright gold border */
    background-color: #ffffff; /* White background */
    padding: 35px 20px 15px 20px; /* Adjust padding: top, right, bottom, left */
    border-radius: 10px; /* Optionally, add rounded corners */
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2); /* Gold shadow */
    flex: 1 1 165px; /* Allow the items to grow equally with a minimum width of 250px */
    margin: 5px; /* Add some space around each item */
    text-align: center; /* Center-align text and image */
    transition: transform 0.2s, box-shadow 0.2s; /* Add transition for hover effect */
}

/* Add hover effect to step-item */
.step-item:hover {
    transform: translateY(-5px); /* Slightly lift the box on hover */
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4); /* Enhanced gold shadow on hover */
}

.step-item img {
    width: 85px;
    height: 85px;
    margin-bottom: 10px;
}

.step-item p {
    font-weight: bold; /* Make the font bolder */
}

.preferred {
    padding: 60px 0;
    text-align: center;
    background-color: #f5f5f5;
}

.preferred h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.preferred-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .preferred-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .preferred-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.preferred-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.preferred-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.preferred-item div {
    flex: 1;
}

.preferred-item h3 {
    font-size: 1.17em;
    margin-bottom: 10px; /* Adjust the value as needed to reduce the gap */
}

.preferred-item p {
    margin-top: 0; /* Remove any top margin to further reduce the gap */
}

.services {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
    border-top: 2px solid #f5f5f5;
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-item {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #FFD700;
}

.service-item p {
    margin-bottom: 35px;
}

.service-item .btn {
    margin-top: auto;
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
}

.service-item .btn:hover {
    background: #EFBF04;
}

.service-item:hover {
    transform: translateY(-10px);
}

.faq {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.faq-consignment {
    background-color: #FFF9E6; /* Light gold background */
    padding: 40px 20px;
    text-align: left;
    margin-top: 0;
    border-top: 1px solid #e0e0e0; /* Subtle border to separate sections */
    border-bottom: 1px solid #e0e0e0;
}

.faq-item {
    margin-bottom: 20px;
    cursor: pointer;
}

.faq-item h3 {
    background: #FFD700;
    font-size: 1.17em;
    color: #000000;
    padding: 15px;
    border-radius: 5px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    position: relative;
    cursor: pointer; /* Change cursor to indicate it's clickable */
    padding-right: 30px; /* Add more space for the arrow */
    margin: 0; /* Reset margin to ensure consistent spacing */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .faq-item h3 {
        padding-right: 40px; /* Increase padding for smaller screens */
    }
}

.faq-item h3::after {
    content: '\25BC'; /* Unicode character for the downward arrow */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em; /* Adjust size as needed */
    transition: transform 0.3s; /* Smooth transition for rotation */
}

/* Rotate the arrow when the FAQ item is open */
.faq-item.open h3::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item:hover h3 {
    background: #EFBF04;
}

.faq-answer {
    display: none;
    padding: 15px;
    background: #fff;
    border-radius: 0 0 5px 5px;
    color: #555;
    font-size: 1em;
}

.arrow {
    transition: transform 0.3s;
}

.faq-item.open .arrow {
    transform: rotate(180deg);
}

footer {
    background: #ffffff; /* White footer background */
    color: #000000; /* Black text */
    padding: 40px 0;
    border-top: 2px solid #FFD700; /* Gold border to define the footer */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.footer-links, .footer-company, .footer-social, .footer-contact {
    flex: 1;
    min-width: 150px;
}

.footer-links h3, .footer-company h3, .footer-social h3, .footer-contact h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #FFD700;
}

.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-social ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-social ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center; /* Vertically center the text */
    line-height: 24px; /* Match the line height with the icon height */
}

.footer-social ul li a img {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
    vertical-align: middle; /* Ensure the icon aligns with the middle of the text */
}

.footer-social ul li a:hover img {
    transform: scale(1.2);
}

.footer-contact p {
    margin: 0 0 10px;
    text-align: left;
}

footer p {
    margin-top: 20px;
    text-align: center;
    color: #000000;
}

/* Style for the Return to Top icon */
#return-to-top {
    position: fixed;
    bottom: 20px; /* Adjust this value to position it higher */
    left: 20px;
    display: none; /* Initially hidden */
    width: 60px; /* Adjust size as needed */
    z-index: 1000; /* Ensure it is on top */
    cursor: pointer; /* Change cursor to pointer on hover */
    text-align: center; /* Center align text below icon */
    text-decoration: none; /* Remove underline */
}

#return-to-top img {
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    display: block;
    margin: 0 auto; /* Center the icon */
}

#return-to-top span {
    display: block;
    font-size: 12px; /* Adjust font size as needed */
    margin-top: 5px; /* Add space between icon and text */
    color: #000; /* Adjust text color as needed */
    text-decoration: none; /* Remove underline */
    white-space: nowrap; /* Prevent the text from wrapping to the next line */
}

/* Show the Return to Top icon when scrolling */
.show-return-to-top {
    display: block !important; /* Ensure it is not overridden */
}

/* Additional CSS for Services Page */
/* Style for the services section */
#services {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

#services h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #000000;
    text-align: center;
}

/* CSS for the About Our Services Paragraph */
.about-our-services {
    padding: 10px 0 40px;
    background-color: #fff;
    text-align: left;
}

.about-our-services p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

#about-our-services ul {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

#about-our-services ul li {
    margin-bottom: 10px;
}

/* Style for individual service sections */
.service-section {
    padding: 40px 40px;
    margin-bottom: 40px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.1);
    transition: transform 0.3s;
    text-align: left;
}

.service-section h3 {
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
    margin-top: 0;
}

.service-section p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.service-section ul {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 25px;
    list-style-type: disc;
    padding-left: 20px;
}

.service-section ul li {
    padding-bottom: 10px;
}

.service-section .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
}

.service-section .btn:hover {
    background: #EFBF04;
}

/* Add hover effect to service-section */
.service-section:hover {
    transform: translateY(-10px);
}

/* General Button Styles */
.btn-quote {
    background-color: #FFD700; /* Bright luxury gold */
    color: #000000; /* Black text for contrast */
    border: none; /* No border */
    padding: 15px 25px; /* Padding around text */
    font-size: 22px; /* Text size */
    font-weight: bold; /* Bold text */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    text-align: center; /* Center text */
    display: block; /* Block display to fill the container */
    width: auto; /* Default width */
    margin: 20px auto 0; /* Margin to space it from above content */
    transition: background-color 0.3s ease-in-out; /* Smooth transition for hover effect */
}

.btn-quote:hover {
    background-color: #EFBF04; /* Slightly different gold on hover */
}

/* Button Container Styles */
.quote-button-container {
    text-align: center; /* Center align the button */
    width: 100%; /* Full width to center within the container */
    padding-top: 0; /* Space from the previous content */
}

/* Scoped CSS for the car consignment page button */
.car-consignment-btn .btn-quote {
    display: inline-block; /* Ensure the button doesn't stretch full width */
    background-color: #FFD700; /* Button background color */
    color: #000000; /* Black text for contrast */
    padding: 15px 25px;
    margin: 20px auto;
    text-align: center;
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Ensure text is bold */
}

.car-consignment-btn .btn-quote:hover {
    background-color: #EFBF04; /* Slightly different gold on hover */
    text-decoration: none; /* Ensure no underline on hover */
    color: #000000; /* Keep black text on hover */
}

/* WhatsApp Chat Button Styles */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* High z-index to ensure visibility above other elements */
    cursor: pointer;
}

.whatsapp-chat img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-chat:hover img {
    transform: scale(1.1);
}

/* Styles for WhatsApp chat popup */
.whatsapp-popup {
    position: absolute;
    right: 70px; /* Adjust based on your icon size and desired positioning */
    white-space: nowrap;
    background-color: #FFD700; /* Bright gold background */
    color: #000000; /* Black text for contrast */
    padding: 8px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.whatsapp-chat:hover .whatsapp-popup,
.whatsapp-chat:focus .whatsapp-popup {
    opacity: 1;
    visibility: visible;
}

/* Used Cars Page Styles */
.used-car-image {
  width: 100%;
  aspect-ratio: 4 / 3; 
  object-fit: cover;
  object-position: center;
  border-bottom: 2px solid #FFD700;
  display: block;
  transition: transform 0.3s ease;
}

/* Consistent grid spacing - equal row and column gaps */
.used-cars-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px; /* Equal spacing for both rows and columns */
  justify-items: stretch;
  align-items: start;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0;
}

.used-cars-header {
  text-align: center;
  margin: 30px 0;
  color: #000;
}

/* Enhanced box design */
.used-car-card {
  background-color: #fff;
  border: 2px solid #FFD700;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.12);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.used-car-card:hover {
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
  transform: translateY(-6px);
  border-color: #EFBF04;
}

.car-image-container {
  position: relative;
  overflow: hidden;
}

.car-image-container:hover .used-car-image {
  transform: scale(1.05);
}

.just-arrived {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(45deg, #FFD700, #EFBF04);
  color: #000;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Details section with better spacing */
.used-car-details {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.used-car-model {
  font-weight: bold;
  font-size: 1.3em;
  line-height: 1.2;
  min-height: 2.8em;
  margin-bottom: 16px;
  word-wrap: break-word;
  hyphens: auto;
  color: #000;
}

.used-car-info {
  font-size: 0.95em;
  margin-bottom: 8px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.used-car-info span {
  font-weight: 600;
  color: #000;
  margin-right: 8px;
}

.used-car-price {
  font-weight: bold;
  font-size: 1.5em;
  color: #0066cc;
  margin: 18px 0;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/* Price Strikethrough Styling */
.used-car-price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  font-size: 1.5em;
  margin: 18px 0;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.used-car-price-sold {
  color: #cc0000;
}

.used-car-price-current {
  color: #0066cc;
}

.used-car-price-original {
  color: #999999;
  font-size: 0.85em;
  text-decoration: line-through;
  font-weight: normal;
}

/* Enhanced button styling */
.used-car-button {
  background: linear-gradient(135deg, #FFD700, #EFBF04) !important;
  color: #ffffff !important; /* White text for better contrast */
  font-weight: 800 !important; /* Heavier font weight */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important; /* Subtle shadow for extra legibility */
  text-align: center;
  padding: 14px 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 3px 8px rgba(255, 215, 0, 0.2);
}

.used-car-button:hover {
  background: linear-gradient(135deg, #EFBF04, #D4AC04) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  color: #ffffff !important; /* Keep white text on hover */
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4) !important; /* Slightly stronger shadow on hover */
}

/* Additional car info styling (COE dates, etc.) */
.additional-info {
  display: block;
  margin-top: 4px;
  font-size: 0.8em;
  color: #777777;
  font-weight: 400;
  line-height: 1.2;
}

/* Section Headers and Separators */
.used-cars-sections {
    margin-top: 20px;
}

.section-header {
    text-align: center;
    margin: 50px 0 30px 0;
}

.section-title {
    font-family: 'Arial', sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-separator {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #EFBF04);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

/* First section spacing adjustment */
.used-cars-sections .section-header:first-child {
    margin-top: 20px;
}

/* Section-specific styling for coming soon cards */
.used-cars-sections .used-car-card .just-arrived {
    background: linear-gradient(45deg, #FFD700, #EFBF04);
}

/* Enhanced sold card styling */
.used-cars-sections .used-car-price-sold {
    color: #cc0000;
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Media query for mobile devices */

@media (min-width: 1025px) {
    .used-cars-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .used-cars-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
    .whatsapp-chat img {
        max-width: 50px;
        max-height: 50px;
    }
    
    /* Hide the text on mobile devices */
    #return-to-top {
        bottom: 20px; /* Closer to the bottom edge */
        left: 10px; /* Closer to the left edge */
    }
    
    #return-to-top span {
        display: none;
    }
    .section-title {
        font-size: 1.8em;
    }
    
    .section-separator {
        width: 80px;
        height: 3px;
    }
    
    .section-header {
        margin: 35px 0 25px 0;
    }
}

/* Footer styles for smaller screens */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links, .footer-social, .footer-contact {
        width: 100%; /* Ensure each column takes full width */
        margin-bottom: 20px; /* Add some space between columns */
    }
}

@media (max-width: 900px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        margin-left: 0; /* Ensure no extra centering margin is applied */
        text-align: left; /* Align logo to the left */
    }
    
    nav ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        order: 2; /* Ensure menu icon is on the right */
        cursor: pointer;
        margin-right: 0; /* Ensure no extra centering margin is applied */
    }
    
    .menu-toggle img {
        width: 30px; /* Adjust size as needed */
        height: 30px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: left;
    }
    
    .form-container {
        display: flex;
        justify-content: center; /* Center align the form horizontally */
        width: 100%;
    }
    
    .hero-text form {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center align inputs and button within the form */
        width: 100%; /* Ensure the form takes full width */
        max-width: 300px; /* Optional: set a max width */
    }
    
    .hero-text input,
    .hero-text button {
        width: 100%; /* Ensure full width on mobile */
        box-sizing: border-box; /* Ensure padding and border are included in the width */
    }
    
    .hero form {
        align-items: center;
    }
    
    .hero-image {
        width: 100%; /* Make the hero-image span the full width of the container */
        flex: 0 0 100%; /* Ensure the flex-basis is 100% */
        max-width: 600px; /* Ensure the max-width is 100% */
    }
    
    .hero-image img {
        width: 100%; /* Ensure the image itself spans the full width */
        height: auto; /* Maintain the aspect ratio */
    }
    
    .hero-img-desktop {
        display: none;
    }
    
    .hero-img-mobile {
        display: block;
        max-width: 100%; /* Adjust the width */
        height: auto;
        border-radius: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: left;
    }
    
    .footer-links, .footer-social, .footer-contact {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-section {
        margin-bottom: 20px;
    }
    
    .service-section p {
        font-size: 1em;
    }
    
    .service-section ul {
        font-size: 1em;
    }
    
    .about-our-services p {
        font-size: 1em;
    }
    
    #about-our-services ul {
        font-size: 1em;
    }
    .used-cars-container {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
    }
    .used-car-card {
        max-width: none;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .benefit-wrapper {
        flex-direction: column; /* Stack items vertically on mobile */
    }
    
    .benefit-item {
        width: 100%; /* Full width for mobile */
        margin-bottom: 20px; /* Add space between items */
    }
    
    .promotion-consignment p {
        font-size: 16px; /* Smaller font size for mobile */
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5em;
    }
    
    .section-separator {
        width: 60px;
    }
    
    .section-header {
        margin: 25px 0 20px 0;
    }
}

@media (max-width: 316px) {
  .used-car-info {
    font-size: 0.9em; /* Slightly smaller text */
    margin-bottom: 6px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px; /* Add small padding for breathing room */
  }
  
  .used-car-info span {
    font-weight: 600;
    color: #000;
    margin-right: 4px; /* Reduce margin on very small screens */
    flex-shrink: 0; /* Prevent label from shrinking */
  }
  
  /* Ensure consistent text wrapping and alignment */
  .used-car-details {
    padding: 18px 20px; /* Slightly reduce padding on very small screens */
  }
  
  /* Prevent text overflow on model names */
  .used-car-model {
    font-size: 1.2em; /* Slightly smaller on very small screens */
    line-height: 1.1;
    min-height: 2.6em;
    margin-bottom: 14px;
  }
}