/* @font-face {
    font-family: 'Sukhumvit';
    /*src: url('./fonts/sukhumvit-set/SukhumvitSet-Bold.ttf');
  src: url('./fonts/sukhumvit-set/SukhumvitSet-Light.ttf');
    src: url('./fonts/sukhumvit-set/SukhumvitSet-Medium.ttf') format('truetype');
    /*src: url('./fonts/sukhumvit-set/SukhumvitSet-SemiBold.ttf');
  src: url('./fonts/sukhumvit-set/SukhumvitSet-Text.ttf');
  src: url('./fonts/sukhumvit-set/SukhumvitSet-Thin.ttf');
}
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', Arial, sans-serif;
    background-color: #f4f4f5;
}

.text-brand {
    color: #be1e2d;
}
.navbar-brand{width:100px!important;}
.nav-item:hover{ background-color: #F98615;color:#fff}
.nav-link a:hover{ background-color: #F98615;color:#fff}

.brand-color{
    background-color: #be1e2d;
}

.brand-logo {
    width: 120px;
    height: auto;
}

.text-gray {
    color: #999999;
}

.filter {
    border-bottom: 1px solid #CCCCCC !important;
    border-radius: 0;
    padding: 5px 10px;
}

.filter::placeholder {
    color: #CCCCCC;
}

.form-select {
    color:#212529;
}

.form-select:first-of-type {
    color:#212529;
}
#registerGender{ color:#212529;}

.form-select:hover {
    color: #be1e2d;
}

.form-select:focus {
    color: black;
}

.top-bar {
    background-color: #d21125;
    padding: 5px;
}

.top-bar .btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #be1e2d;
    border: none;
}

.top-bar .dropdown-toggle {
    background: white;
    color: #be1e2d;
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 200;
}

.top-bar .language-dropdown>li>.dropdown-item.active {
    background-color: #d21125;
    color: white;
}

.btn-member {
    background-color: #F29047;
    color: white;
    border-radius: 20px;
    padding: 5px 25px;
    font-weight: 200;
}

.btn-member:hover {
    background-color: #F29047;
}

.btn-login {
    background-color: #F29047;
    color: white;
    border-radius: 20px;
    padding: 5px 25px;
    font-weight: 200;
}

.btn-login:hover {
    background-color: #F29047;
}



/* Navlink */
.nav-link {
    color: #999;
    font-weight: 200;
    transition: color 0.2s ease-in-out;
}

.hero {
    position: relative;
    background: url('./images/bg.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.search-box {
    background: white;
    border-radius: 10px;
    padding: 20px 30px 20px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 200;
    width: 25%;
    background-color: #F29047;
}

.clear-search-btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 200;
    width: 25%;
    background-color: #d21125;
}

.box-runner {
    position: relative;
    top: -40px;
    left: 40px;
}

.runner-img {
    max-width: 100%;
    height: auto;
    /* max-height: 380px; */
    transform: translateX(-50px);
    opacity: 0;
    transition: all 1s ease;
}

.headline {
    font-weight: 300;
    font-size: 2.6em;
}

.hero-text {
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease;
    position: relative;
    /* top: -50px; */
}

.hero-overlay {
    padding: 20px;
    border-radius: 10px;
    color: white;
    background: rgba(0, 0, 0, 45%);
}

.hero.loaded .runner-img {
    transform: translateX(0);
    opacity: 1;
}

.hero.loaded .hero-text {
    transform: translateY(0);
    opacity: 1;
}

.section-title {
    color: #dc3545;
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
}

.section-title::before {
    content: url("./images/triangle.svg");
    color: #dc3545;
    margin-right: 10px;
    padding-top: 3px;
}

.highlight {
    color: #6c757d;
    font-weight: 400;
    text-transform: uppercase;
}

.event {
    font-weight: 200;
    color: #6c757d;
    position: relative;
    top: -10px;
    font-size: 1.2em;
    text-transform: uppercase;
}


.event-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background-color: #fff;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 0;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 10px;
    color: #77777E;
}

