/* 플로깅 그리드 섹션 스타일 */
.plogging-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.plogging-container {
    width: 1570px;
    max-width: 98%;
    margin: 0 auto;
}

.plogging-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 650px;
}


/* 그리드 아이템 공통 스타일 */
.plogging-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.plogging-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* 왼쪽 큰 이미지 박스 */
.plogging-item-large {
    grid-row: 1 / span 2;
    grid-column: 1;
    background-image: url('../images/f_bn_1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.plogging-item-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

/* 플로깅 소개 박스 */
.plogging-item-intro {
    padding: 40px;
    text-align: left;
    background-color: #ffffff;
    grid-column: 2;
    grid-row: 1;
}

.plogging-icon {
    color: #7fd959;
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
}

.plogging-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.plogging-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 블루 박스 */
.plogging-item-blue {
    background-color: #1a73e8;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plogging-item-blue:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
}

.plogging-item-blue:nth-of-type(5) {
    grid-column: 3;
    grid-row: 2;
}

.plogging-cta {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

/* 참여자 수 박스 */
.plogging-item-counter {
    background-image: url('../images/f_bn_2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    /* 그리드 위치는 inline style로 지정됨 */
}

.plogging-item-counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.plogging-counter-text {
    position: relative;
    z-index: 2;
}

.plogging-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.plogging-count {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* 반응형 스타일 */
@media (max-width: 1600px) {
    .plogging-container {
        width: 90%;
    }
}

@media (max-width: 1200px) {
    .plogging-grid {
        grid-template-columns: 1fr 1.5fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }
    
    .plogging-item-large {
        grid-row: 1;
        grid-column: 1;
        height: 400px;
    }
    
    .plogging-item-intro {
        grid-column: 2;
        grid-row: 1;
    }
    
    .plogging-item-blue:nth-of-type(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .plogging-item-counter {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
    
    .plogging-item-blue:nth-of-type(4) {
        grid-column: 1 / span 2;
        grid-row: 3;
    }
    
    .plogging-item {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .plogging-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
    }
    
    .plogging-item-large {
        grid-column: 1;
        grid-row: 1;
        height: 300px;
    }
    
    .plogging-item-intro {
        grid-column: 1;
        grid-row: 2;
    }
    
    .plogging-item-blue:nth-of-type(3) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .plogging-item-counter {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }
    
    .plogging-item-blue:nth-of-type(4) {
        grid-column: 1;
        grid-row: 5;
    }
    
    .plogging-title {
        font-size: 24px;
    }
    
    .plogging-cta, .plogging-count {
        font-size: 36px;
    }
}
