.detective-intro-section {
    background: #F4F4F4;
    padding: 40px 0;
}

.detective-content-wrapper {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px;
}

.detective-content-box {
    background: #FFFFFF;
    /* border: 2px solid #E87B37; */
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.detective-intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.detective-intro-text strong {
    font-weight: 700;
}

.detective-toc-wrapper {
    border: 2px solid #E87B37;
    border-radius: 8px;
    padding: 0;
    margin-top: 30px;
    overflow: hidden;
}

.detective-toc-header {
    background: #E87B37;
    padding: 15px 20px;
    text-align: center;
    margin: 0;
    border-radius: 0;
}

.detective-toc-header h3 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.detective-toc-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    background: #FFFFFF;
}

.detective-toc-item {
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 18px;
    color: #333;
}

.detective-toc-item:last-child {
    border-bottom: none;
}

.detective-toc-item strong {
    font-weight: 700;
}

.toc-link {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.toc-link:hover {
    color: #E87B37;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed headers if any */
.detective-detail-wrapper[id],
.detective-guide-wrapper[id] {
    scroll-margin-top: 20px;
}

/* Detective Detail Section */
.detective-detail-section {
    background: #F4F4F4;
    padding: 40px 20px;
}

.detective-detail-wrapper {
    max-width: 940px;
    margin: 0 auto;
    /* padding: 0 20px; */
    border: 2px solid #DB6633;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Pink Header */
.detective-rank-header {
    background: #F2096C;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.rank-badge {
    background: #F5D5B8;
    color: #8B4513;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

.detective-rank-header h2 {
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: normal;
}

.sparkle-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.sparkle-icon svg {
    width: 24px;
    height: 40px;
}

/* Advertisement Section */
.detective-ads-container {
    display: flex;
    gap: 16px;
    /* margin-bottom: 30px; */
    padding: 20px 0 0 0;
}

.detective-ad-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* padding: 20px; */
    text-align: center;
}

.ad-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.detective-btn-official {
    display: block;
    background: #DC143C;
    color: #FFFFFF;
    text-align: center;
    padding: 10px;
    line-height: 1.5;
    border-radius: 8px;
    text-decoration: none;
    font-size: 32px;
    font-weight: 500;
    transition: background 0.3s;
    width: 35%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.official-btn {
    width: 75%;
}

.detective-btn-official:hover {
    background: #B22222;
}

/* Main Content Area */
.detective-main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}


.detective-ad-item:last-child {
    margin-right: 20px;
}

.detective-ad-item:first-child {
    margin-left: 20px;
}


/* Left Column: Points Box */
.detective-points-box {
    flex: 1;
    background: #E8F5E9;
    border-radius: 8px;
    margin-left: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.detective-points-box-wrapper {
    flex: 1;
    padding: 20px 0;
}

.footer-ad-item {
    padding-bottom: 20px;
}


.detective-points-box-content {
    background: #E8F5E9;
    border-radius: 8px;
    margin-left: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}


.points-title {
    color: #008245;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

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

.points-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.check-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.check-icon svg {
    width: 24px;
    height: 24px;
}

/* Right Column: Info Box */
.detective-info-box {
    flex: 1;
    /* background: #FFFFFF; */
    border-radius: 8px;
    padding: 20px 0;
    padding-right: 20px;
}

.info-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
}

.info-tag {
    background: #E1F4FD;
    color: #2682C4;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
}

.guide-block p strong {
    font-weight: 700;
    color: #000000;
}

.info-description {
    margin-bottom: 25px;
}

.info-description p {
    color: #000000;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.info-description p strong {
    font-weight: 700;
    color: #000000;
}

.info-details {
    border-top: 1px solid #DB6633;
    padding-top: 20px;
}

.info-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #DB6633;
}

.info-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

.detail-value {
    color: #666;
    font-size: 18px;
    text-align: right;
}

.rank-2 {
    background: #EC008C;
}

.rank-3 {
    background: #00AEEF;
}

.rank-4 {
    background: #E6D32F;
}

.rank-5 {
    background: #F067A3;
}

.rank-6 {
    background: #00C2E9;
}

.rank-7 {
    background: #EE5870;
}

.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .detective-detail-section {
        padding: 0 20px;
    }

    .mobile-br {
        display: block;
    }

    .mobile-br-2 {
        display: none;
    }

    .detective-content-wrapper {
        padding: 0 10px;
    }

    .detective-content-box {
        padding: 20px;
    }

    .detective-intro-text {
        font-size: 16px;
    }

    .detective-toc-header h3 {
        font-size: 20px;
    }

    .detective-toc-item {
        font-size: 16px;
        padding: 12px 0;
    }

    .detective-detail-wrapper {
        /* padding: 0 10px; */
    }

    .detective-rank-header {
        padding: 15px 20px;
        flex-direction: row;
        align-items: flex-start;
        gap: 5px;
    }

    .rank-badge {
        font-size: 20px;
        padding: 6px 12px;
    }

    .detective-rank-header h2 {
        font-size: 24px;
        display: flex;
        gap: 0;
    }

    .sparkle-icon svg {
        width: 18px;
        height: 30px;
    }

    .detective-ads-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .detective-ad-item {
        flex: 1;
    }

    .detective-main-content {
        flex-direction: column;
        padding: 10px;
    }

    .detective-points-box,
    .detective-info-box {
        flex: 1;
        margin: 0;
        padding: 10px;
    }

    .detective-points-box-content {
        margin: 20px 0 0 0;
    }

    .info-detail-item {
        flex-direction: row;
        gap: 8px;
    }

    .detail-value {
        text-align: left;
    }

    .detective-ad-item:last-child {
        margin-right: 0;
    }

    .detective-ad-item:first-child {
        margin-left: 0;
    }

    .detective-btn-official {
        width: 55%;
        font-size: 20px;
        padding: 10px;
    }

    .detective-btn-official svg {
        width: 18px;
        height: 18px;
    }


}

/* How to Choose Detective Agency Section */
.detective-guide-section {
    background: #F4F4F4;
    padding: 60px 0;
}

.detective-guide-wrapper {
    max-width: 940px;
    margin: 0 auto;
    padding: 20px 10px;
    background: #FFFFFF;
    border-radius: 15px;
    margin-bottom: 40px;
}

.guide-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #E87B37;
    text-align: center;
    margin-bottom: 30px;
}

.guide-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.guide-title-divider .divider-dot {
    width: 8px;
    height: 8px;
    background: #E87B37;
    border-radius: 50%;
    flex-shrink: 0;
}

.guide-title-divider .divider-line {
    width: 200px;
    height: 2px;
    background: #E87B37;
}

.guide-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.guide-block {
    background: #FEF4E4;
    /* border: 1px solid #E8E8E8; */
    border-radius: 12px;
    padding: 30px;
}

.guide-block-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.guide-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.guide-icon-number {
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 32px;
    font-weight: 700;
    color: #E87B37;
    z-index: 2;
}

.guide-icon-box {
    width: 64px;
    height: 64px;
    /* background: #E87B37; */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.guide-icon-box svg {
    width: 64px;
    height: 64px;
}

.guide-block-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.guide-block-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #3C3C3C;
    margin: 0;
    padding-left: 84px;
}

@media (max-width: 768px) {
    .detective-guide-wrapper {
        padding: 10px;
    }

    .detective-guide-section {
        padding: 60px 10px 10px;
    }

    .guide-main-title {
        font-size: 28px;
    }

    .guide-title-divider .divider-line {
        width: 100px;
    }

    .guide-block {
        padding: 20px;
    }

    .guide-block-header {
        flex-direction: row;
        gap: 15px;
    }

    .guide-block-text {
        padding-left: 0;
    }

    .guide-icon-number {
        font-size: 24px;
    }

    .guide-icon-box {
        width: 48px;
        height: 48px;
    }

    .guide-icon-box svg {
        width: 48px;
        height: 48px;
    }

    .guide-block-title {
        font-size: 20px;
    }

    .guide-block-text {
        font-size: 16px;
        margin-left: 60px;
    }

    .info-description p,
    .detail-label,
    .detail-value,
    .info-tag,
    .points-item,
    .guide-block p strong {
        font-size: 16px;
    }

    .guide-icon-box svg {
        width: 48px;
        height: 48px;
    }
}