﻿/* Centered card styling */
.notice-card {
    background-color: #f8f9fa; /* Light grey background */
    border: 1px solid #dee2e6; /* Border for the card */
    border-radius: 10px; /* Rounded corners */
    padding: 10px; /* Inner padding */
    margin: 20px auto; /* Center align and space between cards */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 60%;
    display: flex;
    flex-direction: row;
    max-height: 300px; /* Maximum height */
    overflow-y: auto; /* Scroll if content exceeds max-height */
    display: flex; /* Flex for alignment */
    flex-direction: column; /* Vertical stacking */
    justify-content: space-between; /* Distribute space */
}

    /* Title styling */
    .notice-card h3 {
        font-size: 20px;
        font-weight: bold;
        color: #343a40; /* Dark grey color */
        margin-bottom: 10px;
        border-bottom: 2px solid #007bff; /* Blue underline */
        padding-bottom: 5px;
        text-align: center; /* Center title */
    }

    /* Individual notice link */
    .notice-card p {
        margin: 5px 0;
        font-size: 16px;
        text-align: left; /* Align left for better readability */
    }

    .notice-card a {
        color: #007bff; /* Blue link color */
        text-decoration: none;
        font-weight: bold;
    }

        .notice-card a:hover {
            color: #0056b3; /* Darker blue on hover */
            text-decoration: underline; /* Underline effect */
        }

    /* Date styling */
    .notice-card p span {
        color: #6c757d; /* Muted grey for dates */
        font-size: 14px;
        margin-left: 5px;
    }

/* Button for "View All Notices" */
.view-all-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff; /* Primary blue */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .view-all-btn:hover {
        background-color: #0056b3; /* Darker blue */
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    }

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .notice-card {
        width: 90%; /* Full width with margin for mobile */
        max-height: none; /* Remove max-height on mobile for dynamic resizing */
        padding: 15px; /* Add padding */
    }

        .notice-card h3 {
            font-size: 18px; /* Adjust title size */
        }

        .notice-card p {
            font-size: 14px; /* Adjust paragraph font size */
        }

    .view-all-btn {
        padding: 8px 16px; /* Smaller button padding */
    }
}
