html {
    scroll-behavior: smooth;
}

body {
    font-family: "Playfair Display", serif;
}

/* Container */
.vehicle-category.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.breadcrumbs {
    display: flex;
    margin-bottom: 40px;
    margin-top: 35px;
}

.crumb {
    position: relative;
    background: #4dd0e1;
    color: #666666;
    padding: 8px 20px 8px 30px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 5px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 10% 50%);
    transition: opacity 0.3s ease;
}

.crumb:hover {
    opacity: 0.8;
}

.crumb.home {
    padding-left: 20px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

.crumb.current {
    background: #4dd0e1; 
    opacity: 0.8;
}

/* Page Title */
.vehicle-category h1 {
    text-align: center;
    font-size: 3rem;
    color: #7ac142;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.guidelines-bar {
    background-color: #4dd0e1; 
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guidelines-bar:hover {
    background-color: #3dbfd0;
}

/* Collapsible Content */
.guidelines-content {
    display: none;
    padding: 30px 20px;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.guidelines-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.guidelines-list {
    list-style: disc;
    margin-left: 30px;
    color: #555;
}

.guidelines-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
}

/* Divider after guidelines */
.section-divider {
    border: 0;
    border-top: 2px solid #4dd0e1;
    margin: 40px 0;
}

/* Animation for expanding content */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}


/* Vehicle Grid */
.vehicle-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

/* Vehicle Card */
.vehicle-card {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 40px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.vehicle-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* First card and odd cards - image on RIGHT */
.vehicle-card:nth-child(odd) {
    flex-direction: row-reverse;
}

/* Even cards - image on LEFT */
.vehicle-card:nth-child(even) {
    flex-direction: row;
}


.vehicle-card > a {
    display: contents;
    text-decoration: none;
    color: inherit;
}


/* Slideshow Container */
.vehicle-card .vehicle-image {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-container img {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 8px;
    object-fit: cover;
}

.slideshow-container img.active {
    display: block;
    animation: fadeInSlide 0.5s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Vehicle Content */
.vehicle-card .vehicle-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Vehicle Title */
.vehicle-card h3 {
    font-size: 2.5rem;
    color: #50c5c8;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vehicle Description */
.vehicle-card .vehicle-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

/* Read More Button */
.vehicle-card .read-more-btn {
    background-color: #1a7b7d;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    align-self: center;
    transition: background-color 0.3s ease;
}

.vehicle-card .read-more-btn:hover {
    background-color: #145f61;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.pagination-dots span {
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.pagination-dots span.active {
    background-color: #50c5c8;
}


/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
    .vehicle-card {
        flex-direction: column !important;
        gap: 25px;
        padding: 30px;
    }
    
    .vehicle-card .vehicle-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .vehicle-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .vehicle-category h1 {
        font-size: 2rem;
    }
    
    .vehicle-card {
        padding: 20px;
    }
    
    .vehicle-card h3 {
        font-size: 1.5rem;
    }
    
    .vehicle-card .vehicle-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .vehicle-category.container {
        padding: 20px 15px;
    }
    
    .vehicle-category h1 {
        font-size: 1.5rem;
    }
    
    .vehicle-card {
        padding: 15px;
        gap: 15px;
    }
    
    .vehicle-card h3 {
        font-size: 1.3rem;
    }
}