/* Home Page Specific Styles */
.custom-header {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 0;
    position: relative; /* Added for positioning the button */
}

.icon-section {
    background-color: var(--primary-color);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-section {
    flex-grow: 1;
    padding-left: 20px;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.icon-section .svg-icon {
    width: 3em;
    height: 3em;
}

/* View All button styling */
.view-all {
    padding-right: 15px;
}

.view-all .button {
    height: auto;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 14px;
}

/* Animation classes */
.animated-element {
    transition: all 0.8s ease-out;
}

.sequenced-element {
    transition: all 0.5s ease-out;
}

/* Section styles */
.home-section {
    margin-bottom: 3.125rem;
}

.section-title {
    color: var(--secondary-color); 
    font-weight: 700; 
    font-size: 0.9375rem;
}

.section-description {
    color: var(--dark-blue); 
    font-size: 1.5rem; 
    font-weight: 600;
}

/* Brand/financial icons section */
#financials-icons {
    padding: 1.25rem 0;
}

#financials-icons .column {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* AboutUs segment styling */
.about_segment {
    min-height: 250px;
    margin-bottom: 3.125rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about_segment:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.icon-container.about {
    text-align: center;
}

.icon-container.about img {
    margin-top: -65px;
}

/* Cards styling */
.horizontal-card {
    border-radius: 0; 
    min-height: 300px; 
    width: 100%; 
    padding: 1.25rem;
}

.horizontal-card .image {
    flex: 0 0 48%;
}

.horizontal-card .image img {
    width: 100%; 
    height: auto;
}

.horizontal-card .content {
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    padding-left: 1.25rem;
}

.card-tag {
    font-size: 0.9375rem; 
    font-weight: 700; 
    color: var(--secondary-color);
}

.card-title {
    color: var(--primary-color); 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-top: 0.625rem; 
    margin-bottom: 0.625rem;
}

/* Special sections */
.threefactors {
    position: relative;
    background-image: url("../images/3factor.f28430bf511e.jpg");
    background-size: cover;
    background-position: center;
    height: 650px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.onthemove {
    position: relative;
    background-image: url("../images/group_on_the_move.6587279d74ec.jpg");
    background-size: cover;
    height: 850px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.needmore {
    position: relative;
    background-color: white;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.finddealer {
    position: relative;
    background-image: url("../images/find_your_local_dealership.6fb352b9cdd0.jpg");
    background-size: cover;
    height: 850px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .threefactors, .onthemove, .needmore, .finddealer {
        height: auto;
        padding: 50px 0;
    }
}

.about_segment {
    padding: 2em 1em;
    text-align: center;
    border-top: 0;
}

.about {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}
