.hero-slider-outer {
padding: 1.25rem 0 0;
margin-bottom: 0;
}
.hero-slider-outer .container--main {
max-width: 900px;
margin-left: auto;
margin-right: auto;
padding-left: 1.25rem;
padding-right: 1.25rem;
}
.hero-slider {
position: relative;
width: 100%;
min-height: 380px;
height: 56vh;
max-height: 520px;
overflow: hidden;
margin-bottom: 0;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.hero-slider__progress {
position: absolute;
bottom: 0;
left: 0;
height: 3px;
width: 0%;
background: var(--color-secondary, #b71c1c);
z-index: 10;
transition: width 0.05s linear;
}
.hero-slider__track {
position: relative;
width: 100%;
height: 100%;
}
.hero-slider__slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
visibility: hidden;
transition: opacity 0.6s ease, visibility 0.6s ease;
}
.hero-slider__slide.is-active {
opacity: 1;
visibility: visible;
z-index: 1;
}
.hero-slider__bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
text-decoration: none;
}
.hero-slider__bg img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.hero-slider__overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
to top,
rgba(255, 255, 255, 0.4) 0%,
rgba(255, 255, 255, 0.25) 30%,
rgba(255, 255, 255, 0.1) 60%,
transparent 100%
);
pointer-events: none;
z-index: 1;
}
.hero-slider__caption {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
z-index: 2;
padding: 0 2rem 2.5rem;
}
.hero-slider__spot {
width: 100%;
max-width: 900px;
padding: 0;
background: transparent;
position: relative;
}
.hero-slider__title {
margin: 0;
font-size: clamp(1.75rem, 5vw, 3.25rem);
font-weight: 800;
line-height: 1.15;
letter-spacing: -0.03em;
}
.hero-slider__title a {
color: #1a1a1a;
text-decoration: none;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(255, 255, 255, 0.6);
transition: color 0.2s ease;
}
.hero-slider__title a:hover {
color: var(--color-primary, #0d47a1);
} .hero-slider__arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 5;
width: 48px;
height: 48px;
border: none;
border-radius: 50%;
background: rgba(255, 255, 255, 0.95);
color: var(--color-text, #1a1a1a);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: all 0.2s ease;
}
.hero-slider__arrow:hover {
background: #fff;
color: var(--color-primary, #0d47a1);
transform: translateY(-50%) scale(1.05);
}
.hero-slider__arrow--prev {
left: 1rem;
}
.hero-slider__arrow--next {
right: 1rem;
} .hero-slider__dots {
position: absolute;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
z-index: 5;
display: flex;
gap: 0.5rem;
padding: 0.5rem;
background: rgba(0, 0, 0, 0.3);
border-radius: 20px;
}
.hero-slider__dot {
width: 10px;
height: 10px;
border: none;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
padding: 0;
transition: all 0.2s ease;
}
.hero-slider__dot:hover {
background: rgba(255, 255, 255, 0.8);
}
.hero-slider__dot.is-active {
background: #fff;
transform: scale(1.3);
} @media (max-width: 768px) {
.hero-slider {
min-height: 65vh;
max-height: 85vh;
margin-bottom: 1.5rem;
}
.hero-slider__caption {
padding: 0 1.5rem 2rem;
}
.hero-slider__title {
font-size: clamp(1.5rem, 6vw, 2.5rem);
}
.hero-slider__arrow {
width: 40px;
height: 40px;
}
.hero-slider__arrow--prev {
left: 0.75rem;
}
.hero-slider__arrow--next {
right: 0.75rem;
}
.hero-slider__dots {
bottom: 0.75rem;
}
}