/* Match Catz Details visual language; no left text box on home */
:root{
  --spellbound-purple-mystic:#30195e;
  --spellbound-purple-mystic-alpha:rgba(48,25,94,0.85);
  --spellbound-lavender-1:#e6d6ff;
  --spellbound-lavender-2:#dac9f9;
  --spellbound-glow-active:0 0 6px #fff,0 0 12px #dac9f9,0 0 20px #dac9f9;
  --spellbound-glow-hover:0 0 4px #fff,0 0 8px #dac9f9;
}

body {
  background: url('background-forest.png') center center fixed;
  background-size: cover;
  font-family: sans-serif;
  color: #2c1b47;
  max-width: 950px;
  margin: 0 auto;
}

.header-row{
  display:flex;justify-content:space-between;align-items:flex-end;
  width:950px;margin:20px auto 5px;
}
.top-link{
  font-family:'IM Fell English SC', serif;font-size:18px;color:var(--spellbound-lavender-2);
  text-decoration:none;font-weight:bold;white-space:nowrap;
}
.top-link:hover{ text-shadow:var(--spellbound-glow-hover); color:var(--spellbound-lavender-1);}
.site-header{ display:flex;align-items:center;justify-content:center;
  font-family:'IM Fell English SC', serif;font-size:56px;color:var(--spellbound-lavender-1);
  text-shadow:3px 3px 6px #000000aa; white-space:nowrap; }
.site-header .star{ font-size:28px;color:#bfaeff;text-shadow:1px 1px 3px #00000066;margin:0 10px; }

#global-nav-wrapper{ position:sticky; top:0; z-index:100; width:950px; margin:0 auto;}
#global-nav{
  background:var(--spellbound-purple-mystic-alpha); padding:4px 16px; display:flex; justify-content:center; align-items:center; gap:16px;
  border-radius:6px; box-shadow:0 0 10px rgba(0,0,0,0.5);
  font-family:'IM Fell English SC', serif; font-size:22px;
}
#global-nav a{ color:var(--spellbound-lavender-2); text-decoration:none; transition: color .15s, text-shadow .15s;}
#global-nav a:hover{ color:var(--spellbound-lavender-1); text-shadow:var(--spellbound-glow-hover);}
#global-nav a.active{ color:var(--spellbound-lavender-1); text-shadow:var(--spellbound-glow-active); }

/* Panels inside main box */
.home-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:12px; }
.left-col,.right-col{ display:grid; gap:12px; }
.panel{
  background:rgba(255,255,255,0.5); border:1px solid rgba(255,255,255,0.55);
  border-radius:12px; padding:12px; min-height:110px;
  box-shadow:0 8px 22px rgba(0,0,0,0.28);
}
.panel h2{
  margin:0 0 8px; font-size:32px; font-family:'IM Fell English SC', serif;
  color:var(--spellbound-purple-mystic); text-align:center; /* center headers inside boxes */
}
.panel p{ margin:0; color:#3a2a5c; line-height:1.55; }

/* Adoptions (formerly Planned Litters) */
.adoptions{
  display:grid; gap:10px; max-height:320px; overflow:auto; padding-right:4px;
  background:rgba(255,255,255,0.35); border-radius:10px;
}

/* match the scrollbar style you use elsewhere */
.adoptions::-webkit-scrollbar{ width:8px; }
.adoptions::-webkit-scrollbar-thumb{
  background-color:#bda0ff; border-radius:6px; border:2px solid #f4efff;
}

.adoption-card{
  display:grid; gap:6px; justify-items:center; padding:10px;
  background:rgba(255,255,255,0.55); border:1px solid rgba(255,255,255,0.6); border-radius:10px;
}
.adoption-img{
  width:100%; max-height:180px; display:grid; place-items:center;
}
.adoption-img img{
  max-width:100%; max-height:180px; object-fit:contain; border-radius:10px; display:block;
}
.adoption-desc{
  text-align:center; color:#3a2a5c;
}
.adoption-link{
  text-align:center; color:var(--spellbound-lavender-1); font-weight:bold; text-decoration:none;
}
.adoption-link:hover{ text-shadow:var(--spellbound-glow-hover); }

/* Awards: image grid that auto-fits sizes */
.awards-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(64px, 1fr)); gap:8px;
  align-items:center; justify-items:center;
}
.awards-grid img{
  width:100%; height:auto; max-height:84px; object-fit:contain; display:block;
}

/* Carousel */
.carousel{
  position:relative; padding:10px; overflow:hidden; border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.25));
  border:1px solid rgba(255,255,255,0.55);
}
.carousel-viewport{ position:relative; height:290px; display:grid; place-items:center; overflow:hidden; }
.frames{ position:relative; width:100%; height:100%; }
.frame{
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%); transition: transform .35s, opacity .35s, filter .35s;
  display:block; cursor:pointer; /* allow clicking side pics */
}
.frame img{
  display:block; width:300px; height:220px; object-fit:cover; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.frame.active{ z-index:3; opacity:1; transform:translate(-50%,-50%) scale(1); filter:none; }
.frame.left{ z-index:2; opacity:.48; transform:translate(calc(-50% - 200px), -50%) scale(.8); filter: blur(.4px) saturate(.9); }
.frame.right{ z-index:2; opacity:.48; transform:translate(calc(-50% + 200px), -50%) scale(.8); filter: blur(.4px) saturate(.9); }
.frame.off{ z-index:1; opacity:0; pointer-events:none; }

/* Pet info closer to pictures */
.details{
  text-align:center; margin-top:4px; min-height:46px; line-height:1.25;
}
.details .show{ font-weight:700; }
.details .call{ color:#5b3fa7; font-weight:700; }
.details .title{ color:#2c9f83; font-weight:700; }

/* Remove arrows (controls) visually; JS no longer uses them */
.ctrl{ display:none !important; }

.dots{ display:flex; gap:6px; justify-content:center; margin-top:6px; }
.dot{ width:8px; height:8px; border-radius:50%; background:rgba(48,25,94,.35); cursor:pointer; }
.dot.active{ background:#fff; }

@media (max-width:1024px){
  #global-nav-wrapper{ width:100%; }
  #global-nav{ flex-wrap:wrap; font-size:20px; }
  .home-grid{ grid-template-columns:1fr; }
}

/* Prevent inner content from pushing beyond the box */
.home-grid, .panel { max-width: 100%; }
.panel img { max-width: 100%; height: auto; display: block; }