/* ==================== Container ==================== */
.ohio-portfolio-container {
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

/* ==================== Grid System ==================== */
.ohio-portfolio-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

.ohio-portfolio-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ohio-portfolio-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ohio-portfolio-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .ohio-portfolio-grid.cols-3,
    .ohio-portfolio-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ohio-portfolio-grid.cols-2,
    .ohio-portfolio-grid.cols-3,
    .ohio-portfolio-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ==================== Card Design ==================== */
.ohio-card {
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #910b80;
    border-top: 4px solid #930B7F; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ohio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(147, 11, 127, 0.1);
    border-color: #f0f0f0;
}

.ohio-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Elements */
.ohio-cat-badge {
    display: inline-block;
    font-size: 12px;
    color: #930B7F;
    background-color: #F8E6F5;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
    font-weight: 600;
}

.ohio-card-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
}

.ohio-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.ohio-card-title a:hover {
    color: #930B7F;
}

.ohio-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==================== Action Buttons (New Style) ==================== */
.ohio-card-actions {
    display: flex;
    justify-content: flex-end; /* 按鈕靠右 */
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.ohio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1.2;
}

.ohio-btn svg {
    width: 16px;
    height: 16px;
}

/* View Button (Grey) */
.ohio-btn-view {
    background: #f0f0f0;
    color: #333;
}

.ohio-btn-view:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    color: #333;
}

/* Link Button (Purple) */
.ohio-btn-link {
    background: #910b80;
    color: #fff;
}

.ohio-btn-link:hover {
    background: #a92097;
    transform: translateY(-1px);
    color: #fff;
}

/* RWD for Buttons */
@media (max-width: 480px) {
    .ohio-card-actions {
        flex-direction: column;
    }
    
    .ohio-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== Modal (Pop-up) ==================== */
.ohio-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(3px);
    animation: ohioFadeIn 0.3s;
}

.ohio-modal-content {
    background-color: #fefefe;
    margin: 5vh auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: ohioSlideUp 0.3s;
}

.ohio-modal-close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

.ohio-modal-close:hover {
    color: #930B7F;
}

.ohio-modal-title {
    color: #930B7F;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 24px;
}

.ohio-modal-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.ohio-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

@keyframes ohioFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ohioSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ohio-empty-message {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}