
main .logo {
    display: flex;
    align-items: center;
}
main .logo a{line-height:1px;}

main .logo img {
    height: auto;
    width: auto;
    max-width:250px;/* 로고 최대 높이 설정 */
    margin-left: 10px;
}
/* 플로깅 그리드 섹션 스타일 */
main {
    padding: 0px 0 20px;
    /* background-color: #f9f9f9; */
    margin-bottom:0;
}

.plogging-container {
    width: 95vw;
    max-width: 1800px;
    margin: 0 auto;
}

.plogging-grid {
    display: grid;
    
    grid-template-columns: 1fr 2.5fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: ;
    transition:0.5s ease;
    transition:all 0.5s ease;
}

.plogging-grid .bg_video{
    position:absolute;
    top:0;
    lefT:0;
    right:0;
    bottom:0;
    z-index:-1;
}
.plogging-grid .bg_video video{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}
.plogging-grid .bg_video::after{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    content:'';
    background-color:rgba(0,0,0,0.3);
}

.plogging-grid:has(.plogging-item-large:hover){
    grid-template-columns: 1.5fr 2fr;
}
.plogging-row{
    display:flex;
    gap:20px;
}

/* 그리드 아이템 공통 스타일 */
.plogging-item {
    width:100%;
    height:100%;
    border-radius: 15px;
    padding:40px;
    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: start;
    /* background-color: #fff; */
    transition:all 0.5s ease;
}

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

.item_box{
    transition:all 0.5s ease;
    border-radius:20px;
}

.first_row .item_box:nth-child(1){
    /* grid-area:a2; */
    flex:1;
    background:url(../images/main_flog_02.png) no-repeat center / cover;
}

.first_row .item_box:nth-child(1) .plogging-item{
        text-align:Center;
        align-items:center;
    }

.first_row .item_box:nth-child(2){
flex:1.5;

}
.second_row .item_box:nth-child(1){
    flex:1.5;
    background:url(../images/main_flog_04.gif) no-repeat center / cover;
    
}
.second_row .item_box:nth-child(2){
    flex:1;
    

}

.first_row .item_box:nth-child(1):hover{
    flex:1.5;

}
.first_row:has(.item_box:nth-child(1):hover) .item_box:nth-child(2){
    flex:1;
}
.second_row .item_box:nth-child(2):hover{
    flex:1.5;
}
.second_row:has(.item_box:nth-child(2):hover) .item_box:nth-child(1){
    flex:1;
    
}
.item_box:hover .over_btn{
    visibility:visible;
    opacity:1;
}

/* .plogging-grid:has(.plogging-item-blue:nth-of-type(3):hover){
    
} */

/* 왼쪽 큰 이미지 박스 */
.plogging-item-large {
    grid-row: 1 / span 2;
    grid-column: 1;

    position: relative;
}

.plogging-item-large .plogging_text{
    position:absolute;
    z-index:2;
    color:#fff;
    text-align:right;
    bottom:10%;
    right:10%;
    font-size:18px;
}
.plogging-item-large .plogging_text h3{
    font-size:48px;
    line-height:1.1

}
.first_row{
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}
.second_row{
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}
.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;
    color:#fff;
    justify-content:start;
    /* background-color: #ffffff; */
    /* grid-column: 2;
    grid-row: 1; */
}

.plogging-icon {
    color: #7fd959;
    font-size: 48px;
    /* margin-bottom: 20px; */
    font-weight: bold;
    line-height:0.5;
}

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

.plogging-description {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    /* max-width:320px; */
}

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

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

.second_row .plogging-item-blue.plogging-item-blue:nth-child(1) {
    /* align-items:Center;
    justify-content:start;
    text-align:center; */
}
.second_row .plogging-item-blue.plogging-item-blue:nth-child(1) .plogging-cta{
    text-align:left;
}
.plogging-cta {
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    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: start;
    text-align: left;
    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;
    line-height:1;
}

.over_btn{
    visibility:hidden;
    opacity:0;
    transition:All 0.5s ease;
    padding:12px 24px;
    border:1px solid #fff;
    color:#fff;
    font-weight:700;
    border-radius:999px;
    position:absolute;
    bottom:5%;
    left:5%;
    z-indeX:10;
}

/* 반응형 스타일 */
@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;
    }


}
