@charset "UTF-8";

/* Cases Page Specific Styles */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&display=swap');

/* ===== Category Filter ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-label {
    font-size: 13px;
    font-weight: bold;
    color: #595857;
    display: flex;
    align-items: center;
    flex-basis: 100%;
    margin-bottom: 4px;
    margin-right: 0;
}

.filter-btn {
    padding: 7px 14px;
    border: 2px solid #b7282e;
    background: #fff;
    color: #b7282e;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
    font-family: "Shippori Mincho", "Yu Mincho", serif;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #b7282e;
    color: #fff;
}

.filter-btn.all {
    border-color: #3e3a39;
    color: #3e3a39;
}

.filter-btn.all:hover,
.filter-btn.all.active {
    background: #3e3a39;
    color: #fff;
}

/* ===== Case Card Grid ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ===== Case Card ===== */
.case-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.case-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-card-img {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
    background: #f0ece0;
}

.case-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-card-img img {
    transform: scale(1.04);
}

.case-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #b7282e;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
    letter-spacing: 0.5px;
    z-index: 1;
}

.after-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 10px;
    background: rgba(22, 94, 131, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
    z-index: 1;
}

.case-card-body {
    padding: 18px 20px 20px;
}

.case-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #3e3a39;
    margin-bottom: 10px;
    line-height: 1.5;
}

.case-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.case-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.case-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}

.case-card-more {
    text-align: right;
    font-size: 13px;
    color: #165e83;
    font-weight: bold;
}

.case-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.case-count strong {
    font-size: 20px;
    color: #b7282e;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
    display: none;
}

/* ===== Detail Page Styles ===== */

.before-after-wrap {
    display: flex;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    align-items: flex-start;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

.before-after-wrap + .before-after-wrap{
    margin-top: 56px;
}

.ba-tabs {
    display: flex;
    border-bottom: 2px solid #f5f3ec;
}

.after {
    flex: 1;
    padding: 5px;
    background: #f5f3ec;
    border-radius: 12px;
}

.before {
    flex: 1;
    padding: 5px;
    background: #f5f3ec;
    border-radius: 12px;
}

.ba-tab {
    flex: 1;
    padding: 10px 10px 6px 20px;
    /* text-align: center; */
    font-size: 18px;
    font-weight: bold;
    background: #f5f3ec;
    color: #555555;
    transition: all 0.2s;
    border: none;
    font-family: "Shippori Mincho", serif;
}

.ba-tab-after {
    background: #f5f3ec;
    color: #555555;
    padding: 10px 10px 6px 20px;
    font-size: 18px;
    font-weight: bold;
}

.ba-panel {
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.ba-panel-wrap {
    display: flex;
}

.ba-panel img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 10px;
}

.ba-panel:hover img {
    transform: scale(1.03);
}

.ba-panel-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 2px;
}

.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;
}

.modal img{
  max-width: 80%;
  max-height: 80%;
}

.modal.active{
  opacity: 1;
  visibility: visible;
}

.modal-open{
  cursor: pointer;
}

.close{
  position: absolute;
  top: 150px;
  right: 40px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.case-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.case-info-table th {
    background: #faf9f7;
    color: #3e3a39;
    font-weight: bold;
    padding: 16px 20px;
    width: 30%;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.case-info-table td {
    padding: 16px 20px;
    color: #555;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.voice-box {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 35px 40px;
    margin: 30px 0;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.voice-box::before {
    content: '\201C';
    font-size: 80px;
    color: #e6d5c5;
    position: absolute;
    top: 5px;
    left: 15px;
    line-height: 1;
    font-family: Georgia, serif;
}

.voice-text {
    font-size: 16px;
    line-height: 2.0;
    color: #3e3a39;
    padding-left: 20px;
    position: relative;
    z-index: 1;
}

.voice-author {
    text-align: right;
    font-size: 13px;
    color: #888;
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 12px;
}

.point-box {
    background: #f4f8fa;
    border: none;
    border-radius: 12px;
    padding: 30px 35px;
    margin: 30px 0;
}

.point-box-title {
    font-size: 17px;
    font-weight: bold;
    color: #165e83;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.point-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.point-list li {
    font-size: 15px;
    padding: 6px 0 6px 28px;
    position: relative;
    color: #3e3a39;
    border-bottom: 1px dashed #c5dcea;
}

.point-list li:last-child {
    border-bottom: none;
}

.point-list li::before {
    content: '▶';
    color: #165e83;
    font-size: 11px;
    position: absolute;
    left: 6px;
    top: 9px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* .kitchen-wrap{
    width: 60%;
    margin: 0 auto;
} */

@media screen and (max-width: 960px) {
    .after {
    }
    .before {
    }
    .before.bath {

    }
    .before.toilet {
        max-width: 480px;
        width: 100%;
    }
    .close{
        top: 60px;
        right: 40px;
    }
}

@media screen and (max-width: 768px) {
    /* Layout */
    .cases-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .category-filter {
        padding: 15px;
    }
    .voice-box {
        padding: 25px 20px 20px;
    }
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Header Fallback */
    .header-top-bar {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    .header-utils {
        display: none;
    }
    .desktop-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .desktop-nav ul li {
        font-size: 13px;
    }
    .desktop-nav ul li a {
        padding: 8px 10px;
    }
    .logo-text img {
        height: 24px !important;
    }

    .article-title {
        font-size: 20px;
    }
    .article-meta {
        font-size: 14px;
    }

    .section-heading-h2 {
        font-size: 18px;
    }

    .article-text {
        font-size: 14px;
    }

    .cta-title {
        font-size: 18px;
    }

    .cta-btn {
        font-size: 16px;
    }

    /* .bath-wrap {
        flex-direction: column;
    } */
    .after.bath {
        margin: 0 0 10px;
    }
    .after.bath {
        max-width: 100%;
    }
    .after.toilet {
        margin: 0 0 10px;
    }
    .after.toilet {
        max-width: 100%;
    }

    .after {

    }
    .ba-panel-label {
        white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
    }
    /* .kitchen-wrap{
    width: 100%;
} */
    
}

@media screen and (max-width: 480px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* Table Stacking */
    .case-info-table, 
    .case-info-table tbody, 
    .case-info-table tr, 
    .case-info-table th, 
    .case-info-table td {
        display: block;
        width: 100%;
    }
    .case-info-table th {
        border-bottom: none;
        padding: 12px 15px 4px;
        background: #fdfcfb;
    }
    .case-info-table td {
        padding: 4px 15px 16px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    
    /* Tabs & Text */

    .before-after-wrap{
        gap:6px;
    }
    .ba-tab {
        font-size: 13px;
        padding: 5px 10px 2px;
    }
    .ba-tab-after {
        font-size: 14px;
        padding: 5px 10px 2px;
    }
    .ba-panel {
        padding: 5px;
        display: flex;
        flex-direction: column-reverse;
    }
    .ba-panel img {
        border-radius: 6px;
    }
    .ba-panel-label {
        font-size: 12px;  
        padding: 2px 10px;
        position: static;
        display:inline-block;
        margin: 0 0 10px;
    }
    .voice-text {
        font-size: 14px;
    }
    .point-box {
        padding: 20px;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .cta-buttons a {
        width: 100%;
        margin-bottom: 10px;
    }
    .after {
        border-radius: 8px;
    }
    .before {
        border-radius: 8px;
    }
}
