
/* ================= COLORS & BASE ================ */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

/* ================= CONTAINER ================ */
.notice-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.notice-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

/* ================= IMAGE FIXED (FULL DISPLAY) ================ */
.notice-image {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    background: #f0f0f0;
    padding: 10px;
    border-bottom: 4px solid var(--primary-color);
}

/* ================= CONTENT ================ */
.notice-content {
    padding: 30px;
}

.notice-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.notice-date i,
.notice-author i {
    margin-right: 5px;
}

.notice-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #444;
}

/* ================= BACK BUTTON ================ */
.back-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.back-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.back-link i {
    margin-right: 8px;
}

/* ================= RESPONSIVE (MOBILE) ================ */
@media (max-width: 768px) {
    .notice-container {
        margin: 20px auto;
    }

    .notice-title {
        font-size: 1.5rem;
    }

    .notice-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .notice-image {
        height: auto !important;
        object-fit: contain !important;
        padding: 5px;
    }
}
/* ================= LONG CONTENT FORMAT ================ */
.notice-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.notice-description h2,
.notice-description h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.notice-description ul,
.notice-description ol {
    padding-left: 20px;
    margin: 15px 0;
}

.notice-description a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.notice-description a:hover {
    text-decoration: underline;
}