/* =========================================================
   PDF LIBRARY & RESOURCE DOCUMENTS STYLESHEET
   ========================================================= */

.pdf-library-section {
    padding: 90px 0;
    background: #f7f8fa;
    overflow: hidden;
}

/* Heading */
.pdf-section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
}

.pdf-small-title {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #b08d2c;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pdf-section-heading h2 {
    margin: 0 0 15px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    color: #171717;
}

.pdf-section-heading p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* Grid */
.pdf-grid {
    margin-left: -15px;
    margin-right: -15px;
}

.pdf-grid > [class*="col-"] {
    margin-bottom: 30px;
}

/* Card */
.pdf-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all .4s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pdf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

/* PDF Preview */
.pdf-preview {
    height: 210px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #171717 0%, #292929 50%, #111 100%);
    overflow: hidden;
}

.pdf-preview:before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.pdf-preview:after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 50%;
}

/* PDF Icon */
.pdf-icon {
    width: 76px;
    height: 92px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.pdf-icon:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #ddd transparent transparent;
}

.pdf-icon i {
    font-size: 38px;
    color: #c62828;
}

/* PDF Label */
.pdf-label {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
}

/* Hover Overlay */
.pdf-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.72);
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
}

.pdf-card:hover .pdf-overlay {
    opacity: 1;
    visibility: visible;
}

.pdf-view-btn {
    display: inline-block;
    padding: 12px 22px;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 30px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all .3s ease;
}

.pdf-view-btn:hover {
    background: #fff;
    color: #171717 !important;
}

/* Content */
.pdf-content {
    padding: 25px 25px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pdf-category {
    display: block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #b08d2c;
    text-transform: uppercase;
}

.pdf-content h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    color: #191919;
}

.pdf-content p {
    margin: 0 0 15px;
    font-size: 13px;
    line-height: 1.7;
    color: #777;
}

/* Bottom Buttons */
.pdf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid #eeeeee;
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-decoration: none !important;
    transition: all .3s ease;
    background: #fbfbfb;
    border: 1px solid #eee;
}

.pdf-download:hover {
    color: #b08d2c;
    background: #f8f5eb;
    border-color: #eeddbb;
}

/* Empty State */
.pdf-empty-state {
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #ddd;
    text-align: center;
}

.pdf-empty-state i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}

.pdf-empty-state h4 {
    color: #444;
    font-weight: 600;
    margin-bottom: 8px;
}

.pdf-empty-state p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    .pdf-library-section { padding: 70px 0; }
    .pdf-section-heading h2 { font-size: 34px; }
    .pdf-preview { height: 190px; }
    .pdf-content { padding: 20px; }
}

@media (max-width: 767px) {
    .pdf-library-section { padding: 55px 0; }
    .pdf-section-heading { margin-bottom: 35px; }
    .pdf-section-heading h2 { font-size: 28px; }
    .pdf-section-heading p { font-size: 14px; }
    .pdf-grid > [class*="col-"] { margin-bottom: 25px; }
    .pdf-preview { height: 200px; }
    .pdf-content h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    .pdf-section-heading h2 { font-size: 24px; }
    .pdf-footer { align-items: stretch; flex-direction: column; }
    .pdf-download { padding: 8px 10px; justify-content: center; }
}
