/* Homepage Slider Styles */
.homepage-slider-container {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    background: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.homepage-slider {
    position: relative;
    width: 100%; /* Make fully responsive */
    max-width: 1440px; /* Add max-width for large screens */
    margin: 0 auto; /* Center on large screens */
    height: auto;
    overflow: hidden;
    background: #f8f9fa;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1200ms ease-in-out; /* Slower, smoother transition */
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Background Image */
.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
}

/* Content Positioning - Better containment */
.slider-content {
    position: relative;
    z-index: 3;
    width: 100%;
    
    margin: 0 auto;
    padding: 40px 60px; /* Added top/bottom padding */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.slider-text {
    max-width: 700px; /* Increased from 600px for better text flow */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word; /* Prevent text overflow */
    overflow-wrap: break-word; /* Additional overflow protection */
}

/* Typography - Better sized and contained */
.slider-main-heading {
    font-size: 48px; /* Increased from 20px for better visibility */
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'DM Sans', Arial, sans-serif;
    animation: slideInFromLeft 1s ease-out;
    word-break: break-word; /* Prevent overflow */
}

.slider-sub-heading {
    font-size: 36px; /* Increased from 32px */
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 25px 0;
    color: #fff;
    font-family: 'DM Sans', Arial, sans-serif;
    animation: slideInFromLeft 1s ease-out 0.2s both;
    word-break: break-word; /* Prevent overflow */
}

.slider-description {
    font-size: 18px; /* Reduced from 20px for better fit */
    line-height: 1.5;
    margin: 0 0 35px 0;
    color: #fff;
    max-width: 100%; /* Use full available width */
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 400;
    animation: slideInFromLeft 1s ease-out 0.4s both;
    word-break: break-word; /* Prevent overflow */
}

/* Call to Action Button */
.slider-button-container {
    animation: slideInFromLeft 1s ease-out 0.6s both;
}

.slider-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 2px solid transparent;
    font-family: 'DM Sans', Arial, sans-serif;
}

.slider-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    color: white;
    text-decoration: none;
}

