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;
}

/* Responsive heading */
.page-title {
    text-align: center;
    margin: 2vh 0;
    font-size: clamp(1.5rem, 4vh, 2.5rem);
}

/* Scrollable row of cards */
.card-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 2vh 5vw;
    gap: 20px;
    width: 100%;
    height: 80vh;
}

.card-row::-webkit-scrollbar {
    display: none;
}

/* Responsive card item */
.card-item {
    flex: 0 0 auto;
    width: 50vh;
    height: auto;
    aspect-ratio: 0.7 / 1;
    transition: transform 0.3s;
    padding: 20px;
}

/* Card styling with responsive typography */
.card {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

/* Overlay for text (optional) */
.card-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.card:hover .card-overlay {
    transform: translateY(0);
}

.card-title {
    font-size: clamp(1rem, 2.5vh, 1.25rem);
    font-weight: bold;
    margin-bottom: 5px;
}

.card-description {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(1.2rem, 1.8vh, 0.9rem);
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Clickable areas for navigation */
.click-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20%; /* Clickable area width */
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    transition: color 0.3s, background-color 0.3s;
}

.click-area:hover {
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.1);
}

.click-area-left {
    left: 0;
}

.click-area-right {
    right: 0;
}

/* Category/Card Type badges */
.card-badge {
    position: absolute;
    top: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-badge {
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

.type-badge {
    left: 15px;
    background-color: rgba(13, 110, 253, 0.8);
    color: white;
}

/* Link button for card URLs */
.card-link {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #0d6efd;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-link:hover {
    background-color: #0a58ca;
    color: white;
}