/* --- NEW HERO SLIDER STYLES --- */

/* Ensure Header Sits on Top */
#mad-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent !important;
}

/* Base Slider Styles */
.slider-container {
    position: relative;
    height: 100vh;
    /* Full Viewport Height */
    width: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Lato', sans-serif;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Ken Burns Effect (Image Zoom) */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.slide.active .slide-bg {
    animation: kenBurns 20s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Overlay Darkening */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Content Layer Animations - Ensure Left Alignment */
.content-layer {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
    /* Default responsive padding */
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
    /* Explicitly set text alignment */
}

/* Desktop Alignment with Main Content */
@media (min-width: 1200px) {
    .content-layer {
        padding-left: 120px;
        /* Aligns visually with the content area below */
        max-width: 100%;
    }
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.2;
    color: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    max-width: 700px;
    /* Limit width for readability */
}

.text-highlight {
    color: #ff5e14;
    /* Orange Accent */
    font-style: italic;
}

.slide-btn-group {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(30px);
}

/* Animation Trigger Classes */
.slide.active .slide-title {
    animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.5s forwards;
}

.slide.active .slide-btn-group {
    animation: fadeInUp 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Enhancement */
.btn-custom {
    padding: 15px 40px;
    border: none;
    /* Removed white border */
    background-color: #e71b3f;
    /* Filled with accent color */
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 15px;
    position: relative;
    z-index: 1;
    text-decoration: none;
    border-radius: 5px;
    /* box-shadow: 0 5px 15px rgba(255, 94, 20, 0.4); */
}

.btn-custom:hover {
    color: #fff;
    background-color: #e55312;
    /* Slightly darker on hover */
    text-decoration: none;
    transform: translateY(-2px);
    /* Subtle lift */
    /* box-shadow: 0 8px 20px rgba(255, 94, 20, 0.6); */
}

/* Dot Navigation Styles (Replacing Arrows) */
.slider-dots-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background-color: #e71b3f;
    /* Accent color */
    border-color: #ffffff;
    transform: scale(1.1);
}

/* Social Sidebar */
.social-sidebar {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.social-link:hover {
    color: #fff;
    transform: translateX(-5px);
    text-decoration: none;
}

/* Loading Bar */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: #e71b3f;
    z-index: 30;
    width: 0%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .content-layer {
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
        text-align: center;
    }

    .social-sidebar {
        display: none;
    }

    .slider-dots-container {
        bottom: 30px;
    }

    .btn-custom {
        padding: 12px 25px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .slide-btn-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Hide hero banner content in mobile landscape mode - AGGRESSIVE FIX */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .content-layer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Additional fallback for smaller landscape screens */
@media only screen and (max-height: 600px) and (orientation: landscape) and (max-width: 1000px) {
    .content-layer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Target specific elements as backup */
@media (orientation: landscape) and (max-height: 500px) {
    .slide-title,
    .slide-btn-group,
    h2.slide-title,
    .slide .slide-title,
    .slide .slide-btn-group,
    .slider-container .slide-title,
    .slider-container .slide-btn-group {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Normal screen - keep phone in header as usual */
header li {
    display: flex;
    align-items: center;
}

header li img,
header li span,
header li a {
    position: static !important;
    transform: none !important;
}

