@import url("clash-display.css");

:root {
    --c-dark: #212529;
    --c-brand: #4e57d4;
    --c-brand-light: #6970dd;
    --c-brand-rgb: 78, 87, 212;
    --c-body: #727272;
    --font-base: "ClashDisplay", sans-serif;
    --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.5s ease;
}


body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
	overflow-x: hidden;
}
.top-bar {
    background-color: #FFD700;
    color: #000000;
    padding: 5px 20px;
    font-size: 14px;
    flex-wrap: wrap; /* ทำให้เนื้อหาห่อบรรทัด */
  }
  .top-bar a {
    color: #000000;
    text-decoration: none;
    margin-right: 15px;
  }
  .top-bar a:hover {
    text-decoration: underline;
    color: white;
  }

.left-section, .right-section {
    display: flex;
    align-items: center;
}

.left-section span, .right-section span {
    margin-right: 15px;
}
.promo-container {
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #ffc107;
    animation: fadeIn 1.5s ease-in-out;
}

.promo-header {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.8s ease-in-out;
}

.promo-header span {
    font-size: 1.2rem;
    font-weight: normal;
    display: block;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.promo-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 20px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    animation: fadeIn 2s ease-in-out;
}

.promo-subheader {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 30px;
    color: #333;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.promo-text-highlight {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.line-separator {
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    margin: 20px auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.line-separator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ff8c00;
    animation: slideLine 2s infinite;
}
/* Keyframes for fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for line separator animation */
@keyframes slideLine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.icon {
    margin-right: 5px;
}

.language-select {
    margin-left: 15px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--c-brand);
    transition: var(--transition);
}

a:hover {
    color: var(--c-brand-light);
}

img 
{
    max-width: 100%;
    height: auto;
}
.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
}

.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--c-dark);
}

.navbar-nav .nav-link.active {
    color: var(--c-brand);
}
.carousel-item img {
    width: 100%;
height: auto;
max-height: 600px; /* กำหนดความสูงสูงสุดตามความต้องการ */
object-fit: contain; /* แสดงภาพทั้งหมด โดยไม่ตัดส่วนใดส่วนหนึ่งออก */
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-align: left;
}

.carousel-indicators button {
    background-color: white;
}
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
}
.social-icons a {
    margin: 0 10px;
    font-size: 24px;
    color: #ffc107;
    transition: transform 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.2);
    color: #f6e2a7;
}
.row {
    align-items: center;
}
.intro-text {
    text-align: left;
}
.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .portfolio-card img {
    width: 100%;
    height: auto;
  }
  .carousel-item {
    text-align: center;
}
video {
    width: 80%;
    height: 400px;
    border: none;
}
.carousel-control-prev {
    left: -5%; /* ขยับปุ่มเลื่อนซ้ายออกจากวิดีโอ */
}
.carousel-control-next {
    right: -5%; /* ขยับปุ่มเลื่อนขวาออกจากวิดีโอ */
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #FFC107; /* สีของปุ่มเลื่อน (เปลี่ยนสีได้ตามต้องการ) */
    border: 2px solid #fff;   /* เพิ่มเส้นขอบสีขาว */
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
/* ปุ่มสำหรับ Learn More */
.btn-primary {
    background-color: #FFC107; /* สีพื้นหลัง */
    color: #212529; /* สีข้อความ */
    border: none; /* ลบขอบปุ่ม */
    border-radius: 8px; /* ขอบมน */
    padding: 10px 20px; /* ระยะห่างภายใน */
    transition: all 0.3s ease; /* เอฟเฟกต์การเปลี่ยนแปลง */
}

.btn-primary:hover {
    background-color: #e0a800; /* สีพื้นหลังเมื่อเมาส์วาง */
    color: #ffffff; /* สีข้อความเมื่อเมาส์วาง */
    transform: translateY(-2px); /* ยกปุ่มขึ้นเล็กน้อย */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงา */
}
.footer {
  background-color: #FFD700;
  padding: 20px 0;
  margin-top: 40px;
  color: rgb(0, 0, 0);
}

.footer a {
  color: #000000;
}

.footer a:hover {
  color: white;
}

.footer-content {
  display: flex;
  align-items: center; /* จัดให้ข้อความอยู่ตรงกลางแนวตั้ง */
  justify-content: space-between; /* จัดให้ข้อความและรูปแยกกัน */
  flex-wrap: wrap; /* ปรับให้รองรับมือถือ */
}

.footer-text {
  text-align: center;
  flex-grow: 1;
}

/* ปรับขนาดรูปภาพใน Footer */
.footer-img {
  max-width: 100px; /* ปรับขนาดรูปภาพ */
  height: auto;
}

@media (max-width: 768px) {
  .footer-content {
      flex-direction: column; /* จัดเรียงแนวตั้งสำหรับจอเล็ก */
      text-align: center;
  }

  .footer-img {
      margin-top: 10px;
  }
}

.important-text {
    color: #FFD700;
    font-weight: bold;
}

.sticky-promotion {
            position: fixed;
            bottom: 10px;
            right: 10px;
            z-index: 1050;
            width: 300px;
            height: 300px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            overflow: hidden;
            background: url('img/โปรโมชัน.gif') no-repeat center center;
            background-size: cover;
            color: white;
            text-align: center;
            cursor: pointer;
        }

        .sticky-promotion .card-body {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px;
            text-align: center;
        }

        .sticky-promotion .btn {
            margin-top: 10px;
        }

        .sticky-promotion .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 1.2rem;
            cursor: pointer;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            padding: 5px;
        }

        .sticky-promotion .close-btn:hover {
            background: rgba(255, 0, 0, 0.8);
        }

        @media (max-width: 768px) {
            .sticky-promotion {
                width: 200px;
                height: 200px;
            }
        }

.slideshow-container {
            position: relative;
            width: 100vw;
            overflow: hidden;
            background: #f8f8f8;
            padding: 10px 0;
        }
        .slides-wrapper {
            display: flex;
            width: 200%; /* ให้ความกว้างเพียงพอสำหรับวนซ้ำ */
        }
        .slides {
            display: flex;
            animation: scroll 40s linear infinite;
        }
        .slideshow-container .slide {
            flex: 0 0 auto;
            width: 150px;
            height: 150px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px;
        }
        .slideshow-container .slide img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* ให้ภาพอยู่ในกรอบโดยไม่ถูกตัด */
        }
        @keyframes scroll {
            from { transform: translateX(0); }
            to { transform: translateX(-50%); }
        }