.slider-cta-button:active {
    transform: translateY(0);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.prev-slider {
    left: 20px;
}

.next-slider {
    right: 20px;
}

.slider-nav i {
    font-size: 1.2rem;
    color: #333;
}

/* Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover,
.slider-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Better Mobile Layout */
@media (max-width: 1200px) {
    .slider-content {
        padding: 30px 40px;
        max-width: 95%;
    }
    
    .slider-text {
        max-width: 100%;
    }
    
    .slider-main-heading {
        font-size: 40px;
        margin: 0 0 18px 0;
    }
    
    .slider-sub-heading {
        font-size: 30px;
        margin: 0 0 20px 0;
    }
    
    .slider-description {
        font-size: 16px;
        margin: 0 0 25px 0;
    }
}

@media (max-width: 768px) {
    .homepage-slider {
        min-height: 600px; /* Increased from 500px to show more of the image */
        height: auto; /* Allow height to adjust to content */
    }
    
    .slider-slide {
        min-height: 600px; /* Ensure slides have minimum height */
    }
    
    .slider-background {
        min-height: 600px; /* Ensure background covers full area */
    }
    
    .slider-bg-image {
        width: 100%;
        height: 100%;
        min-height: 600px; /* Ensure image covers full area */
        object-fit: cover;
        object-position: center; /* Keep center positioning for better image display */
    }
    
    .slider-overlay {
        min-height: 600px; /* Ensure overlay covers full area */
    }
    
    .slider-content {
        padding: 40px 25px; /* Increased padding for better mobile experience */
        max-width: 100%;
        min-height: 600px; /* Ensure content area covers full height */
        display: flex;
        align-items: center; /* Center content vertically */
    }
    
    .slider-text {
        max-width: 100%;
        text-align: left;
        width: 100%;
    }
    
    .slider-main-heading {
        font-size: 32px; /* Increased from 28px for better visibility */
        margin: 0 0 20px 0;
        letter-spacing: 1px;
        line-height: 1.1;
    }
    
    .slider-sub-heading {
        font-size: 24px; /* Increased from 22px */
        margin: 0 0 20px 0;
        line-height: 1.2;
    }
    
    .slider-description {
        font-size: 16px; /* Increased from 14px for better readability */
        margin: 0 0 25px 0;
        max-width: 100%;
        line-height: 1.5;
    }
    
    .slider-cta-button {
        padding: 15px 30px; /* Increased from 12px 25px for better touch targets */
        font-size: 16px; /* Increased from 14px */
    }
    
    .slider-nav {
        width: 50px; /* Increased for better touch targets */
        height: 50px;
    }
    
    .prev-slider {
        left: 20px;
    }
    
    .next-slider {
        right: 20px;
    }
    
    .slider-nav i {
        font-size: 1.2rem; /* Increased for better visibility */
    }
    
    .slider-dots {
        bottom: 25px;
    }
    
    .slider-dot {
        width: 12px; /* Increased for better touch targets */
        height: 12px;
    }
}

@media (max-width: 480px) {
    .homepage-slider {
        min-height: 550px; /* Increased from 450px to show more of the image */
        height: auto;
    }
    
    .slider-slide {
        min-height: 550px;
    }
    
    .slider-background {
        min-height: 550px;
    }
    
    .slider-bg-image {
        min-height: 550px;
    }
    
    .slider-overlay {
        min-height: 550px;
    }
    
    .slider-content {
        padding: 35px 20px; /* Increased padding */
        min-height: 550px;
        display: flex;
        align-items: center;
    }
    
    .slider-main-heading {
        font-size: 26px; /* Increased from 22px */
        letter-spacing: 0.5px;
        margin: 0 0 18px 0; /* Increased margin */
    }
    
    .slider-sub-heading {
        font-size: 20px; /* Increased from 18px */
        margin: 0 0 18px 0; /* Increased margin */
    }
    
    .slider-description {
        font-size: 14px; /* Increased from 12px for better readability */
        line-height: 1.4; /* Improved line height */
        margin: 0 0 20px 0; /* Increased margin */
    }
    
    .slider-cta-button {
        padding: 12px 24px; /* Increased from 10px 20px */
        font-size: 14px; /* Increased from 12px */
    }
    
    .slider-nav {
        width: 45px; /* Increased for better touch targets */
        height: 45px;
    }
    
    .slider-nav i {
        font-size: 1rem; /* Increased from 0.9rem */
    }
    
    .slider-dots {
        bottom: 20px; /* Increased from 15px */
        gap: 10px; /* Increased gap */
    }
    
    .slider-dot {
        width: 10px; /* Increased from 8px */
        height: 10px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .homepage-slider {
        min-height: 500px; /* Increased from 400px to show more of the image */
        height: auto;
    }
    
    .slider-slide {
        min-height: 500px;
    }
    
    .slider-background {
        min-height: 500px;
    }
    
    .slider-bg-image {
        min-height: 500px;
    }
    
    .slider-overlay {
        min-height: 500px;
    }
    
    .slider-content {
        padding: 30px 15px; /* Increased padding */
        min-height: 500px;
        display: flex;
        align-items: center;
    }
    
    .slider-main-heading {
        font-size: 22px; /* Increased from 18px for better readability */
    }
    
    .slider-sub-heading {
        font-size: 18px; /* Increased from 16px */
    }
    
    .slider-description {
        font-size: 13px; /* Increased from 11px for better readability */
        line-height: 1.4;
    }
    
    .slider-cta-button {
        padding: 10px 18px; /* Increased from 8px 16px */
        font-size: 13px; /* Increased from 11px */
    }
}

/* Remove Loading State - No loading text */
.homepage-slider-container:not(.loaded) {
    background: #f8f9fa;
}

/* Remove the loading text completely */
.homepage-slider-container:not(.loaded)::after {
    display: none;
}

/* Enhanced Focus States for Accessibility */
.slider-nav:focus,
.slider-dot:focus,
.slider-cta-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .homepage-slider-container {
        height: auto;
        overflow: visible;
    }
    
    .homepage-slider {
        height: auto;
    }
    
    .slider-wrapper {
        display: block;
    }
    
    .slider-slide {
        display: block;
        page-break-after: always;
    }
    
    .slider-nav,
    .slider-dots {
        display: none;
    }
}

/* Ensure no purple/gradient background appears */
.homepage-slider,
.slider-slide {
    background: transparent !important;
}

/* Additional mobile fixes to prevent grey showing */
@media (max-width: 768px) {
    /* Force proper background coverage */
    .homepage-slider-container {
        background: transparent !important;
    }
    
    .homepage-slider {
        background: transparent !important;
        overflow: hidden;
    }
    
    .slider-wrapper {
        background: transparent !important;
    }
    
    .slider-slide {
        background: transparent !important;
        overflow: hidden;
    }
    
    /* Ensure background image covers completely */
    .slider-background,
    .slider-bg-image {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        object-fit: cover !important;
        object-position: center center !important; /* Center the image properly */
    }
    
    /* Ensure overlay covers completely */
    .slider-overlay {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
} 