/* MODERN DOWNLOAD CARD (Tech/SaaS Style) */

/* 1. The Container (The Card) */
.wp-block-file {
    display: flex;
    justify-content: space-between; /* Pushes text left, button right */
    align-items: center;
    flex-wrap: wrap; /* Allows stacking on mobile */
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Subtle border */
    border-radius: 12px; /* Smooth corners */
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Soft modern shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect on the whole card */
.wp-block-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* 2. The Filename (Text Link) */
.wp-block-file > a:first-child {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b; /* Dark Slate color */
    text-decoration: none; /* Removes ugly underline */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Add a File Icon automatically before the filename */
.wp-block-file > a:first-child::before {
    content: "📄"; /* Simple file icon */
    font-size: 1.2em;
    filter: grayscale(100%);
}

/* 3. The Download Button */
.wp-block-file .wp-block-file__button {
    background: #2563eb; /* Modern Tech Blue */
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 8px; /* Slightly squarer than pill */
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none !important; /* Removes old border */
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3); /* Glow effect */
}

/* Button Hover */
.wp-block-file .wp-block-file__button:hover {
    background: #1d4ed8; /* Darker blue */
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* 4. Mobile Responsiveness */
@media (max-width: 600px) {
    .wp-block-file {
        flex-direction: column; /* Stack vertically */
        align-items: flex-start; /* Align left */
        gap: 15px;
    }

    .wp-block-file .wp-block-file__button {
        width: 100%; /* Full width button on phone */
        text-align: center;
        justify-content: center;
    }
}