@font-face {
  font-family: "Fredoka";
  src: url("../font/Fredoka-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("../font/Fredoka-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.accordion-button,
.accordion-button:not(.collapsed),
.accordion-item {
  color: #fff;
}

.accordion-button:not(.collapsed) {
  box-shadow: 0 2px 0 0 #057DD3;
}

.accordion-button:hover {
  background: #057DD3;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.max-600 {
  max-width: 600px;
}

html {
  font-family: "Fredoka", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.footer a,
a {
  text-decoration: none
}

.avatar-penguin,
.tile-tall .tile-cover {
  min-height: 360px
}

:root {
  --laffari-blue: #178be7;
  --laffari-deep: #0f6fc0;
  --laffari-bg: #f6f8fb;
  --laffari-dark: #0b1220;
  --radius: 18px;
  --reveal-dur: .6s;
  --reveal-ease: cubic-bezier(.2, .6, .2, 1)
}

body,
html {
  font-family: Fredoka, system-ui, -apple-system, Segoe UI, Roboto, sans-serif
}

body {
  background: var(--laffari-bg);
  color: #111
}

.btn-store,
.nav-link,
h1,
h2,
h3,
h4,
h5 {
  color: #003053 !important
}

.border-radius-xl {
  border-radius: 30px
}

.border-radius-l,
.nav-link {
  border-radius: 16px
}

.accordion,
.accordion-item,
.nav-pills .nav-link {
  border-radius: 16px !important
}

.nav-link:hover {
  background: #f0f0f0;
  border-radius: 16px !important
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff !important;
  background-color: #1f92e5
}

.navbar {
  top: 54px;
  transition: top .35s, box-shadow .25s;
  z-index: 1030;
  box-shadow: 0 12px 0 0 #d9d9d9
}

.navbar.is-fixed {
  top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0
}

.accordion {
  --bs-accordion-bg: none !important
}

.accordion-button:not(.collapsed) {
  background-color: transparent
}

.btn-store:hover,
.card:hover {
  background: #f0f0f0
}

.accordion-item {
  border: 8px solid #057DD3 !important;
  background: #1F92E5;
}

.rounded-2xl {
  border-radius: var(--radius)
}

.shadow-soft {
  box-shadow: 0 8px 20px rgba(16, 24, 40, .08)
}

.text-title {
  font-weight: 700;
  letter-spacing: .2px
}

.btn-store {
  padding: 14px 19px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  border: 2px solid #d9d9d9;
  background: #fff;
  box-shadow: 0 6px 0 0 #d9d9d9;
  text-decoration: none !important
}

.btn-store:hover {
  box-shadow: 0 2px 0 0 #d9d9d9;
}

.btn-store i {
  font-size: 1.2rem;
  margin-right: .5rem
}

.float-right {
  float: right
}

.hero {
  background: url(../img/HeroSection.webp) center/cover no-repeat;
  color: #fff;
  height: 90vh
}

.placeholder-card {
  background: #e9eef6;
  border-radius: 16px
}

.ratio-16x9 {
  aspect-ratio: 16/9
}

.brand-strip .logo-pill {
  background: #fff;
  border-radius: 12px;
  padding: .5rem 1rem;
  border: 1px solid rgba(16, 24, 40, .06)
}

.cta {
  background: url(../img/cta-bgr.webp) center/cover no-repeat #1f92e5
}

.footer {
  background: #1f92e5;
  color: #eaf4ff
}

.footer a {
  color: #eaf4ff
}

.avatar-penguin {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="640" height="640"><rect width="100%" height="100%" rx="28" ry="28" fill="%23ffffff"/><text x="50%" y="50%" fill="%230b1220" dominant-baseline="middle" text-anchor="middle" font-size="28" font-family="Arial">Penguin Illustration Placeholder</text></svg>') center/contain no-repeat #fff;
  border-radius: 28px
}

.story-cover {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="450"><rect width="100%" height="100%" fill="%23cfe3ff"/><text x="50%" y="50%" fill="%230b1220" dominant-baseline="middle" text-anchor="middle" font-size="28" font-family="Arial">Story Cover</text></svg>') center/cover no-repeat;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  min-height: 160px
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  background: #fff;
  padding: .5rem 1rem;
  z-index: 1000
}

[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
  transition: transform var(--reveal-dur) var(--reveal-ease), opacity var(--reveal-dur) var(--reveal-ease)
}

[data-animate=up] {
  transform: translateY(20px)
}

[data-animate=down] {
  transform: translateY(-20px)
}

[data-animate=left] {
  transform: translateX(24px)
}

[data-animate=right] {
  transform: translateX(-24px)
}

[data-animate=fade] {
  transform: none
}

[data-animate=zoom] {
  transform: scale(.98)
}

.is-visible {
  opacity: 1;
  transform: none
}

[data-animate][style*="--delay"] {
  transition-delay: var(--delay, 0s)
}

[data-category] {
  transition: opacity .2s
}

.text-white-80 {
  color: rgba(255, 255, 255, .8) !important
}

a.text-white-80:hover {
  text-decoration: underline
}

.tag {
  border: 1px solid #000;
  border-radius: 20px;
  padding: 5px 10px;
  display: inline-block;
  margin-bottom: 5px
}

.tag::before {
  content: "#";
  margin-right: 2px;
  color: #888
}

.white-tag {
  border: 1px solid #fff;
  padding: 9px 19px;
  background: rgb(255, 255, 255, .8);
  color: #000;
}

.white-tag::before {
  content: ""
}

@media (prefers-reduced-motion:reduce) {

  [data-animate],
  [data-category] {
    transition: none !important
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important
  }
}

.story-group {
  display: none
}

.story-group.is-active {
  display: block
}

.bento {
  background: #1f92e5;
  display: grid;
  gap: 1rem
}

@media (min-width:768px) {
  .bento {
    grid-template-columns: repeat(12, 1fr)
  }

  .bento .tile-12 {
    grid-column: span 12
  }

  .bento .tile-8 {
    grid-column: span 8
  }

  .bento .tile-6 {
    grid-column: span 6
  }

  .bento .tile-4 {
    grid-column: span 4
  }
}

@media (max-width:768px) {
  .w-50 {
    width: 100% !important
  }

  .navbar {
    top: 0
  }
}

.tile {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
  position: relative
}

.tile-cover {
  min-height: 320px;
  background: center/cover no-repeat #cfe3ff
}

.tile-body {
  padding: 1rem;
  position: absolute;
  bottom: 0;
  background: rgb(255, 255, 255, .8);
  margin: 15px;
  border-radius: 9px;
  width: -webkit-fill-available
}

.tile-wide .tile-cover {
  min-height: 220px
}

.tile-short .tile-cover {
  min-height: 140px
}

.tile-cover {
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .4s, opacity .3s
}

.tile:hover .tile-cover {
  transform: scale(1.03);
  opacity: .95
}

.tile-glass {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(16, 24, 40, .08)
}

.bedtime-sky {
  background: radial-gradient(120% 80% at 70% 20%, #1a2b4a 0, #0d172b 65%, #091021 100%)
}

.bedtime-stars {
  background-image: radial-gradient(#fff 1px, transparent 1px), radial-gradient(#fff 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px;
  background-position: 0 0, 12px 12px;
  opacity: .18
}

.card-img,
.card-img-top {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px
}

.article-orange-shadow {
  border: 8px solid #f90;
  background: #fff;
  box-shadow: 0 18px 0 0 #f90
}

.article-green-shadow {
  border: 8px solid #59b715;
  background: #fff;
  box-shadow: 0 18px 0 0 #59b715
}

.article-purple-shadow {
  border: 8px solid #9b65ff;
  background: #fff;
  box-shadow: 0 18px 0 0 #9b65ff
}

.article-blue-shadow {
  border: 8px solid #1f92e5;
  background: #fff;
  box-shadow: 0 18px 0 0 #1f92e5
}

.active>.page-link,
.page-link.active {
  background-color: #1f92e5 !important;
  border-color: #1f92e5 !important
}

.page-link {
  color: #1f92e5
}

.border-radius-x {
  border-radius: 15px;
}

.display-1 {
  line-height: 1 !important;
}

@media (max-width: 576px) {
  .navbar {
    border-radius: 0px;
  }

  .tile-body {
    position: inherit;
    padding: 0;
  }

  .hero {
    background: #1F92E5 !important;
    padding-top: 100px;
    height: auto;
  }

  .white-tag {
    width: 100%;
    display: block;
    text-align: center;
  }
}

.brand-strip-wrapper {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

/* add soft gradient masks on both sides */
.brand-strip-wrapper::before,
.brand-strip-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  /* adjust for wider/narrower fades */
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brand-strip-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f6f8fb 0%, transparent 100%);
}

.brand-strip-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f6f8fb 0%, transparent 100%);
}

/* your existing animation setup */
.brand-strip {
  display: flex;
  width: max-content;
}

.brand-track {
  display: flex;
  gap: 3rem;
  animation: scroll-logos 40s linear infinite;
}

.brand-track img {
  transition: transform 0.3s ease;
}

.brand-track img:hover {
  transform: scale(1.1);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.brand-strip {
  gap: 3rem;
}