/* ==========================================================================
   EduPlus.lk - Smart Tuition Class & Fee Management System
   Light Theme Custom Stylesheet
   ========================================================================== */

:root {
  --brand-orange: #FF6B00;
  --brand-orange-light: #FF8C00;
  --brand-orange-dark: #E05600;
  --brand-orange-soft: #FFF5EC;
  --brand-ink: #18181B;
  --brand-muted: #52525B;
  --surface-white: #FFFFFF;
  --surface-warm: #FFFBF7;
}

/* Smooth Scrolling & Base Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--surface-white);
  color: var(--brand-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar (Light & Orange) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFF7ED;
}
::-webkit-scrollbar-thumb {
  background: #FDBA74;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* Brand Gradient Text & Buttons */
.text-gradient-orange {
  background: linear-gradient(135deg, #FF8C00 0%, #FF5500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-orange {
  background: linear-gradient(135deg, #FF8C00 0%, #FF5500 100%);
}

.btn-primary {
  background: linear-gradient(135deg, #FF851B 0%, #FF5E00 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(255, 107, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(255, 107, 0, 0.45);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--brand-ink);
  border: 1.5px solid #E4E4E7;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: #FFF9F5;
  transform: translateY(-2px);
}

/* Glassmorphic Light Navbar */
.navbar-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar-glass.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -10px rgba(24, 24, 27, 0.08);
}

/* Subtle Hero Mesh Background (Light Theme) */
.hero-mesh {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(at 88% 12%, rgba(255, 140, 0, 0.12) 0px, transparent 50%),
    radial-gradient(at 10% 80%, rgba(255, 107, 0, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 40%, rgba(255, 237, 213, 0.45) 0px, transparent 60%);
}

.dot-grid {
  background-image: radial-gradient(rgba(255, 107, 0, 0.16) 1.25px, transparent 1.25px);
  background-size: 26px 26px;
}

/* Scroll Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="left"] {
  transform: translateX(-28px);
}

[data-reveal="right"] {
  transform: translateX(28px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Floating & Pulse Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatDelayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes scanBeam {
  0%, 100% { top: 8%; opacity: 0.3; }
  50% { top: 86%; opacity: 0.95; }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatDelayed 6s ease-in-out 1.2s infinite;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--brand-orange);
  animation: pulseRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.scan-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF6B00, #FFB347, #FF6B00, transparent);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.8);
  animation: scanBeam 2.6s ease-in-out infinite;
}

/* 3D Interactive Smart Card */
.smart-card-scene {
  perspective: 1200px;
}

.smart-card-3d {
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.smart-card-3d.flipped {
  transform: rotateY(180deg);
}

.smart-card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.smart-card-back {
  transform: rotateY(180deg);
}

/* Feature Card Hover Lift + Soft Faded Orange Glow Orb */
.feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 100%);
  border: 1.5px solid #FED7AA;
  box-shadow: 0 12px 32px -12px rgba(255, 107, 0, 0.10), 0 4px 12px -4px rgba(24, 24, 27, 0.04);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -42px;
  right: -42px;
  width: 155px;
  height: 155px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.16) 0%, rgba(255, 140, 0, 0.06) 50%, transparent 74%);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #FB923C;
  box-shadow: 0 22px 45px -14px rgba(255, 107, 0, 0.22);
}

.feature-card:hover::before {
  transform: scale(1.18);
}

/* Nav Active Link Indicator */
.nav-link {
  position: relative;
  font-weight: 500;
  color: #3F3F46;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF8C00, #FF5500);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-float,
  .animate-float-delayed,
  .scan-beam,
  .pulse-ring::before {
    animation: none;
  }
}


/* ==========================================================================
   Poseka-Inspired Animated Hero Section (Light Theme - EduPlus.lk)
   ========================================================================== */
@keyframes wordBlurReveal {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

@keyframes brushHighlightDraw {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.dc-hero {
  position: relative;
  padding: 96px 0 84px;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: #FFFFFF;
}

.dc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.dc-hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 247, 237, 0.72) 55%, rgba(255, 237, 213, 0.38) 100%);
}

.dc-hero-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(255, 107, 0, 0.14), transparent 72%),
    radial-gradient(circle at 14% 75%, rgba(255, 140, 0, 0.09), transparent 45%),
    radial-gradient(circle at 86% 70%, rgba(255, 107, 0, 0.08), transparent 45%);
}

.dc-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dc-hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, #FFFBF7 0%, transparent 100%);
  pointer-events: none;
}

.dc-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.dc-headline {
  margin: 0 auto 18px;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #18181B;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dc-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
}

.dc-word {
  display: inline-block;
  animation: wordBlurReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity, filter;
}

.dc-nowrap {
  white-space: nowrap;
}

.dc-hl-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 0 12px;
  margin: 0 2px;
  white-space: nowrap;
  animation: wordBlurReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity, filter;
}

.dc-hl-text {
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #18181B;
}

.dc-brush-svg {
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 2%;
  width: 106%;
  height: 92%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.dc-brush-svg.rot-1 {
  transform: rotate(-0.6deg);
}

.dc-brush-svg.rot-2 {
  transform: rotate(-0.4deg);
}

.dc-brush-svg path {
  transform-origin: left center;
  animation: brushHighlightDraw 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dc-dot {
  color: var(--brand-orange);
  font-weight: 900;
  margin-left: 2px;
  display: inline-block;
}

.dc-seo-kicker {
  margin: 10px auto 14px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-orange-dark);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.76s both;
}

.dc-lead {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.68;
  color: #52525B;
  font-weight: 500;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.88s both;
}

.dc-lead strong {
  color: #18181B;
  font-weight: 700;
}

.dc-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
}

