﻿/* Font chữ in đậm */
@font-face {
    font-family: "Futura Bold";
    src: url("../membership/fonts/SVN-Futura-DemiBold.ttf") format("truetype");
}

.futura {
    font-family: "Futura" !important;
}
/* Áp dụng font cho chữ in đậm */
strong,
b {
    font-family: "Futura Bold";
    font-weight: normal;
}

th {
    font-family: "Futura Bold";
    font-weight: normal;
}

a {
    color: #5e0808;
}

    a:hover {
        color: #5e0808;
    }

.banner-img {
    width: 100%;
}

.btn:hover {
    color: #fff !important;
    outline: 0 !important;
    box-shadow: unset !important;
}

.btn:active {
    outline: 0 !important;
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: 0 !important;
    box-shadow: unset !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #5d0a0b;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

#membership,
#regulations,
#faq,
#registration,
#buttons {
    margin-top: 3%;
    background-color: #fff;
}

.button-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .button-group a:hover {
        transform: scale(1.03);
    }

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: initial !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-button {
    color: #fff;
    padding: 0.6em 3em;
}

.btn-signin {
    background-color: #868185;
}

.btn-signup {
    background-color: #5d0a0b;
}

#membership .container {
    padding: 0;
}

#membership .apply-from {
    color: #000 !important;
}

.ranking-table {
    border: 1.1px solid #f9e9a4;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 51px;
    font-size: 18px;
    color: #5d0a0b;
}

    .ranking-table th,
    .ranking-table td {
        border: 1.1px solid #f9e9a4;
        padding: 30px;
        text-align: center;
    }

    .ranking-table th {
        background-color: #5d0a0b;
        color: #fdfad4;
        font-weight: normal;
    }

    .ranking-table tr:first-child th:first-child {
        border-top-left-radius: 50px;
    }

    .ranking-table tr:last-child td:first-child {
        border-bottom-left-radius: 50px;
    }

    .ranking-table tr:first-child th:last-child {
        border-top-right-radius: 50px;
    }

    .ranking-table tr:last-child td:last-child {
        border-bottom-right-radius: 50px;
    }

    .ranking-table .empty-cell {
        background-color: #f8f9fa;
        border: none;
    }

.rules .rule-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #8b0000;
}

/* FAQ Section Styles */

#faqAccordion .card {
    border: none;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

#faqAccordion .card-header {
    background-color: transparent;
    border: none;
    padding: 0;
}

#faqAccordion .btn-link {
    color: #fff;
    background-color: #5d0a0b;
    text-decoration: none;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    position: relative;
    display: block;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all 0.3s;
    font-size: 1.2rem;
    white-space: normal;
}

    #faqAccordion .btn-link::after {
        content: "\f107";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 20px;
        font-size: 1.2rem;
        transition: transform 0.3s;
    }

    #faqAccordion .btn-link.collapsed::after {
        transform: rotate(180deg);
    }

#faqAccordion .card-body {
    font-size: 1.2rem;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

#registration {
    width: 100%;
    height: 100%;
}

    #registration .container {
        margin: auto;
        background-image: url("../images/membership/light-2.png"), url("../images/membership/light-0.png"), url("../images/membership/line-branding-01.png");
        background-repeat: no-repeat, no-repeat, repeat;
        background-size: contain, contain, cover;
        background-position: 0 25rem, 0rem -8rem, center;
        background-color: #fdf7bd;
        padding: 60px 0;
    }

    #registration .register-content {
        display: grid;
        justify-items: center;
    }

.register-title {
    width: 75%;
}

.register-link {
    font-size: 1rem;
    font-weight: 400;
    padding: 0.6em 1.2em;
    background-color: #5d0a0b !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .register-link:hover {
        background-color: #7d0a0b !important; /* Thêm hiệu ứng hover */
    }

.qr-code {
    max-width: 300px;
    height: auto;
}

.register-instructions {
    display: grid;
    flex: 1;
    justify-items: center;
}

    .register-instructions p {
        color: #5d0a0b;
        font-size: 21px;
        margin-bottom: 1rem;
    }

    .register-instructions img {
        width: 300px;
        border-radius: 50px;
        box-shadow: 0 2.5rem 2rem -2rem hsl(200 50% 20% / 40%);
        margin-bottom: 1rem;
    }

#regulations .container {
    padding: 30px 0;
    background-image: url("../images/membership/light-1.png"), url("../images/membership/line-branding-01.png");
    background-repeat: no-repeat, repeat;
    background-size: contain, cover;
    background-position: bottom right, center;
    background-color: #fdf7bd;
}

.swiper-container {
    position: relative;
    padding-bottom: 30px;
}

.slide-container {
    max-width: 1050px;
    width: 100%;
    padding: 40px 0;
}

.slide-content {
    padding: 25px 35px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
}

    .slide-content .card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        border-radius: 50px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;
        justify-content: space-between;
    }

        .slide-content .card:hover {
            transform: scale(1.1);
            z-index: 10;
        }

        .slide-content .card .card-numb {
            font-size: 2.5em;
            font-family: "Futura Bold";
            color: #5d0a0b;
            margin-bottom: 0;
        }

.card-wrapper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
}

.image-content,
.card-content, .card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-header, .card-footer {
    padding: 0;
    border: none;
    background-color: transparent;
}

.image-content {
    margin-bottom: 15px;
}

.card-image {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
}

.card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.name {
    font-family: "Futura Bold";
    font-weight: normal;
    color: #5d0a0b;
    text-align: center;
    margin: 10px 0;
}

