/* FONT ===================================================== */

@font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicR.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicR_OTF.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicL.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicL_OTF.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicEL.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicEL_OTF.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicT.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicT_OTF.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'HanwhaGothic';
    src: url('/QR/fonts/HanwhaGothicB.ttf') format('truetype'),
      url('/QR/fonts/HanwhaGothicB_OTF.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
  }
  
  /*  Hanwha fonts ===================================================== */
  
  @font-face {
    font-family: 'Hanwha';
    src: url('/QR/fonts/HanwhaR.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Hanwha';
    src: url('/QR/fonts/HanwhaB.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
  }

/* ================================================================================================================================ */
/* Review List Container ================================================================================================================================ */
/* ================================================================================================================================ */
.review-list-container {
    width: 100%;
    height: auto;
    margin-top: 30px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

/* Individual Review Item */
.review-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-content-area {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
}

.review-item-header {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.star-rating-display {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.review-title-and-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.email-date-image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.star-rating-display {
    margin-right: 10px;
}

.star-rating-display .star {
    font-size: 20px;
    color: #ccc;
}

.star-rating-display .star.filled {
    color: #ff0000;
}

.review-title {
    font-weight: bold;
    font-size: 16px;
}

.review-text {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.review-author-info {
    font-size: 14px;
    color: #888;
}

.review-photo-area {
    flex-shrink: 0;
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

.review-photo-area img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: 40px; */
    padding: 20px 0;
}

.pagination a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a.arrow {
    font-weight: bold;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #555;
    color: white;
    border-color: #555;
}

/* ================================================================================================================================ */
/* Review Modal ================================================================================================================================ */
/* ================================================================================================================================ */

.review-modal-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.review-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 600px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.review-modal-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

.review-form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #ccc;
    padding: 0 16px 16px 16px;
}

.review-form-group label {
    width: 100px;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
}

.label-and-question-icon {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
width: 60px;
height: 49px;
margin-right: 40px;
}

.photo-upload-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-left: 10px;
}

.review-form-group input[type="text"],
.review-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.review-form-group textarea {
    resize: vertical;
}

.author-info span {
    margin-right: 20px;
    color: #333;
}

.star-rating-input {
    direction: ltr;
}

.star-rating-input .star {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating-input .star:hover,
.star-rating-input .star.selected {
    color: #ff0000;
}

.satisfaction-text {
    margin-left: 20px;
    color: #888;
}

.photo-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-btn-label {
    cursor: pointer;
}

.upload-btn {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #ccc;
    border-radius: 4px;
background: #FAFAFA;
}

.image-preview-container {
    display: flex;
    gap: 10px;
}

.image-preview-item {
    position: relative;
}

.image-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.remove-image-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: black;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* Tooltip Styles */
.tooltip-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.tooltip-icon-container svg {
    cursor: pointer;
}

.tooltip-popup {
    display: none;
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    right: 110%;
    width: 426px;
    height: 72px;
    padding: 16px;
    color: #000;
    font-family: 'HanwhaGothic', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 250;
    line-height: 150%; /* 19.5px */
    background: #fff;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.tooltip-popup.show {
    display: block;
}

.tooltip-popup::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.review-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    background: #fff;
}

.review-modal-footer button {
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.review-modal-footer .submit-btn {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* ================================================================================================================================ */
/* Login Modal ================================================================================================================================ */
/* ================================================================================================================================ */

.login-modal-content {
    width: 480px;
    text-align: center;
}

.login-modal-content .review-modal-header {
    text-align: left;
    position: relative;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close-login-modal-btn {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 28px;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}

.login-modal-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 30px;
    text-align: left;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    cursor: pointer;
    gap: 10px;
}

.social-login-btn img {
    width: 24px;
    height: 24px;
}

/* ================================================================================================================================ */
/* Event Modal Styles ================================================================================================================================ */
/* ================================================================================================================================ */

.event-modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.event-modal-content {
    width: auto;
    background-color: #fff;
    height: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-modal-header {
    position: relative;
    padding: 10px;
    padding-bottom: 0;
}

.close-event-modal-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.close-event-modal-btn:hover {
    color: #333;
}

.event-modal-body {
    background-color: #fff;
    padding: 20px;
}

.event-modal-image-container {
    width: 100%;
    margin-bottom: 20px;
}

.event-modal-image {
    width: 600px;
    height: 600px;
    object-fit: cover;
}

.event-info-section {
    text-align: left;
}

.event-period {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.event-modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.event-modal-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    height: auto;
}

.event-participation-info {
    background-color: #f8f9fa;
    width: 600px;
    height: auto;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.event-participation-info p {
    margin-bottom: 8px;
}

.event-participate-btn {
    width: 100%;
    max-width: 600px;
    color: #333;
    border: solid 1px #ccc;
    padding: 15px;
    background: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.event-participate-btn:hover {
    background-color: #e6cc00;
}
