/* ==========================================================================
   Components (Buttons, Cards, Titles, Modals, Tabs)
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 0.2rem;
  background-color: transparent;
  margin-bottom: 0;
}

/* Buttons (Read More / Action) */
.c-btn-more {
  display: inline-block;
  padding: 0.6875rem 0.9375rem;
  /* 11px 15px */
  cursor: pointer;
  border: 1px solid var(--color-border-dark);
  font-weight: bold;
  font-size: 1.25rem;
  /* 20px */
  line-height: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 3px;
  transition: all 0.2s ease-in-out;
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  background-color: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-dark-gray);
}

.c-btn-more:hover {
  background-color: var(--color-amber-hover);
  color: var(--color-dark-gray);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.c-btn-more:active {
  background-color: var(--color-amber);
  border: 1px solid var(--color-amber-active);
  position: relative;
  top: 1px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
}



/* Titles with Underlines/Ribbons */
.c-title-underline {
  position: relative;
  text-align: center;
  padding-bottom: 15px;
}

.c-title-underline::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 7px;
  background-color: var(--color-accent-peach);
  border-radius: 5px;
}

.c-title-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent-peach);
}

/* Cards (Resolving Img_div issue) */
.c-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.c-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.c-card__img-wrapper {
  width: 100%;
  height: 100%;
  max-height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 0.2rem;
}

.c-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease-in-out;
}

.c-card__body {
  height: 155px;
  position: relative;
}

.c-card__title {
  font-weight: bold;
  transition: color 0.3s;
  word-break: break-all;
  word-wrap: break-word;
  max-width: 550px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.5rem;
  color: var(--color-primary);
  text-align: justify;
  margin: .6rem 0 .7rem 0;
}

.c-card__description {
  color: var(--color-text-light);
  text-align: justify;
  word-break: break-all;
  word-wrap: break-word;
  max-width: 550px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.2rem;
  font-size: .9rem;
}

.c-card__date {
  transition: color 0.3s;
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  color: var(--color-text-light);
  font-size: .9rem;
}

.c-card:hover .c-card__title {
  color: var(--color-secondary);
}


/* Tabs */
.c-tabs__nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-tabs__item {
  flex: 1;
}

.c-tabs__link {
  display: block;
  padding: 15px;
  background: var(--color-neutral-brown);
  text-align: center;
  color: var(--color-bg-offwhite);
  font-size: 1.2rem;
  font-weight: bold;
}


.c-tabs__link:hover,
.c-tabs__item--active .c-tabs__link {
  background: var(--color-primary);
}

/* Loading Effect */
.c-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Onsale Heading (Ribbon) */
#content_h {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.c-onsale-heading {
  font-size: 1.9rem;
  line-height: 40px;
  color: var(--color-primary);
  font-weight: bold;
  padding: .5em 0em .1em 1.8em;
  transition: all 0.2s ease-in;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.c-onsale-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 45px;
  height: 50px;
  background: var(--color-secondary);
  clip-path: polygon(100% 0%, 100% 100%, 50% 75%, 0 100%, 0 0);
  transition: all 0.2s ease-in;
}

.c-onsale-heading:hover::before {
  height: 60px;
}

.u-panel-shadow {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
  border: 1px solid var(--color-primary);
}

/* Sidebar Menu Component */
.c-sidebar-menu {
  border-top: 1px solid var(--color-primary);
  border-left: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
  overflow: hidden;
}

.c-sidebar-menu__header {
  background-image: url("../../img/title-bg4.846ec7b3795a.webp");
  border: 1px solid var(--color-primary);
}

.c-sidebar-menu__header h3 {
  color: var(--color-bg-light);
  font-weight: bolder;
}


.c-sidebar-menu__item {
  list-style: none;
}

.c-sidebar-menu__link {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid var(--color-primary);
  font-weight: bold;
  font-size: 18px;
  color: var(--color-primary);
  transition: background-color 0.3s, color 0.3s;
}

