/* pyq-pdf.css - Mobile First */

/* Base Styles (for small screens/mobile) */
.pyq-pdf-container {
    /* Mobile-first: start with smaller margins and padding */
    max-width: 100%;
    margin: 20px auto; /* Centered, smaller vertical margin */
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Slightly less pronounced shadow for mobile */
}

.pyq-pdf-section {
    margin-bottom: 20px; /* Reduced margin */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px; /* Reduced padding */
    background-color: #fdfdfd;
}

.pyq-pdf-section h2 {
    font-size: 1.5em; /* Smaller font for mobile */
    color: #0056b3;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.pyq-pdf-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pyq-pdf-section li {
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
    /* Stack items vertically on mobile */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; /* Spacing between link and other content if present */
}

.pyq-pdf-section li:last-child {
    border-bottom: none;
}

.pyq-pdf-section a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Ensure link takes full width if needed for tap target */
}

.pyq-pdf-section a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.download-icon {
    font-size: 1.1em; /* Slightly smaller icon */
    color: #28a745;
}

.pdf-type-heading {
    font-weight: bold;
    color: #555;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.pyq-buy-now-btn {
    /* Ensure button is full width on mobile */
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background-color: #28a745;
    color: white !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.pyq-buy-now-btn:hover {
    background-color: #218838;
    text-decoration: none !important;
}


/* Adjustments for larger screens (e.g., tablets and desktops) */
@media (min-width: 600px) {
    .pyq-pdf-container {
        max-width: 800px;
        margin: 50px auto; /* Restore original desktop margin */
        padding: 20px; /* Restore original desktop padding */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Restore original desktop shadow */
    }

    .pyq-pdf-section {
        margin-bottom: 30px; /* Restore original desktop margin */
        padding: 20px; /* Restore original desktop padding */
    }

    .pyq-pdf-section h2 {
        font-size: 1.8em; /* Restore original desktop font size */
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .pyq-pdf-section li {
        margin-bottom: 10px;
        padding: 8px 0;
        /* Revert to horizontal layout on desktop */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: initial;
    }

    .pyq-buy-now-btn {
        /* Revert to inline-block and specific width on desktop */
        display: inline-block;
        width: auto;
    }
}