learnix / src /app /components /styles /SectionSlider.css
shashidharak99's picture
Upload files
7d51e81 verified
/* EnhancedSlider.css */
.page-sliders-container {
max-width: 1400px;
margin: 0 auto;
padding: 2.5rem 1rem;
background-color: #ffffff;
}
.enhanced-slider-wrapper {
margin-bottom: 2rem;
background-color: transparent;
border-radius: 16px;
overflow: hidden;
transition: all 0.3s ease;
}
.enhanced-slider-wrapper:hover {
transform: translateY(-2px);
}
.enhanced-image-link {
display: block;
text-decoration: none;
transition: all 0.3s ease;
}
.enhanced-image-stack {
position: relative;
width: 100%;
aspect-ratio: 16/9;
overflow: hidden;
}
.enhanced-slider-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
user-select: none;
-webkit-user-select: none;
pointer-events: none;
}
.enhanced-image-visible {
opacity: 1;
}
.enhanced-content-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
display: flex;
align-items: flex-end;
padding: 1.5rem;
}
.enhanced-image-link:hover .enhanced-content-overlay {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.enhanced-overlay-content {
color: white;
max-width: 60%;
}
.enhanced-overlay-title {
font-size: 1.5rem;
font-weight: 700;
margin: 0 0 0.5rem 0;
line-height: 1.2;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.enhanced-overlay-description {
font-size: 0.9rem;
margin: 0;
line-height: 1.4;
opacity: 0.95;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.enhanced-indicators-container {
display: flex;
justify-content: center;
gap: 0.5rem;
padding: 1rem 0;
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(4px);
}
.enhanced-indicator {
background: none;
border: none;
font-size: 0.5rem;
color: #d1d5db;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
padding: 0.5rem;
border-radius: 50%;
}
.enhanced-indicator:hover {
color: #9ca3af;
transform: scale(1.1);
}
.enhanced-indicator-current {
color: #3b82f6 !important;
transform: scale(1.3);
}
.enhanced-indicator:focus {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* Responsive Design */
@media (max-width: 1200px) {
.enhanced-overlay-title {
font-size: 1.375rem;
}
}
@media (max-width: 768px) {
.page-sliders-container {
padding: 1.5rem 1rem;
}
.enhanced-slider-wrapper {
margin-bottom: 1.5rem;
}
.enhanced-content-overlay {
padding: 1.25rem;
}
.enhanced-overlay-content {
max-width: 70%;
}
.enhanced-overlay-title {
font-size: 1.25rem;
}
.enhanced-overlay-description {
font-size: 0.85rem;
}
}
@media (max-width: 480px) {
.enhanced-content-overlay {
padding: 1rem;
}
.enhanced-overlay-content {
max-width: 80%;
}
.enhanced-overlay-title {
font-size: 1.125rem;
}
.enhanced-overlay-description {
font-size: 0.8rem;
line-height: 1.3;
}
.enhanced-indicators-container {
gap: 0.375rem;
padding: 0.75rem 0;
}
}
/* Additional hover effects for desktop */
@media (min-width: 769px) {
.enhanced-slider-wrapper:hover .enhanced-slider-image {
transform: scale(1.05);
}
.enhanced-slider-image {
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
}
/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {
.enhanced-slider-image,
.enhanced-slider-wrapper,
.enhanced-browse-link,
.enhanced-image-link,
.enhanced-hover-overlay,
.enhanced-indicator {
transition: none;
}
}
/* Focus styles for keyboard navigation */
.enhanced-image-link:focus {
outline: 3px solid #fbbf24;
outline-offset: 2px;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.enhanced-content-overlay {
background: rgba(0, 0, 0, 0.8) !important;
}
}