@import 'tailwindcss';
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --primary-color: #4f0bb7;
    --secondary-color: #6c3fc7;
    --accent-color: #fd9a57;
    --background-color: #f0eff6;
    --text-color: #001a49;
    --font-family: 'IBM Plex Sans Thai', sans-serif;
}
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}
.hero-purple {
    background: linear-gradient(135deg, #4f0bb7, #6c3fc7);
}

.custom-button {
    background-color: #fd9a57;
}
.progress-bar-bg {
    background-color: #5e1e99;
}
.progress-bar-fill {
    background-color: #fcc85c;
}
/* Custom curved shape for the purple section */

/* Animation Styles for Slider */

/* Animation Styles for Slider */
.slide {
    opacity: 0;
    transition: opacity 0.2s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
    z-index: 10;
}

/* Slide animations */
.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

/* Keyframes for slide animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Custom button animation */
.custom-button {
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.custom-button:active {
    transform: translateY(0);
}

.custom-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.custom-button:hover::after {
    left: 100%;
}

/* Bullet animation */
.bullet {
    position: relative;
    transition: all 0.3s ease;
}

.bullet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 9999px;
    opacity: 0;
}

.bullet.animate-pulse::after {
    animation: bulletPulse 0.5s ease-out;
}

@keyframes bulletPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
        opacity: 0;
    }
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    color: #553c9a;
}
.nav-button.prev {
    left: 0.5rem;
}
.nav-button.next {
    right: 0.5rem;
}
.card-date {
    font-size: 0.875rem;
    color: #718096;
}
.card-button {
    background-color: #6b61a0;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-size: 1.25rem;
    font-weight: 600;
    height: 57px;
}
.card-button:hover {
    background-color: #fada54;
}
.language-switcher {
    position: relative;
    display: inline-block;
}

.selector-btn {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    background-color: transparent;
    border: 1px solid #ccc;
    cursor: pointer;
}

.selector-btn img {
    width: 20px;
    height: 14px;
    margin-right: 8px;
    border-radius: 2px;
}

.selector-btn span {
    margin-right: 6px;
    font-weight: bold;
    color: #fff;
}

.selector-btn .arrow {
    font-size: 10px;
    color: #fff;
}

.dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    display: none;
    min-width: 100%;
    z-index: 999;
}

.dropdown .option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown .option:hover {
    background-color: #f0f0f0;
}

.dropdown .option img {
    width: 20px;
    height: 14px;
    margin-right: 8px;
    border-radius: 2px;
}
.language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background: white;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lang-option:hover {
    opacity: 0.7;
}

.flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        #ed1c24 0%,
        #ed1c24 33%,
        #fff 33%,
        #fff 66%,
        #ed1c24 66%
    );
}

.flag.en {
    background: linear-gradient(
            135deg,
            #012169 0%,
            #012169 50%,
            #fff 50%,
            #fff 100%
        ),
        linear-gradient(45deg, #fff 0%, #fff 50%, #c8102e 50%, #c8102e 100%);
}

.lang-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.lang-option.active .lang-text {
    color: #ffd700;
    font-weight: 600;
}
#bg-network {
  background: linear-gradient(261.86deg, rgba(251, 152, 105, 0.5) 19.58%, rgba(72, 4, 168, 0.5) 84.91%);
  opacity: 0.6;
  filter: blur(153px);
  transform: matrix(-1, 0, 0.01, -1, 0, 0);
}

/* Station List Scrollbar */
#station-list::-webkit-scrollbar {
  display: none;
}

