/* ================= Notice Board ================= */

.noticeboard {
    padding: 50px 0;
    background: #f9f9f9;
}

.notice-body h3 {
    font-size: 18px;
    color: #003b03;
    margin-bottom: 5px;
}

.notice-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.notice-title a {
    color: #222;
    text-decoration: none;
}

.notice-title a:hover {
    color: crimson;
    text-decoration: underline;
}

.notice-image:hover img {
    transform: scale(1.03);
}

/* ===== Fullscreen Image Modal ===== */
.clickable-image {
    cursor: zoom-in;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.notice-detail-image img {
    cursor: zoom-in;
}


/* ================= Notice Board (Fixed Card Size) ================= */

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.notice-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    /* 🔒 FIXED HEIGHT */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notice-image {
    display: block;
    height: 180px;
    overflow: hidden;
}

.notice-image img {
    transition: transform 0.3s ease;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.notice-title {
    min-height: 44px;
}

.notice-desc {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-btn {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 500;
}

/* ================= Notice Detail ================= */

.notice-detail-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notice-detail-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}

.notice-full-desc {
    font-size: 16px;
    line-height: 1.7;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #003b03;
    font-weight: 500;
    text-decoration: none;
}