.description {
    text-align: center;
    padding: 0 15px;
    font-size: 1em;
}

.card-footer {
    margin-top: auto;
}

    .card-footer .card-button {
        background-color: #5d0a0b;
        color: #fff;
        padding: 8px 30px;
        font-size: 1.2em;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .card-footer .card-button:hover {
            background-color: #4a0809;
        }

.swiper-navBtn {
    color: #5d0a0b !important;
}

.swiper-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 50%;
    transform: translateX(-50%) !important;
}

.swiper-pagination-bullet {
    background-color: #5d0a0b !important;
}

.swiper-pagination-bullet-active {
    background-color: #4070f4;
}

.modal-header .close {
    padding: 10px 35px !important;
}

.modal-content {
    border: 2px solid #f9e9a4;
    border-radius: 30px;
    width: fit-content;
}

.modal-body {
    margin-bottom: 2rem;
    padding: 30px;
    height: 400px;
    overflow-y: auto;
}

.popup-table {
    border: 1.1px solid #f9e9a4;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 21px;
    color: #5d0a0b;
}

    .popup-table th,
    .popup-table td {
        border: 1.1px solid #f9e9a4;
    }

    .popup-table th {
        padding: 10px;
        background-color: #5d0a0b;
        color: #fdfad4;
        text-align: center;
        white-space: nowrap;
    }

    .popup-table td {
        padding: 15px 2px;
        text-align: center;
        white-space: nowrap;
    }

    .popup-table tr:first-child th:first-child {
        border-top-left-radius: 20px;
    }

    .popup-table tr:last-child td:first-child {
        border-bottom-left-radius: 20px;
    }

    .popup-table tr:first-child th:last-child {
        border-top-right-radius: 20px;
    }

    .popup-table tr:last-child td:last-child {
        border-bottom-right-radius: 20px;
    }

.popup-img {
    height: 100px;
    width: 100px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Desktop styles remain as default */
/* Tablet styles */
@media (max-width: 1024px) {
    #membership,
    #regulations,
    #faq,
    #registration,
    #buttons {
        margin-top: 5%;
    }

        #buttons a {
            padding: 0.6em 3em;
        }

        #regulations .container {
            background-size: cover, contain;
            background-position: center, bottom;
        }

    .swiper-navBtn {
        display: none !important;
    }

    .slide-container {
        max-width: 900px;
    }

    #registration .container {
        background-image: url("../images/membership/light-2.png"), url("../images/membership/line-branding-01.png");
        background-size: contain, cover;
        background-position: bottom, center;
    }

    .modal-header .close {
        padding: 10px 20px !important;
    }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    #membership,
    #regulations,
    #faq,
    #registration,
    #buttons {
        margin-top: 10%;
    }

    .banner {
        padding: unset !important;
    }

    #buttons a {
        padding: 0.25rem 0.5rem;
        font-size: 1em;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 1.7em;
    }

    #faqAccordion .btn-link {
        font-size: 1rem;
        padding: 10px 15px;
    }

    #faqAccordion .card-body {
        font-size: 1rem;
        padding: 15px;
    }


    #membership .container {
        padding: 0 10px;
    }

    .ranking-table {
        border-radius: 26px;
        font-size: 1rem
    }

        .ranking-table th,
        .ranking-table td {
            padding: 8px 3px;
        }

            .ranking-table th:first-child {
                white-space: nowrap;
            }

        .ranking-table tr:first-child th:first-child {
            border-top-left-radius: 25px;
        }

        .ranking-table tr:last-child td:first-child {
            border-bottom-left-radius: 25px;
        }

        .ranking-table tr:first-child th:last-child {
            border-top-right-radius: 25px;
        }

        .ranking-table tr:last-child td:last-child {
            border-bottom-right-radius: 25px;
        }

    .button-group {
        padding: 0 15px;
    }

    #regulations .container {
        background-size: contain, cover;
        background-position: bottom, center;
    }

    .swiper-container {
        padding-bottom: 30px;
    }

    .card-wrapper .swiper-slide {
        transform: translateX(10px);
    }

    .slide-content {
    }

        .slide-content .name {
        }

        .slide-content .button {
            font-size: 1em;
        }

    .slide-container {
        padding: 20px 0;
    }

    .slide-content .card:hover {
        transform: unset;
        box-shadow: unset;
    }

    .swiper-navBtn {
        display: none !important;
    }

    #registration .container {
        background-size: contain, cover;
        background-position: bottom, center;
    }

    .register-title {
        width: 80%;
    }

    .register-instructions {
        text-align: center;
    }


        .register-instructions img {
            width: 300px;
            border-radius: 30px;
            box-shadow: 0 2.5rem 2rem -2.5rem hsl(200 50% 20% / 40%);
            margin-bottom: 1.5rem;
        }

        .register-instructions p {
            color: #5d0a0b;
            font-size: 1rem;
            margin-bottom: 1rem;
        }

    .qr-code {
        max-width: 250px;
        height: auto;
    }

    .register-link {
        font-size: 0.8rem;
    }

    .modal-header {
        padding: 1.5rem !important;
    }

        .modal-header .close {
            padding: 10px 25px !important;
        }

    .modal-body {
        padding: 10px;
    }

    .modal-content {
        width: 100%;
    }

    .popup-table {
        font-size: 1rem
    }

        .popup-table th, td {
            white-space: unset !important;
        }
}

@media (max-width: 320px) {
    .ranking-table {
        font-size: 0.8rem
    }
}
