
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(
    to bottom,
   #EEF2F7 0%,
   #ffffff 20%,
     #ffffff 30%,
   #ffffff 33%,
   #EEF2F7 66%,
   #ffffff 96%,
    #c8c8c8 100%
  );
}
.hero-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 320px;
  position: relative; 
}
@media (max-width: 768px) {
  .hero-banner { height: 220px; }
}
.hero-logo {
  position: absolute;
  width: 300px;   
  height: auto;
  z-index: 5;
  left: 50%;                      
  transform: translateX(-50%);    
  top: 10px;                      
  opacity: 0;                     
  animation: fadeInZoom 3s ease forwards; 
}
.welcome-card, .welcome-flex {
  animation: fadeInUp 1s ease-out;
  animation-delay: 0s;              
  animation-fill-mode: backwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-logo {
  position: absolute;
  width: 300px;   
  height: auto;
  z-index: 5;
  left: 50%;                      
  transform: translateX(-50%);    
  top: 10px;                      
  opacity: 0;                     
  animation: slideDownFade 1.5s ease forwards; 
  animation-delay: 1s;            
}
@media (max-width: 768px) {
  .hero-logo {
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    opacity: 0;
    animation: slideDownFade 1.5s ease forwards;
    animation-delay: 1s;
  }
}
@keyframes slideDownFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(0.9); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.container {
  position: relative;
  z-index: 2;
  margin-top: -140px;
 }
.welcome-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #ffffff;
}
.welcome-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
.msg-bubble { 
  position: relative; 
  display: inline-block; 
}
.msg-bubble i { 
  font-size: 1.5rem; 
  color: #ffffff; 
}
.msg-bubble .badge {
  position: absolute;
  top: 10px; 
  right: 20px;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;    
  justify-content: center; 
  border-radius: 50%;
  font-size: 0.75rem;
}
.badge-yellow {
  background-color: #FFFF33; 
  color: #000; 
}
@keyframes wiggleUpDown {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-4px); }
  40%  { transform: translateY(4px); }
  60%  { transform: translateY(-2px); }
  80%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
@keyframes wiggleRotate {
  0%   { rotate: 0deg; }
  20%  { rotate: -5deg; }
  40%  { rotate: 5deg; }
  60%  { rotate: -3deg; }
  80%  { rotate: 3deg; }
  100% { rotate: 0deg; }
}
.hedwig-icon {
  display: block;
  will-change: transform, rotate;
}
.wiggle-updown {
  animation: wiggleUpDown 0.6s ease;
}
.wiggle-rotate {
  animation: wiggleRotate 0.6s ease;
}
.welcome-card {
  border-radius: 0.5rem; 
  color: #ffffff;        
  padding: 1.5rem;
  margin-top: -80px;
 }
