.myHeroSlider {
width: 100%;
height: 550px;
position: relative;
overflow: hidden;
font-family: 'Open Sans', sans-serif;
}
@media (max-width: 1024px) {
.myHeroSlider {
height: 450px;
}
}
@media (max-width: 778px) {
.myHeroSlider {
height: 400px;
}
}
@media (max-width: 480px) {
.myHeroSlider {
height: 350px;
}
}
.myHeroSlider .swiper-slide {
position: relative;
display: flex;
justify-content: center;
align-items: center;
} .myHeroSlider .slide-bg-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;
}
.myHeroSlider .slide-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center center;
z-index: 1;
} .myHeroSlider .slide-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.4) 100%
);
z-index: 2;
display: flex;
justify-content: center;
align-items: center;
}
.myHeroSlider .slide-content {
position: relative;
z-index: 3;
text-align: center;
color: #ffffff; transform: translateY(-20px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.myHeroSlider .slide-content h2 {
font-size: 64px;
font-weight: 700;
margin: 0 0 15px 0;
line-height: 1.1;
color: #ffffff;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
background: unset;
text-transform: none;
} .myHeroSlider .slide-btn {
display: inline-block;
padding: 12px 35px;
background-color: #f3bc44; color: #000;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
text-decoration: none;
border-radius: 3px; transition: background-color 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
max-width: 150px;
}
.myHeroSlider .slide-btn:hover {
background-color: #dca332;
color: #000;
} .myHeroSlider .swiper-button-next,
.myHeroSlider .swiper-button-prev {
display: flex;
color: #ffffff;
opacity: 0.6;
transition: opacity 0.3s ease;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.myHeroSlider .swiper-button-next:hover,
.myHeroSlider .swiper-button-prev:hover {
opacity: 1;
} .hero-scroll-btn {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
width: 28px;
height: 46px;
border: 2px solid #ffffff;
border-radius: 15px;
z-index: 10;
cursor: pointer;
opacity: 0.8;
transition: opacity 0.3s ease;
}
.hero-scroll-btn:hover {
opacity: 1;
}
.hero-scroll-btn::before {
content: '';
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
width: 4px;
height: 8px;
background-color: #ffffff;
border-radius: 2px;
animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
0% {
top: 8px;
opacity: 1;
}
100% {
top: 24px;
opacity: 0;
}
} @media (max-width: 778px) {
.myHeroSlider .slide-content h2 {
font-size: 46px;
}
}
@media (max-width: 480px) {
.myHeroSlider .slide-content h2 {
font-size: 36px;
}
}