@font-face {
	font-family: 'EnglishFont';
	src: url(/public/assets/font/MonotypeCorsiva.ttf);
	font-weight: normal;
	font-style: normal;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, 
                 U+02C6, U+02DA, U+02DC, U+2000-206F, 
                 U+2074, U+20AC, U+2212, U+2215;
}

@font-face {
	font-family: 'JapaneseFont';
	src: url(/public/assets/font/HinaMincho-Regular.ttf);
	font-weight: normal;
	font-style: normal;
	unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF;
}

:root {
	--topbar-h: 10vh;
	--nav-h: 56px;     /* your navbar height */
  	--footer-h: 70px;  /* your footer height */
  	--nav-item-w: 200px;  /* item width */
    --nav-item-h: 50px;   /* item height */
    --nav-mobile-item-w: 96px;
    --nav-mobile-item-h: 25px;
}

::-webkit-scrollbar {
	display: none;
}

.logo-nav {
  height: 68px;
  width: auto;
}

@media (max-width: 576px) {
  .logo-nav {
    height: 52px;
  }
}

html, body {
	overflow-x: hidden;
	overflow-y: auto;
	background: url(/public/assets/images/background-image.jpg);
	background-attachment:fixed;
	background-repeat:no-repeat;
	background-size:cover;
	color:white;
	font-family: 'EnglishFont', 'JapaneseFont';
}

html {
	scrollbar-width: none;
}

@media (min-width: 992px) {
  #siteNav {
    background: linear-gradient(to bottom, #5a4948 0%, #000000 100%);
  }
}

@media (max-width: 991px) {
  #siteNav {
    background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: padding .2s ease, background .25s ease, box-shadow .25s ease;
  }
}

#siteNav .nav-item {
	flex: 0 0 var(--nav-item-w);   /* fixed width in a flex row */
    width: var(--nav-item-w);
    height: var(--nav-item-h);
    display: flex;                 /* so the link can fill the li */
    align-items: center;
    justify-content: center;
    border-radius: 10px
}

#mobileSecondNav {
	position: relative;
}

#mobileSecondNav::after {
	content: "";
	position: absolute;
	top: 0;
	right:0;
	width:30px;
	height:100%;
	pointer-events:none;
	background: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
}

#mobileSecondNav .navbar-nav {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#mobileSecondNav .nav-item {
	flex: 0 0 var(--nav-mobile-item-w);   /* fixed width in a flex row */
    width: var(--nav-mobile-item-w);
    height: var(--nav-mobile-item-h);
    display: flex;                 /* so the link can fill the li */
    align-items: center;
    justify-content: center;
    border-radius: 10px
}

.nav-item.active-nav {
	background-color: black;
	background: url(/public/assets/images/bg-nav-item.jpg);
}

.navbar-nav .nav-link.active-black {
	color: black !important;
}

#site-header .topbar {
  top: 0;
  left: 0;
  right: 0;
  background: #212529;
  color: #fff;
  font-size: 0.8rem;
}

@media (max-width: 767.98px) {
	#site-header .topbar {
		display: none;
	}
}

#site-header .glass-nav,
#siteNav .glass-nav {
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: padding .2s ease, background .25s ease, box-shadow .25s ease;
}

.bg-glass {
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

#siteNav .nav-underline {
	position: relative;
}

.nav-underline::after {
	content: "";
	position: absolute;
	left: .6rem;
	right: .6rem;
	bottom: .3rem;
	height: 2px;
	background: currentColor;
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .18s ease, opacity .18s ease;
}

.nav-underline:hover::after, .nav-underline.active::after {
	opacity: 1;
	transform: scaleX(1);
}

#siteNav .offcanvas.text-bg-dark {
	background: black;
}

#siteNav .offcanvas .nav-link {
	padding-left: 0;
}

.offcanvas .nav-link:hover {
	color: #fff !important;
}

#mobileSubNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1030; 
}

#mobileSecondNav a{
	color: white;
}

@media (max-width: 767.98px) {
	#hero video {
		height: 40vh; 
		object-fit: fill;
		padding: 0 0 0 0 !important;
	}
}

#about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