#station-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* Pin Styles */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* Pin Dot - Default State */
.pin-dot {
  width: 67px;
  height: 35.475px;
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.pin-dot::before {
  content: "";
  position: absolute;
  width: 50.25px;
  height: 27.225px;
  top: 1.5px;
  left: 8.38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.pin-dot::after {
  content: "";
  position: absolute;
  width: 33.5px;
  height: 17.325px;
  top: 4.5px;
  left: 16.75px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
}

/* Pin Hover State */
.pin:hover .pin-dot {
  transform: scale(1.06);
  background: rgba(11, 183, 213, 0.2);
  width: 67px;
  height: 67px;
  left: 31%;
  top: 48%;
}

.pin:hover .pin-dot::before {
  background: rgba(11, 183, 213, 0.4);
  width: 50px;
  height: 50px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pin:hover .pin-dot::after {
  background: rgba(11, 183, 213, 1);
  width: 33px;
  height: 33px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Pin Primary State */
.pin .pin-dot.is-primary {
  background: rgba(11, 183, 213, 0.2);
  width: 67px;
  height: 67px;
  left: 31%;
  top: 48%;
}

.pin .pin-dot.is-primary::before {
  background: rgba(11, 183, 213, 0.4);
  width: 50px;
  height: 50px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pin .pin-dot.is-primary::after {
  background: rgba(11, 183, 213, 1);
  width: 33px;
  height: 33px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Pin Border State */
.pin .pin-dot.is-border {
  width: 67px;
  height: 35.475px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.pin .pin-dot.is-border::before {
  content: "";
  width: 50.25px;
  height: 27.225px;
  top: 1.5px;
  left: 8.38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.pin .pin-dot.is-border::after {
  content: "";
  width: 33.5px;
  height: 17.325px;
  top: 4.5px;
  left: 16.75px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
}

/* Pin Border Hover State */
.pin:hover .pin-dot.is-border {
  background: rgba(251, 152, 105, 0.25);
  transform: scale(1.06);
  width: 67px;
  height: 67px;
  left: 31%;
  top: 48%;
}

.pin:hover .pin-dot.is-border::before {
  background: rgba(251, 152, 105, 0.5);
  width: 50px;
  height: 50px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pin:hover .pin-dot.is-border::after {
  background: #FB9869;
  width: 33px;
  height: 33px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Pin Border Primary State */
.pin .pin-dot.is-border.is-primary {
  background: rgba(251, 152, 105, 0.2);
  width: 67px;
  height: 67px;
  left: 31%;
  top: 48%;
}

.pin .pin-dot.is-border.is-primary::before {
  background: rgba(251, 152, 105, 0.4);
  width: 50px;
  height: 50px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pin .pin-dot.is-border.is-primary::after {
  background: #FB9869;
  width: 33px;
  height: 33px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Pin Animation */
@keyframes pin-ping {
  0% {
    transform: scale(1);
    opacity: 1
  }
  80% {
    transform: scale(1.9);
    opacity: 0
  }
  100% {
    opacity: 0
  }
}

/* Pin Bubble */
.pin-bubble {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-33%, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 768px) {
  .pin-bubble {
    transform: translate(-50%, 20%);
  }
  .bubble-inner {
    min-width: 130px !important;
    padding: 5px !important;
  }
}

.pin:hover .pin-bubble,
.pin.is-active .pin-bubble {
  opacity: 1;
  visibility: visible;
}

.pin:has(.pin-dot.is-primary) .pin-bubble {
  opacity: 1 !important;
  visibility: visible !important;
}

.bubble-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid #11C5E8;
  order: 1;
}

.bubble-inner {
  background: #11C5E8;
  color: #fff;
  border-radius: 14px;
  padding: .6rem 1.1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
  text-align: center;
  min-width: 200px;
  order: 2;
  margin-top: -2px;
}

.bubble-strong {
  font-weight: bold;
  font-size: 1rem;
}

.pin .pin-dot.is-border+.pin-bubble .bubble-inner {
  background: #FB9869;
}

.pin .pin-dot.is-border+.pin-bubble .bubble-arrow {
  border-bottom-color: #FB9869;
}

/* Station Carousel */
#station-carousel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 180px;
  transform: translateY(-50px);
  background: linear-gradient(to bottom, rgba(67, 15, 151, 0), #430F97);
  border: 1px solid transparent; 
  border-bottom: 0;
  border-radius: 0;
  filter: blur(25px);
  z-index: -1;
}

#station-carousel::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 100px;
  transform: translateY(50px);
  background: linear-gradient(to bottom, rgba(67, 15, 151, 0), #430F97);
  border: 1px solid transparent; 
  border-top: 0;
  border-radius: 0;
  filter: blur(25px);
  z-index: -1;
}

.card-cap {
  padding: 12px 20px;
  color: var(--cap-gray);
  font-size: .78rem;
  letter-spacing: .1px;
}

/* Station Card */
.station-card {
  scroll-snap-align: center;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.station-card.is-active {
  outline: 3px solid rgba(59, 130, 246, .22);
  outline-offset: -2px;
  transform: scale(1.0);
  transition: transform 0.3s ease, outline 0.3s ease;
  position: relative;
  z-index: 10;
  opacity: 1;
}

.station-card[data-card="nakhonphanom"].is-active,
.station-card[data-card="chiangkhong"].is-active {
  outline: 3px solid rgba(251, 152, 105, 0.5);
}

.station-title {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 900;
  color: var(--cyan-strong);
  padding: 10px 22px 10px 22px;
}

.station-media {
  padding: 10px 14px 0 14px;
  height: 260px;
  overflow: hidden;
}

.station-media img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

.station-body {
  padding: 14px 22px 20px 22px;
  color: #2E2F33;
  font-size: .98rem;
  line-height: 1.7;
}

/* Carousel Layout */
.fog-bottom {
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 22%,
      rgba(255, 255, 255, 0.9) 44%,
      rgba(255, 255, 255, 0.9) 66%,
      rgba(255, 255, 255, 1) 82%,
      rgba(255, 255, 255, 1) 100%);
}

.carousel-wrapper {
  display: flex;
  justify-content: flex-start;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 0 20px;
  }
}

#carousel-container {
  display: flex;
  gap: 24px;
  transition: transform 0.3s ease-in-out;
}

#carousel-container .relative {
  flex-shrink: 0;
}

#carousel-container::-webkit-scrollbar {
  display: none;
}

#carousel-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
@media (max-width:1024px) {
  #station-carousel {
    position: static;
    width: 100%;
    margin-top: 1.25rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Pin Dot - Mobile Default State */
  .pin-dot {
    width: 45px;
    height: 24px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin-dot::before {
    width: 34px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .pin-dot::after {
    width: 22px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Hover State - Mobile */
  .pin:hover .pin-dot {
    width: 45px;
    height: 45px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.06);
  }

  .pin:hover .pin-dot::before {
    width: 34px;
    height: 34px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin:hover .pin-dot::after {
    width: 22px;
    height: 22px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Primary State - Mobile */
  .pin .pin-dot.is-primary {
    width: 45px;
    height: 45px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-primary::before {
    width: 34px;
    height: 34px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-primary::after {
    width: 22px;
    height: 22px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Border State - Mobile */
  .pin .pin-dot.is-border {
    width: 45px;
    height: 24px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-border::before {
    width: 34px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-border::after {
    width: 22px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Border Hover State - Mobile */
  .pin:hover .pin-dot.is-border {
    width: 45px;
    height: 45px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.06);
  }

  .pin:hover .pin-dot.is-border::before {
    width: 34px;
    height: 34px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin:hover .pin-dot.is-border::after {
    width: 22px;
    height: 22px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Border Primary State - Mobile */
  .pin .pin-dot.is-border.is-primary {
    width: 45px;
    height: 45px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-border.is-primary::before {
    width: 34px;
    height: 34px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-border.is-primary::after {
    width: 22px;
    height: 22px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  /* Pin Dot - Extra Small Mobile */
  .pin-dot {
    width: 35px;
    height: 18px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin-dot::before {
    width: 26px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .pin-dot::after {
    width: 17px;
    height: 9px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Hover/Primary States - Extra Small Mobile */
  .pin:hover .pin-dot,
  .pin .pin-dot.is-primary {
    width: 35px;
    height: 35px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin:hover .pin-dot {
    transform: translate(-50%, -50%) scale(1.06);
  }

  .pin:hover .pin-dot::before,
  .pin .pin-dot.is-primary::before {
    width: 26px;
    height: 26px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin:hover .pin-dot::after,
  .pin .pin-dot.is-primary::after {
    width: 17px;
    height: 17px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Border Default - Extra Small Mobile */
  .pin .pin-dot.is-border {
    width: 35px;
    height: 18px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-border::before {
    width: 26px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .pin .pin-dot.is-border::after {
    width: 17px;
    height: 9px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Pin Border Hover/Primary - Extra Small Mobile */
  .pin:hover .pin-dot.is-border,
  .pin .pin-dot.is-border.is-primary {
    width: 35px;
    height: 35px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin:hover .pin-dot.is-border {
    transform: translate(-50%, -50%) scale(1.06);
  }

  .pin:hover .pin-dot.is-border::before,
  .pin .pin-dot.is-border.is-primary::before {
    width: 26px;
    height: 26px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pin:hover .pin-dot.is-border::after,
  .pin .pin-dot.is-border.is-primary::after {
    width: 17px;
    height: 17px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Mobile Station Carousel */
.mobile-station-card {
  /* Clone from station-card */
  scroll-snap-align: center;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
  width: 18rem; /* w-72 */
  
  /* Mobile specific */
  opacity: 0.6;
  transform: scale(0.85);
}

.mobile-station-card.is-active {
  /* Clone from station-card.is-active */
  outline: 3px solid rgba(59, 130, 246, .22);
  outline-offset: -2px;
  transform: scale(1.1);
  transition: transform 0.3s ease, outline 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 10;
  opacity: 1;
}

/* Special colors for border stations in mobile */
.mobile-station-card[data-card="nakhonphanom"].is-active,
.mobile-station-card[data-card="chiangkhong"].is-active {
  outline: 3px solid rgba(251, 152, 105, 0.5);
}

/* Clone station-title for mobile */
.mobile-station-card .station-title {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 900;
  color: var(--cyan-strong);
  padding: 10px 22px 10px 22px;
}

/* Special colors for border stations titles */
.mobile-station-card[data-card="nakhonphanom"] .station-title,
.mobile-station-card[data-card="chiangkhong"] .station-title {
  color: #FB9869;
}

/* Clone station-media for mobile */
.mobile-station-card .station-media {
  padding: 10px 14px 0 14px;
  height: 260px;
  overflow: hidden;
}

.mobile-station-card .station-media img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

/* Clone station-body for mobile */
.mobile-station-card .station-body {
  padding: 14px 22px 20px 22px;
  color: #2E2F33;
  font-size: .98rem;
  line-height: 1.7;
}

/* Remove the old mobile card styling */
/* .mobile-station-card .card-cap - ลบออก */

@media (max-width: 768px) {
  #mobile-station-list {
    padding: 2rem;
  }
  
  .mobile-station-card {
    transform: scale(0.8);
    opacity: 0.5;
  }
  
  .mobile-station-card.is-active {
    transform: scale(1.15);
    opacity: 1;
  }
  
  /* ปรับขนาดเนื้อหาใน mobile */
  .mobile-station-card .station-title {
    font-size: 1.3rem;
    padding: 8px 18px 8px 18px;
  }
  
  .mobile-station-card .station-media {
    padding: 8px 12px 0 12px;
    height: 200px;
  }
  
  .mobile-station-card .station-body {
    padding: 12px 18px 16px 18px;
    font-size: .9rem;
  }
}

@media (max-width: 480px) {
  .mobile-station-card {
    transform: scale(0.75);
    opacity: 0.4;
  }
  
  .mobile-station-card.is-active {
    transform: scale(1.1);
    opacity: 1;
  }
  
  /* ปรับขนาดเนื้อหาใน small mobile */
  .mobile-station-card .station-title {
    font-size: 1.1rem;
    padding: 6px 16px 6px 16px;
  }
  
  .mobile-station-card .station-media {
    padding: 6px 10px 0 10px;
    height: 160px;
  }
  
  .mobile-station-card .station-body {
    padding: 10px 16px 14px 16px;
    font-size: .85rem;
  }
  #station-carousel-mobile {
  position: fixed;
  bottom: -100%; /* Initially hidden below the viewport */
  left: 0;
  width: 100%;
  transition: bottom 0.5s ease-in-out; /* Smooth transition for the 'bottom' property */
  z-index: 40; /* Make sure it's on top of other elements */
}

#station-carousel-mobile.is-open {
  bottom: 0; /* Move to the bottom of the viewport when active */
}
}

