.social-share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.share-btn svg {
    display: inline-block;
}

.share-btn.fb {
    background-color: #1877F2;
}

.share-btn.fb:hover {
    background-color: #155dc1;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.whatsapp:hover {
    background-color: #1fa958;
}

.share-btn.twitter {
    background-color: #1DA1F2;
}

.share-btn.twitter:hover {
    background-color: #178cd1;
}

.share-btn.other {
    background-color: #6c757d;
}

.share-btn.other:hover {
    background-color: #5a6268;
}



/* modal for share */

.share-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

#forShare:checked~.share-modal {
    display: block;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fefefe;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.modal-header .close {
    cursor: pointer;
    font-size: 20px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 10px;
}

.share-buttons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 80px;
    height: 80px;
    background-color: #f5f6fa;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.share-buttons a:hover {
    background-color: #e2e6ea;
    transform: scale(1.05);
}

.share-buttons svg {
    width: 28px;
    height: 28px;
    fill: #1877f2;
    /* màu xanh Facebook */
    margin-bottom: 6px;
}

.share-buttons span {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.copy-link {
    margin-top: 20px;
    font-size: 14px;
}

.copy-box {
    display: flex;
    margin-top: 5px;
    gap: 8px;
}

.copy-box input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.copy-box button {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.copy-note {
    color: #28a745;
    /* Bootstrap green */
    font-size: 0.875rem;
    /* nhỏ hơn mặc định */
    margin-top: 5px;
    display: none;
}