#about-page hr {
	margin-top: 50px;
}

#about-page .border-gold {
	border: 3px solid gold;
	border-radius: 10px;
	position: relative;
	padding-top: 2rem;
}

.border-gold {
	border: 3px solid gold;
}

/* The ornate frame at the top center */
#about-page .gold-frame-top {
	width:20%;
  position: absolute;
  top: -15px; /* adjust vertically to overlap border */
  left: 50%;
  transform: translateX(-50%);
  height: 26px; /* keep proportions same as uploaded image */
  z-index: 2;
  padding: 0 0.5rem; /* prevents image clipping with border */
}

#about-page .decor-box {
  position: relative;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  margin: 2rem auto;
  align-content: center;
  text-align: center;
}

#about-page .decor-box-full-width {
  position: relative;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem auto;
  align-content: center;
  text-align: center;
}

#about-page .decor-box-gold {
	border: 2px solid #d4af37;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#about-page .decor-box-silver {
	border: 2px solid #c0c0c0;         
	box-shadow: 0 4px 10px rgba(80, 80, 80, 0.15);
}

.decor-box::before, .decor-box-full-width::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 82px;
  height: 80px;
  pointer-events: none;
  font-weight: bolder;
}

.decor-box-gold::before {
	background: url('/public/assets/images/ivy_gold_L.png') no-repeat;
	background-size: contain;
}

.decor-box-gold::after {
	background: url('/public/assets/images/ivy_gold_R.png') no-repeat;
  	background-size: contain;
}

.decor-box-silver::before {
	background: url('/public/assets/images/ivy_silver_L.png') no-repeat;
	background-size: contain;
}

.decor-box-silver::after {
	background: url('/public/assets/images/ivy_silver_R.png') no-repeat;
	background-size: contain;
}

.decor-box::after, .decor-box-full-width::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 82px;
  height: 80px;
  pointer-events: none;
}

#about-page .custom-table {
	--bs-table-bg: transparent !important; /* overrides Bootstrap’s variable */
  	background-color: transparent !important; /* for safety */
}

#about-page .custom-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* faint silver-white line */
}

#about-page .custom-table th,
#about-page .custom-table td {
  padding: 0.75rem 0;
}

#about-page .custom-table th h3 {
  color: #fff;
}

#about-page .custom-table td {
  color: #fff;
  font-weight: 600;
}

#about-page h1 {
	color: #E6B5A2;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.2;
	margin: 0 0 8px;
}

#about-page h2 {
	color: #C19622;
	font-size: clamp(20px, 2.2vw, 24px);
	margin: 0 0 10px;
}

#about-page p {
  margin: 0 0 14px;
}

#about-page .tagline {
  color: var(--muted);
  font-size: 15px;
}

#about-page ul.list {
  margin: 0 0 14px 1.2rem;
  padding: 0;
}

#about-page ul.list li {
  margin: 6px 0;
}

#about-page .section {
  margin: 28px 0;
}

#about-page .panel {
  background: var(--card);
  padding: 16px 18px;
  border-radius: 12px;
}

#about-page a {
  color: var(--accent);
  text-decoration: none;
}

#about-page a:hover {
  text-decoration: underline;
}

#our-features .section {
	background: #6b3d3d; 
}

#our-collections .ratio {
  position: relative; /* ensure ratio box has positioning context */
  overflow: hidden;   /* prevent overflow during scaling or hover */
}

#our-collections .ratio > img,
#our-collections .ratio > .card-img {
  position: absolute;  /* position inside ratio */
  inset: 0;            /* shorthand for top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  object-fit: contain;   /* fill and crop without distortion */
  object-position: center; /* center the image */
}

#our-collections .card {
	min-height: 360px;
  	transform: scale(1.08);
  	transition: transform 0.3s ease;
}

#our-collections .card:hover {
  transform: scale(1.1);
}

@media (max-width: 991.98px) {
	#our-collections .card {
		min-height: 240px;
		aspect-ratio: 3 / 4; 
	}
}