.feature-card {
  border: none;
  border-radius: 1em !important;
  box-shadow: 0 .3rem .8rem rgba(0,0,0,0.1);
  transition: transform .2s;
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 3;
  position: relative;   
  overflow: hidden;
}
.feature-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 1rem 0 1rem 0;
}
.feature-overlay h6 {
  margin: 0;
  font-size: 1rem;
  color: #fff; 
  text-shadow: 0 2px 2px rgba(0,0,0,0.9); 
}
.hedwig-icon {
  height: 70px;
  margin-left: -45px;
  margin-top: 20px;
}
.welcome-text h4,
.welcome-text h4 strong {
  color: #fff; 
}
@media (max-width: 576px) {
  .welcome-text h4 {
    font-size: 0.95rem;   
    line-height: 1.2;
    color: #fff;
  }
  .welcome-text h4 strong {
    display: inline-block;
    max-width: 6em;       
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    color: #fff;          
  }
}
.hedwig-feature-icon {
  position: absolute;
  right: 15%;
  top: 50%;
  width: 150px;
  height: auto;
  transform: translateY(-50%);
  z-index: 1; 
}
@media (max-width: 768px) {
  .hedwig-feature-icon {
    right: 10%;
    top: 50%;
    width: 90px;
    height: auto;
    transform: translateY(-50%);
  }
}
.hedwig-card:hover .hedwig-feature-icon {
  animation: hedwig-shake 0.5s;
}
@keyframes hedwig-shake {
  0%   { transform: translateY(-50%) rotate(0deg); }
  20%  { transform: translateY(-50%) translateX(-3px) rotate(-3deg); }
  40%  { transform: translateY(-50%) translateX(3px) rotate(3deg); }
  60%  { transform: translateY(-50%) translateX(-3px) rotate(-3deg); }
  80%  { transform: translateY(-50%) translateX(3px) rotate(3deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}
.hedwig-badge {
  position: absolute;
  top: 35%;                 
  left: calc(38% - 35px);   
  width: 1.8em;
  height: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  background-color: #FFFF33;
  color: #000;
  z-index: 5; 
  animation: badgeBlink 0.5s infinite alternate; 
}
@media (max-width: 768px) {
  .hedwig-badge {
    top: 30%;                
    left: calc(40% - 25px);  
    width: 1.5em;            
    height: 1.5em;
    font-size: 1.0rem;       
    animation: badgeBlink 0.5s infinite alternate; 
  }
}
@keyframes badgeBlink {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.2); } 
}
.latest-filmstrip {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: url('images/index/background/wood.jpg') center center repeat;
  background-size: cover;
  border-top: 3px solid #f4dcbd;
  border-bottom: 5px solid #c5b197;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}
.filmstrip-menu {
  font-size: 0.9rem;
  color: #000;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}
.filmstrip-tab {
  margin: 0 0.5rem;
  cursor: pointer;
  color: #000;
  transition: color 0.2s ease;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.4),
              inset -2px -2px 5px rgba(255,255,255,0.3);
  text-shadow: inset 1px 1px 2px rgba(0,0,0,0.5),
               -1px -1px 1px rgba(255,255,255,0.6);
}
.filmstrip-tab.active { color: #fff; font-weight: bold; }
.filmstrip-tab:hover { color: #fff; }
.filmstrip-scroll {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.3rem;
  padding: 0.5rem;
  -webkit-overflow-scrolling: touch;
  height: 140px;
  overflow-x: auto;
  overflow-y: hidden;
}
.filmstrip-scroll.locked { overflow-x: hidden !important; }
@media (max-width: 768px) {
  .filmstrip-scroll {
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .filmstrip-scroll::-webkit-scrollbar { display: none; }
}
.filmstrip-scroll::-webkit-scrollbar { height: 8px; }
.filmstrip-scroll::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 4px;
}
.filmstrip-img-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15),
              2px 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.filmstrip-img-wrapper:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15),
              6px 6px 14px rgba(0,0,0,0.4);
}
.filmstrip-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent,
    rgba(255,255,255,0.5), rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}
.filmstrip-img-wrapper:hover::after { animation: shine 1s ease forwards; }
@keyframes shine { 0% { left: -100%; } 100% { left: 150%; } }
.filmstrip-img { width: 90px; height: 90px; object-fit: cover; display: block; }
.filmstrip-item {
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
  text-decoration: none;   
}
.filmstrip-item.fly-out {
  animation: flyOut 0.1s ease-in forwards;
}
@keyframes flyOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(150vw); }
}
.filmstrip-item.fly-in-right {
  animation: flyInRight 0.1s cubic-bezier(0.25,1.1,0.5,1) forwards;
}
@keyframes flyInRight {
  from { opacity: 0; transform: translateX(150vw); }
  to   { opacity: 1; transform: translateX(0); }
}
.filmstrip-item.fly-in-left {
  animation: flyInLeft 0.1s cubic-bezier(0.25,1.1,0.5,1) forwards;
}
@keyframes flyInLeft {
  from { opacity: 0; transform: translateX(-150vw); }
  to   { opacity: 1; transform: translateX(0); }
}
.filmstrip-title {
  font-size: 0.75rem;
  color: #000;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.hero-banner { margin-bottom: 0; }
.filmstrip-logo-wrapper, .filmstrip-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.filmstrip-logo-text { font-size: 0.9rem; color: #000; margin-top: 0.3rem; }
.filmstrip-logo { max-width: 100px; max-height: 100px; object-fit: contain; border: none; box-shadow: none; }
.filmstrip-img-wrapper.loading {
  width: 90px; height: 90px;
  border: 8px solid #fff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15),
              4px 4px 10px rgba(0,0,0,0.3);
}
.loading-shine {
  position: absolute; top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(120deg, transparent,
    rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: shineMove 0.1s infinite;
}
@keyframes shineMove { 0% { left: -100%; } 100% { left: 100%; } }
.filmstrip-scroll::-webkit-scrollbar {
  height: 16px; background-color: #c5b197;
}
.filmstrip-scroll::-webkit-scrollbar-thumb {
  background-color: #f4dcbd;
  border-radius: 4px;
  border: 1px solid #c5b197;
  background-clip: padding-box;
}
@keyframes filmstrip-slide-from-left {
  from { transform: translateX(-150vw); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}
@keyframes filmstrip-slide-from-right {
  from { transform: translateX(150vw);  opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}
@keyframes filmstrip-fly-out {
  from { transform: translateX(0);      opacity: 1; }
  to   { transform: translateX(-150vw); opacity: 0; }
}
.filmstrip-scroll::-webkit-scrollbar-thumb:hover { background-color: #e2c9a8; }
