/* Grant Details Page Styles */
.grant-details-area {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banner/grantsbanner.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.breadcrumb {
    background: transparent;
    display: flex;
    justify-content: center;
}

.breadcrumb-item {
    color: #fff;
}

.breadcrumb-item a {
    color: #f58f14;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #fff;
}

.grant-header {
    position: relative;
    margin-bottom: 30px;
}

.grant-status {
    position: absolute;
    top: 0;
    right: 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #28a745;
    color: #fff;
}

.status-badge.expired {
    background-color: #dc3545;
    color: #fff;
}

.grant-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-right: 100px;
}

.grant-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.meta-item {
    flex: 1 0 200px;
    margin-bottom: 15px;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.meta-item:last-child {
    border-right: none;
}

.meta-label {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.grant-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.grant-section {
    margin-bottom: 30px;
}

.grant-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f58f14;
}

.grant-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.download-section {
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #0052a3;
    color: #fff;
}

.download-btn i {
    margin-right: 8px;
}

.apply-section {
    text-align: center;
    margin: 40px 0;
}

.apply-btn {
    display: inline-block;
    background-color: #f58f14;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.apply-btn:hover {
    background-color: #e07c00;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.apply-btn i {
    margin-right: 8px;
}

.apply-btn.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.related-grants {
    margin-top: 50px;
}

.related-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.related-grants-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-grant-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-grant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-grant-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
}

.related-grant-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #f58f14;
    color: #fff;
    border-radius: 8px;
    margin-right: 15px;
}

.related-date-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.related-date-month {
    font-size: 14px;
    text-transform: uppercase;
}

.related-grant-title {
    font-size: 16px;
    font-weight: 600;
}

.related-grant-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.related-grant-link {
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-grant-link:hover {
    color: #004c99;
}

.related-grant-link i {
    margin-left: 5px;
}

/* PDF Controls Styling */
.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-wrap: wrap;
}

.pdf-controls button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pdf-controls button:hover {
    background-color: #0056b3;
}

.pdf-controls button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pdf-controls span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* PDF Canvas Styling */
#pdf-canvas {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-controls {
        flex-direction: column;
        gap: 10px;
    }

    .pdf-controls button {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }

    .pdf-controls span {
        font-size: 12px;
    }
}



@media (max-width: 991px) {
    .grant-title {
        font-size: 28px;
        padding-right: 0;
    }
    
    .grant-status {
        position: static;
        margin-bottom: 15px;
    }
    
    .meta-item {
        flex: 1 0 45%;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    .grant-details-area {
        padding: 40px 0;
    }
    
    .grant-title {
        font-size: 24px;
    }
    
    .grant-section-title {
        font-size: 20px;
    }
    
    .meta-item {
        flex: 1 0 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    
    .meta-item:last-child {
        border-bottom: none;
    }
    
    .related-grants-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}