/* Tiny helpers for hover blur + smooth transitions */
.hover-zoom-blur img {
	transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.hover-zoom-blur:hover img, .hover-zoom-blur:focus-visible img {
	transform: scale(1.03);
	filter: blur(2px) brightness(.85);
	opacity: .95;
}

.fade-overlay {
	opacity: 0;
	transition: opacity .3s ease;
}

.hover-zoom-blur:hover .fade-overlay, .hover-zoom-blur:focus-visible .fade-overlay {
	opacity: 1;
}

/* Icon buttons */
.icon-btn {
	--size: 2.25rem;
	width: var(--size);
	height: var(--size);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	transition: transform .15s ease, background .15s ease, border-color .15s
		ease, color .15s ease;
}

.icon-btn:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .12);
	transform: translateY(-1px);
}

/* Tiny brand dot (optional logo accent) */
.brand-dot {
	width: 18px;
	height: 18px;
	background: linear-gradient(135deg, #ffb3b3, #c41c1c);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset;
}

/* Footer Css*/
.footer h6 {
	letter-spacing: .05em;
}

.footer a:hover {
	color: #fff !important;
}

.footer .bi {
	transition: transform .2s ease, color .2s ease;
}

.footer .bi:hover {
	transform: scale(1.2);
	color: #dc3545; /* example hover color (red) */
}

/* ===== Full-width one-per-row gallery (Our Selections) ===== */
.fullwidth-gallery .gallery-item {
	position: relative;
	height: 100vh; /* full screen height */
	min-height: 420px; /* sensible floor on small laptops */
	overflow: hidden;
	background: black; /* prevents flash under images */
}

/* Image pane takes full width by default */
.fullwidth-gallery .media-pane {
	position: absolute;
	inset: 0;
	width: 100%;
	transition: width .45s ease, transform .45s ease, filter .35s ease;
}

.fullwidth-gallery .media-pane img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Info pane is off-screen-ish by default (transparent + slight offset) */
.fullwidth-gallery .info-pane {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	width: 40%; /* space revealed on hover */
	max-width: 720px;
	padding-inline: clamp(1rem, 3vw, 2rem);
	opacity: 0;
	transform: translateX(16px);
	transition: opacity .35s ease, transform .45s ease;
	background: linear-gradient(to var(--bg-dir, right), rgba(0, 0, 0, .0)
		0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .65) 100%);
}

/* Inner content width control */
.fullwidth-gallery .info-inner {
	max-width: 520px;
}

/* Directions (where text sits) */
.fullwidth-gallery .info-right {
	right: 0;
	left: auto;
	--bg-dir: left;
	text-align: left;
}

.fullwidth-gallery .info-left {
	left: 0;
	right: auto;
	--bg-dir: right;
	text-align: left;
}

/* HOVER BEHAVIOR */
/* When .item-left: image shrinks LEFT, revealing RIGHT text */
.fullwidth-gallery .item-left:hover .media-pane, .fullwidth-gallery .item-left:focus-within .media-pane
	{
	width: 60%;
	transform: translateX(0); /* pinned to left by default */
	filter: brightness(.9);
}

.fullwidth-gallery .item-left:hover .info-right, .fullwidth-gallery .item-left:focus-within .info-right
	{
	opacity: 1;
	transform: translateX(0);
}

/* When .item-right: image shrinks RIGHT, revealing LEFT text */
.fullwidth-gallery .item-right .media-pane {
	left: auto;
	right: 0; /* start anchored at right */
}

.fullwidth-gallery .item-right:hover .media-pane, .fullwidth-gallery .item-right:focus-within .media-pane
	{
	width: 60%;
	transform: translateX(0); /* pinned to right */
	filter: brightness(.9);
}

.fullwidth-gallery .item-right:hover .info-left, .fullwidth-gallery .item-right:focus-within .info-left
	{
	opacity: 1;
	transform: translateX(0);
}

/* Buttons over images: subtle glass effect */
.fullwidth-gallery .btn {
	backdrop-filter: blur(2px);
}