.dc-trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #3F3F46;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.12s both;
}

.dc-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dc-trust-line .sep {
  opacity: 0.35;
}

@media (max-width: 1024px) {
  .dc-hero {
    padding: 76px 0 68px;
    min-height: 460px;
  }
  .dc-headline {
    font-size: clamp(30px, 4.9vw, 50px);
  }
}

@media (max-width: 768px) {
  .dc-hero {
    padding: 64px 0 56px;
    min-height: auto;
  }
  .dc-headline {
    font-size: clamp(27px, 6vw, 38px);
    line-height: 1.2;
  }
  .dc-hl-wrap {
    padding: 0 9px;
  }
}

@media (max-width: 540px) {
  .dc-hero {
    padding: 52px 0 46px;
  }
  .dc-hero-inner {
    padding: 0 16px;
  }
  .dc-headline {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.24;
    gap: 4px;
  }
  .dc-line {
    gap: 4px 8px;
  }
  .dc-hl-wrap {
    padding: 0 7px;
  }
  .dc-cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .dc-cta-row a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-word,
  .dc-hl-wrap,
  .dc-brush-svg path,
  .dc-seo-kicker,
  .dc-lead,
  .dc-cta-row,
  .dc-trust-line {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}


/* ==========================================================================
   Infinite Customer Logo Marquee (Side-Scrolling Strip)
   ========================================================================== */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-marquee-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
}

.institute-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  box-shadow: 0 6px 20px -8px rgba(24, 24, 27, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.institute-logo-pill:hover {
  transform: translateY(-2px);
  border-color: #FED7AA;
  box-shadow: 0 12px 28px -10px rgba(255, 107, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}


/* Enhanced Logo Marquee Card Hover & Subtle Float */
@keyframes logoFloatEven {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes logoFloatOdd {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(4px); }
}

.institute-logo-pill:nth-child(even) {
  animation: logoFloatEven 4s ease-in-out infinite;
}

.institute-logo-pill:nth-child(odd) {
  animation: logoFloatOdd 4.5s ease-in-out infinite;
}

.institute-logo-pill svg {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.institute-logo-pill:hover svg {
  transform: scale(1.15) rotate(-4deg);
}


/* ==========================================================================
   Single-Row Customer Review Marquee & Digitise Showcase
   ========================================================================== */
@keyframes reviewMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: reviewMarquee 36s linear infinite;
}

.logo-marquee-wrapper:hover .review-marquee-track {
  animation-play-state: paused;
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1.5px solid #FED7AA;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px -12px rgba(255, 107, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: #FB923C;
  box-shadow: 0 18px 36px -12px rgba(255, 107, 0, 0.2);
}

@media (max-width: 640px) {
  .review-card {
    width: 280px;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-marquee-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 8px;
  }
}


/* ==========================================================================
   Zero-Lag GPU Micro-Animations (Scroll Progress, Shine Sweep, Back-to-Top)
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #FF8C00, #FF5500);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(350%) skewX(-22deg);
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: var(--brand-orange);
  border: 1.5px solid #FED7AA;
  box-shadow: 0 10px 25px -6px rgba(255, 107, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 60;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
  transform: translateY(-3px);
}


/* ==========================================================================
   Premium Photo Frames (Light Theme) - GPU-only hover zoom
   ========================================================================== */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1.5px solid #FED7AA;
  background: #FFFFFF;
  box-shadow: 0 30px 70px -25px rgba(255, 107, 0, 0.28), 0 8px 20px -8px rgba(24, 24, 27, 0.08);
  isolation: isolate;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.photo-frame:hover img {
  transform: scale(1.045);
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(24, 24, 27, 0.18) 100%);
  pointer-events: none;
}

.photo-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #FED7AA;
  box-shadow: 0 14px 30px -10px rgba(255, 107, 0, 0.3);
}

.photo-glow {
  position: absolute;
  inset: -30px -20px auto -20px;
  height: 70%;
  z-index: -1;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(255, 140, 0, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-photo-section {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

@media (max-width: 640px) {
  .photo-frame {
    border-radius: 20px;
  }
  .photo-chip {
    padding: 8px 11px;
    border-radius: 12px;
  }
  .hero-photo-section {
    margin-top: -20px;
  }
}


/* ==========================================================================
   Creative Interactive Hardware Kit Showcase (products.html)
   ========================================================================== */
.kit-hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #FF6B00;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.45);
  border: 2px solid #FFFFFF;
  z-index: 4;
  transition: transform 0.25s ease;
}

.kit-hotspot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 107, 0, 0.6);
  animation: pulseRing 2.2s ease-out infinite;
}

.kit-item-row {
  background: #FFFFFF;
  border: 1.5px solid #FED7AA;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.kit-item-row:hover {
  transform: translateX(6px);
  border-color: #FF6B00;
  box-shadow: 0 12px 26px -10px rgba(255, 107, 0, 0.22);
}


/* ==========================================================================
   Custom-Branded Institute Smart Card Gallery (Transparent PNGs)
   ========================================================================== */
.card-gallery-item {
  position: relative;
  border-radius: 24px;
  padding: 20px 16px 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF7 100%);
  border: 1.5px solid #FED7AA;
  box-shadow: 0 12px 30px -12px rgba(255, 107, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
  text-align: center;
}

.card-gallery-item:hover {
  transform: translateY(-8px);
  border-color: #FF6B00;
  box-shadow: 0 24px 48px -14px rgba(255, 107, 0, 0.24);
}

.card-gallery-item img {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 16px 20px rgba(24, 24, 27, 0.15));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card-gallery-item:hover img {
  transform: scale(1.06) rotate(-1.5deg);
}
