/* Container to hold all cards */
.assignments-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    padding: 10px;
}

/* Styling for each assignment card */
.assignment-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 */
.assignment-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;
}

.semester {
    font-size: 1.5rem;
    color: blue;
    font-weight: bolder;
    font-family: "Raleway", sans-serif;
}
.assignment-number {
    font-size: 1.7rem;
    text-align: center;
    font-weight: bolder;
    margin-top: 0px;
    padding-top: 0px;
    font-family: "Raleway", sans-serif;
}

/* Card body styling */
.card-body {
    padding: 20px;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Badge for assignment type */
.assignment-type .badge {
    padding: 5px 10px;
    font-size: 0.85rem;
    color: white;
    border-radius: 20px;
    margin-top: 10px;
}

.badge-warning {
    background-color: #ffc107;
}

.badge-success {
    background-color: #28a745;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-secondary {
    background-color: #6c757d;
}


.badge-danger {
    background-color: #F77D7F;
}

/* Deadline section */
.deadline {
    margin-top: 10px;
}

.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 */
}

.deadline-date {
    font-weight: bolder;
    font-size: 1rem;
    color: #333;
    text-align: center;
}

.days-left {
    color: #dc3545;
    font-size: 90%;
}

/* 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;
    background-color: #F1F8E9;
    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) {
    .assignments-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .assignment-card {
        width: 350px; /* Still keep it fixed size */
        height: 450px; /* Fixed height */
    }
}