/* ===== Disable fullwidth-gallery hover effects on small screens ===== */
@media (max-width: 768px) {
  .fullwidth-gallery .media-pane,
  .fullwidth-gallery .info-pane {
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .fullwidth-gallery .info-pane {
    position: absolute;
    inset: auto 0 0 0; /* move to bottom or top if desired */
    width: 100%;
    max-width: none;
    background: rgba(0, 0, 0, 0.45); /* simple overlay */
    text-align: center;
    padding: 1rem;
  }

  /* Optional: remove transitions entirely */
  .fullwidth-gallery .media-pane,
  .fullwidth-gallery .info-pane {
    transition: none !important;
  }

  /* Optional: reduce height so user doesn’t have to scroll too much */
  .fullwidth-gallery .gallery-item {
    height: auto;
    min-height: 320px;
  }
}

/* Base indicators: circles with dark outline */
#heroCarousel .carousel-indicators [data-bs-target] {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: transparent;
	border: 2px solid #333; /* dark outline */
	opacity: 1;
	position: relative; /* for inner circle positioning */
}

/* Active indicator: add a smaller inner filled circle */
#heroCarousel .carousel-indicators .active::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px; /* smaller size = inner circle */
	height: 8px;
	border-radius: 50%;
	background-color: #000; /* dark fill */
}

#heroCarousel .carousel-item {
	height: 100vh;
	min-height: 800px;
}

#heroCarousel .carousel-item>.container {
	height: 100%;
	display: flex;
	align-items: center; /* vertically center text + image */
}

/* SVG size reduced (and responsive) */
#our-features .feature-icon {
	width: 32px;
	height: 32px;
}

/* ===== Our Selections polish ===== */
#our-selections .hover-zoom img {
	transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

#our-selections .hover-zoom:hover img, #our-selections .hover-zoom:focus-within img
	{
	transform: scale(1.03);
	filter: brightness(.9);
}

#our-selections .fade-overlay {
	background: linear-gradient(to top, rgba(0, 0, 0, .55),
		rgba(0, 0, 0, .0) 45%);
	opacity: 0;
	transition: opacity .28s ease;
}

#our-selections .selection-card:hover .fade-overlay, #our-selections .selection-card:focus-within .fade-overlay
	{
	opacity: 1;
}

#our-selections .badge {
	letter-spacing: .02em;
}

#our-selections .selection-card .btn {
	backdrop-filter: blur(2px);
}

/* Smaller text */
#our-features .feature-title {
	font-size: .98rem;
	font-weight: 600;
}

#our-features .feature-desc {
	font-size: .85rem;
	opacity: .85;
}

/* Subtle hover lift */
#our-features .p-3 {
	transition: transform .15s ease, opacity .2s ease;
	background: rgba(255, 255, 255, .03);
	border-radius: .75rem;
}

#our-features .p-3:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, .06);
}

/* ===== About Us polish ===== */
#about-us .about-photo .ratio {
	background: rgba(255, 255, 255, .03);
}

#about-us .about-avatar {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, .35);
}

#about-us .about-stat .card-body {
	background: rgba(255, 255, 255, .05);
	border-radius: .75rem;
	padding: 1.1rem .75rem;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

#about-us .about-stat .display-6 {
	line-height: 1;
}

#about-us .timeline {
	position: relative;
	padding-left: 1.25rem;
	border-left: 1px dashed rgba(255, 255, 255, .25);
}

#about-us .timeline-item {
	position: relative;
	padding: .35rem 0 .35rem 0;
}

#about-us .timeline-dot {
	position: absolute;
	left: -7px;
	top: .7rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, .25);
}

#about-us .timeline-content {
	margin-left: .25rem;
}

#about-us .about-check {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: inline-block;
	flex: 0 0 16px;
	background: radial-gradient(circle at 50% 50%, #fff 0 35%, transparent 36%),
		#28a745;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .18) inset;
}

/* Subtle hover lift for cards */
#about-us .about-stat .card-body {
	transition: transform .15s ease, background .2s ease;
}

#about-us .about-stat .card-body:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, .07);
}

/* Tighten letter spacing in small all-caps */
.tracking-tight {
	letter-spacing: .06em;
}

