:root {
    --light-red: #A91322;
    --dark-red: #700D16;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans HK', sans-serif;
    max-width: 100%;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 87px 0 0 0;
    line-height: normal;
    background: #fff;
}

a {
    color: #000;
    transition: all 0.3s ease 0s;
}

a:hover {
    color: #000;
    opacity: 0.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

img {
    max-width: 100%;
}

.header {
    width: 100%;
    box-shadow: 0 3px 9px #777;
    padding: 5px 0;
    background-color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.header a {
    text-decoration: none;
    opacity: 1;
    font-weight: bolder;
    border-bottom: solid 3px #fff;
    font-size: 15px;
}

.header a.active,
.header a:hover {
    border-bottom: solid 3px var(--light-red);
}

.nav-logo {
    cursor: pointer;
}

.home-banner {
    width: 100%;
    height: 580px;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.home-banner .banner-logo {
    position: absolute;
    left: 50px;
    bottom: 50px;
    z-index: 100;
}

.home-banner-content {
    width: 520px;
    max-width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    position: absolute;
    right: 0;
    top: 0;
    color: #fff;
    padding: 40px;
}

.home-banner-content a {
    color: #fff;
}

.home-banner-content h5 {
    cursor: pointer;
}

.content-scroll {
    width: 100%;
    height: 450px;
    overflow-y: scroll;
    overflow-x: hidden;
    border-top: solid 2px var(--light-red);
    padding: 25px 0;
}

.scroll-inner {
    animation: scrollUp 10s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
        /* Start from bottom */
    }

    100% {
        transform: translateY(-100%);
        /* Move to top */
    }
}

.content-scroll::-webkit-scrollbar {
    width: 7px;
    opacity: 0.7;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.content-scroll::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.content-scroll .row {
    border-bottom: solid 1px #aaa;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.announcements-cate {
    cursor: pointer;
    text-decoration: underline;
    margin-right: 10px;
}

.announcements-date {
    cursor: pointer;
}

h3.home-page-title {
    border-bottom: solid 3px var(--light-red);
    margin-top: 35px;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.calendar-box {
    border-bottom: solid 1px #ccc;
    margin-bottom: 40px;
    padding-bottom: 20px;
    font-size: 17px;
}

.calendar-box .w-75 {
    cursor: pointer;
}

.calendar-box .cal-date-box {
    background-color: #705656;
    color: #fff;
    text-align: center;
    width: 64px;
    height: 64px;
    margin-right: 15px;
}

.calendar-box:nth-child(even) .cal-date-box {
    background-color: #700D16;
}


.calendar-box .cal-title-color {
    color: #705656;
    font-weight: bolder;
}

.calendar-box:nth-child(even) .cal-title-color {
    color: #700D16;
}

a.see-full-calendar-btn {
    text-decoration: none;
    background-color: #700D16;
    color: #fff;
    width: 100%;
    padding: 15px 35px;
    text-align: center;
    display: block;
    margin-top: 35px;
}

.you-should-know-banner {
    color: #fff;
    height: 180px;
    position: relative;
    background-position: center center;
    background-size: cover;
}

.you-should-know-banner .you-should-know-banner-title {
    position: absolute;
    left: 25px;
    bottom: 15px;
}

.ysk-list {
    margin-top: 25px;
}

.ysk-list .ysk-box {
    border-bottom: solid 1px #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
    padding-left: 50px;
    position: relative;
    cursor: pointer;
}

.ysk-list .ysk-box:last-child {
    border: none;
}

.ysk-list .ysk-box:before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: #705656;
    position: absolute;
    left: 15px;
    top: 10px;
}

.ysk-list .ysk-box:nth-child(even):before {
    background-color: #700D16;
}

.ysk-list .ysk-box h3 {
    margin: 0;
    padding: 0;
}

.ysk-list .ysk-box p {
    margin: 0;
    padding: 0;
}

.deep-in {
    color: #fff;
    height: 180px;
    position: relative;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
}

.deep-in .deep-in-title {
    position: absolute;
    left: 25px;
    bottom: 15px;
}

.instagram-video {
    min-width: auto !important;
    width: 100%;
    margin: auto;
    border: none;
    box-shadow: none;
}

.contactus-area {
    background-color: #705656;
    color: #fff;
    background-image: url("../images/cs_bg.png");
    background-repeat: no-repeat;
    background-position: right -250px top -50px;
    background-size: 680px auto;
    padding: 50px 0;
    margin-top: 50px;
}

.contactus-area iframe {
    width: 100%;
    height: 380px;
}

.contactus-area h3 {
    margin: 0;
}

.contactus-area p {
    margin: 25px 0 0 0;
}

.photo-gallery {
    width: 100%;
}

.photo-gallery iframe {
    width: 100%;
    height: 650px;
    border: none;
}

@media (max-width: 1024px) {

    .photo-gallery iframe {
        height: 520px;
    }

}

@media (max-width: 768px) {

    .photo-gallery iframe {
        height: 420px;
    }

}

@media (max-width: 576px) {

    .photo-gallery iframe {
        height: 340px;
    }

}

@media (max-width: 500px) {

    .photo-gallery iframe {
        height: 200px;
    }

}

.ig-box {
    cursor: pointer;
}

.footer {
    background-color: #000;
    padding: 25px 0;
    color: #fff;
}

.footer ul {
    display: inline-block;
    vertical-align: top;
    width: 33%;
    list-style: none;
    margin: 25px 0;
}

.footer ul li {
    margin-left: -40px;
}

.footer ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.footer ul li:first-child a {
    font-size: 21px;
    font-weight: bolder;
    display: block;
    margin-bottom: 10px;
}

.copy-right {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    border-top: solid 1px #fff;
}

.copy-right a {
    color: #fff;
    text-decoration: none;
}

.social-media-icons img {
    width: 52px;
    margin-left: 5px;
}

a.see-more-btn {
    padding: 2px 12px 5px 0;
    background-image: url("../images/icon_arrow_w.png");
    background-size: 7px auto;
    background-position: center right;
    background-repeat: no-repeat;
    color: #fff;
}

a.see-more-btn.blue-arrow {
    padding: 2px 12px 5px 0;
    background-image: url("../images/icon_arrow_blue.png");
    background-size: 7px auto;
    background-position: center right;
    background-repeat: no-repeat;
    color: #3CA0DC;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 780px;
    height: auto;
    max-height: 580px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    box-sizing: border-box;
    overflow-y: auto;
}

#popup h2 {
    margin: 0;
    padding: 50px 0;
    background-image: url("../images/popup_box_bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    max-height: 120px;
    text-align: center;
    color: #fff;
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    background-image: url("../images/icon_popup_close.png");
    background-size: 12px auto;
    background-position: center center;
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
    border-radius: 100px;
}

@media (max-width: 600px) {
    #popup-close {
        font-size: 20px;
    }
}

.subpage-banner {
    width: 100%;
    height: 360px;
    color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.subpage-banner h2 {
    font-size: 3.5em;
    text-align: center;
}

h3.sub-page-title {
    border-bottom: solid 3px var(--light-red);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.subpage-area {
    background-color: #F8F6F6;
    padding: 25px 0 50px 0;
    background-image: url("../images/subpage_bg.png");
    background-position: right bottom -190px;
    background-repeat: no-repeat;
    background-size: 700px auto;
}

.card-box {
    background-color: #fff;
    box-shadow: 2px 4px 8px #ccc;
    margin-bottom: 15px;
}

.subpage-nav h4 {
    background-color: #700D16;
    color: #fff;
    padding: 12px 25px;
    margin: 0;
}

.subpage-nav ul {
    margin: 0;
    padding: 0;
}

.subpage-nav ul li {
    list-style: none;
}

.subpage-nav ul li a {
    width: 100%;
    display: block;
    text-decoration: none;
    padding: 12px 15px 12px 50px;
    position: relative;
}

.subpage-nav ul li a:hover,
.subpage-nav ul li a.active,
.subpage-nav ul li .nav-header:hover {
    background-color: rgba(169, 19, 34, 10%);
}

.subpage-nav ul li:nth-child(odd) a:after {
    position: absolute;
    left: 25px;
    top: 50%;
    margin-top: -4px;
    width: 8px;
    height: 8px;
    content: '';
    background-color: #764F50;
}

.subpage-nav ul li:nth-child(even) a:after {
    position: absolute;
    left: 25px;
    top: 50%;
    margin-top: -4px;
    width: 8px;
    height: 8px;
    content: '';
    background-color: #700D16;
}

.page-path {
    padding: 8px 0;
}

.page-path a {
    position: relative;
    margin-right: 20px;
    text-decoration: none;
}

.page-path a:after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    margin-top: -6px;
    width: 7px;
    height: 13px;
    background-image: url("../images/icon_path.png");
    background-position: center center;
    background-size: cover;
}

.page-path a:last-child:after {
    display: none;
}

.page-path a.active {
    color: #3CA0DC;
}

.re-subpage-nav {
    border: solid 2px #700D16;
    padding: 5px 10px;
    width: 100%;
    color: #700D16;
    outline: none;
    border-radius: 3px;
}

/* table style 01 */
.table-style-01 {
    width: 100%;
    min-width: 700px;
}

.table-style-01 tr {
    border-bottom: solid 10px #fff;
}

.table-style-01 tr td {
    padding: 15px;
}

.table-style-01 tr td:first-child {
    background-color: #F0EBE8;
    width: 25%;
    border-left: solid 2px #700D16;
}

.table-style-01 tr td {
    background-color: #E2CFC7;
    width: 25%;
}

/* table style 01 */

/* table style 02 */
.table-style-02 {
    width: 100%;
    min-width: 700px;
    text-align: center;
}

.table-style-02 tr {
    border-bottom: solid 10px #fff;
}

.table-style-02 tr td {
    width: 25%;
    background-color: #F0EBE8;
}

.table-style-02 tr td:first-child {
    width: 75%;
    background-color: #700D16;
    color: #fff;
    padding: 10px;
}

/* table style 02 */

/* table style 03 */
.table-style-03 {
    width: 100%;
    min-width: 700px;
    text-align: center;
}

.table-style-03 tr {
    border-bottom: solid 10px #fff;
}

.table-style-03 tr td {
    width: 25%;
    background-color: #F0EBE8;
}

.table-style-03 tr td:first-child {
    width: 75%;
    background-color: #431F0F;
    color: #fff;
    padding: 10px;
}

/* table style 03 */

/* table style 04 */
.table-style-04 {
    width: 100%;
    min-width: 700px;
    text-align: center;
    position: relative;
}

.table-style-04 tr:first-child {
    background-color: #E2CFC7;
}

.table-style-04 tr {
    background-color: #F0EBE8;
}

.table-style-04 tr:nth-child(even) {
    background-color: #F6F6F6;
}

.table-style-04 tr th,
.table-style-04 tr td {
    border: solid 1px #fff;
    padding: 5px;
}

/* table style 04 */

/* table style 05 */
.table-style-05 {
    width: 100%;
    min-width: 700px;
}

.table-style-05 tr {
    border-bottom: solid 10px #fff;
}

.table-style-05 tr td {
    padding: 15px;
}

.table-style-05 tr td:first-child {
    background-color: #F0EBE8;
    width: 25%;
    border-left: solid 2px #700D16;
}

.table-style-05 tr td {
    background-color: #E2CFC7;
    width: 75%;
}

/* table style 05 */

/* table style 06 */
.table-style-06 {
    width: 100%;
    min-width: 700px;
    text-align: center;
    position: relative;
}

.table-style-06 tr:first-child {
    background-color: #E2CFC7;
}

.table-style-06 tr {
    background-color: #F0EBE8;
}

.table-style-06 tr:nth-child(even) {
    background-color: #F6F6F6;
}

.table-style-06 tr th,
.table-style-06 tr td {
    border: solid 1px #fff;
    padding: 5px;
}

.table-style-06 tr:nth-child(odd) td {
    background-color: #F0EBE8;
}

.table-style-06 tr:nth-child(odd) td:nth-child(even) {
    background-color: #F6F6F6;
}

.table-style-06 tr:nth-child(even) td {
    background-color: #F0EBE8;
}

.table-style-06 tr:nth-child(even) td:nth-child(odd) {
    background-color: #F6F6F6;
}

/* table style 06 */

.scroll-table {
    width: 100%;
    overflow-x: auto;
}

.affiliated-clubs-logo-group img {
    border: solid 1px #eee;
}

.clickable {
    cursor: pointer;
}

.clickable h5 {
    color: #3CA0DC;
    font-size: 17px;
}

.contactus-form h6 {
    margin: 25px 0 0 0;
}

.contactus-form input[type="text"],
.contactus-form input[type="tel"],
.contactus-form input[type="email"] {
    width: 100%;
    border: none;
    border-bottom: solid 1px #ccc;
    outline: none;
    resize: none;
    padding: 10px 0;
    margin: 0;
}

.contactus-form select {
    width: 100%;
    border: none;
    border-bottom: solid 1px #ccc;
    outline: none;
    resize: none;
    padding: 10px 0;
    margin: 0;
}

.contactus-form textarea {
    width: 100%;
    height: 200px;
    border: solid 1px #ccc;
    outline: none;
    resize: none;
    padding: 10px;
    margin-top: 15px;
}

.contactus-form .btn-submit {
    width: 500px;
    max-width: 100%;
    text-align: center;
    color: #fff;
    background-color: #700D16;
    resize: none;
    outline: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    margin: 25px 0 40px 0;
    transition: all 0.3s ease 0s;
}

.contactus-form .btn-submit.loading, #uploadForm .upload-btn.loading, #forgetForm .upload-btn.loading, #resetForm .upload-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.contactus-form .btn-submit:hover {
    opacity: 0.75;
}

a.submit-btn {
    width: 500px;
    max-width: 100%;
    text-align: center;
    color: #fff;
    background-color: #700D16;
    resize: none;
    outline: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    margin: 25px 0 40px 0;
    display: inline-block;
    text-decoration: none;
}

.tab-btn-group .tab-btn {
    border: solid 2px #700D16;
    background-color: #fff;
    color: #700D16;
    padding: 3px 13px;
    text-decoration: none;
    margin: 0 3px 7px 0;
    border-radius: 2px;
    display: inline-block;
    font-weight: bold;
}

.tab-btn-group .tab-btn:hover {
    opacity: 1;
}

.tab-btn-group .tab-btn.active {
    background-color: #700D16;
    color: #fff;
}

.search-bar-group {
    border: solid 1px #ccc;
    background: #fff;
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    width: 450px;
    max-width: 100%;
    height: 40px;
}

.search-bar-group input[type="text"] {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 10;
    padding: 0 50px 0 10px;
}

.search-bar-group input[type="submit"] {
    background-image: url("../images/icon_search.png");
    background-color: var(--light-red);
    background-size: 22px auto;
    background-position: center center;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    resize: none;
    outline: none;
    border: none;
    text-indent: -9999px;
    cursor: pointer;
    right: 0;
    top: 0;
    position: absolute;
    z-index: 20;
}

.announcements-box {
    padding-bottom: 30px;
    background-color: #fff;
}

.announcements-box .cate-tab {
    background-color: #000;
    color: #fff;
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 15px;
    margin-top: 20px;
    border-radius: 2px;
}

.announcements-box-group {
    position: relative;
    margin-bottom: 40px;
}

.announcements-box-group .row:after {
    content: '';
    background-color: #EBEBEB;
    width: 100%;
    height: 2px;
    border: none;
    margin: 25px 0 0 0;
    position: absolute;
    left: 0;
    bottom: 5px;
}

.announcements-box-group.details-page .row:after {
    display: none;
}

.announcements-box hr {
    background-color: #EBEBEB;
    width: 100%;
    height: 2px;
    border: none;
    margin: 25px 0;
}

.page-pagination {
    display: inline-block;
    list-style: none;
    padding: 0;
}

.page-pagination li {
    margin: 0 5px;
    display: inline-block;
}

.page-pagination a {
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #ccc;
    color: #999;
    background-color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

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

.page-pagination .active a {
    background-color: #9b1c1c;
    color: white;
    border: 1px solid #9b1c1c;
}

.page-pagination .disabled a {
    color: #ccc;
    pointer-events: none;
}

.no-banner {
    margin-top: -350px;
    color: #fff;
}

.no-banner a {
    color: #fff;
}

.page-path.no-banner a:after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    margin-top: -6px;
    width: 7px;
    height: 13px;
    background-image: url("../images/icon_arrow_w.png");
    background-position: center center;
    background-size: cover;
}

a.back-to-prev {
    text-decoration: underline;
}

.title-red-line {
    border-bottom: solid 2px var(--light-red);
    padding-bottom: 10px;
}

.search-btn {
    border: none;
    resize: none;
    cursor: pointer;
    width: 100px;
    height: 42px;
    background-color: #9b1c1c;
    color: #fff;
    border-radius: 2px;
}

/* Filter Button Area - Improved Layout */
.filter-btn-area {
    padding: 10px 0 20px 0;
}

.filter-btn-area .row {
    gap: 20px;
    flex-wrap: wrap;
}

/* Filter Buttons */
.filter-btn-area ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-btn-area ul li {
    display: inline-block;
}

.filter-btn-area .btn {
    color: #ffffff;
    padding: 8px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn-area .btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.filter-btn-area .btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn-area .btn.style-1 {
    background-color: #700D16;
}

.filter-btn-area .btn.style-2 {
    background-color: #E95461;
}

.filter-btn-area .btn.style-3 {
    background-color: #537CE9;
}

.filter-btn-area .btn.style-4 {
    background-color: #E99853;
}

.filter-btn-area .btn.style-5 {
    background-color: #9BD63B;
}

.filter-btn-area .btn.style-6 {
    background-color: #736F93;
}

/* Search Container */
.filter-btn-area .search-container {
    display: flex;
    align-items: center;
    min-width: 280px;
}

.filter-btn-area input[name="event_name"] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #CCCCCC;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-right: none;
    outline: none;
    font-size: 14px;
    height: 42px;
    transition: border-color 0.3s ease;
}

.filter-btn-area input[name="event_name"]:focus {
    border-color: var(--light-red);
}

.filter-btn-area input[name="event_name"]::placeholder {
    color: #999;
}

.filter-btn-area .search-btn {
    background-image: url("../images/search-btn.png");
    background-repeat: no-repeat;
    background-position: center;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-btn,
.list-btn {
    border: solid 2px #700D16;
    padding: 8px 22px;
    border-radius: 9999px;
    color: #700D16;
    background-color: #ffffff;
}

.calendar-btn.active,
.list-btn.active {
    color: #ffffff;
    background-color: #700D16;
}

/* Calendar and List View Toggle Buttons */
.calendar-btn,
.list-btn {
    padding: 8px 16px;
    border: 2px solid #700D16;
    background-color: #fff;
    color: #700D16;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.calendar-btn:hover,
.list-btn:hover {
    opacity: 0.8;
}

.calendar-btn.active,
.list-btn.active {
    background-color: #700D16;
    color: #fff;
}

/*
 Nested Navigation Styles */


.subpage-nav ul .sub-menu li {
    margin-left: 0;
}

.subpage-nav ul .sub-menu li a {
    padding: 8px 15px 8px 35px;
    font-size: 14px;
    color: #666;
    position: relative;
}


.subpage-nav ul .sub-menu li a:hover,
.subpage-nav ul .sub-menu li a.active {
    background-color: rgba(169, 19, 34, 5%);
    color: #700D16;
}

.subpage-nav ul .sub-menu li a.active:before {
    background-color: #700D16;
}

/* Mobile dropdown indentation for sub-items */
.subpage-nav ul.sub-menu li a:after {
    display: none;
}

/* Navigation header - both clickable and collapsible */
.subpage-nav ul li .nav-header {
    display: block;
    padding: 12px 15px 12px 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subpage-nav ul li .nav-header:after {
    position: absolute;
    left: 25px;
    top: 50%;
    margin-top: -4px;
    width: 8px;
    height: 8px;
    content: '';
    background-color: #700D16;
}

/* .subpage-nav ul li .nav-header:hover {
    background-color: rgba(169, 19, 34, 12%);
} */


/* Mobile dropdown header styling */
.re-subpage-nav option[disabled] {
    font-weight: bold !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
}


/* Show sub-menu when expanded */
.subpage-nav ul li .nav-header.collapsible.expanded + .sub-menu {
    display: block;
}

/* Nav header styling to match existing navigation pattern */
.subpage-nav ul li .nav-header:after {
    position: absolute;
    left: 25px;
    top: 50%;
    margin-top: -4px;
    width: 8px;
    height: 8px;
    content: '';
}

/* Odd nav headers get the first color */
.subpage-nav ul li:nth-child(odd) .nav-header:after {
    background-color: #764F50;
}

/* Even nav headers get the second color */
.subpage-nav ul li:nth-child(even) .nav-header:after {
    background-color: #700D16;
}

/* Odd sub-menu items get the first color */
.subpage-nav ul li .nav-header + .sub-menu li:nth-child(odd) a:after {
    background-color: #764F50;
}

/* Even sub-menu items get the second color */
.subpage-nav ul li .nav-header + .sub-menu li:nth-child(even) a:after {
    background-color: #700D16;
}


/* Header row with special-header class */
.past-winner-table, .alternating-table {
    text-align: center;
}

.past-winner-table tr.special-header th,
.past-winner-table tr.special-header td {
    background-color: #E2CFC7;
    border: solid 1px #fff;
}

.past-winner-table th:not(:last-child) {
    border-right: solid 1px #fff;
}

/* Odd rows after header */
.past-winner-table tr:not(.special-header):nth-child(odd) td {
    background-color: #F0EBE8;
}

/* Even rows after header */
.past-winner-table tr:not(.special-header):nth-child(even) td {
    background-color: #F6F6F6;
}

/* Pas
t Winner Table Styles */
.past-winner-table tr.special-header th,
.past-winner-table tr.special-header td {
    background-color: #E2CFC7;
    border: solid 1px #fff;
}

.past-winner-table th:not(:last-child) {
    /*border-right: solid 1px #fff;*/
}

.past-winner-table td {
    vertical-align: middle;
    border-top: 1px solid #ffffff;
    border-right: solid 1px #fff;
    white-space: pre-line;
    word-spacing: 4px;
    line-height: 1.6;
}

/* Odd rows after header */
.past-winner-table tr:not(.special-header):nth-child(odd) td {
    background-color: #F0EBE8;
}

/* Even rows after header */
.past-winner-table tr:not(.special-header):nth-child(even) td {
    background-color: #F6F6F6;
}

a.no-decoration:hover {
    text-decoration: none;
}

.past-record-area > div {
    margin-top: 2rem;
}

table {
    margin-bottom: 0 !important;
}

.alternating-table th {
    background-color: #E2CFC7;
    border: solid 1px #fff;
}

.alternating-table td {
    vertical-align: middle;
    border-top: 1px solid #ffffff;
    border-right: solid 1px #fff;
    white-space: pre-line;
    word-spacing: 4px;
    line-height: 1.6;
}

.alternating-table tr:not(.special-header):nth-child(even) > td:nth-child(odd), .alternating-table tr:not(.special-header):nth-child(odd) > td:nth-child(even) {
    background-color: #F6F6F6;
}

.alternating-table tr:not(.special-header):nth-child(odd) > td:nth-child(odd), .alternating-table tr:not(.special-header):nth-child(even) > td:nth-child(even) {
    background-color: #F0EBE8;
}

/* Alternating Table Styles */
.alternating-table tr.special-header th,
.alternating-table tr.special-header td {
    background-color: #E2CFC7;
    border: solid 1px #fff;
}

.alternating-table th:not(:last-child) {
    border-right: solid 1px #fff;
}

/* Odd rows after header */
.alternating-table tr:not(.special-header):nth-child(odd) td {
    background-color: #F0EBE8;
}

/* Even rows after header */
.alternating-table tr:not(.special-header):nth-child(even) td {
    background-color: #F6F6F6;
}


.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    border: 1px solid #EBEBEB;
    padding: 15px;
}

.image-container img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* Responsive Table Styles */
.table-responsive-wrapper {
    overflow-x: auto;
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.iframe-box {
    margin-top: auto;
    position: relative;
    padding-top: 56%;
}

.iframe-box iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
}

.error-message {
    color: #E64242;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.cart-box {
    border: 1px solid #ddd;
    padding: 25px;
    margin: 10px 0;
}

.cart-box.terms-text {
    overflow-y: auto;
    height: 320px;
    text-align: justify;
}

.cart-box.terms-text::-webkit-scrollbar {
    width: 6px;

}

.cart-box.terms-text::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 5px;
}

button.sign-reset {
    border: 0;
    outline: none;
    display: inline-block;
    color: #fff;
    background: #000;
    margin-top: 10px;
    padding: 5px 15px;
    text-decoration: none;
    opacity: 1;
    float: right;
}

button.sign-reset:hover {
    cursor: pointer;
}

.submitSuccess, .submitFail {
    text-align: center;
    background-color: #ffffff;
    padding: 5% 15%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.submitSuccess p, .submitFail p {
    color: #7C7C7C;
}

.uploadReceipt, .loginIndex, .forgetPassword, .resetForm {
    padding: 65px 60px;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.subpage-area.member-style {
    background-image: url("../images/register-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.section-btn {
    height: 24px;
}

.reset-btn {
    max-width: 100%;
    text-align: center;
    background: #000000;
    color: #fff;
    padding: 10px 40px;
    cursor: pointer;
    font-weight: bold;
    border: 0;
    outline: 0;
    resize: none;
}

.upload-btn:focus, .reset-btn:focus {
    outline: 0;
}

.upload-btn:hover {
    opacity: 1;
    text-decoration: none;
    color: #ffffff;
}

.upload-btn {
    max-width: 100%;
    text-align: center;
    color: #fff;
    padding: 10px 40px;
    outline: 0;
    font-weight: bold;
    background-color: #700D16;
    cursor: pointer;
    border: 0;
    resize: none;
}

.fee-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.fee-table td, .fee-table th {
    border: 2px solid #EBEBEB;
    padding: 12px 0;
}

.price-sum {
    font-size: 1.2rem;
    font-weight: bold;
}

.price-title {

}

.price-amount {
    color: var(--light-red);
}

.text-dark-red {
    color: var(--light-red) !important;
}

.text-grey {
    color: #7C7C7C;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #DFDFDF;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: #FAFAFA;
    min-height: 100px;
    width: 100%;
}

.custom-file-upload:hover {
    cursor: pointer;
    border-color: var(--light-red);
}

.custom-file-upload.dragover {
    border-color: var(--light-red);
}

.file-label {
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.upload-text {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.file-name {
    color: #6b7280;
    font-size: 0.875rem;
}

.file-input:focus + .file-label .custom-file-upload {
    border-color: var(--light-red);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pw-eyes {
    width: 40px;
    height: 30px;
    background-image: url("../images/eyes_icon_active.png");
    background-position: right 14px center;
    background-size: 30px auto;
    background-repeat: no-repeat;
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -15px;
    cursor: pointer;
}

.pw-eyes.active {
    background-image: url("../images/eyes_icon.png");
}

#loginForm input, #forgetForm input, #resetForm input {
    width: 100%;
    border: 0;
    border-bottom: solid 1px #EBEBEB;
    outline: none;
    padding: 7px 0;
}


.member-nav {
    background-color: rgba(138, 63, 30, 0.1);
    padding: 60px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    min-height: 150px;
    height: 100%;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-bottom: 5px solid transparent;
}

.grid-image {
    object-fit: contain;
    margin-bottom: 12px;
}

.grid-item:hover {
    border-bottom-color: var(--dark-red);
    transition: border-bottom-color 0.2s ease;
}

.welcome-member {
    background-color: #ffffff;
    padding: 60px;
}

.member-status {
    display: flex;
    align-items: center;
}

.member-status-text .title {
    font-weight: bold;
}

.field {
    margin-top: 1rem;
}

.edit-btn {
    width: 100%;
    outline: none;
    background-color: #ffffff;
    border: var(--dark-red) 2px solid;
    font-weight: bold;
    color: var(--dark-red);
    padding: 7px 0;
}

.edit-btn:hover {
    color: #ffffff;
    background-color: var(--dark-red);
    cursor: pointer
}

.edit-btn:focus {
    outline: none;
}

.checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding-left: 25px; /* Space for the custom checkbox */
    margin-bottom: 10px; /* Space between checkboxes */
    margin-right: 10px;
}

.checkbox-text {
    font-weight: bold;
}

.checkbox input {
    position: absolute;
    opacity: 0; /* Hide the default checkbox */
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    height: 16px; /* Size of the custom checkbox */
    width: 16px; /* Size of the custom checkbox */
    border: 1px solid #CCCCCC; /* Border color */
}

.checkbox input:checked + .checkmark::after {
    content: ""; /* Create a checkmark */
    position: absolute;
    left: 5px; /* Adjust position for checkmark */
    top: 2px; /* Adjust position for checkmark */
    width: 5px; /* Width of the checkmark */
    height: 10px; /* Height of the checkmark */
    border: solid #7C7C7C; /* Checkmark color */
    border-width: 0 2px 2px 0; /* Checkmark shape */
    transform: rotate(45deg); /* Rotate to create checkmark */
}
