/* Custom Slider Widget Styles */

.custom-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.custom-slider .swiper {
    width: 100%;
    height: 100%;
}

.custom-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Ensure background images work in normal layout */
.custom-slider:not(.hero-layout) .swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.custom-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* GIF and Video Container Styles */
.custom-slider .slide-gif-container,
.custom-slider .slide-video-container {
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    width: 100%;
    /* height: 100%; */
    /* z-index: 0; */
    /* overflow: hidden; */
    aspect-ratio: 16 / 9;
}
.custom-slider .slide-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-slider .slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
}

/* Video controls styling */
.custom-slider .slide-video[controls] {
    object-fit: cover;
    background-size: cover;
    opacity: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
}

.custom-slider .slide-video[controls]::-webkit-media-controls {
    background: rgba(0, 0, 0, 0.5);
}

.custom-slider .slide-video[controls]::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
}

/* Ensure content stays above GIF/Video */
.custom-slider .slide-content {
    z-index: 2;
}

.custom-slider .slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    color: #ffffff;
}



.custom-slider .slide-text-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-slider .slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.custom-slider .slide-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 30px 0;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.custom-slider .slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.custom-slider .slide-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-slider .slide-button.primary {
    background: linear-gradient(45deg, #007cba, #005a87);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
}

.custom-slider .slide-button.primary:hover {
    background: linear-gradient(45deg, #005a87, #007cba);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.6);
}

.custom-slider .slide-button.secondary {
	background: rgb(26, 26, 26);
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}


.custom-slider .slide-button.secondary:hover {
    background: linear-gradient(45deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
}

.custom-slider .slide-button.outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.custom-slider .slide-button.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Swiper Navigation Styles */
.custom-slider .swiper-button-next,
.custom-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-slider .swiper-button-next:hover,
.custom-slider .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.custom-slider .swiper-button-next:after,
.custom-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination Styles */
.custom-slider .swiper-pagination {
    bottom: 20px;
}

.custom-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.custom-slider .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .custom-slider .slide-title {
        font-size: 2.2rem;
    }
    
    .custom-slider .slide-subtitle {
        font-size: 1.1rem;
    }
}

/* Video and GIF specific responsive styles */
@media (max-width: 768px) {
    .custom-slider .slide-video,
    .custom-slider .slide-gif {
        object-position: center center;
    }
    
    /* Ensure videos don't interfere with touch interactions */
    .custom-slider .slide-video {
        pointer-events: none;
    }
}

/* Ensure videos work properly on iOS */
@supports (-webkit-touch-callout: none) {
    .custom-slider .slide-video {
        -webkit-playsinline: true;
        playsinline: true;
    }
}

@media (max-width: 768px) {
    .custom-slider .slide-content {
        padding: 20px;
    }
    
    .custom-slider .slide-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .custom-slider .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .custom-slider .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-slider .slide-button {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .custom-slider .swiper-button-next,
    .custom-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .custom-slider .swiper-button-next:after,
    .custom-slider .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .custom-slider .swiper-pagination {
        bottom: 10px;
    }
    
    .custom-slider .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .custom-slider .slide-title {
        font-size: 1.5rem;
    }
    
    .custom-slider .slide-subtitle {
        font-size: 0.9rem;
    }
    
    .custom-slider .slide-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .custom-slider .swiper-button-next,
    .custom-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .custom-slider .swiper-button-next:after,
    .custom-slider .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-slider {
        background: #1a1a1a;
    }
    
    .custom-slider .swiper-slide {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .custom-slider .slide-title {
        text-shadow: 2px 2px 0px #000000;
    }
    
    .custom-slider .slide-subtitle {
        text-shadow: 1px 1px 0px #000000;
    }
    
    .custom-slider .slide-button {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .custom-slider .slide-button,
    .custom-slider .swiper-button-next,
    .custom-slider .swiper-button-prev {
        transition: none;
    }
    
    .custom-slider .slide-title,
    .custom-slider .slide-subtitle,
    .custom-slider .slide-buttons {
        animation: none;
    }
}

/* Focus styles for accessibility */
.custom-slider .slide-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.custom-slider .swiper-button-next:focus,
.custom-slider .swiper-button-prev:focus {
    outline: 2px solid #333333;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .custom-slider .swiper-button-next,
    .custom-slider .swiper-button-prev,
    .custom-slider .swiper-pagination {
        display: none;
    }
    
    .custom-slider .swiper-slide {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

@media (max-width:767px){
.custom-slider {
	height: 627px !important;
}
}

/* ========================================
   HERO LAYOUT STYLES
   ======================================== */

/* Hero Layout Container */
.custom-slider.hero-layout .swiper-slide {
    display: flex;
    align-items: stretch;
    background: none !important;
    background-image: none !important;
    padding: 0;
}

.custom-slider.hero-layout .swiper-slide::before {
    display: none;
}

.hero-slide-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    position: relative;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-gif-container,
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-gif,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Content Container */
.hero-content-container {
    display: flex;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 500px;
    width: 100%;
}

/* Hero Layout Variations */
.custom-slider.hero-image-left .hero-slide-container {
    flex-direction: row;
}

.custom-slider.hero-image-right .hero-slide-container {
    flex-direction: row-reverse;
}

.custom-slider.hero-content-left .hero-content {
    text-align: left;
}

.custom-slider.hero-content-center .hero-content {
    text-align: center;
}

.custom-slider.hero-content-right .hero-content {
    text-align: right;
}

/* Hero Layout Responsive */
@media (max-width: 768px) {
.hero-slide-container {
	flex-direction: column-reverse !important;
	justify-content: space-around;
	padding-bottom: 100px;
}
.hero-image-container, .hero-content-container {
	width: 100% !important;
	min-height: 25vh;
}
    
    .hero-content-container {
        padding: 20px;
    }
    
    .hero-content {
        text-align: center !important;
    }
}

/* ========================================
   MOUSE ICON STYLES
   ======================================== */

.mouse-icon-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}
.mouse-icon { 
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 84px;
	background: #CC57324D;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 124px;
	backdrop-filter: blur(10px);
	animation: mouseBounce 2s infinite;
	cursor: pointer;
	pointer-events: auto;
	transition: all 0.3s ease;
}

.mouse-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.mouse-icon i {
    font-size: 16px;
    color: #ffffff;
}

@keyframes mouseBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   CURVED BOTTOM STYLES
   ======================================== */

.curved-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 5;
    overflow: hidden;
}

.curved-bottom svg {
    width: 100%;
    height: 100%;
    display: block;
}

.curved-bottom path {
    transition: all 0.3s ease;
}

/* Rounded curved bottom */
.curved-bottom.rounded {
    border-radius: 0 0 50% 50%;
    overflow: hidden;
}

.curved-bottom.rounded svg {
    display: none;
}

.curved-bottom.rounded > div {
    width: 100%;
    height: 100%;
    border-radius: 0 0 50% 50%;
}

/* Curved bottom responsive */
@media (max-width: 768px) {
    .curved-bottom {
        height: 30px;
    }
}

/* ========================================
   HERO LAYOUT SPECIFIC RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .hero-content-container {
        padding: 30px;
    }
    
    .hero-content {
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .hero-content-container {
        padding: 25px;
    }
    
    .hero-content {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hero-content-container {
        padding: 20px;
        min-height: 40vh;
    }
    
    .hero-content {
        max-width: 100%;
    }
   
    
    .mouse-icon i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-content-container {
        padding: 15px;
        min-height: 35vh;
    }
    
    .mouse-icon i {
        font-size: 12px;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Reduced motion for mouse icon */
@media (prefers-reduced-motion: reduce) {
    .mouse-icon {
        animation: none;
    }
    
    .curved-bottom path {
        transition: none;
    }
}

/* High contrast mode for hero layout */
@media (prefers-contrast: high) {
    .hero-content-container {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .mouse-icon {
        background: rgba(0, 0, 0, 0.8);
        border-color: #ffffff;
    }
}

/* Focus styles for mouse icon */
.mouse-icon:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES FOR HERO LAYOUT
   ======================================== */

@media print {
    .mouse-icon-container,
    .curved-bottom {
        display: none;
    }
    
    .hero-slide-container {
        flex-direction: column !important;
    }
    
    .hero-image-container,
    .hero-content-container {
        width: 100% !important;
        page-break-inside: avoid;
    }
}