.patris-home {
.admin-hero {
  width: 100%;
  direction: rtl;
  padding: 12px 0 30px;
}

.hero-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #F6F9FB;
}

.hero-panel {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  overflow: hidden;
  color: #fff;
}

.hero-panel picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel.has-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(25, 15, 25, .65),
    rgba(25, 15, 25, .15) 65%,
    transparent
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: 52%;
  text-align: right;
}

.hero-subtitle {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(25px, 3.5vw, 48px);
  line-height: 1.6;
  margin: 0 0 12px;
}

.hero-content p {
  color: #fff;
  font-size: 15px;
  line-height: 2;
  margin: 0 0 20px;
  white-space: pre-line;
}

.hero-button {
  display: inline-block;
  background: #fff;
  color: #3A2119;
  border-radius: 30px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
}

.hero-navigation {
  position: absolute;
  z-index: 5;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,.95);
  border-radius: 40px;
  direction: ltr;
}

.hero-navigation > button {
  border: 0;
  width: 28px;
  height: 28px;
  background: #E8E0D4;
  color: #3A2119;
  border-radius: 50%;
  font-size: 22px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dots button {
  border: 0;
  padding: 0;
  width: 8px;
  height: 8px;
  background: #E8E0D4;
  border-radius: 8px;
}

.hero-dots button.active {
  width: 24px;
  background: #957662;
}

/* Mobile: show entire image at natural aspect ratio */
@media (max-width: 700px) {
  .admin-hero {
    padding: 6px 0 20px;
  }

  .hero-stage {
    border-radius: 14px;
  }

  .hero-panel {
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .hero-panel picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .hero-panel img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .hero-content {
    right: 6%;
    width: 83%;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 11px;
  }

  .hero-content p {
    font-size: 12px;
  }

  .hero-button {
    font-size: 11px;
    padding: 8px 16px;
  }

  .hero-navigation {
    bottom: 8px;
  }
}

.patris-stories-compact {
  width: min(1240px, calc(100% - 24px));
  margin: 9px auto 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stories-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 7px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stories-scroll::-webkit-scrollbar {
  display: none;
}

.story-circle-button {
  display: block;
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.story-ring {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 50%;
  background: linear-gradient(
    35deg,
    #f1b44b,
    #f56f89,
    #d34079,
    #957662
  );
  box-shadow: 0 3px 10px rgba(209, 65, 115, .15);
  transition: transform .2s ease;
}

.story-circle-button:hover .story-ring {
  transform: scale(1.06);
}

.story-picture {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid white;
  border-radius: 50%;
  box-sizing: border-box;
  overflow: hidden;
  background: #f8edf2;
}

.story-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  background: rgba(18, 12, 20, .88);
  backdrop-filter: blur(8px);
}

.story-viewer {
  position: relative;
  width: min(420px, 100%);
  height: min(760px, 94dvh);
  overflow: hidden;
  border-radius: 20px;
  background: #271c25;
  color: white;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.story-full-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.48),
    transparent 28%,
    transparent 45%,
    rgba(0,0,0,.84)
  );
}

.story-progress {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  gap: 4px;
}

.progress-track {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.4);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: white;
}

.story-top {
  position: absolute;
  top: 28px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-brand {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  color: white;
}

.story-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: white;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.story-tap {
  position: absolute;
  top: 77px;
  bottom: 150px;
  z-index: 2;
  width: 34%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-prev {
  right: 0;
}

.story-next {
  left: 0;
}

.story-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 28px 22px 24px;
  text-align: right;
}

.story-info h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

.story-info p {
  margin: 0 0 13px;
  color: white;
  font-size: 13px;
  line-height: 1.8;
}

.story-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #957662;
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 700px) {
  .patris-stories-compact {
    width: calc(100% - 20px);
    margin: 8px auto 9px;
  }

  .stories-scroll {
    gap: 9px;
    padding-bottom: 5px;
  }

  .story-circle-button {
    width: 62px;
    height: 62px;
  }

  .story-overlay {
    padding: 0;
  }

  .story-viewer {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .story-info h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-ring {
    transition: none;
  }
}

.stories-scroll {
  align-items: flex-start;
  scroll-snap-type: x proximity;
}

.story-circle-button {
  scroll-snap-align: start;
}

.story-circle-button:focus-visible {
  outline: 2px solid #957662;
  outline-offset: 2px;
  border-radius: 12px;
}

@media (min-width: 800px) {
  .stories-scroll {
    justify-content: center;
  }
}

/* PATRIS_STORY_CAPTION_V3 */
.story-circle-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 82px;
  width: 82px;
  height: auto;
  font-family: inherit;
}

.story-ring {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
}

.story-caption {
  display: -webkit-box;
  width: 100%;
  max-width: 82px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #49343f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .story-circle-button {
    width: 74px;
    flex-basis: 74px;
    height: auto;
  }

  .story-ring {
    width: 62px;
    height: 62px;
  }

  .story-caption {
    max-width: 74px;
    font-size: 11px;
  }
}
  @media (max-width: 700px) {
    .admin-hero .hero-panel {
      aspect-ratio: 4 / 5;
    }

    .admin-hero .hero-panel picture {
      position: absolute;
      inset: 0;
      height: 100%;
    }

    .admin-hero .hero-panel img {
      height: 100%;
      object-fit: contain;
    }
  }
}

/* Patris neutral story rings */
.patris-home .patris-stories-compact .story-ring {
  padding: 2px;
  background: #C8B29F;
  box-shadow: none;
}

.patris-home .patris-stories-compact .story-picture {
  border: 2px solid #FFFFFF;
}

.patris-home .patris-stories-compact .story-circle-button:focus-visible {
  outline-color: #957662;
}

/* Patris home announcement */
body .announcement.patris-home-announcement {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: auto;
  min-height: 40px;
  padding: 8px 16px;
  background: #3A2119;
  color: #FFFFFF;
  text-align: center;
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.5;
}

body .patris-home-announcement strong {
  color: inherit;
  font-weight: 700;
}
