/* Container for the documents section */
#documents_container {
    max-width: 900px; /* Matches the content width in the image */
    margin: 40px auto; /* Centered with spacing */
    padding: 30px; /* Generous padding */
    background-color: #f5f5f5; /* Light gray background from the site */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Heading style */
#documents_container h1 {
    text-align: left; /* Aligned left like the site */
    font-size: 2rem; /* Large heading */
    color: #6a0dad; /* Purple from the site */
    margin-bottom: 30px; /* Space below heading */
    font-weight: 600; /* Bold but clean */
}

/* Documents list style */
.documents_list {
    list-style: none; /* No bullets */
    padding: 0; /* No padding */
    margin: 0; /* No margin */
}

/* Individual document item */
.document_item {
    margin-bottom: 20px; /* More space between items */
    padding: 15px; /* Inner padding */
    background-color: #ffffff; /* White card background */
    border-radius: 8px; /* Rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Hover effects */
}

.document_item:hover {
    transform: translateY(-3px); /* Slight lift */
    box-shadow: 0 6px 16px rgba(106, 13, 173, 0.2); /* Purple shadow on hover */
}

.document_item:last-child {
    margin-bottom: 0; /* No margin for last item */
}

/* Document link style */
.document_link {
    display: flex; /* Flexbox layout */
    align-items: center; /* Center vertically */
    text-decoration: none; /* No underline */
    color: #333; /* Dark text for readability */
    font-size: 1.1rem; /* Readable size */
    padding: 10px; /* Inner padding */
    transition: color 0.2s ease; /* Smooth transition */
}

.document_link:hover {
    color: #6a0dad; /* Purple on hover */
}

/* PDF icon style */
.file_icon_pdf {
    display: inline-block;
    width: 24px; /* Sized to fit */
    height: 24px;
    background: url('https://via.placeholder.com/24x24?text=PDF') no-repeat center; /* Placeholder PDF icon */
    background-size: contain;
    margin-right: 15px; /* Space between icon and text */
}

/* Document name style */
.document_name {
    flex-grow: 1; /* Takes remaining space */
    font-weight: 500; /* Medium weight */
}

/* Download button style */
.document_download {
    display: flex; /* Center SVG */
    align-items: center;
    justify-content: center;
    width: 36px; /* Slightly larger button */
    height: 36px;
    background-color: #6a0dad; /* Purple from site */
    border-radius: 50%; /* Circular */
    transition: background-color 0.2s ease; /* Smooth transition */
}

.document_download svg {
    fill: #ffffff; /* White icon */
    width: 16px;
    height: 16px;
}
.document_link .document_download{
    color: white;
}
.document_link:hover .document_download {
    background-color: #ba99ee; /* Darker purple on hover */
}

/* Media Queries for Responsiveness */

/* Tablets and smaller desktops (768px and up) */
@media (max-width: 1024px) {
    #documents_container {
        max-width: 100%; /* Full width on smaller screens */
        margin: 30px 10px; /* Reduced margins */
        padding: 25px; /* Slightly less padding */
    }

    #documents_container h1 {
        font-size: 1.8rem; /* Slightly smaller heading */
        margin-bottom: 25px;
    }

    .document_item {
        margin-bottom: 18px;
        padding: 12px;
    }

    .document_link {
        font-size: 1rem;
        padding: 8px;
    }

    .file_icon_pdf {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .document_download {
        width: 32px;
        height: 32px;
    }

    .document_download svg {
        width: 14px;
        height: 14px;
    }
}

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    #documents_container {
        margin: 20px 5px; /* Tight margins for mobile */
        padding: 20px; /* Reduced padding */
        border-radius: 8px; /* Smaller radius */
    }

    #documents_container h1 {
        font-size: 1.5rem; /* Smaller heading for mobile */
        margin-bottom: 20px;
        text-align: center; /* Center on very small screens if needed */
    }

    .document_item {
        margin-bottom: 15px;
        padding: 10px;
    }

    .document_link {
        font-size: 0.95rem; /* Smaller text */
        padding: 5px;
        flex-direction: column; /* Stack on very small screens */
        align-items: flex-start;
        text-align: left;
    }

    .file_icon_pdf {
        margin-right: 0;
        margin-bottom: 5px; /* Space below icon when stacked */
        width: 20px;
        height: 20px;
    }

    .document_name {
        margin-bottom: 8px; /* Space below name when stacked */
    }

    .document_download {
        width: 32px;
        height: 32px;
        align-self: flex-end; /* Align to end when stacked */
    }

    .document_download svg {
        width: 14px;
        height: 14px;
    }
}

/* Very small mobile (up to 480px) */
@media (max-width: 480px) {
    #documents_container {
        padding: 15px;
        margin: 10px 0;
    }

    #documents_container h1 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .document_item {
        margin-bottom: 12px;
        padding: 8px;
        border-radius: 6px;
    }

    .document_link {
        font-size: 0.9rem;
    }

    .file_icon_pdf {
        width: 18px;
        height: 18px;
    }

    .document_download {
        width: 28px;
        height: 28px;
    }

    .document_download svg {
        width: 12px;
        height: 12px;
    }
}