/* ==============================================
   Case Post Template Styles - SWELL Design
   ============================================== */

.case-post-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.case-post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.case-post-title,
.field-label{
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    display: flex;
    justify-content: center;
}

.case-post-title::after,
.field-label::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2f855a;
    border-radius: 2px;
}

.case-post-date {
    color: #666;
    padding: 0.3rem 0;
    display: inline-block;
}

/* Main Content */
.case-post-content {
    margin-bottom: 3rem;
}

.case-field {
    margin-bottom: 2rem;
}　

.field-value {
    padding: 1.5rem;
    margin: 0;
    background: white;
    font-size: 1rem;
}

/* Special field styles */
.basic-info-table .field-value {
    padding: 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.info-table th {
    background: #f8fbff;
    color: #4a90c2;
    border: none;
    border-right: 1px solid #e1e5e9;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    vertical-align: middle;
    width: 30%;
    position: relative;
}

.info-table th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
}

.info-table td {
    background: white;
    border: none;
    padding: 1rem 1.5rem;
    color: #444;
    vertical-align: middle;
    border-bottom: 1px solid #e1e5e9;
    font-size: 1rem;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:nth-child(even) td {
    background: #fafbfc;
}

.info-table tr:hover td,
.info-table tr:hover th {
    background: #f0f7ff;
}

/* Cemetery name special styling */
.cemetery-name {
    font-weight: 600;
    color: #2c5530;
    font-size: 1.1rem;
}

/* Photo containers */
.photo-container,
.review-container {
    padding: 1.5rem;
    text-align: center;
    margin: 1rem;
}

.stone-image,
.review-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(74, 144, 194, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #f0f4f8;
}

.photo-caption,
.review-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #4a90c2;
}

/* Content text */
.content-text {
    font-size: 1rem;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    color: #2c5530;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-post-container {
        padding: 1rem 0.5rem;
    }
    
    .case-post-title {
        font-size: 1.3rem;
    }
    
    .field-value {
        padding: 1rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .info-table th {
        width: 35%;
    }
    
    .cemetery-name {
        font-size: 1rem;
    }

    .field-label{
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .case-post-container {
        padding: 1rem 0.25rem;
    }
    
    .case-post-title {
        font-size: 1.3rem;
    }
    
    .field-value {
        padding: 0.8rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .info-table th {
        width: 40%;
    }
    
    .cemetery-name {
        font-size: 0.95rem;
    }

    .field-label{
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .case-post-navigation {
        display: none;
    }
    
    .case-field {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }
    
    .stone-image,
    .review-image {
        max-height: 400px;
    }
}