/* Person Detail Section */
.person-detail {
    padding: 98px 0 100px;
    background-color: #FFFFFA;
}

.person-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: center;
}

/* Gallery Section */
.person-gallery {
    flex: 0 0 564px;
}

.main-gallery {
    width: 564px;
    height: 680px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    background: #f5f5f5;
}

.main-gallery-swiper {
    width: 100%;
    height: 100%;
}

.main-gallery-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.main-gallery-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-gallery .swiper-button-prev,
.main-gallery .swiper-button-next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    z-index: 10;
}

.main-gallery .swiper-button-prev:hover,
.main-gallery .swiper-button-next:hover,
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.7);
}

.main-gallery .swiper-button-prev::after,
.main-gallery .swiper-button-next::after,
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.thumbnail-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnail {
    width: 100px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #323131;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 1;
}

/* Person Info */
.person-info {
    flex: 1;
    max-width: 532px;
}

.person-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
}

.person-title h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 36px;
    text-transform: uppercase;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 4px;
}

.person-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #898989;
    margin: 0;
}

.share-btn {
    background-color: #fbf5f3;
    border: none;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background-color: #f5ede9;
    transform: translateY(-2px);
}

.person-details {
    margin-bottom: 36px;
    position: relative;
    display: flex;
    gap: 20px;
}

.details-line{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.details-line .start-dot{
    background: #DC0909;
    border-radius: 100%;
    height: 8px;
    width: 8px;
}
.details-line .end-dot{
    background: #DC0909;
    border-radius: 100%;
    height: 8px;
    width: 8px;
}

.details-line .middle-line{
    background: #DC0909;
    height: 100%;
    width: 2px;
}

.details-group {
    display: grid; 
    grid-auto-columns: 1fr; 
    grid-template-columns: min-content min-content; 
    grid-template-rows: min-content min-content; 
    gap: 36px; 
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 124px;
}

.detail-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #3c3c3c;
}

.detail-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #3b3b3b;
    opacity: 0.6;
}

.person-stories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-card {
    background-color: #fbf5f3;
    padding: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.story-card:hover {
    background-color: #f5ede9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.story-card h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #828282;
    margin-bottom: 8px;
}

.story-card p {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #3c3c3c;
    line-height: 1.5;
    margin: 0;
}

/* Person CTA Section */
.person-cta {
    background-color: #fbf5f3;
    padding: 48px 0;
    text-align: center;
}

.person-cta .cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.person-cta h2 {
    font-family: 'Manrope', 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: #333333;
    line-height: 1.1;
    margin-bottom: 16px;
}

.person-cta p {
    font-family: 'Manrope', 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #828282;
    line-height: 1.4;
    margin-bottom: 24px;
}

.person-cta .cta-btn {
    background-color: #323131;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 232px;
}

.person-cta .cta-btn:hover {
    background-color: #2a2929;
    transform: translateY(-2px);
}

/* Other Stories Section */
.other-stories {
    padding: 100px 0;
    background-color: #FFFFFA;
}

.other-stories h2 {
    font-family: 'Manrope', 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: #333333;
    line-height: 1.1;
    margin-bottom: 56px;
    text-align: left;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.story-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fffffa;
    transition: transform 0.3s ease;
}

.story-item:hover {
    transform: translateY(-4px);
}

.story-image {
    position: relative;
    height: 562px;
    overflow: hidden;
    border-radius: 8px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-item:hover .story-image img {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 16px 16px 24px;
    color: white;
}

.story-content h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #f2f2f2;
    line-height: 1.1;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #fbf5f3;
    opacity: 0.7;
    margin-bottom: 8px;
}

.story-description {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #f2f2f2;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-link-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    border: none;
    border-radius: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.story-item:hover .story-link-btn {
    opacity: 1;
    transform: translateY(0);
}

.story-link-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* Person Section Responsive */
@media (max-width: 1200px) {
    .person-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .person-gallery {
        flex: none;
        max-width: 100%;
        align-self: center;
    }
    
    .main-gallery {
        width: 100%;
        max-width: 564px;
        margin: 0 auto 8px;
    }
    
    .thumbnail-gallery {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .person-detail {
        padding: 64px 0 60px;
    }
    
    .person-content {
        gap: 24px;
    }
    
    .main-gallery {
        height: 400px;
    }
    
    .person-title h1 {
        font-size: 28px;
    }
    
    .person-details {
        padding-left: 0;
        margin-bottom: 24px;
    }
    
    .person-details::before {
        display: none;
    }
    
    .details-group {
        gap: 16px;
    }
    
    .person-stories {
        gap: 12px;
    }
    
    .story-card {
        padding: 12px;
    }
    
    .story-card h3 {
        font-size: 13px;
    }
    
    .story-card p {
        font-size: 14px;
    }
    
    .person-cta {
        padding: 32px 0;
    }
    
    .person-cta h2 {
        font-size: 28px;
    }
    
    .other-stories {
        padding: 60px 0;
    }
    
    .other-stories h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .story-image {
        height: 400px;
    }
    
    .story-link-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .person-detail {
        padding: 40px 0;
    }
    
    .main-gallery {
        height: 300px;
    }
    
    .thumbnail {
        width: 80px;
        height: 50px;
    }
    
    .person-title h1 {
        font-size: 24px;
    }
    
    .person-subtitle {
        font-size: 14px;
    }
    
    .share-btn {
        padding: 12px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .story-card {
        padding: 10px;
    }
    
    .story-card h3 {
        font-size: 12px;
    }
    
    .story-card p {
        font-size: 13px;
    }
    
    .person-cta h2 {
        font-size: 24px;
    }
    
    .person-cta p {
        font-size: 14px;
    }
    
    .other-stories h2 {
        font-size: 24px;
    }
    
    .story-image {
        height: 350px;
    }
    
    .story-content h3 {
        font-size: 20px;
    }
    
    .story-subtitle {
        font-size: 12px;
    }
    
    .story-description {
        font-size: 14px;
    }
}

