/* --- Container & Grid Layout --- */
.disc-container {
    max-width: 1380px;
    margin: 2rem auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 2rem;
    font-family: inherit;
}

@media (min-width: 768px) {
    .disc-container {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    }
}

@media (min-width: 1024px) {
    .disc-container {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    }
}

/* --- Individual Card --- */
.disc-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Keeps image corners rounded */
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    /* Smooth transition only for the shadow now */
    transition: box-shadow 0.3s ease; 
}

/* Card Hover Effect (Shadow only) */
.disc-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* --- Image Section --- */
.disc-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    background-color: #e2e8f0;
    overflow: hidden; /* Crucial: Keeps the scaled image inside the bounds */
}

.disc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Smooth transition for the image scaling */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* Image Scale on Card Hover */
.disc-card:hover .disc-img-wrapper img {
    transform: scale(1.08); /* Zooms the image in slightly */
}

/* --- Overlapping Icon --- */
.disc-icon {
    position: absolute;
    bottom: -20px; /* Pulls it down halfway over the border */
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1e293b; /* Dark icon color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* --- Content Section --- */
.disc-content {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem; /* Extra top padding to clear the overlapping icon */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.disc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a; /* Dark navy/slate */
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.disc-desc {
    color: #64748b !important; /* Gray text */
    font-size: 15px !important;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    flex-grow: 1; /* Pushes the link to the bottom if text varies */
}

/* --- Bottom Link --- */
.disc-link {
    color: #f97316; /* Orange color matching image */
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.disc-card:hover .disc-link {
    color: #ea580c; /* Darkens slightly on card hover */
}