.opinions-section {
width: 100%;
background: var(--brown);
}
.velemenyek-header {
padding-bottom: 20px;
}
.nav-arrows {
display: flex;
align-items: center;
gap: 15px;
justify-content: flex-end;
}
.nav-arrows::before {
content: '';
flex: 1; height: 1px;
background-color: var(--middle-grey);
order: -1; }
.arrow-btn {
width: 50px;
height: 50px;
background-color: #ffffff;
border: none;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.arrow-btn:hover {
background-color: #f0f0f0;
transform: scale(1.05);
}
.arrow-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.arrow-btn svg {
width: 24px;
height: 24px;
color: #2d2d2d;
}
.opinions-wrapper {
display: grid;
grid-template-columns: 1fr 3fr;
gap: 40px;
align-items: start;
}
.summary-card {
background-color: #ffffff;
border-radius: 20px;
padding: 50px 40px;
text-align: center;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.summary-title {
color: var(--txt-p);
margin-bottom: 10px;
font-weight: normal;
}
.stars {
display: flex;
justify-content: center;
gap: 5px;
}
.star {
font-size: 1.5rem;
color: #f4c542;
}
.author-info,
.review-count {
font-size: clamp(16px, 1.6vw, 0.8rem);
color: var(--txt-p);
}
.avatars {
display: flex;
justify-content: center;
align-items: center;
gap: -10px;
}
.avatar {
width: 45px;
height: 45px;
border-radius: 50%;
border: 3px solid #ffffff;
object-fit: cover;
margin-left: -10px;
transition: margin-left 0.4s ease;
}
.avatar:first-child {
margin-left: 0;
}
.avatar-count {
width: 45px;
height: 45px;
border-radius: 50%;
background-color: #d4af37;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 14px;
border: 3px solid #ffffff;
margin-left: -10px;
transition: margin-left 0.4s ease;
}
.velemeny-teljes {
display: none;
transition: all 0.3s ease;
} .velemeny-teljes.visible {
display: block;
}
.velemeny-toggle {
position: relative;
display: inline-block;
margin-top: 0.5rem;
font-weight: bold;
cursor: pointer;
transition: color 0.3s ease;
}
.arrow-velemeny {
position: absolute;
right: -30px;
top: 50%;
transform: translateY(-50%);
width: 24px;
height: 24px;
transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
} .arrow-velemeny.rotated {
transform: translateY(-50%) rotate(180deg);
}
.arrow-velemeny svg {
width: 100%;
height: 100%;
stroke: var(--red);
} .summary-card:hover .avatar {
margin-left: 5px;
}
.summary-card:hover .avatar:first-child {
margin-left: 0;
}
.summary-card:hover .avatar-count {
margin-left: 5px;
}
.testimonials-container {
position: relative;
overflow: hidden;
}
.testimonials-slider {
display: flex;
transition: transform 0.5s ease;
}
.testimonial-card {
display: none;
background-color: #ffffff;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.testimonial-card.active {
display: grid;
grid-template-columns: 1fr 2fr;
}
.testimonial-image {
width: 100%;
height: 100%;
overflow: hidden;
}
.testimonial-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.testimonial-content {
padding: 50px;
display: flex;
flex-direction: column;
justify-content: center;
}
.testimonial-content .stars {
justify-content: flex-start;
margin-bottom: 25px;
}
.testimonial-text {
color: var(--txt-p);
margin-bottom: 30px;
font-style: italic;
}
.testimonial-author {
margin-top: 1rem;
}
.testimonial-text,
.testimonial-text-contener p,
.author-info {
margin-bottom: 0;
}
.author-name {
font-size: 1.2rem;
font-weight: bold;
color: #2d2d2d;
margin-bottom: 5px;
} @media (max-width: 1024px) {
.title {
font-size: 2rem;
}
.opinions-wrapper {
grid-template-columns: 1fr;
gap: 30px;
max-width: 508px;
margin: 0 auto;
}
.testimonial-card.active {
grid-template-columns: 1fr;
}
.testimonial-image {
height: 400px;
}
.summary-card {
order: 2;
}
.testimonials-container {
order: 1;
}
.top-fit-img {
object-position: top;
}
} @media (max-width: 768px) {
body {
padding: 20px 15px;
}
.velemenyek-header {
flex-direction: column;
gap: 20px;
align-items: flex-start;
}
.title {
font-size: 1.5rem;
letter-spacing: 1px;
}
.nav-arrows {
width: 100%;
justify-content: center;
}
.arrow-btn {
width: 45px;
height: 45px;
}
.summary-card {
padding: 30px 25px;
}
.summary-title {
font-size: 1.4rem;
}
.star {
font-size: 1.5rem;
}
.avatar,
.avatar-count {
width: 50px;
height: 50px;
}
.testimonial-content {
padding: 30px 25px;
}
.testimonial-text {
font-size: 1rem;
}
.testimonial-image {
height: 300px;
}
}
@media (max-width: 580px) {
.title {
font-size: 1.2rem;
}
.testimonial-image {
height: 250px;
}
.testimonial-content {
padding: 25px 20px;
}
.author-name {
font-size: 1.1rem;
}
.testimonial-content .stars {
margin-bottom: 0.5rem;
}
}