/* Program Card Block Styles */
.fssc-program-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 300px;
    width: 100%;
    cursor: pointer;
}

.fssc-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 184, 212, 0.2);
}

/* Image Section */
.fssc-program-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fssc-program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fssc-program-card:hover .fssc-program-card-image img {
    transform: scale(1.05);
}

.fssc-program-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e0;
    color: #718096;
}

/* Content Section */
.fssc-program-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.fssc-program-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

/* Description */
.fssc-program-card-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.fssc-program-card-description p {
    margin: 0;
}

/* Link Section */
.fssc-program-card-link-wrapper {
    margin-top: auto;
}

.fssc-program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-turquoise);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
}

.fssc-program-card-link:hover {
    color: #065f73;
}

.fssc-program-card-link svg {
    transition: transform 0.3s ease;
}

.fssc-program-card-link:hover svg {
    transform: translateX(2px);
}

.fssc-program-card-link-placeholder {
    background-color: transparent;
    color: #718096;
    cursor: default;
}

.fssc-program-card-link-placeholder:hover {
    color: #718096;
}

/* Editor Specific Styles */
.wp-block-fairsharesportclub-program-card {
    margin: 1rem 0;
}

/* Grid Support */
.wp-block-group .fssc-program-card,
.wp-block-columns .fssc-program-card {
    height: 100%;
}

/* Alignment Support */
.fssc-program-card.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.fssc-program-card.alignfull {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fssc-program-card {
        max-width: 280px;
    }
    
    .fssc-program-card-image {
        height: 180px;
    }
    
    .fssc-program-card-content {
        padding: 1.25rem;
    }
    
    .fssc-program-card-title {
        font-size: 1.125rem;
    }
    
    .fssc-program-card-description {
        font-size: 0.9rem;
    }
    
    .fssc-program-card-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .fssc-program-card {
        max-width: 100%;
    }
    
    .fssc-program-card-image {
        height: 160px;
    }
    
    .fssc-program-card-content {
        padding: 1rem;
    }
    
    .fssc-program-card-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .fssc-program-card-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .fssc-program-card-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .fssc-program-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .fssc-program-card-link {
        background-color: transparent;
        color: #000;
        border: 1px solid #000;
    }
}
