/* ===== Subpage Common Header ===== */
.sub-header {
    width: 100%;
    height: 380px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 70px; /* fixed nav offset */

    /* Background image via CSS variable (set inline on each page) */
    background-color: #1a1a4e;
    background-image: var(--sub-bg, none);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Dark gradient overlay for readability */
.sub-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 10, 40, 0.82) 0%,
        rgba(26, 26, 78, 0.65) 50%,
        rgba(10, 10, 40, 0.78) 100%
    );
    z-index: 1;
}

/* Decorative corner accent */
.sub-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark, #1a1a4e), transparent 60%);
    z-index: 2;
}

.sub-header-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px 50px;
}

.sub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.sub-breadcrumb a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}
.sub-breadcrumb a:hover { color: rgba(255,255,255,0.85); }

.sub-breadcrumb span {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

.sub-title {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    line-height: 1.2;
    animation: subTitleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.sub-desc {
    color: rgba(255,255,255,0.65);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    animation: subTitleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

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

/* ===== Sub Container ===== */
.sub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px 100px;
}

/* ===== Members Page ===== */
.member-profile {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.member-image {
    width: 420px;
    flex-shrink: 0;
    position: relative;
}

.member-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid #1a1a4e;
    border-radius: 8px;
    opacity: 0.18;
}

.member-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.13);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.member-image:hover img {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.18);
}

.member-info {
    flex: 1;
}

/* Specialist Badges */
.member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, #1a1a4e, #2c2c6e);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(26,26,78,0.25);
}

.member-name {
    font-size: 36px;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    letter-spacing: 0.5px;
}

.member-name span {
    font-size: 18px;
    color: #888;
    font-weight: 500;
    margin-left: 10px;
}

.member-intro {
    font-size: 16px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 44px;
    font-weight: 400;
    border-left: 3px solid #e8e8f2;
    padding-left: 20px;
}

/* Stats Row */
.member-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 50px;
    background: #f8f8fc;
    border: 1px solid #ebebf5;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(26,26,78,0.1);
    transform: translateY(-2px);
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #1a1a4e;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Resume sections */
.resume-section {
    margin-bottom: 34px;
}

.resume-section h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-section h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, #1a1a4e, #4a4a9e);
    border-radius: 2px;
}

.resume-list {
    list-style: none;
    padding: 0;
}

.resume-list li {
    font-size: 15px;
    color: #555;
    padding: 7px 0 7px 16px;
    position: relative;
    line-height: 1.6;
}

.resume-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #c0c0d8;
    border-radius: 50%;
}

/* Career Timeline */
.resume-section.career .resume-list {
    padding-left: 8px;
    border-left: 2px solid #e8e8f4;
}

.resume-section.career .resume-list li {
    padding-left: 22px;
    position: relative;
    padding-bottom: 12px;
}

.resume-section.career .resume-list li::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 10px;
    width: 11px;
    height: 11px;
    background: #fff;
    border: 2px solid #1a1a4e;
    border-radius: 50%;
    transform: none;
}

.resume-section.career .resume-list li:last-child::before {
    background: #1a1a4e;
}

/* ===== Services Page (Accordion) ===== */
.service-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border: 1.5px solid #eeeef5;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.accordion-item:hover {
    border-color: #c8c8e0;
}

.accordion-item.active {
    border-color: #1a1a4e;
    box-shadow: 0 8px 32px rgba(26,26,78,0.08);
}

.accordion-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.3s;
    gap: 16px;
}

.accordion-num {
    font-size: 13px;
    font-weight: 700;
    color: #c0c0d4;
    min-width: 28px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.accordion-item.active .accordion-num {
    color: #1a1a4e;
}

.accordion-header h3 {
    font-size: 20px;
    color: #222;
    font-weight: 700;
    flex: 1;
    transition: color 0.3s;
}

.accordion-item.active .accordion-header {
    background: #fff;
}

.accordion-item.active .accordion-header h3 {
    color: #1a1a4e;
}

.accordion-icon {
    font-size: 20px;
    color: #ccc;
    transition: transform 0.4s ease, color 0.3s;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #1a1a4e;
}

/* max-height slide-down animation */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.45s ease,
                opacity 0.4s ease;
    padding: 0 28px;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 1200px;
    padding: 28px 28px 32px;
    opacity: 1;
}

/* Left color bar when active */
.accordion-item.active {
    border-left: 4px solid #1a1a4e;
}

.accordion-content .catchphrase {
    font-size: 16px;
    color: #1a1a4e;
    font-weight: 700;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f0fa, #f8f8ff);
    border-radius: 8px;
    border-left: 3px solid #1a1a4e;
    line-height: 1.6;
}

