/* Training Programs Widget Styles */

/* Main Grid Container */
.tp-programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* Individual Program Card */
.tp-program-card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tp-program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Image Section - No padding, touches card edges */
.tp-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.tp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Section - Has padding */
.tp-content {
    padding: 24px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.tp-header {
    margin-bottom: 24px;
}

.tp-title {
    font-family: "DM Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #262626;
    margin: 0 0 8px 0;
}

.tp-host {
    font-size: 14px;
    color: #737373;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Details Section with Icons */
.tp-details {
    margin-bottom: 24px;
}

.tp-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.tp-detail-item:last-child {
    margin-bottom: 0;
}

.tp-icon {
    color: #6b7280;
    font-size: 16px;
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tp-detail-content {
    flex: 1;
}

.tp-detail-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
}

.tp-date {
    font-weight: 500;
    margin-bottom: 2px !important;
}

.tp-time {
    font-size: 12px !important;
    color: #9ca3af !important;
    font-weight: 400;
}

.tp-location {
    font-weight: 500;
}

/* Description Section */
.tp-description {
    margin-bottom: 28px;
    flex: 1;
}

.tp-description p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Button Section */
.tp-button-wrapper {
    margin-top: auto;
}

.tp-register-button {
    background-color: #C6CAC8;
    font-family: "DM Sans", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #262626;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.tp-register-button:hover {
    background-color: #B5B9B7;
    transform: translateY(-1px);
    text-decoration: none;
    color: #262626;
}

.tp-button-text {
    font-weight: 600;
}

.tp-button-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.tp-register-button:hover .tp-button-icon {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tp-programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tp-programs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tp-content {
        padding: 16px 10px;
    }
    
    .tp-title {
        font-size: 18px;
    }
}