/* ==== Scroll Animations (no library) ==== */
/* Base: everything starts hidden and offset; when .in is present, it's visible */
.anim {
	--from-transform: translateY(24px); /* default: fade-up */
	--from-opacity: 0;
	--to-transform: none;
	--to-opacity: 1;
	--duration: 700ms;
	--easing: cubic-bezier(.22, .61, .36, 1);
	/* nice "standard" ease-out */
	--delay: 0ms;
	opacity: var(--from-opacity);
	transform: var(--from-transform);
	transition: opacity var(--duration) var(--easing) var(--delay),
		transform var(--duration) var(--easing) var(--delay);
	will-change: opacity, transform;
}

.anim.in {
	opacity: var(--to-opacity);
	transform: var(--to-transform);
}

/* Variants via data-anim (you can apply to any tag, especially <section>) */
[data-anim="fade"] {
	--from-transform: none;
}

[data-anim="fade-up"] {
	--from-transform: translateY(24px);
}

[data-anim="fade-down"] {
	--from-transform: translateY(-24px);
}

[data-anim="fade-left"] {
	--from-transform: translateX(24px);
}

[data-anim="fade-right"] {
	--from-transform: translateX(-24px);
}

[data-anim="slide-up"] {
	--from-transform: translateY(40px);
}

[data-anim="slide-down"] {
	--from-transform: translateY(-40px);
}

[data-anim="slide-left"] {
	--from-transform: translateX(60px);
}

[data-anim="slide-right"] {
	--from-transform: translateX(-60px);
}

[data-anim="zoom-in"] {
	--from-transform: scale(.92);
}

[data-anim="zoom-out"] {
	--from-transform: scale(1.06);
}

/* Optional: softer look */
[data-anim] {
	filter: blur(0.2px);
}

.anim.in[data-anim] {
	filter: none;
	transition-property: opacity, transform, filter;
}

/* Stagger helper: add .stagger to a parent and children get increasing delays */
.stagger>* {
	--delay: 0ms;
}

.stagger>*.step-1 {
	--delay: 80ms;
}

.stagger>*.step-2 {
	--delay: 160ms;
}

.stagger>*.step-3 {
	--delay: 240ms;
}

.stagger>*.step-4 {
	--delay: 320ms;
}

/* Reduce motion respect */
@media ( prefers-reduced-motion : reduce) {
	.anim, .anim.in {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

@media ( min-width : 768px) {
	#our-features .feature-icon {
		width: 40px;
		height: 40px;
	}
}

/* Touch & small screens: no shrink (hover is unreliable); show overlay at bottom */
@media ( max-width : 991.98px) {
	.fullwidth-gallery .gallery-item {
		height: 70vh;
	}
	.fullwidth-gallery .media-pane, .fullwidth-gallery .item-right .media-pane
		{
		left: 0;
		right: 0;
		width: 100%;
	}
	.fullwidth-gallery .info-pane {
		width: 100%;
		max-width: none;
		padding-inline: 1rem;
		align-items: flex-end;
		padding-bottom: 1rem;
		background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0)
			60%);
		opacity: 1; /* always visible on mobile */
		transform: none;
		text-align: left;
	}
}

/* Respect reduced motion */
@media ( prefers-reduced-motion : reduce) {
	.fullwidth-gallery .media-pane, .fullwidth-gallery .info-pane {
		transition: none !important;
	}
}

/* Dropdown hover on desktop */
@media ( min-width : 992px) {
	.navbar .dropdown:hover .dropdown-menu {
		display: block;
		margin-top: .25rem;
	}
}

