/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  --primary: #d62d2d;
  --primary-dark: #b22222;
  --secondary: #2d2d2d;
  --accent: #e63946;
  --bg: #ffffff;
  --bg-offset: #fbfbfc;
  --text: #1a1a1a;
  --text-muted: #57606f;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Noto Sans TC', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Base Layout Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 3rem 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Utility Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fix for Header on forced Light Pages */
body.light-page-fix,
.light-page-fix {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
}

body.light-page-fix header,
.light-page-fix header {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(15px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}

.light-page-fix header span,
.light-page-fix header a,
.light-page-fix header button,
.light-page-fix [class*="logoText"],
.light-page-fix [class*="navItem"] {
  color: #000000 !important;
  text-shadow: none !important;
}

.light-page-fix header svg path {
  fill: #000000 !important;
}

.light-page-fix [class*="navItem"]:hover {
  color: #b89d5e !important;
}

/* Force light backgrounds for all legacy content containers */
div.light-page-fix [class*="storyHTML"],
div.light-page-fix [class*="storyHTML"] section,
div.light-page-fix [class*="storyHTML"] div,
div.light-page-fix [class*="storyHTML"] p,
div.light-page-fix [class*="storyHTML"] span,
div.light-page-fix [class*="storyHTML"] h1,
div.light-page-fix [class*="storyHTML"] h2,
div.light-page-fix [class*="storyHTML"] h3 {
  background-color: transparent !important;
  background-image: none !important;
  background: none !important;
  color: #1a1a1a !important;
  /* Force dark text for everything in story content */
}

/* Specific fix for the yellow/dark boxes seen in legacy story content */
div.light-page-fix [class*="storyHTML"] [style*="background-color"],
div.light-page-fix [class*="storyHTML"] [style*="background"] {
  background-color: transparent !important;
  background-image: none !important;
  background: none !important;
  color: #1a1a1a !important;
}

/* Quill Styles Consistency */
.ql-align-center {
  text-align: center;
}

.ql-align-right {
  text-align: right;
}

.ql-align-justify {
  text-align: justify;
}

.ql-editor,
[class*="storyContent"],
[class*="storyHTML"] {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3436;
}

.ql-editor img,
[class*="storyContent"] img,
[class*="storyHTML"] img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  display: inline-block; /* Changed from block to allow emojis in p tag */
  vertical-align: middle;
  margin: 4px;
}

/* Auto-center larger images that are likely main content photos */
.ql-editor img:not([width="16"]),
[class*="storyContent"] img:not([width="16"]),
[class*="storyHTML"] img:not([width="16"]) {
  display: block;
  margin: 1.5rem auto;
}

.ql-editor p,
[class*="storyContent"] p,
[class*="storyHTML"] p {
  margin-bottom: 1rem;
}

/* Form Controls Single-Line Border Hover & Bold Focus Ring Effect (Unified 44px Height) */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not(.search-input-bare),
select,
.control-base {
  height: 44px !important;
  line-height: 44px;
  font-size: 0.95rem;
  padding: 0 0.85rem;
  box-sizing: border-box !important;
  border: 1.5px solid #ced4da;
  border-radius: 8px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

textarea {
  border: 1.5px solid #ced4da;
  border-radius: 8px;
  font-size: 0.95rem;
  padding: 0.75rem 0.85rem;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not(.search-input-bare):hover,
select:hover,
textarea:hover,
.control-base:hover {
  border-color: #0984e3 !important; /* Blue border on hover */
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not(.search-input-bare):focus,
select:focus,
textarea:focus,
.control-base:focus,
.control-base:focus-within,
button[data-state="open"],
.control-base[data-state="open"] {
  border-color: #0984e3 !important;
  box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.25) !important;
  outline: none !important;
}

.search-input-bare, .search-input-bare:focus, .search-input-bare:hover {
  height: 100% !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Dropdown controls & icons cursor pointer */
.control-base, .cursor-pointer, select, button, [role="button"] {
  cursor: pointer;
}
