/* Resource Detail Page */
.resource-detail-section {
    padding: 45px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Resource Detail Card */
.resource-detail-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Resource Header */
.resource-header {
    padding: 40px 40px 30px 40px;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.resource-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.type-badge,
.category-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.document {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.type-badge.image {
    background: rgba(0, 75, 107, 0.1);
    color: #004b6b;
}

.type-badge.video {
    background: rgba(54, 96, 114, 0.1);
    color: #366072;
}

.type-badge.audio {
    background: rgba(228, 32, 51, 0.1);
    color: #e4203270;
}

.category-badge {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.resource-title {
    margin: 0 0 15px 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #004b6b;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #666666;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #51b146;
    font-size: 0.8rem;
}

/* Resource Content */
.resource-content {
    padding: 40px;
}

.resource-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 30px;
}

/* Resource Info */
.resource-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(0, 75, 107, 0.05);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #51b146;
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: #004b6b;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333333;
    font-size: 0.95rem;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list i {
    color: #51b146;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Download Section */
.download-section {
    background: rgba(81, 177, 70, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.download-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 2rem;
}

.download-section h3 {
    margin: 0 0 10px 0;
    color: #004b6b;
    font-size: 1.5rem;
    font-weight: 600;
}

.download-section p {
    margin: 0 0 25px 0;
    color: #666666;
    font-size: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 177, 70, 0.4);
    color: #ffffff;
}

.download-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: translateY(-2px);
}

/* Related Resources */
.related-resources {
    margin-top: 60px;
}

.section-title {
    margin: 0 0 30px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #004b6b;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 2px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.resource-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.resource-card-header {
    padding: 20px 20px 15px 20px;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.resource-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.resource-card-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-card-badge.type-document {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.resource-card-badge.type-image {
    background: rgba(0, 75, 107, 0.1);
    color: #004b6b;
}

.resource-card-badge.type-video {
    background: rgba(54, 96, 114, 0.1);
    color: #366072;
}

.resource-card-badge.type-audio {
    background: rgba(228, 32, 51, 0.1);
    color: #e4203270;
}

.resource-card-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.resource-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card-title a:hover {
    color: #51b146;
}

.resource-card-content {
    padding: 20px;
}

.resource-card-description {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.resource-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999999;
}

.resource-card-footer {
    padding: 15px 20px;
    background: rgba(0, 75, 107, 0.05);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.view-resource-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.view-resource-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
    color: #ffffff;
}

.download-resource-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: #51b146;
    text-decoration: none;
    border: 2px solid #51b146;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.download-resource-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.view-resource-btn i,
.download-resource-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-resource-btn:hover i,
.download-resource-btn:hover i {
    transform: translateX(3px);
}

/* Dark Theme */
.dark-theme .resource-detail-section {
    background: #1a1a1a;
}

.dark-theme .resource-detail-card {
    background: #2d2d2d;
}

.dark-theme .resource-header {
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.dark-theme .resource-title {
    color: #eeeff1;
}

.dark-theme .resource-meta {
    color: #cccccc;
}

.dark-theme .resource-content {
    background: #2d2d2d;
}

.dark-theme .resource-description {
    color: #e0e0e0;
}

.dark-theme .info-card {
    background: rgba(0, 75, 107, 0.1);
}

.dark-theme .info-card h3 {
    color: #eeeff1;
}

.dark-theme .info-list li {
    color: #e0e0e0;
}

.dark-theme .download-section {
    background: rgba(81, 177, 70, 0.1);
}

.dark-theme .download-section h3 {
    color: #eeeff1;
}

.dark-theme .download-section p {
    color: #cccccc;
}

.dark-theme .section-title {
    color: #eeeff1;
}

.dark-theme .resource-card {
    background: #2d2d2d;
}

.dark-theme .resource-card-header {
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.dark-theme .resource-card-title a {
    color: #eeeff1;
}

.dark-theme .resource-card-title a:hover {
    color: #51b146;
}

.dark-theme .resource-card-description {
    color: #cccccc;
}

.dark-theme .resource-card-meta {
    color: #999999;
}

.dark-theme .resource-card-footer {
    background: rgba(0, 75, 107, 0.1);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .resource-detail-section {
        padding: 60px 0;
    }
    
    .resource-header {
        padding: 30px 30px 25px 30px;
    }
    
    .resource-content {
        padding: 30px;
    }
    
    .resource-title {
        font-size: 1.7rem;
    }
    
    .resource-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .resource-detail-section {
        padding: 40px 0;
    }
    
    .resource-header {
        padding: 25px 25px 20px 25px;
    }
    
    .resource-content {
        padding: 25px;
    }
    
    .resource-title {
        font-size: 1.5rem;
    }
    
    .resource-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .resource-badges {
        gap: 10px;
    }
    
    .download-section {
        padding: 25px;
    }
    
    .download-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .download-section h3 {
        font-size: 1.3rem;
    }
    
    .download-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .view-resource-btn,
    .download-resource-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .resource-header {
        padding: 20px 20px 15px 20px;
    }
    
    .resource-content {
        padding: 20px;
    }
    
    .resource-title {
        font-size: 1.3rem;
    }
    
    .resource-description {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .download-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .download-section h3 {
        font-size: 1.2rem;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

