/* Container to hold all cards */
.gdbs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    padding: 10px;
}

/* Styling for each gdb card */
.gdb-card {
    width: 340px; /* Fixed width for all screen sizes */
    height: auto; /* Fixed height for consistent card size */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Increased shadow size and intensity */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for zoom effect */
}

/* Zoom effect on hover */
.gdb-card:hover {
    transform: scale(1.05); /* Slight zoom-in effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}


/* Card header styling */
.card-header {
    padding: 10px;
    background-color: #009970;
    border-bottom: 1px solid #ddd;
}

.course-code {
    color: white;
}
.course-title {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    font-weight: bolder;
}

.gdb-type .badge {
    padding: 5px 10px;
    font-size: 0.85rem;
    color: white;
    border-radius: 20px;
    margin-top: 10px;
}

.marks {
    font-size: 1.2rem;
    color: green;
    font-weight: bolder;
    font-family: "Raleway", sans-serif;
}

/* Card body styling */
.card-body {
    padding: 20px;
    padding-bottom: 0px;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.badge-warning {
    background-color: #ffc107;
}

.badge-success {
    background-color: #28a745;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-secondary {
    background-color: #6c757d;
}
.badge-danger {
  background-color: #dc3545; /* Red background */
}


/*GDB Dates*/

.gdb-dates {
    font-weight: bolder;
    font-size: 1.2rem;
}

.gdb-date {
    margin-bottom: 0px;
}

.date-label {
    font-size: 1.1rem;
    font-weight: bold;
}

.start-date-label {
    color: #28a745; /* Green for start date */
}

.end-date-label {
    color: #dc3545; /* Red for end date */
}

.date-value {
    font-size: 1rem;
    font-weight: normal;
    color: #333;
    text-align: center;
}

.date-label i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Optional: Customizing the icon colors for better visuals */
.start-date-label i {
    color: #28a745; /* Green */
}

.end-date-label i {
    color: #dc3545; /* Red */
}


/*End of GDB Dates*/




/* Solutions section */
.solutions {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.solution-badge {
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-weight: bolder;
}

.no-solution {
    background-color: #E46571;
}

.vupark-solution {
    background-color: #28a745;
}

.user-solution {
    background-color: #ffc107;
}

/* Footer section for buttons */
.card-footer {
    padding: 10px 15px;
    background-color: #F1F8E9 !important;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-btn {
    background-color: #007bff;
    color: white;
    font-weight: bolder;
}

.download-btn:hover {
    background-color: #0056b3;
    color: white;
}

.view-details-btn {
    background-color: #28a745;
    color: white;
    font-weight: bolder;
}

.view-details-btn:hover {
    background-color: #218838;
    color: white;
}

/* Responsive styles: Keep the same fixed size for all devices */
@media (max-width: 768px) {
    .gdbs-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gdb-card {
        width: 350px; /* Still keep it fixed size */
        height: 450px; /* Fixed height */
    }
}
