.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.banner-item {
    border-top: 1px solid #DFDFDF;
    padding-top: 36px;
    position: relative;
    background: #f4f4f4;
    border-radius: 0;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    border: 1px solid #DFDFDF;
    height: 100%;
}
.banner-item.dummy > .banner-info {
    background:#f4f4f4;
}

.banner-item.dummy > .banner-top span {
    position:absolute;
    top:8px;
    right:20px;
}

.banner-image {
    position: relative;
    padding: 0px;
    text-align: center;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.banner-info {
    padding: 15px;
    background: #fff;
}

.banner-info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.banner-info dl {
    margin: 20px 0 0 0;
    font-size: 14px;
    color: #666;
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}

.banner-info dt {
    word-spacing: 2px;
    width: 22%;
    padding: 1px 0;
    font-weight: 600;
}
.banner-info dd {
    padding: 1px 0;
    width: 78%;
    padding-left: 15px;
}

.notification-bell {
    position: absolute;
    border: 1px solid #ff4081;
    background-color: #fff;
    top: 3px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.notification-bell i {
    color: #ff4081;
    font-size: 18px;
    transition: all 0.3s ease;
}

.notification-bell.on:hover {
    background-color: #ff4081;
    transform: translateY(-5px); /* 위로 5px 이동 */
}

.notification-bell.on:hover i {
    color: #fff;
}

.notification-text {
    display: block;
    position: absolute;
    bottom: calc(100% + 10px); /* 아이콘 위에 위치 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4081;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.5px;
    opacity: 0;
    pointer-events: none;
}
.notification-bell.off {
    cursor: default;
}
.notification-bell.on:hover .notification-text {
    display: block;
    opacity: 1;
    pointer-events: auto;
    animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 말풍선 화살표 위치 조정 */
.notification-text:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    border-top: 6px solid #ff4081;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* 알림 활성화 상태 */
.notification-bell.on {
    background-color: #ff4081;
}

.notification-bell.on i {
    color: #fff;
}

/* 모달 스타일 */
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    text-align: center;
}

/* 중앙 정렬을 위한 가상 요소 추가 */
.notification-modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 30px auto;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%; /* 입력란과 선택 박스의 너비를 100%로 설정 */
    box-sizing: border-box; /* 패딩과 테두리를 포함하여 너비 계산 */
    padding: 10px; /* 패딩 추가 */
    margin-bottom: 10px; /* 아래쪽 여백 추가 */
}

.modal-footer {
    margin-top: 30px;
    text-align: right;
    gap: 10px;
    display: flex;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit {
    background: #103bc2;
    color: #fff;
}

.btn-submit:hover {
    background: #0e32a3;
}

.btn-cancel {
    background: #eee;
    color: #666;
}

.element {
    animation: slideInUp 0.5s ease; /* 애니메이션 이름, 지속 시간, 타이밍 함수 */
}

.modal-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

.highlight {
    color: #ff4081;
    font-weight: bold;
}

.required {
    color: #ff4081;
    margin-left: 4px;
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-group input {
    width: 80px;
    text-align: center;
}

.email-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-group input {
    flex: 1;
}

.email-group select {
    width: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.separator {
    color: #666;
    font-weight: bold;
}

.agreement-section {
    margin-top: 30px;
}

.agreement-box {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.agreement-box h4 {
    padding: 15px;
    margin: 0;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.agreement-content {
    padding: 15px;
    height: 150px;
    overflow-y: auto;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.agreement-buttons {
    display: flex;
    border-top: 1px solid #ddd;
}

.agreement-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
}

.agreement-buttons button.active {
    background: #4B0082;
    color: #fff;
}

.modal-footer {
    margin-top: 30px;
}

.btn-submit, .btn-cancel {
    min-width: 120px;
    padding: 12px 24px;
}

.domain-group {
    display: flex;
    gap: 10px;
    min-width: 150px;
}

.domain-group input,
.domain-group select {
    width: 150px;
}

/* 메인 타이틀 스타일 */
.main-title {
    font-size: 20px;
    font-weight: bold;
    color: #103bc2;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 10px;
}

.main-title:before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 18px;
    bottom: inherit;
    top: 4px;
    background-color: #103bc2;
}

.main-title i {
    font-size: 18px;
    color: #6b6674;
} 
/* 반응형 처리 */
@media screen and (max-width: 1200px) {
    .banner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .main-title {
        padding: 0 20px;
    }
    .banner-info {padding: 10px;}
    .banner-info h3 {font-size: 16px;}
    .main-title::before {
        margin-left: 10px;
    }
    .banner-grid {
        gap: 10px;
        padding: 0 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-info dt {width: 26%;}
    .banner-info dd {width: 74%;}
    .banner-info dt, .banner-info dd {
        font-size: 0.98rem;
    }
    .banner-item.dummy > .banner-info dd {
        padding-left: 5px;
    }
    .main-sections > *:nth-child(2) {
        padding-right: 0;
    }
    .main-sections > *:nth-child(3) {
        padding-left: 0;
    }
}
@media screen and (max-width: 484px) {
    .banner-info dt {width: 27%;}
    .banner-info dd {width: 73%; padding-left: 8px;}
    .banner-info dt, .banner-info dd {
        font-size: 0.92rem;
        letter-spacing: -1px;
    }
    .banner-info h3 {
        max-width: 180px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    .contact-info p:not(.contact-title) {font-size: 1.1rem;}
}
@media screen and (max-width: 418px) {
    .banner-info dt {}
    .banner-info dd { padding-left: 5px;}
    .banner-info dt, .banner-info dd {
        font-size: 0.88rem;
        letter-spacing: -1px;
    }
}
@media screen and (max-width: 400px) {
    .banner-info dt, .banner-info dd {
        font-size: 0.85rem;
        letter-spacing: -1px;
    }
    .banner-info h3 {
        max-width: 150px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
/* 기존 스타일 유지 */
input[type="text"], input[type="email"], select {
    width: 100%; /* 입력란과 선택 박스의 너비를 100%로 설정 */
    box-sizing: border-box; /* 패딩과 테두리를 포함하여 너비 계산 */
    padding: 10px; /* 패딩 추가 */
    margin-bottom: 10px; /* 아래쪽 여백 추가 */
}

/* 추가적인 모바일 스타일 */
@media (max-width: 768px) {
    .modal-content {
        padding: 15px; /* 모달 패딩 조정 */
    }

    input[type="text"], input[type="email"] {
        width: calc(100% - 20px); /* 여백을 고려하여 너비 조정 */
    }
}

.banner-group-tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px;
}

.banner-group-tabs .group-tab {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: #f8f8f8;
    color: #666;
    text-decoration: none;
    position: relative;
    bottom: -1px;
}

.banner-group-tabs .group-tab.active {
    background: #fff;
    color: #000;
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

.banner-group-tabs .group-tab:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .banner-group-tabs {
        padding: 0 15px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .banner-group-tabs .group-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
}