.card-text {
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.card-text i {
    margin-right: 8px;
    color: #111;
}

.btn-orange {
    background-color: #fd7e14;
    /* Bootstrap orange */
    border-color: #fd7e14;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: normal;
    width: 200px;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-orange:hover {
    background-color: #e66a00;
    border-color: #e66a00;
    color: white;
}

/* Upcoming Events */
.up-coming {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Advertise */
.advertise {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* PAST Events */
.past-events {
    background-color: #dc3545;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.past-section-title {
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
}

.past-section-title {
    margin-right: 8px;
    padding-top: 7px;
    width: 20px;
    height: 20px;
}

.footer {
    background-color: #5B5961;
    color: #f8f9fa;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-nav .nav-link {
    font-size: 1rem;
    padding: 0 15px;
    transition: color 0.2s ease-in-out;
}

.footer-nav .nav-link:hover {
    color: #e2e6ea;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: #f8f9fa;
    margin: 10px auto;
    opacity: 0.5;
}

.footer-copyright {
    font-size: 0.9rem;
    font-weight: 200;
    color: #f8f9fa;
}

/* Detail Page */

.hero-banner {
    background: black;
    background-size: cover;
    min-height: fit-content;
    max-height: 100dvh;
    display: flex;
    align-items: center;
}

.section-title {
    color: #dc3545;
    /* Red color for titles */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-item {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.info-item i {
    margin-right: 8px;
    color: #dc3545;
    /* Red color for icons */
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

/* Right Column Styles */
.right-column-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #ddd;
}

.right-column-header {
    background-color: #dc3545;
    /* Red header */
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.right-column-body {
    padding: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.price-item .label {
    color: #333;
}

.price-item .value {
    font-weight: bold;
    color: #dc3545;
    /* Red for price values */
}

.btn-register {
    background-color: #fd7e14;
    /* Orange button */
    border-color: #fd7e14;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%;
    margin-top: 20px;
}

.btn-register:hover {
    background-color: #e66a00;
    border-color: #e66a00;
    color: white;
}

.note-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 15px;
}


/* Social Widget */
.social-widget {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 1050;
}

.social-toggle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0084ff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 132, 255, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
    border: none;
    position: relative;
    overflow: hidden;
}

.social-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.social-toggle:hover::before {
    left: 100%;
}

.social-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(0, 132, 255, 0.6);
}

.social-toggle i {
    font-size: 24px;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 6px 25px rgba(0, 132, 255, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(0, 132, 255, 0.4), 0 0 0 15px rgba(0, 132, 255, 0.1);
    }

    100% {
        box-shadow: 0 6px 25px rgba(0, 132, 255, 0.4);
    }
}

.social-links {
    position: absolute;
    bottom: 80px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-widget.active .social-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.social-link {
    display: block;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.social-link:last-child {
    margin-bottom: 0;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: scale(1.15) translateX(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 20px;
    color: white;
    z-index: 1;
}

/* Platform-specific colors */
.facebook {
    background: linear-gradient(135deg, #3b5998, #2d4373);
}

.messenger {
    background: linear-gradient(135deg, #0084ff, #0066cc);
}

.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
}

.email {
    background: linear-gradient(135deg, #ea4335, #c23321);
}

.tiktok {
    background: linear-gradient(135deg, #000000, #333333);
}

.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.line {
    background: linear-gradient(135deg, #4cc764, #06C755);
}

/* Enhanced Tooltip */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

/* Messenger Chat Integration Styles */
.messenger-chat {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1040;
    overflow: hidden;
}

.messenger-chat.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.messenger-header {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messenger-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.messenger-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.messenger-body {
    height: calc(100% - 60px);
    border: none;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Register Page */
.parallax {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1456613820599-bfe244172af5?q=80&w=1774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    min-height: auto;
    max-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* ดำโปร่ง */
    z-index: 1;
}

.registration-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-gradient {
    background: linear-gradient(45deg, #29b6f6, #0288d1);
    border: none;
    color: #fff;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #0288d1, #29b6f6);
}

.input-group-text {
    border-radius: 5px 0px 0px 5px;
}

.register-now {
    width: 50%;
}

/* Contact Us */
.map-responsive {
    padding-bottom: 0.5%;
    position: relative;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    width: 100%;
    min-height: fit-content;
}