.option-box {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  background: #fff;
}
.option-box:hover { border-color: #0d6efd; }
.option-box.active {
  border-color: #0d6efd;
  box-shadow: 0 0 8px rgba(13,110,253,.5);
  background: rgba(13,110,253,.06);
}



.card-ratio { 
	aspect-ratio: 3 / 4; 
}

@media (max-width: 575.98px) {
  .ratio-5x6 {
    aspect-ratio: 5 / 6; /* slightly wider */
  }
}

#gallery .thumb { box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
#gallery .thumb:focus-visible { box-shadow: 0 0 0 2px #0d6efd; }
#gallery .thumb-active { box-shadow: 0 0 0 2px #212529; }
#qtyDisplay { min-width: 2rem; text-align: center; }

/* Mobile: stacked */
.spec-grid{
  display:flex;
  flex-direction:column;     /* ← stacks on phones */
  gap:.2rem;
}

.spec-item{
  display:flex;
  gap:.25rem;
  align-items:baseline;
  flex-wrap:wrap;
}

.spec-k{ font-weight:500; opacity:.9; }
.spec-v{ font-weight:400; }

/* Desktop+: horizontal inline with separators */
@media (min-width:768px){
  .spec-grid{
    flex-direction:row;      /* ← KEY change */
    flex-wrap:wrap;
    column-gap:1.25rem;
    row-gap:.25rem;
    align-items:center;
  }

  .spec-item{
    display:inline-flex;
    flex:0 0 auto;
    white-space:nowrap;      /* keep each pair on one line */
  }

}

/* Optional: a touch more space on xl */
@media (min-width:1200px){
  .spec-grid{ column-gap:1.5rem; }
}

/* Spacing utilities (uses Bootstrap’s base rhythm but adds a bit more on lg+) */
@media (min-width: 992px) {
  .py-lg-7 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
}

/* 2×2 grid inside the card */
.quad-card {
  aspect-ratio: 3 / 4;        /* keep square shape */
  display: block;
}

.quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-template-rows: repeat(2, 1fr);    /* 2 rows  */
  height: 100%;
  width: 100%;
}

/* Each cell fully fills its quadrant */
.quad-cell {
  position: relative;
  overflow: hidden;
}

/* Image fills its cell completely */
.quad-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* perfectly fills without stretching */
  transition: transform 0.4s ease;
}

/* Overlay styling */
.quad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.65));
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover effects */
.quad-cell:hover img {
  transform: scale(1.1);
}

.quad-cell:hover .quad-overlay {
  opacity: 1;
}

/* Optional: slightly round corners on overall card */
.quad-card {
  border-radius: 0.75rem;
  overflow: hidden;
}

.chat-item:hover,
.hover-bg:hover {
  background-color: rgba(218,165,32,0.1);
  cursor: pointer;
}

.chat-item.active {
  background-color: rgba(218,165,32,0.1);
  border-left: 3px solid #DAA520;
}

/* chat layout height calc */
#chat-page {
  height: calc(100vh - var(--topbar-h) - var(--nav-h) - var(--footer-h));
  display: flex;
  flex-direction: column;
}

/* let inner flex children shrink so overflow works */
#chat-page .container-fluid,
#chat-page .row {
  flex: 1;
  min-height: 0;
}

/* columns must also be allowed to shrink */
#chat-page .col-auto,
#chat-page .col-9,
#chat-page .col-lg-3,
#chat-page .col-lg-7 {
  min-height: 0;
}

/* this is the fixed, scrollable box */
#chat-messages {
  position: fixed;
  top: 16%;              
  bottom: 14%;            
  left: 25%;
  right: 0%;          
  overflow-y: scroll;
  padding: 1rem;
}

#chat-list {
  position: fixed;
  top: 34%;          /* same top as chat-messages */
  bottom: 5%;       /* same bottom as chat-messages */
  left: 0;           /* stick to left edge */
  width: 25%;        /* because your right side starts at 25% */
  overflow-y: auto;  /* scroll inside */
  padding: 1rem;
}

.chat-float-btn {
  position: fixed;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  line-height: 60px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.chat-float-icon-pos {
	bottom: 90px;
  	right: 25px;
  	width: 60px;
  	height: 60px;
  	background-color: #00ffff;
}

.chat-float-line-pos {
 	bottom: 25px;
  	right: 25px;
  	width: 60px;
  	height: 60px;
  	background-color: #06C755; /* LINE green */
}

.chat-float-btn:hover {
	transform: scale(1.1);
	color: #fff;
}

.chat-float-line-pos:hover {
  background-color: #04a944;
  
}
chat-float-icon-pos:hover {
	background-color: #004080;
}
	
@media (max-width: 576px) {
  .chat-float-line-pos {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 15px;
    right: 15px;
    line-height: 50px;
  }
  
  .chat-float-icon-pos {
	bottom: 80px;
  	right: 15px;
  	width: 50px;
  	height: 50px;
  	line-height: 50px;
}
}