* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', Arial, sans-serif;
}

body {
    display: flex;
    background-color: #f9f9f9;
    color: #333;
}

.page-container {
    display: flex;
    width: 100%;
    margin-top: 60px;
}

.main-content {
    margin-left: 200px;
    width: calc(100% - 200px);
    height: fit-content;
    padding: 20px;
}

.club-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.club-header {
    display: flex;
    margin-bottom: 40px;
    gap: 40px;
}

.club-image-container {
    flex: 0 0 45%;
    max-width: 45%;
    height: 340px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.club-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.club-image-container:hover .club-image {
    transform: scale(1.05);
}

.club-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.club-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.club-name {
    font-size: 2.2em;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.btn_like {
    width: 35px;  
    height: 35px; 
    background: url('https://umings.github.io/images/i_like_off.png') no-repeat center / 35px; 
    border: 0;
    cursor: pointer;
    font-size: 0;
    display: block;
    margin: 0;
    transition: transform 0.3s ease;
}

.btn_like:hover {
    transform: scale(1.1);
}

.btn_like.on {
    background: url('https://umings.github.io/images/i_like_on.png') no-repeat center / 35px;
    animation: beating 0.5s 1 alternate;
}

@keyframes beating {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.club-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.main-category {
    background-color: #ff7a00;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 180, 2, 0.2);
}

.sub-category {
    background-color: #fff2d6;
    color: #ffa653;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
}

.club-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

.club-members-count {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

.current {
    font-weight: bold;
    color: #ff7a00;
}

.max {
    color: #666;
}

.club-description {
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-size: 1.05em;
    min-height: 100px;
    padding: 7px 10px;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.club-top-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-join {
    background-color: #ffb402;
    color: white;
    box-shadow: 0 3px 6px rgba(255, 180, 2, 0.3);
}

.btn-join:hover {
    background-color: #e0a002;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 180, 2, 0.3);
}

.btn-guest {
    background-color: #f5f5f5;
    color: #666;
}

.btn-guest:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn-manage, .btn-event-add {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    font-size: 1.2em;
    padding: 0;
    background-color: #ffffff;
    color: #fff4e0;
    border: 2px solid #ff7a00;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-manage:hover, .btn-event-add:hover {
    background-color: #ff7a00;
    color: white;
    transform: scale(1.1);
}

.club-manage-actions {
    display: flex;
    gap: 10px;
}

.club-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    color: #777;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #ff7a00;
}

.tab-btn.active {
    color: #ff7a00;
    border-bottom-color: #ff7a00;
}

.tab-pane {
    display: none;
    padding: 20px 0;
}

.tab-pane.active {
    display: block;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.schedule-header h3 {
    font-size: 1.5em;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.schedule-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 4px;
    background-color: #ff7a00;
    border-radius: 2px;
}

.schedule-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    background-color: white;
}

#calendar {
    min-height: 550px;
    width: 100%;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.schedule-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 800;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

.close-modal {
    font-size: 1.8em;
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

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

.modal-body {
    padding: 25px;
}

.event-info {
    margin-bottom: 25px;
}

.event-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.05em;
}

.event-info strong {
    color: #555;
    margin-right: 5px;
}

.participation-poll {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-bottom: 25px;
}

.participation-poll h4 {
    font-size: 1.3em;
    color: #444;
    margin-bottom: 15px;
}

.poll-options {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.poll-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.poll-yes {
    background-color: #4CAF50;
    color: white;
}

.poll-yes:hover {
    background-color: #43a047;
    transform: translateY(-2px);
}

.poll-no {
    background-color: #f44336;
    color: white;
}

.poll-no:hover {
    background-color: #e53935;
    transform: translateY(-2px);
}

.poll-maybe {
    background-color: #FF9800;
    color: white;
}

.poll-maybe:hover {
    background-color: #fb8c00;
    transform: translateY(-2px);
}

.participants {
    margin-top: 20px;
}

.participant-group {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.participant-group h5 {
    margin-bottom: 12px;
    color: #444;
    font-size: 1.05em;
}

.participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.participant {
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.9em;
    transition: all 0.3s;
}

.participant:hover {
    transform: translateY(-2px);
}

.attending .participant {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.not-attending .participant {
    background-color: #ffebee;
    color: #c62828;
}

.maybe-attending .participant {
    background-color: #fff3e0;
    color: #ef6c00;
}

.guest-section {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.guest-section h4 {
    font-size: 1.3em;
    color: #444;
    margin-bottom: 15px;
}

.guest-apply-area p {
    margin-bottom: 12px;
    color: #555;
}

.btn-guest-apply {
    padding: 10px 20px;
    background-color: #ff7a00;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-guest-apply:hover {
    background-color: #e0a002;
    transform: translateY(-2px);
}

.guest-name {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.9em;
}

.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.members-header h3 {
    font-size: 1.5em;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.members-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 4px;
    background-color: #ff7a00;
    border-radius: 2px;
}

.member-group {
    margin-bottom: 40px;
}

.member-group h4 {
    margin-bottom: 20px;
    color: #444;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.2em;
}

.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.member-card {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.member-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #ff7a00;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #ff7a00;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.member-join-date {
    display: block;
    font-size: 0.85em;
    color: #777;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.reviews-header h3 {
    font-size: 1.5em;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.reviews-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 4px;
    background-color: #ff7a00;
    border-radius: 2px;
}

.btn-write-review {
    background-color: #ff7a00;
    color: white;
    box-shadow: 0 3px 6px rgba(255, 154, 2, 0.3);
}

.btn-write-review:hover {
    background-color: #ffa653;
    transform: translateY(-2px);
}

.review-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rating-average {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.average-score {
    font-size: 3.2em;
    font-weight: bold;
    color: #333;
}

.stars {
    color: #ff7a00;
    font-size: 1.6em;
    margin: 8px 0;
}

.review-count {
    color: #666;
    font-size: 1.05em;
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    min-width: 45px;
    text-align: right;
    margin-right: 15px;
    color: #555;
    font-weight: 500;
}

.bar-container {
    flex: 1;
    height: 12px;
    background-color: #eee;
    border-radius: 10px;
    margin-right: 15px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #ff7a00;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.rating-count {
    min-width: 30px;
    color: #666;
    font-weight: 500;
}

.review-form {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-form h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.8em;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
}

.star-rating input:checked ~ label {
    color: #ff7a00;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ff7a00;
}

.review-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    resize: vertical;
    font-size: 1em;
    transition: border-color 0.3s;
}

.review-textarea:focus {
    border-color: #ff7a00;
    outline: none;
}

.review-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

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

.btn-cancel-review:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn-submit-review {
    background-color: #ff7a00;
    color: white;
    box-shadow: 0 3px 6px rgba(255, 180, 2, 0.3);
}

.btn-submit-review:hover {
    background-color: #ffa653;
    transform: translateY(-2px);
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #eee;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 1.05em;
}

.review-affiliation {
    color: #777;
    font-size: 0.9em;
}

.review-rating {
    color: #ff7a00;
    font-size: 1.1em;
    margin-top: 5px;
}

.review-date {
    color: #888;
    font-size: 0.9em;
}

.review-content {
    line-height: 1.7;
    color: #555;
    font-size: 1.05em;
    padding: 0 5px;
}

@media (max-width: 1024px) {
    .club-header {
        flex-direction: column;
    }
    
    .club-image-container {
        max-width: 100%;
        height: 300px;
    }
    
    .review-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
    
    .club-detail-container {
        padding: 20px;
    }
    
    .members-header, .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.fc .fc-toolbar-title {
    color: #333;
    font-weight: bold;
}

.fc .fc-button-primary {
    background-color: #ffb402;
    border-color: #ffb402;
}

.fc .fc-button-primary:not(:disabled):hover {
    background-color: #e0a002;
    border-color: #e0a002;
}

.fc .fc-day-today {
    background-color: #fff6dd !important;
}

.fc-event {
    color: #000; 
    font-weight: 500;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.fc-event:hover {
    transform: scale(1.04);
}

.fc .fc-button.fc-today-button {
    display: none;
    background-color: #ffb402;
    border-color: #ffb402;
    color: white;
}

.fc .fc-button.fc-today-button:hover {
    background-color: #e0a002;
}

.fc .fc-button.fc-prev-button,
.fc .fc-button.fc-next-button {
    background-color: #ff7a00;
    border-color: #ff7a00;
    color: white;
}

.fc .fc-button.fc-prev-button:hover,
.fc .fc-button.fc-next-button:hover {
    background-color:  #ffa653
    ;
}

.fc-col-header-cell {
    background-color: #fff4dc;
}

.fc-col-header-cell-cushion {
    font-weight: 600;
    color: #333;
    text-decoration: none !important;
}

  .fc .fc-day-today {
    background-color: #f4f4f4 !important;
    border: 1px solid #ddd;
  }

  #Popupwrap, #Popupwrap_empty, #Popupwraperror {
    display: none;
}

#Popupwrap.popup, #Popupwrap_empty.popup, #Popupwraperror.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease; 
}

.Popup, .Popup_empty, .Popuperror {
    position: relative;
    width: 400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: popUp 0.3s ease;
    text-align: center;
    z-index: 1000;
}

.Popup h3, .Popup_empty h3, .Popuperror h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.Popup p, .Popup_empty p, .Popuperror p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.Popup button, .Popup_empty button, .Popuperror button {
    width: 100px;
    height: 40px;
    cursor: pointer;
    border: none;
    background-color: #ff7a00; 
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 122, 0, 0.3); 
}

.Popup button:hover, .Popup_empty button:hover, .Popuperror button:hover {
    background-color: #e56c00; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 122, 0, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #ff7a00;
}

#calendar {
    height: 600px;
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.fc .fc-toolbar-title {
    color: #333;
    font-weight: bold;
}

.fc .fc-button-primary {
    background-color: #ffb402;
    border-color: #ffb402;
}

.fc .fc-button-primary:not(:disabled):hover {
    background-color: #e0a002;
    border-color: #e0a002;
}

.fc .fc-day-today {
    background-color: #fff6dd !important;
    border: 1px solid #ddd;
}

.fc-event {
    color: #000; 
    font-weight: 500;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.fc-event:hover {
    transform: scale(1.04);
}

.fc .fc-button.fc-today-button {
    display: none;
    background-color: #ffb402;
    border-color: #ffb402;
    color: white;
}

.fc .fc-button.fc-today-button:hover {
    background-color: #e0a002;
}

.fc .fc-button.fc-prev-button,
.fc .fc-button.fc-next-button {
    background-color: #ff7a00;
    border-color: #ff7a00;
    color: white;
}

.fc .fc-button.fc-prev-button:hover,
.fc .fc-button.fc-next-button:hover {
    background-color: #ffa653;
}

.fc-col-header-cell {
    background-color: #fff4dc;
}

.fc-col-header-cell-cushion {
    font-weight: 600;
    color: #333;
    text-decoration: none !important;
}

.fc-scrollgrid-sync-inner {
    padding: 8px 0;
}

.fc-daygrid-day {
    transition: background-color 0.2s;
}

.fc-daygrid-day:hover {
    background-color: #f9f9f9;
}

.fc-daygrid-day-number {
    color: #555;
    text-decoration: none !important;
    padding: 8px;
    font-weight: 500;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: #ff7a00;
    font-weight: 700;
}

.fc-event-title {
    font-weight: 500 !important;
    padding: 2px 0;
}

.fc-event-time {
    font-weight: 400;
    opacity: 0.8;
}

.fc-daygrid-more-link {
    color: #ff7a00 !important;
    font-weight: 500;
}

@media (max-width: 768px) {
    #calendar {
        height: 500px;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.2em !important;
    }
}