.service-block h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-block h4::before {
    content: '';
    display: block;
    width: 3px;
    height: 14px;
    background: #4a4a9e;
    border-radius: 2px;
}

.service-block p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 24px;
    margin-left: 11px;
}

/* ===== Cases Page - Card Grid ===== */

/* Stats banner */
.cases-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cases-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a1a4e, #2c2c70);
    color: #fff;
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(26,26,78,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cases-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(26,26,78,0.28);
}

.cases-stat-num {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.cases-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cases-stat-type {
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.cases-stat-label {
    font-size: 15px;
    font-weight: 700;
}

/* Card Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.case-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    background: #fff;
    border: 1.5px solid #eeeef5;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    cursor: default;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(26,26,78,0.1);
    border-color: #c8c8e0;
}

.case-badge {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.case-badge.win {
    color: #1a4a9e;
    background: #e8eefa;
    border: 1px solid #c8d8f5;
}

.case-badge.defend {
    color: #1a7a3e;
    background: #e6f5ec;
    border: 1px solid #c0e4cc;
}

.case-title {
    font-size: 14.5px;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
    flex: 1;
}

/* ===== Reviews Page ===== */
.review-intro-wrap {
    text-align: left;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f8fd, #f2f2fa);
    border-radius: 12px;
    border: 1px solid #eeeef8;
    position: relative;
    overflow: hidden;
}

.review-intro-wrap::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 140px;
    color: rgba(26,26,78,0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-intro {
    font-size: 16px;
    line-height: 2;
    color: #555;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.review-intro strong {
    color: #1a1a4e;
    font-weight: 700;
}

.review-section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a4e;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.review-section-title::before,
.review-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd);
    max-width: 80px;
}

.review-section-title::after {
    background: linear-gradient(to left, transparent, #ddd);
}

.review-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
}

.reviewSwiper {
    width: 100%;
    padding-bottom: 60px !important;
    padding-top: 20px;
}

.reviewSwiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    filter: blur(2px);
    opacity: 0.45;
}

.reviewSwiper .swiper-slide-active {
    transform: scale(1.06);
    filter: blur(0);
    opacity: 1;
    z-index: 2;
}

.reviewSwiper .swiper-slide img {
    height: 420px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    object-fit: contain;
    background: #fff;
}

.review-container .swiper-button-next,
.review-container .swiper-button-prev {
    color: #1a1a4e;
    background: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    margin-top: -30px;
    transition: background 0.3s, transform 0.3s;
}

.review-container .swiper-button-next:hover,
.review-container .swiper-button-prev:hover {
    background: #1a1a4e;
    color: #fff;
    transform: scale(1.05);
}

.review-container .swiper-button-next:after,
.review-container .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.review-container .swiper-button-prev { left: 0; }
.review-container .swiper-button-next { right: 0; }

.review-container .swiper-pagination-bullet-active {
    background: #1a1a4e;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .member-profile {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    .member-image {
        width: 320px;
    }
    .sub-header-content {
        padding: 0 30px 40px;
    }
}

@media (max-width: 768px) {
    .sub-header {
        height: 300px;
    }
    .sub-title {
        font-size: 32px;
    }
    .sub-desc {
        font-size: 14px;
    }
    .sub-container {
        padding: 50px 20px 70px;
    }

    /* Members */
    .member-image {
        width: 100%;
        max-width: 360px;
    }
    .member-badges {
        justify-content: center;
    }
    .member-stats {
        gap: 12px;
    }
    .member-name {
        font-size: 28px;
    }

    /* Accordion */
    .accordion-header {
        padding: 20px;
    }
    .accordion-header h3 {
        font-size: 17px;
    }
    .accordion-item.active .accordion-content {
        padding: 20px 20px 24px;
    }

    /* Cases */
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .cases-stats {
        gap: 12px;
    }
    .cases-stat-item {
        padding: 12px 20px;
    }
    .cases-stat-num {
        font-size: 24px;
    }

    /* Reviews */
    .reviewSwiper .swiper-slide img {
        height: 300px;
    }
    .review-container {
        padding: 0 10px;
    }
    .review-container .swiper-button-next,
    .review-container .swiper-button-prev {
        display: none;
    }
    .review-intro-wrap {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .sub-header {
        height: 260px;
    }
    .sub-title {
        font-size: 26px;
    }
    .sub-breadcrumb {
        font-size: 12px;
    }
    .accordion-header h3 {
        font-size: 15px;
    }
    .case-card {
        padding: 16px 16px;
    }
    .member-stats {
        grid-template-columns: repeat(3, 1fr);
        display: grid;
    }

    .stat-card {
        padding: 18px 5px;
    }


}
