/* A2V Listing Page Styles - Full Clean Version */

* { 
    box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box; 
}

body { 
    margin: 0; 
    padding: 0; 
    width: 100%; /* a */
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f4f7f6; 
    color: #333; 
    line-height: 1.6;
    overflow-x: hidden; /* a */
    box-sizing: border-box;
}
header {
    margin-bottom: 20px !important; /* a */
    padding: 10px 0;
    text-align: center;
}
header img {
    width: 100px; 
    height: auto;
    display: inline-block;
}

h1 { 
    color: #0d47a1; 
    margin: 5px 0 15px 0; 
    font-size: 22px; 
    text-align: center; 
} 

.main-wrapper { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 10px; /* # */
    width: 100%; 
    overflow-x: hidden; /* # */
    display: block;
    box-sizing: border-box;
}

.main-wrapper { 
    width: 100%; 
    max-width: 1000px; 
    margin: 0 auto;     
    padding: 10px 15px;     
    box-sizing: border-box; 
    display: block;
}

img { 
    max-width: 100%; 
    height: auto; 
}

.content-box { 
    background: #f9f9f9; 
    padding: 15px; 
    border-radius: 10px; 
    border: 1px solid #eee; 
    margin-bottom: 20px; 
}

.dealer-card-sub { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #ddd; 
    margin-bottom: 12px; 
    list-style: none; 
}

.call-btn-rich { 
    display: inline-block; 
    padding: 10px 20px; 
    background: #28a745; 
    color: #fff !important; 
    border-radius: 5px; 
    font-weight: bold; 
    text-decoration: none; 
    margin-top: 10px; 
    text-align: center; 
}

.view-more-container {
    display: block; 
    text-align: center; 
    padding: 15px 0;
    width: 100%;
}

.view-more-btn-small { 
    display: inline-block; 
    padding: 10px 24px; 
    background-color: #ffffff; 
    color: #0d47a1 !important; 
    border: 2px solid #0d47a1; 
    border-radius: 6px; 
    font-size: 16px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: 0.3s;
}

.view-more-btn-small:hover { 
    background-color: #0d47a1; 
    color: #ffffff !important; 
}

.a2v-scroll-container { 
    overflow: hidden; 
    width: 100%; 
    background: #fff; 
    padding: 15px 0;
    display: block;
}

.a2v-scroll-content { 
    display: flex; 
    width: max-content; 
    animation: scroll-left 25s linear infinite; 
}

.a2v-scroll-content img { 
    height: 150px; 
    width: auto; 
    margin: 0 10px; 
    border-radius: 8px; 
    flex-shrink: 0; 
}

@keyframes scroll-left { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

.sub-category-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 5px; 
}

.sub-category-buttons a { 
    display: inline-block; 
    padding: 8px 14px; 
    background-color: #0d47a1; 
    color: #ffffff !important; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 600; 
    text-decoration: none; 
}

#myInput { 
    width: 100%; 
    font-size: 18px; 
    padding: 15px; 
    border: 4px solid #ddd; 
    margin-bottom: 12px; 
    border-radius: 8px; 
    box-sizing: border-box; 
}

/* Enhanced Category List Design */
#myUL { 
    list-style-type: none; 
    padding: 0; 
    margin: 15px 0; 
}

#myUL li {
    margin-bottom: 8px;
}

#myUL li a { 
    border: 1px solid #e0e0e0; 
    background-color: #ffffff; 
    padding: 15px 18px; 
    text-decoration: none; 
    font-size: 16px; 
    color: #0d47a1; 
    display: flex; 
    align-items: center;
    border-radius: 8px; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    font-weight: 500;
}

#myUL li a::before {
    content: '?'; 
    font-size: 12px;
    margin-right: 12px;
    color: #28a745;
}

#myUL li a:hover { 
    background-color: #0d47a1; 
    color: #ffffff !important;
    border-color: #0d47a1;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.2);
}

#myUL li a:hover::before {
    color: #ffffff;
}

footer {
    padding: 20px 0;
    width: 100%;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) { 
    body {
        padding: 10px;
        margin: 10px;
    }

    header img {
        width: 75px; 
        display: block;
        margin: 10px auto; 
    }
    
    .main-wrapper { 
        margin: 0; 
        padding: 15px; /* # */
        border-radius: 0; 
        width: 100%;
        display: block;
        box-sizing: border-box; /* # */
    } 

    h1 { 
        font-size: 19px; 
        padding: 0 10px;
    } 

    .content-box {
        padding: 12px;
        margin-bottom: 15px;
    }

    .view-more-btn-small {
        font-size: 15px !important; 
        padding: 10px 20px !important;
        display: inline-block;
    }

    #myUL li a { 
        font-size: 15px; 
        padding: 12px; 
    }
}