.c-sidebar-menu__link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-secondary);
}

.c-sidebar-menu__toggle {
  cursor: pointer;
  display: inline-block;
  width: 100%;
  position: relative;
  padding: .6rem;
  font-weight: bold;
  border: 1px solid var(--color-primary);
  background-color: var(--color-bg-white);
}

/* Bed Rate Modal & Stats (Ported from style.css & sub-style.css) */
.Div_out {
  display: flex;
  flex-wrap: wrap;
}

.Div_box {
  width: calc(50% - 1%);
  margin: .5% .5%;
  background-color: var(--color-bg-white);
  box-shadow: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
  border: 1px solid var(--color-border);
}


.Div_body {
  box-sizing: border-box;
  padding: 0 1.5rem;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.Div_w_20 {
  width: calc(100% - 1%);
  /* Mobile Default */
}

.Div_w_80 {
  width: calc(100% - 1%);
  /* Mobile Default */
}

.bed_occ .Div_body {
  padding: 0;
}

.see_title {
  padding: 8px;
}

.see_title h5 {
  margin-bottom: 0px;
  font-weight: bold;
}

.see_num {
  text-align: center;
  border-left: 1px solid var(--color-border-light);
  width: 30%;
}


.see_num h3 {
  font-weight: bold;
  margin-bottom: 0px;
  font-size: 1.1rem;
}

.see_room_no {
  color: var(--color-success);
}

.see_num_no {
  color: var(--color-danger);
}

.noon_a {
  background-color: var(--color-bg-cream);
  color: var(--color-accent-brown);
}

.column {
  float: left;
  width: 33.3%;
  /* Mobile Default */
  display: block;
  margin-bottom: 10px;
}


/* Back to Top Button */
.c-back-to-top {
  display: none;
  position: fixed;
  bottom: 60px;
  /* Mobile Default */
  right: 5px;
  /* Mobile Default */
  z-index: 999;
  font-size: 1.1rem;
  border: none;
  outline: none;
  background-color: var(--color-primary-hover);
  color: var(--color-bg-white);
  cursor: pointer;
  padding: 8px 15px;
  line-height: 0;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.c-back-to-top:hover {
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
}

/* ==========================================================================
   Navigation & Menus (Modern Rewrite)
   ========================================================================== */

/* Nav Menu Base */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-menu__item {
  position: relative;
  margin: 0 0.5rem;
}

.nav-menu__link {
  display: block;
  padding: 1.5rem 0.5rem;
  font-weight: 700;
  color: var(--color-primary-hover);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu__link:hover {
  color: var(--color-secondary);
}

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: auto;
  min-width: 600px;
  background-color: var(--color-bg-white);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  gap: 2rem;
}

.nav-menu__item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu__column {
  flex: 1;
}

.mega-menu__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.mega-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu__list li {
  margin-bottom: 0.5rem;
}

.mega-menu__list a {
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.mega-menu__list a:hover {
  color: var(--color-secondary);
}

/* Hamburger Trigger */
.hamburger {
  display: flex;
  cursor: pointer;
  width: 1.75rem;
  height: 1.2rem;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s;
  transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Sidebar Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: var(--color-bg-white);
  z-index: 1100;
  transition: right 0.4s ease;
  padding: 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

@media (min-width: 768px) {
  .c-back-to-top {
    bottom: 30px;
    right: 30px;
  }
}

@media (min-width: 992px) {
  .Div_w_20 {
    width: calc(20% - 1%);
  }

  .Div_w_80 {
    width: calc(80% - 1%);
  }

  .column {
    width: 16.6%;
  }

  .hamburger {
    display: none;
  }
}



/* ==========================================================================
   AJAX 下拉選單分頁元件 (40px 等高)
   ========================================================================== */
.pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.pagination .page-link {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  font-size: 1.1rem !important;
  border: 1px solid var(--color-border-light, #ddd) !important;
  color: var(--color-text-dark, #333) !important;
  background-color: var(--color-bg-white, #fff) !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary, #754826) !important;
  border-color: var(--color-primary, #754826) !important;
  color: var(--color-bg-white, #fff) !important;
}

.pagination .page-link:hover {
  background-color: var(--color-bg-light, #f8f9fa);
  border-color: var(--color-border, #ccc);
  color: var(--color-primary, #754826);
}

.pagination .page-item.disabled .page-link {
  color: var(--color-text-light, #999) !important;
  pointer-events: none !important;
  background-color: var(--color-bg-light, #f8f9fa) !important;
  border-color: var(--color-border-light, #ddd) !important;
  opacity: 0.6 !important;
}

/* 下拉選單客製樣式 */
.pagination-select {
  padding: 0 28px 0 12px;
  height: 40px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--color-border-light, #ddd);
  background: var(--color-bg-white, #fff) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center/10px 10px;
}

.pagination-select:focus {
  border-color: var(--color-primary, #754826) !important;
  box-shadow: none !important;
}

/* AJAX 容器漸變過渡效果 */
.ajax-fade-container {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 1;
}

.ajax-fade-container.fade-out {
  opacity: 0 !important;
}


/* =========================================
   Modern UI/UX Design System (Shared Components)
   ========================================= */

/* Hero Section */
.icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}
.icon-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 157, 28, 0.2), rgba(245, 157, 28, 0.05));
    border-radius: 50%;
    filter: blur(10px);
    transform: scale(1.2);
}
.text-gradient {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--theme-primary, #F59D1C), var(--theme-secondary, #87b81d));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}
.modern-title {
    color: var(--theme-secondary, #87b81d);
    letter-spacing: -0.5px;
}
.modern-subtitle {
    line-height: 1.6;
}

/* Cards */
.modern-card {
    background-color: var(--card-bg, #ffffff);
    border-radius: var(--radius-xl, 20px);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.info-card { padding: 2.5rem; }
.form-card { padding: 2rem; }

/* Section Title with Icon Box */
.section-title {
    color: var(--text-main, #334155);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--input-border, #e2e8f0);
    padding-bottom: 0.75rem;
}
.title-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--theme-light, #fef9f2), #ffffff);
    color: var(--theme-primary, #F59D1C);
    border-radius: 10px;
    margin-right: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(245, 157, 28, 0.1), inset 0 2px 0 rgba(255,255,255,1);
}

/* Contact Info Elements */
.tel-number-link {
    color: var(--theme-primary, #F59D1C) !important;
    font-size: 2.2rem;
    font-weight: 900;
    text-decoration: none !important;
    letter-spacing: 1px;
    transition: var(--transition-bounce, 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275));
    display: inline-block;
    text-shadow: 0 2px 10px rgba(245, 157, 28, 0.2);
}
.tel-number-link:hover {
    color: var(--theme-primary-hover, #e08c15) !important;
    transform: scale(1.03) translateX(5px);
}

.ext-item {
    background-color: rgba(248, 250, 252, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    padding: 1rem 1.2rem;
    transition: var(--transition-smooth, 0.3s ease);
    position: relative;
    overflow: hidden;
}
.ext-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--theme-secondary, #87b81d);
    transition: var(--transition-fast, 0.2s ease);
}
.ext-item:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transform: translateX(5px);
}
.ext-item:hover::before { width: 6px; }

.ext-badge {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
}
.ext-number {
    font-size: 1.15rem;
    color: var(--theme-secondary, #87b81d);
    margin-top: 4px;
}

.helper-box {
    background: linear-gradient(to right, rgba(241, 245, 249, 0.8), rgba(248, 250, 252, 0.4));
    border: 1px solid #e2e8f0;
}

/* Input Groups */
.modern-input-group label {
    font-weight: 600;
    color: var(--text-main, #334155);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.modern-input-group input.form-control,
.modern-input-group select.form-control,
.modern-input-group textarea.form-control {
    border: 2px solid var(--input-border, #e2e8f0);
    border-radius: 0;
    padding: 0.5rem;
    font-size: 1rem;
    transition: var(--transition-smooth, 0.3s ease);
    background-color: #f8fafc;
    box-shadow: none !important;
}
.modern-input-group input.form-control:focus,
.modern-input-group select.form-control:focus,
.modern-input-group textarea.form-control:focus {
    border-color: var(--theme-primary, #F59D1C);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--input-focus-ring, rgba(245, 157, 28, 0.25)) !important;
}
.modern-input-group textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545 !important;
}
.form-control.is-valid {
    border-color: #28a745 !important;
}

/* Captcha Area */
.modern-captcha-section {
    border-color: var(--input-border, #e2e8f0) !important;
}
.modern-captcha-section input {
    border: 2px solid var(--input-border, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    padding: 0.5rem;
    transition: var(--transition-fast, 0.2s ease);
}
.modern-captcha-section input::placeholder {
    font-size: 0.85rem;
}
.modern-captcha-section input:focus {
    border-color: var(--theme-primary, #F59D1C);
    outline: none;
}

/* Buttons */
.modern-actions {
    gap: 16px;
}
.modern-btn-primary {
    background: linear-gradient(135deg, var(--theme-primary, #F59D1C), var(--theme-primary-hover, #e08c15));
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth, 0.3s ease);
}
.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 157, 28, 0.3) !important;
}
.modern-btn-outline {
    background: transparent;
    color: var(--theme-primary-hover, #e08c15) !important;
    border: 2px solid var(--input-border, #e2e8f0);
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    transition: var(--transition-smooth, 0.3s ease);
}
.modern-btn-outline:hover {
    border-color: var(--theme-primary-hover, #e08c15);
    background-color: rgba(245, 157, 28, 0.05);
}

/* Animations */
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 991px) {
    .form-card { padding: 2.5rem 1.5rem; }
    .info-card { padding: 2rem 1.5rem; }
}


/* =========================================
   Table style
   ========================================= */
table th{
	background-image: url("../../img/title-bg4.846ec7b3795a.webp");
	color: var(--color-bg-light);
}
table td, table th{
	padding: .5rem !important;
	text-align: center;
  vertical-align: middle !important;
}
.table-hover tbody tr:hover {
    background-color: var(--color-bg-offwhite);
}
.table-bordered{
	border:  1px solid var(--color-primary-light);
}
.table-striped tbody tr:nth-of-type(odd){
	background-color: var(--color-bg-light); 
}


/* ==========================================================================
   原有的樣式 (待美化)
   ========================================================================== */

/* 文字標題 */
.title-bg {
  background-image: url("/Public/common/img/title-bg4.846ec7b3795a.webp");
  border: 1px solid #896750;
  color: #f6f0e9;
}

.title-bg h1,
.title-bg h4,
.title-bg h3 {
  color: #f6f0e9;
  font-weight: bolder;
}

/* list-style (橘色圓點) */
.list-bullets {
  list-style: none;
  font-size: 1.2rem;
  margin-bottom: 0;
  line-height: 2rem;
}

.list-bullets li {
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
}

.list-bullets li::before {
  content: '';
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f5961d;
  /* border: 2px solid #754826; */
  display: block;
  margin-right: 1rem;
  padding-right: 0.8rem;
}

/* 醫師介紹-文字 */
.about-text h4 {
  font-size: 35px;
  font-weight: 700;
  margin: 0 0 6px;
}




/* Fancybox 樣式 */
.fancybox__backdrop {
  background: rgba(24, 24, 27, 0.7);
}

/* Sweet alert2 樣式 */
.swal2-styled {
  padding: .5em 1.1em !important;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
  border-radius: 0 !important;
  font-size: 20px !important;
  font-weight: bold;
}

.swal2-styled.swal2-confirm {
  background-color: #28a745 !important;
}



/* |======== RWD 設定 ========| */

@media only screen and (min-width: 576px) {
  .login_form label {
    text-align: right;
  }
}




