body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0d0d; /* Dark background inspired by Medusmo */
    color: #e0e0e0; /* Light text for contrast */
    background-image: none; /* Remove previous background pattern */
    min-width: 400px; /* Ensure body does not go below 400px */
        height: 100%;
}

header {
    background-color: #1a1a1a; /* Slightly lighter dark for header */
    color: #ffffff;
    padding: 1.0rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

h1 {
    font-family: 'Montserrat', sans-serif; /* Modern, clean font */
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.back-button {
    position: absolute;
    left: 18px;
    top: 30%;
    transform: translateY(-50%);
    background-color: #3a3a3a; /* Darker button */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover {
    background-color: #ccc3c3;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
}

main {
    padding: 30px;
    max-width: 1000px;
    margin: 30px auto;
    background-color: #1a1a1a; /* Dark content background */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    color: #e0e0e0;
}

main::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background-image: none; /* Remove previous background pattern */
    opacity: 0.3;
    z-index: -1;
}

.news-article {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    background-color: #2a2a2a; /* Slightly lighter than main background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
    border: 1px solid #444;
}

.news-image {
display: block; 
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 25px; 
    border: 2px solid #555;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.02);
}

.news-content {
    text-align: center;
}

.news-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-top: 0;
    font-size: 2.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.news-content .news-date {
    font-size: 1rem;
    color: #9983ce; 
    margin-top: 20px; 
    margin-bottom: 0;
    text-align: right;
}
.news-number {
    font-size: 0.7rem;
    color: #5f6164; 
    text-align: right;
}

.news-content p {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #cccccc;
}

.news-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 12px rgba(0,0,0,0.5);
}

.button.primary {
    background-color: #007bff; /* Vibrant blue */
    color: white;
}

.button.primary:hover {
    background-color: #0056b3;
}

.button.secondary {
    background-color: #6c757d; /* Muted grey */
    color: white;
}

.button.secondary:hover {
    background-color: #5a6268;
}

.news-gallery {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 30px;
    background-color: #2a2a2a;
    border-radius: 10px;
    padding-bottom: 30px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.news-gallery h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    gap: 20px;
    width: 100%;
}

.gallery-link {
    display: block; /* Make the link block-level to wrap the image properly */
    width: 100%;
    max-width: none; /* Let media query handle */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #555;
    overflow: hidden; /* Ensures border-radius applies to the image inside */
}

.gallery-link:hover {
    transform: scale(1.10);
    box-shadow: 0 10px 25px rgba(205, 4, 4, 0.4);
}

.gallery-item {
    width: 100%;
    height: auto;
    display: block; 
    border-radius: 8px;
    background-color: #9b1e1e;
}

.pdf-gallery {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 30px;
    background-color: #3d3636;
    border-radius: 10px;
    padding-bottom: 30px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.pdf-gallery h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.pdf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #a50303;
    width: 100%;
    max-width: 180px; /* Adjust for more prominent thumbnails */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 15px;
    box-sizing: border-box;
    background-color: #d7c7c7;
    border: 1px solid #555;
}

.pdf-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.pdf-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #666;
}


a {
    text-decoration: none; 
}
footer {
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    background-color: #1a1a1a;
    color: #aaaaaa;
    font-size: 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4);
}
    /* *********************************************************/
        /* *********************************************************/
            /* *********************************************************/
@media (max-width: 800px) {
    /* *********************************************************/
        /* *********************************************************/
            /* *********************************************************/
    main {
        padding: 0.5rem; 
        margin: 0.2rem; 
    }
 header {
    background-color: #02121f; /* Slightly lighter dark for header */

}   
.back-button {
    position: absolute;
    left: 18px;
    top: 70%;
   }
h1 {
    font-family: 'Montserrat', sans-serif; /* Modern, clean font */
    font-size: 1.8rem;
    color: #adfbdc;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    margin-top: 2px;
}
    .news-article,
    .news-gallery,
    .pdf-gallery {
        padding: 2px;
        flex: 1;
        width:100%
    }

    .news-content h2 {
        font-size: 2rem; /* Smaller font size for titles */
    }

    .news-content .news-date {
        font-size: 0.9rem;
        margin-top: 12px;
        margin-bottom: 0;
        text-align: center; /* Center the date on small screens */
    }

    .news-content p {
        font-size: 1rem; /* Smaller font size for paragraphs */
    }

    .gallery-container,
    .pdf-gallery .gallery-container {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center; /* Center items when stacked */
    }

    .gallery-link,
    .pdf-item {
        width: 90%; /* Make items wider on small screens */
        max-width: 200px; /* Limit max width for consistency */
    }

    .back-button {
        padding: 8px 15px; /* Smaller padding for back button */
        font-size: 0.9rem; /* Smaller font size for back button */
        left: 10px; /* Adjust position */
    }

    h1 {
        font-size: 2rem; /* Smaller header title */
    }
}
