body, html {
    height: 100%;
    background: #f3f4f6;
}

/* Main container - fully responsive */
.edi-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px 0;
    min-height: 90vh;
}

/* Navigation buttons container */
.nav-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
    flex-shrink: 0;
}

.nav-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #003d82);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.nav-button:active {
    transform: translateY(0);
}

/* Counter styling */
.nav-counter {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #666;
    font-weight: 600;
    font-size: 16px;
    min-width: 80px;
    text-align: center;
}

/* Scrollable row of cards */
.card-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 1rem 2rem;
    gap: 20px;
    width: 100%;
    flex: 1;
    min-height: 50vh;
    align-items: center;
    justify-content: flex-start;
}

.card-row::-webkit-scrollbar {
    display: none;
}

/* Responsive card item */
.card-item {
    flex: 0 0 auto;
    width: 50vh;
    height: auto;
    aspect-ratio: 0.65 / 1;
    transition: transform 0.3s;
}

/* Card styling */
.card {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background: white;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-body {
    flex: 1;
    overflow-y: auto;
    padding: clamp(0.5rem, 1.5vh, 1rem);
    display: flex;
    flex-direction: column;
}

/* Floating See More Button */
.floating-see-more {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-see-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #003d82);
}

.floating-see-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.floating-see-more:hover i {
    transform: translateX(3px);
}

/* Custom Modal Styling */
.modal-xl-custom {
    max-width: 90vw;
}

.modal-content-custom {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header-custom {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

.modal-title-custom {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body-custom {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

.modal-footer-custom {
    border-top: none;
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Modal Card Carousel Styles */
.modal-card-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 2vh 3vw;
    gap: 15px;
    width: 100%;
    height: 50vh;
    align-items: center;
}

.modal-card-row::-webkit-scrollbar {
    display: none;
}

.modal-card-item {
    flex: 0 0 auto;
    width: 30vh;
    height: auto;
    aspect-ratio: 0.65 / 1;
    transition: transform 0.3s;
}

.modal-card {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 10px;
    background: white;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Modal navigation buttons */
.modal-nav-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
}

.modal-nav-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #003d82);
}

.modal-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.modal-nav-counter {
    background: white;
    padding: 6px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #666;
    font-weight: 600;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 5px 0;
        min-height: 85vh;
    }
    
    .nav-buttons-container {
        padding: 8px 0;
        gap: 15px;
    }
    
    .card-row {
        flex: 1;
        min-height: 40vh;
        padding: 0.5rem 1rem;
        gap: 15px;
    }
    
    .card-item {
        width: 35vh;
        min-width: 250px;
    }
    
    .modal-card-row {
        height: 30vh;
        min-height: 200px;
    }
    
    .modal-card-item {
        width: 20vh;
        min-width: 150px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .nav-counter {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 60px;
    }
    
    .modal-nav-button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .modal-nav-counter {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .modal-nav-buttons-container {
        padding: 8px 0;
        gap: 10px;
    }
    
    .floating-see-more {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 2px 0;
    }
    
    .nav-buttons-container {
        padding: 5px 0;
        gap: 10px;
    }
    
    .card-row {
        min-height: 35vh;
        padding: 0.25rem 0.5rem;
        gap: 10px;
    }
    
    .card-item {
        width: 30vh;
        min-width: 220px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .nav-counter {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .modal-card-row {
        height: 25vh;
        min-height: 180px;
    }
    
    .modal-card-item {
        width: 18vh;
        min-width: 130px;
    }
}